@ckeditor/ckeditor5-comments 32.0.0 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/comments.js +5 -0
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/bs.js +1 -0
  6. package/build/translations/cs.js +1 -0
  7. package/build/translations/da.js +1 -0
  8. package/build/translations/de-ch.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fr.js +1 -0
  15. package/build/translations/gl.js +1 -0
  16. package/build/translations/hi.js +1 -0
  17. package/build/translations/hr.js +1 -0
  18. package/build/translations/hu.js +1 -0
  19. package/build/translations/id.js +1 -0
  20. package/build/translations/it.js +1 -0
  21. package/build/translations/ja.js +1 -0
  22. package/build/translations/jv.js +1 -0
  23. package/build/translations/ko.js +1 -0
  24. package/build/translations/lv.js +1 -0
  25. package/build/translations/nl.js +1 -0
  26. package/build/translations/no.js +1 -0
  27. package/build/translations/pl.js +1 -0
  28. package/build/translations/pt-br.js +1 -0
  29. package/build/translations/ro.js +1 -0
  30. package/build/translations/ru.js +1 -0
  31. package/build/translations/sk.js +1 -0
  32. package/build/translations/sr-latn.js +1 -0
  33. package/build/translations/sr.js +1 -0
  34. package/build/translations/tk.js +1 -0
  35. package/build/translations/tr.js +1 -0
  36. package/build/translations/ug.js +1 -0
  37. package/build/translations/uk.js +1 -0
  38. package/build/translations/ur.js +1 -0
  39. package/build/translations/zh-cn.js +1 -0
  40. package/build/translations/zh.js +1 -0
  41. package/lang/contexts.json +0 -3
  42. package/lang/translations/af.po +67 -0
  43. package/lang/translations/bs.po +0 -12
  44. package/lang/translations/cs.po +0 -12
  45. package/lang/translations/da.po +0 -12
  46. package/lang/translations/de-ch.po +0 -12
  47. package/lang/translations/de.po +0 -12
  48. package/lang/translations/el.po +67 -0
  49. package/lang/translations/en-au.po +0 -12
  50. package/lang/translations/en.po +0 -12
  51. package/lang/translations/es.po +0 -12
  52. package/lang/translations/et.po +0 -12
  53. package/lang/translations/fr.po +0 -12
  54. package/lang/translations/gl.po +0 -12
  55. package/lang/translations/hi.po +0 -12
  56. package/lang/translations/hr.po +0 -12
  57. package/lang/translations/hu.po +0 -12
  58. package/lang/translations/id.po +0 -12
  59. package/lang/translations/it.po +0 -12
  60. package/lang/translations/ja.po +0 -12
  61. package/lang/translations/jv.po +66 -0
  62. package/lang/translations/ko.po +0 -12
  63. package/lang/translations/lv.po +68 -0
  64. package/lang/translations/nl.po +0 -12
  65. package/lang/translations/no.po +0 -12
  66. package/lang/translations/pl.po +0 -12
  67. package/lang/translations/pt-br.po +0 -12
  68. package/lang/translations/ro.po +0 -12
  69. package/lang/translations/ru.po +0 -12
  70. package/lang/translations/sk.po +0 -12
  71. package/lang/translations/sr-latn.po +0 -12
  72. package/lang/translations/sr.po +0 -12
  73. package/lang/translations/tk.po +0 -12
  74. package/lang/translations/tr.po +0 -12
  75. package/lang/translations/ug.po +0 -12
  76. package/lang/translations/uk.po +0 -12
  77. package/lang/translations/ur.po +67 -0
  78. package/lang/translations/zh-cn.po +0 -12
  79. package/lang/translations/zh.po +0 -12
  80. package/package.json +4 -9
  81. package/src/annotations/annotation.js +1 -1
  82. package/src/annotations/annotationcollection.js +1 -1
  83. package/src/annotations/annotations.js +1 -1
  84. package/src/annotations/annotationsuis.js +1 -1
  85. package/src/annotations/editorannotations.js +1 -1
  86. package/src/annotations/inlineannotations.js +1 -1
  87. package/src/annotations/narrowsidebar.js +1 -1
  88. package/src/annotations/sidebar.js +1 -1
  89. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  90. package/src/annotations/view/annotationview.js +1 -1
  91. package/src/annotations/view/sidebaritemview.js +1 -1
  92. package/src/annotations/view/sidebarview.js +1 -1
  93. package/src/annotations/widesidebar.js +1 -1
  94. package/src/comments/addcommentthreadcommand.js +1 -1
  95. package/src/comments/commentsediting.js +1 -1
  96. package/src/comments/commentsrepository.js +1 -1
  97. package/src/comments/commentsui.js +1 -1
  98. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  99. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  100. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  101. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  102. package/src/comments/ui/commentthreadcontroller.js +1 -1
  103. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  104. package/src/comments/ui/view/basecommentview.js +1 -1
  105. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  106. package/src/comments/ui/view/commentcontentview.js +1 -1
  107. package/src/comments/ui/view/commentinputview.js +1 -1
  108. package/src/comments/ui/view/commentslistview.js +1 -1
  109. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  110. package/src/comments/ui/view/commentthreadview.js +1 -1
  111. package/src/comments/ui/view/commentview.js +1 -1
  112. package/src/comments.js +1 -1
  113. package/src/commentsonly.js +1 -1
  114. package/src/{utils/getmarkerdomelement.js → index.js} +1 -1
  115. package/src/utils/common-translations.js +1 -1
  116. package/src/utils/createmutationobserver.js +1 -1
  117. package/theme/annotation-inline.css +1 -1
  118. package/theme/annotation.css +1 -1
  119. package/theme/comment.css +1 -1
  120. package/theme/commentinput.css +1 -1
  121. package/theme/commentmarker.css +1 -1
  122. package/theme/commentthread.css +1 -1
  123. package/theme/icons/add-comment.svg +1 -1
  124. package/theme/icons/edit-comment.svg +1 -1
  125. package/theme/icons/remove-comment.svg +1 -1
  126. package/theme/sidebar-narrow.css +1 -1
  127. package/theme/sidebar.css +1 -1
  128. package/src/comments/ui/view/confirmmixin.js +0 -23
  129. package/src/comments/ui/view/confirmview.js +0 -23
  130. package/src/utils/getdatetimeformatter.js +0 -23
  131. package/src/utils/trim-html.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x387a=['stopListening','_deactivateAllAnnotations','isVisible','refreshVisibility','Annotations','activate','_activateAnnotation','has','add','listenTo','change:isVisible','activeAnnotations','collection','source','pluginName','getByInnerView','_visibleAnnotations','destroy','_bindAnnotationsToVisibleAnnotations','remove','delete','_addActiveAnnotation','deactivateAll','refreshPositioning'];(function(_0x1d826a,_0x387a93){const _0x4d9dfb=function(_0x11c1b5){while(--_0x11c1b5){_0x1d826a['push'](_0x1d826a['shift']());}};_0x4d9dfb(++_0x387a93);}(_0x387a,0xe0));const _0x4d9d=function(_0x1d826a,_0x387a93){_0x1d826a=_0x1d826a-0x0;let _0x4d9dfb=_0x387a[_0x1d826a];return _0x4d9dfb;};import{ContextPlugin as _0x47cd74}from'ckeditor5/src/core';import _0x2cf3c9 from'./annotationcollection';export default class v extends _0x47cd74{static get[_0x4d9d('0x6')](){return _0x4d9d('0x14');}constructor(_0x2c5303){super(_0x2c5303),this[_0x4d9d('0x4')]=new _0x2cf3c9(),this[_0x4d9d('0x8')]=new _0x2cf3c9(),this['set'](_0x4d9d('0x3'),new Set()),this[_0x4d9d('0xa')]();}[_0x4d9d('0x0')](_0x2bfeba){this[_0x4d9d('0x4')][_0x4d9d('0x0')](_0x2bfeba);}[_0x4d9d('0xb')](_0x21a693){this['collection'][_0x4d9d('0xb')](_0x21a693),_0x21a693[_0x4d9d('0x9')]();}[_0x4d9d('0x13')](){for(const _0x41ba30 of this['collection'])_0x41ba30[_0x4d9d('0x13')]();}[_0x4d9d('0xf')](){this[_0x4d9d('0x8')]['refreshPositioning']();}[_0x4d9d('0x7')](_0x4e07dc){return this[_0x4d9d('0x4')][_0x4d9d('0x7')](_0x4e07dc);}[_0x4d9d('0xe')](){this['fire'](_0x4d9d('0x11'));}['destroy'](){for(const _0x20e9f5 of this[_0x4d9d('0x4')])_0x20e9f5['destroy']();this['_visibleAnnotations'][_0x4d9d('0x9')](),this[_0x4d9d('0x4')]['destroy'](),super[_0x4d9d('0x9')]();}[_0x4d9d('0x15')](_0x4c84f3){this['fire'](_0x4d9d('0x16'),_0x4c84f3);}[_0x4d9d('0xd')](_0xedf333){const _0x3a2bb7=new Set(this[_0x4d9d('0x3')]);_0x3a2bb7[_0x4d9d('0x0')](_0xedf333),this['activeAnnotations']=_0x3a2bb7;}['_removeActiveAnnotation'](_0x3c2624){const _0x1e893d=new Set(this['activeAnnotations']);_0x1e893d[_0x4d9d('0xc')](_0x3c2624),this[_0x4d9d('0x3')]=_0x1e893d;}[_0x4d9d('0xa')](){const _0x15c3a0=this[_0x4d9d('0x4')],_0x48f05c=this['_visibleAnnotations'];function _0x191d29(_0x226060){const _0x7f8814=_0x226060[_0x4d9d('0x5')];_0x7f8814[_0x4d9d('0x12')]&&!_0x48f05c[_0x4d9d('0x17')](_0x7f8814)?_0x48f05c['add'](_0x7f8814):!_0x7f8814[_0x4d9d('0x12')]&&_0x48f05c[_0x4d9d('0x17')](_0x7f8814)&&_0x48f05c[_0x4d9d('0xb')](_0x7f8814);}this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0x0'),(_0x16088b,_0x5da884)=>{_0x5da884['isVisible']&&_0x48f05c[_0x4d9d('0x0')](_0x5da884),this[_0x4d9d('0x1')](_0x5da884,_0x4d9d('0x2'),_0x191d29);}),this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0xb'),(_0x31eab0,_0x2846fe)=>{_0x48f05c['has'](_0x2846fe)&&_0x48f05c['remove'](_0x2846fe),this[_0x4d9d('0x10')](_0x2846fe,_0x4d9d('0x2'),_0x191d29);});}}
23
+ const _0x8c3d=['collection','fire','deactivateAll','stopListening','_bindAnnotationsToVisibleAnnotations','delete','destroy','_visibleAnnotations','source','Annotations','createAnnotationView','isVisible','change:isVisible','pluginName','activeAnnotations','remove','_removeActiveAnnotation','createAnnotation','listenTo','has','add','refreshPositioning','getByInnerView','_deactivateAllAnnotations','refreshVisibility','set'];(function(_0x170be6,_0x8c3d31){const _0x16e62c=function(_0x2320b7){while(--_0x2320b7){_0x170be6['push'](_0x170be6['shift']());}};_0x16e62c(++_0x8c3d31);}(_0x8c3d,0xc4));const _0x16e6=function(_0x170be6,_0x8c3d31){_0x170be6=_0x170be6-0x0;let _0x16e62c=_0x8c3d[_0x170be6];return _0x16e62c;};import{ContextPlugin as _0x307fd9}from'ckeditor5/src/core';import _0x312839 from'./annotation';import _0x559dd2 from'./annotationcollection';import _0x4d6858 from'./view/annotationview';export default class U extends _0x307fd9{static get[_0x16e6('0x19')](){return _0x16e6('0x15');}constructor(_0x171c6b){super(_0x171c6b),this[_0x16e6('0xc')]=new _0x559dd2(),this[_0x16e6('0x13')]=new _0x559dd2(),this[_0x16e6('0xb')](_0x16e6('0x0'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x16e6('0x6')](_0x3b67eb){this[_0x16e6('0xc')][_0x16e6('0x6')](_0x3b67eb);}['remove'](_0x2e09ea){this[_0x16e6('0xc')][_0x16e6('0x1')](_0x2e09ea),_0x2e09ea[_0x16e6('0x12')]();}[_0x16e6('0xa')](){for(const _0x2ef05d of this[_0x16e6('0xc')])_0x2ef05d[_0x16e6('0xa')]();}[_0x16e6('0x7')](){this[_0x16e6('0x13')][_0x16e6('0x7')]();}[_0x16e6('0x8')](_0x41d5c1){return this['collection'][_0x16e6('0x8')](_0x41d5c1);}[_0x16e6('0xe')](){this[_0x16e6('0xd')](_0x16e6('0x9'));}['destroy'](){for(const _0x175f79 of this[_0x16e6('0xc')])_0x175f79[_0x16e6('0x12')]();this[_0x16e6('0x13')][_0x16e6('0x12')](),this[_0x16e6('0xc')][_0x16e6('0x12')](),super[_0x16e6('0x12')]();}['activate'](_0x1eaa50){this[_0x16e6('0xd')]('_activateAnnotation',_0x1eaa50);}[_0x16e6('0x3')](_0xf12f05){return new _0x312839(_0xf12f05);}[_0x16e6('0x16')](_0x46c5b6,_0x37e5f9){return new _0x4d6858(_0x46c5b6,_0x37e5f9);}['_addActiveAnnotation'](_0x23a084){const _0x4760aa=new Set(this[_0x16e6('0x0')]);_0x4760aa[_0x16e6('0x6')](_0x23a084),this[_0x16e6('0x0')]=_0x4760aa;}[_0x16e6('0x2')](_0x57561){const _0x2fbc7c=new Set(this[_0x16e6('0x0')]);_0x2fbc7c[_0x16e6('0x11')](_0x57561),this[_0x16e6('0x0')]=_0x2fbc7c;}[_0x16e6('0x10')](){const _0x56d97e=this[_0x16e6('0xc')],_0x1e5482=this[_0x16e6('0x13')];function _0x9c385c(_0x33fdf2){const _0x3ced57=_0x33fdf2[_0x16e6('0x14')];_0x3ced57['isVisible']&&!_0x1e5482[_0x16e6('0x5')](_0x3ced57)?_0x1e5482[_0x16e6('0x6')](_0x3ced57):!_0x3ced57['isVisible']&&_0x1e5482[_0x16e6('0x5')](_0x3ced57)&&_0x1e5482[_0x16e6('0x1')](_0x3ced57);}this[_0x16e6('0x4')](_0x56d97e,_0x16e6('0x6'),(_0x38cf0b,_0x3e20fc)=>{_0x3e20fc[_0x16e6('0x17')]&&_0x1e5482['add'](_0x3e20fc),this[_0x16e6('0x4')](_0x3e20fc,_0x16e6('0x18'),_0x9c385c);}),this[_0x16e6('0x4')](_0x56d97e,'remove',(_0x461e75,_0x477a5b)=>{_0x1e5482[_0x16e6('0x5')](_0x477a5b)&&_0x1e5482['remove'](_0x477a5b),this[_0x16e6('0xf')](_0x477a5b,_0x16e6('0x18'),_0x9c385c);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b6e=['from','deactivateAll','add','isActive','collection','has','filter','annotationsuis-register-invalid-interface','destroy','set','push','annotationsuis-register-already-registered','type','context','plugins','annotationsuis-annotation-mismatch','activate','requires','listenTo','attach','activeAnnotations','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','_uisData','get','size','change:activeAnnotation','find','AnnotationsUIs','length','function','delete','_addActiveAnnotation','_uis','switchTo','setActiveAnnotation','detach','_setSelectedAnnotations','_activateAnnotation','deactivate','_visibleAnnotations','pluginName'];(function(_0x9aded0,_0x5b6e1b){const _0x1399fa=function(_0x295531){while(--_0x295531){_0x9aded0['push'](_0x9aded0['shift']());}};_0x1399fa(++_0x5b6e1b);}(_0x5b6e,0x8c));const _0x1399=function(_0x9aded0,_0x5b6e1b){_0x9aded0=_0x9aded0-0x0;let _0x1399fa=_0x5b6e[_0x9aded0];return _0x1399fa;};import{ContextPlugin as _0x19a17c}from'ckeditor5/src/core';import{CKEditorError as _0x38106e}from'ckeditor5/src/utils';import _0x19f427,{bindAnnotationCollections as _0x4eb783}from'./annotationcollection';import _0x285315 from'./annotations';export default class I extends _0x19a17c{static get[_0x1399('0x6')](){return[_0x285315];}static get[_0x1399('0x1f')](){return _0x1399('0x12');}constructor(_0x39e8f5){super(_0x39e8f5),this['activeUIs']=new Set(),this['_uis']=new Map(),this[_0x1399('0xd')]=new Map();}['init'](){const _0x334d52=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315);this[_0x1399('0x7')](_0x334d52,_0x1399('0x1c'),(_0x4448a2,_0x2415ed)=>{for(const _0x405fd8 of this[_0x1399('0xc')]){const _0x3bd9be=this['_uis'][_0x1399('0xe')](_0x405fd8);(0x0,this['_uisData'][_0x1399('0xe')](_0x405fd8)['filter'])(_0x2415ed)&&_0x3bd9be['setActiveAnnotation'](_0x2415ed);}}),this[_0x1399('0x7')](_0x334d52,'_deactivateAllAnnotations',()=>{for(const _0x3c8f80 of this[_0x1399('0xc')]){this[_0x1399('0x17')][_0x1399('0xe')](_0x3c8f80)['setActiveAnnotation'](null);}}),this['listenTo'](_0x334d52[_0x1399('0x1e')],'add',(_0x240b1d,_0x50101e)=>{this[_0x1399('0xb')](_0x50101e);});}[_0x1399('0xa')](){return this['activeUIs'][_0x1399('0xf')]>0x0;}[_0x1399('0x23')](_0x342495){return this['activeUIs']['has'](_0x342495);}[_0x1399('0x5')](_0x4436e4,_0x5057b4=()=>!0x0){const _0x561f4b=this[_0x1399('0x2')]['plugins'][_0x1399('0xe')](_0x285315);if(!this[_0x1399('0x17')][_0x1399('0x25')](_0x4436e4))throw new _0x38106e('annotationsuis-activate-missing-ui',this,{'uiName':_0x4436e4});this['isActive'](_0x4436e4)&&this['deactivate'](_0x4436e4),this[_0x1399('0xc')]['add'](_0x4436e4);const _0xe3ce5e=new _0x19f427(),_0x3a6746=_0x561f4b[_0x1399('0x1e')];_0x4eb783({'source':_0x3a6746,'target':_0xe3ce5e,'filter':_0x5057b4}),this[_0x1399('0xd')][_0x1399('0x29')](_0x4436e4,{'collection':_0xe3ce5e,'filter':_0x5057b4});const _0x484771=this[_0x1399('0x17')][_0x1399('0xe')](_0x4436e4);_0x484771[_0x1399('0x8')](_0xe3ce5e),this[_0x1399('0x7')](_0x484771,_0x1399('0x10'),(_0x295fd0,_0x504fe3,_0x4f2a4d,_0xec7f55)=>{_0xec7f55&&_0x561f4b['_removeActiveAnnotation'](_0xec7f55),_0x4f2a4d&&_0x561f4b[_0x1399('0x16')](_0x4f2a4d);});}['deactivate'](_0x1063b8){this[_0x1399('0xc')][_0x1399('0x15')](_0x1063b8);const _0x2361e6=this[_0x1399('0x17')]['get'](_0x1063b8);_0x2361e6[_0x1399('0x1a')](),this['stopListening'](_0x2361e6),this[_0x1399('0xd')][_0x1399('0xe')](_0x1063b8)[_0x1399('0x24')][_0x1399('0x28')](),this['_uisData'][_0x1399('0x15')](_0x1063b8);}[_0x1399('0x18')](_0x10bfc4){const _0x32369f=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315),_0x593d75=Array[_0x1399('0x20')](_0x32369f[_0x1399('0x9')])[0x0]||null;this['deactivateAll'](),this[_0x1399('0x5')](_0x10bfc4);const _0x17d9ef=this[_0x1399('0x17')]['get'](_0x10bfc4);_0x17d9ef[_0x1399('0x19')](_0x593d75),_0x17d9ef[_0x1399('0x1b')]&&_0x593d75&&_0x17d9ef[_0x1399('0x1b')]([_0x593d75]);}[_0x1399('0x21')](){for(const _0x1bfa92 of this[_0x1399('0xc')])this[_0x1399('0x1d')](_0x1bfa92);}['register'](_0x3bfea7,_0x2111f7){if(this[_0x1399('0x17')][_0x1399('0x25')](_0x3bfea7))throw new _0x38106e(_0x1399('0x0'));if(_0x1399('0x14')!=typeof _0x2111f7[_0x1399('0x8')]||_0x1399('0x14')!=typeof _0x2111f7['detach']||'function'!=typeof _0x2111f7[_0x1399('0x19')])throw new _0x38106e(_0x1399('0x27'),null);this[_0x1399('0x17')][_0x1399('0x29')](_0x3bfea7,_0x2111f7);}['refilterAnnotations'](){const _0x2bacc6=this[_0x1399('0x2')][_0x1399('0x3')]['get'](_0x285315)['collection'],_0x3a9497=new Map(),_0x67e443=Array[_0x1399('0x20')](this[_0x1399('0xc')]);for(const _0x230ce7 of this['activeUIs']){const _0x3e5f10=this[_0x1399('0xd')][_0x1399('0xe')](_0x230ce7)[_0x1399('0x24')];for(const _0x55113b of _0x3e5f10)_0x3a9497[_0x1399('0x29')](_0x55113b,_0x230ce7);}for(const _0x56f044 of _0x2bacc6){const _0x67c3a6=_0x3a9497['get'](_0x56f044);this[_0x1399('0xb')](_0x56f044);const _0x33ff1a=_0x67e443[_0x1399('0x11')](_0x2d0c4d=>this[_0x1399('0xd')]['get'](_0x2d0c4d)[_0x1399('0x26')](_0x56f044));_0x67c3a6!==_0x33ff1a&&(_0x67c3a6&&this[_0x1399('0xd')][_0x1399('0xe')](_0x67c3a6)[_0x1399('0x24')]['remove'](_0x56f044),_0x33ff1a&&this[_0x1399('0xd')]['get'](_0x33ff1a)[_0x1399('0x24')][_0x1399('0x22')](_0x56f044));}}[_0x1399('0x28')](){this[_0x1399('0x21')](),super[_0x1399('0x28')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xd14a90){const _0x291396=[];for(const _0x1b3b2e of this[_0x1399('0xc')]){(0x0,this[_0x1399('0xd')][_0x1399('0xe')](_0x1b3b2e)[_0x1399('0x26')])(_0xd14a90)&&_0x291396[_0x1399('0x2a')](_0x1b3b2e);}if(_0x291396[_0x1399('0x13')]>0x1)throw new _0x38106e(_0x1399('0x4'),null,{'matchedUIs':_0x291396,'annotationType':_0xd14a90[_0x1399('0x1')]});}}
23
+ const _0x1771=['has','register','hasActive','AnnotationsUIs','change:activeAnnotation','pluginName','deactivate','find','activeUIs','remove','plugins','annotationsuis-register-invalid-interface','delete','_visibleAnnotations','stopListening','annotationsuis-activate-missing-ui','set','activate','add','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-annotation-mismatch','switchTo','destroy','filter','function','collection','annotationsuis-register-already-registered','from','listenTo','_setSelectedAnnotations','_addActiveAnnotation','push','attach','isActive','setActiveAnnotation','_uisData','length','requires','activeAnnotations','detach','get','context','deactivateAll','_uis','_deactivateAllAnnotations'];(function(_0x2bcf04,_0x17711d){const _0x61d4d9=function(_0x25d091){while(--_0x25d091){_0x2bcf04['push'](_0x2bcf04['shift']());}};_0x61d4d9(++_0x17711d);}(_0x1771,0x11c));const _0x61d4=function(_0x2bcf04,_0x17711d){_0x2bcf04=_0x2bcf04-0x0;let _0x61d4d9=_0x1771[_0x2bcf04];return _0x61d4d9;};import{ContextPlugin as _0x2e6116}from'ckeditor5/src/core';import{CKEditorError as _0x37b069}from'ckeditor5/src/utils';import _0x389cba,{bindAnnotationCollections as _0x6370db}from'./annotationcollection';import _0x126a03 from'./annotations';export default class Y extends _0x2e6116{static get[_0x61d4('0x17')](){return[_0x126a03];}static get[_0x61d4('0x24')](){return _0x61d4('0x22');}constructor(_0x3c0e81){super(_0x3c0e81),this[_0x61d4('0x27')]=new Set(),this[_0x61d4('0x1d')]=new Map(),this[_0x61d4('0x15')]=new Map();}['init'](){const _0x347314=this[_0x61d4('0x1b')]['plugins']['get'](_0x126a03);this[_0x61d4('0xe')](_0x347314,'_activateAnnotation',(_0x52186f,_0x6cf6ed)=>{for(const _0xb77029 of this[_0x61d4('0x27')]){const _0x21af06=this[_0x61d4('0x1d')][_0x61d4('0x1a')](_0xb77029);(0x0,this[_0x61d4('0x15')][_0x61d4('0x1a')](_0xb77029)[_0x61d4('0x9')])(_0x6cf6ed)&&_0x21af06[_0x61d4('0x14')](_0x6cf6ed);}}),this[_0x61d4('0xe')](_0x347314,_0x61d4('0x1e'),()=>{for(const _0x50fba9 of this[_0x61d4('0x27')]){this['_uis'][_0x61d4('0x1a')](_0x50fba9)[_0x61d4('0x14')](null);}}),this[_0x61d4('0xe')](_0x347314[_0x61d4('0x2c')],'add',(_0x1bdcc8,_0x59e592)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x59e592);});}[_0x61d4('0x21')](){return this['activeUIs']['size']>0x0;}[_0x61d4('0x13')](_0x3d6fa8){return this[_0x61d4('0x27')][_0x61d4('0x1f')](_0x3d6fa8);}[_0x61d4('0x3')](_0x148b2a,_0x193ba5=()=>!0x0){const _0x3cb378=this[_0x61d4('0x1b')][_0x61d4('0x29')]['get'](_0x126a03);if(!this[_0x61d4('0x1d')]['has'](_0x148b2a))throw new _0x37b069(_0x61d4('0x1'),this,{'uiName':_0x148b2a});this[_0x61d4('0x13')](_0x148b2a)&&this[_0x61d4('0x25')](_0x148b2a),this[_0x61d4('0x27')][_0x61d4('0x4')](_0x148b2a);const _0x1f11bd=new _0x389cba(),_0x4d9ef4=_0x3cb378[_0x61d4('0x2c')];_0x6370db({'source':_0x4d9ef4,'target':_0x1f11bd,'filter':_0x193ba5}),this[_0x61d4('0x15')][_0x61d4('0x2')](_0x148b2a,{'collection':_0x1f11bd,'filter':_0x193ba5});const _0x13b4da=this['_uis'][_0x61d4('0x1a')](_0x148b2a);_0x13b4da[_0x61d4('0x12')](_0x1f11bd),this['listenTo'](_0x13b4da,_0x61d4('0x23'),(_0x52f0f9,_0x5d0035,_0xe70f3e,_0x225b39)=>{_0x225b39&&_0x3cb378['_removeActiveAnnotation'](_0x225b39),_0xe70f3e&&_0x3cb378[_0x61d4('0x10')](_0xe70f3e);});}[_0x61d4('0x25')](_0x1be775){this[_0x61d4('0x27')][_0x61d4('0x2b')](_0x1be775);const _0x2cbcd0=this[_0x61d4('0x1d')][_0x61d4('0x1a')](_0x1be775);_0x2cbcd0[_0x61d4('0x19')](),this[_0x61d4('0x0')](_0x2cbcd0),this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x1be775)['collection'][_0x61d4('0x8')](),this[_0x61d4('0x15')]['delete'](_0x1be775);}[_0x61d4('0x7')](_0x494bbb){const _0x9042c2=this['context'][_0x61d4('0x29')]['get'](_0x126a03),_0x3c98b1=Array[_0x61d4('0xd')](_0x9042c2[_0x61d4('0x18')])[0x0]||null;this[_0x61d4('0x1c')](),this[_0x61d4('0x3')](_0x494bbb);const _0x1d278b=this[_0x61d4('0x1d')][_0x61d4('0x1a')](_0x494bbb);_0x1d278b[_0x61d4('0x14')](_0x3c98b1),_0x1d278b[_0x61d4('0xf')]&&_0x3c98b1&&_0x1d278b[_0x61d4('0xf')]([_0x3c98b1]);}[_0x61d4('0x1c')](){for(const _0x465bea of this[_0x61d4('0x27')])this[_0x61d4('0x25')](_0x465bea);}[_0x61d4('0x20')](_0x16b95c,_0x4cd60e){if(this[_0x61d4('0x1d')][_0x61d4('0x1f')](_0x16b95c))throw new _0x37b069(_0x61d4('0xc'));if(_0x61d4('0xa')!=typeof _0x4cd60e[_0x61d4('0x12')]||_0x61d4('0xa')!=typeof _0x4cd60e[_0x61d4('0x19')]||'function'!=typeof _0x4cd60e[_0x61d4('0x14')])throw new _0x37b069(_0x61d4('0x2a'),null);this['_uis'][_0x61d4('0x2')](_0x16b95c,_0x4cd60e);}['refilterAnnotations'](){const _0x455a46=this[_0x61d4('0x1b')][_0x61d4('0x29')][_0x61d4('0x1a')](_0x126a03)[_0x61d4('0xb')],_0x23be1b=new Map(),_0x2bac67=Array[_0x61d4('0xd')](this[_0x61d4('0x27')]);for(const _0x16c494 of this['activeUIs']){const _0x5a3f4e=this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x16c494)[_0x61d4('0xb')];for(const _0x28b4c1 of _0x5a3f4e)_0x23be1b[_0x61d4('0x2')](_0x28b4c1,_0x16c494);}for(const _0x3dc0c5 of _0x455a46){const _0x5d80ce=_0x23be1b[_0x61d4('0x1a')](_0x3dc0c5);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3dc0c5);const _0x1d02b8=_0x2bac67[_0x61d4('0x26')](_0x91dfbd=>this[_0x61d4('0x15')]['get'](_0x91dfbd)[_0x61d4('0x9')](_0x3dc0c5));_0x5d80ce!==_0x1d02b8&&(_0x5d80ce&&this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x5d80ce)[_0x61d4('0xb')][_0x61d4('0x28')](_0x3dc0c5),_0x1d02b8&&this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x1d02b8)[_0x61d4('0xb')]['add'](_0x3dc0c5));}}['destroy'](){this[_0x61d4('0x1c')](),super[_0x61d4('0x8')]();}[_0x61d4('0x5')](_0x1b2b7b){const _0x2a75fc=[];for(const _0x52f625 of this[_0x61d4('0x27')]){(0x0,this[_0x61d4('0x15')]['get'](_0x52f625)[_0x61d4('0x9')])(_0x1b2b7b)&&_0x2a75fc[_0x61d4('0x11')](_0x52f625);}if(_0x2a75fc[_0x61d4('0x16')]>0x1)throw new _0x37b069(_0x61d4('0x6'),null,{'matchedUIs':_0x2a75fc,'annotationType':_0x1b2b7b['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7eca=['change:isFocused','view','getRanges','editor','selection','focusTracker','change:range','document','fire','add','innerView','from','uiUpdate','EditorAnnotations','element','isEqual','sort','getOrderedSelectedAnnotations','requires','plugins','blur','model','addSourceCollector','delete','set','map','isReadOnly','editing','annotation','_dataCollectors','_editorAnnotationsData','containsRange','editorannotations-invalid-source-callback','get','cancel','has','hasDomSelection','pluginName','update','range','listenTo','refreshSelectedViews','remove'];(function(_0x57e516,_0x7ecae0){const _0x11f7ff=function(_0x5202c9){while(--_0x5202c9){_0x57e516['push'](_0x57e516['shift']());}};_0x11f7ff(++_0x7ecae0);}(_0x7eca,0x7b));const _0x11f7=function(_0x57e516,_0x7ecae0){_0x57e516=_0x57e516-0x0;let _0x11f7ff=_0x7eca[_0x57e516];return _0x11f7ff;};import{Plugin as _0x5a9420}from'ckeditor5/src/core';import{CKEditorError as _0x334e9a}from'ckeditor5/src/utils';import{debounce as _0x5b42b1}from'lodash-es';import _0x2a978f from'./annotations';export default class k extends _0x5a9420{static get[_0x11f7('0x18')](){return[_0x2a978f];}static get[_0x11f7('0x0')](){return _0x11f7('0x13');}constructor(_0x52ee70){super(_0x52ee70),this[_0x11f7('0x23')]=new Set();}['init'](){const _0x16da2e=this['editor'],_0x292e1e=_0x16da2e[_0x11f7('0x19')][_0x11f7('0x27')](_0x2a978f),_0x4b7472=_0x16da2e[_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x2f5237=_0x5b42b1(()=>this[_0x11f7('0x4')](),0xa);_0x4b7472['on'](_0x11f7('0xc'),(_0x1e0430,_0x2ce74d)=>{_0x2ce74d['directChange']&&(_0x2f5237[_0x11f7('0x28')](),this[_0x11f7('0x4')]());}),this[_0x11f7('0x3')](_0x16da2e[_0x11f7('0x21')][_0x11f7('0x7')][_0x11f7('0xd')],_0x11f7('0x6'),(_0x41481f,_0x49e47e,_0x56917c)=>{_0x56917c&&_0x2f5237();}),this[_0x11f7('0x3')](_0x16da2e['ui'][_0x11f7('0xb')],_0x11f7('0x6'),(_0x26c2f6,_0x13ec77,_0x3dc960)=>{_0x3dc960||_0x16da2e[_0x11f7('0x20')]||this[_0x11f7('0xe')](_0x11f7('0x1a'),{'isAnnotationTracked':_0x3ec2dd=>this['_editorAnnotationsData'][_0x11f7('0x29')](_0x3ec2dd[_0x11f7('0x10')])});}),this[_0x11f7('0x3')](this[_0x11f7('0x9')]['ui'],_0x11f7('0x1'),()=>this[_0x11f7('0xe')](_0x11f7('0x12')));const _0x3fe0b4=new Set();this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0xf'),(_0xa7b415,_0x43f5a5)=>{for(const _0x5613bf of this['_editorAnnotationsData']['keys']())if(_0x5613bf===_0x43f5a5[_0x11f7('0x10')]){_0x16da2e['ui'][_0x11f7('0xb')]['add'](_0x43f5a5['view'][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0xf')](_0x43f5a5['view']);break;}}),this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0x5'),(_0x413679,_0x43d9b1)=>{_0x3fe0b4[_0x11f7('0x29')](_0x43d9b1[_0x11f7('0x7')])&&(_0x16da2e['ui'][_0x11f7('0xb')][_0x11f7('0x5')](_0x43d9b1[_0x11f7('0x7')][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0x1d')](_0x43d9b1[_0x11f7('0x7')]));});}[_0x11f7('0x2a')](){return this['editor']['editing'][_0x11f7('0x7')][_0x11f7('0x2a')];}[_0x11f7('0x1c')](_0x2ae256){if('function'!=typeof _0x2ae256)throw new _0x334e9a(_0x11f7('0x26'));this['_dataCollectors'][_0x11f7('0xf')](_0x2ae256);}[_0x11f7('0x4')](){this['fire']('refresh');}[_0x11f7('0x17')]({activeAnnotation:_0x34671a,annotations:_0x5b3322}){const _0x335dc3=[],_0x568486=this['editor'][_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x16ea55=Array[_0x11f7('0x11')](_0x568486[_0x11f7('0x8')]());for(const [_0x5266c0,_0x189d4d]of this[_0x11f7('0x24')]){const _0x499b37=_0x491c50(_0x189d4d),_0x5b6a7d=_0x5b3322['getByInnerView'](_0x5266c0);_0x499b37&&_0x5b6a7d&&_0x335dc3['push']({'annotation':_0x5b6a7d,'range':_0x499b37});}function _0x491c50(_0x369dae){for(const _0x498b77 of _0x369dae)for(const _0x5017f0 of _0x16ea55)if(_0x498b77['containsRange'](_0x5017f0,!_0x568486['isCollapsed']))return _0x498b77;return null;}return _0x335dc3[_0x11f7('0x16')]((_0x4b75d8,_0x5a3a17)=>{const _0x20413e=_0x4b75d8['range'],_0x1f5e3d=_0x5a3a17[_0x11f7('0x2')];if(!_0x20413e[_0x11f7('0x15')](_0x1f5e3d)){if(_0x20413e[_0x11f7('0x25')](_0x1f5e3d,!0x0))return 0x1;if(_0x1f5e3d[_0x11f7('0x25')](_0x20413e,!0x0))return-0x1;}return _0x4b75d8[_0x11f7('0x22')]==_0x34671a?-0x1:_0x5a3a17['annotation']==_0x34671a?0x1:0x0;})[_0x11f7('0x1f')](_0x405581=>_0x405581[_0x11f7('0x22')]);}get[_0x11f7('0x24')](){const _0x26a1f5=new Map();for(const _0x32a72c of Array['from'](this[_0x11f7('0x23')]))for(const [_0x2efc1f,_0xbda767]of _0x32a72c())_0x26a1f5[_0x11f7('0x1e')](_0x2efc1f,_0xbda767);return _0x26a1f5;}}
23
+ const _0x1421=['listenTo','refresh','innerView','function','addSourceCollector','init','directChange','hasDomSelection','set','editorannotations-invalid-source-callback','editing','change:isFocused','remove','fire','refreshSelectedViews','getRanges','getByInnerView','collection','editor','push','model','uiUpdate','isCollapsed','_editorAnnotationsData','getOrderedSelectedAnnotations','containsRange','change:range','element','has','isReadOnly','EditorAnnotations','sort','get','add','map','annotation','range','from','plugins','_dataCollectors','isEqual','view','focusTracker','keys','selection','update','document'];(function(_0x4611c2,_0x1421b9){const _0x4d260c=function(_0xa9efca){while(--_0xa9efca){_0x4611c2['push'](_0x4611c2['shift']());}};_0x4d260c(++_0x1421b9);}(_0x1421,0x18a));const _0x4d26=function(_0x4611c2,_0x1421b9){_0x4611c2=_0x4611c2-0x0;let _0x4d260c=_0x1421[_0x4611c2];return _0x4d260c;};import{Plugin as _0x15a8a8}from'ckeditor5/src/core';import{CKEditorError as _0x9d48fc}from'ckeditor5/src/utils';import{debounce as _0x59adbf}from'lodash-es';import _0x3e3dc4 from'./annotations';export default class V extends _0x15a8a8{static get['requires'](){return[_0x3e3dc4];}static get['pluginName'](){return _0x4d26('0xc');}constructor(_0x38441b){super(_0x38441b),this[_0x4d26('0x15')]=new Set();}[_0x4d26('0x22')](){const _0x15f3c4=this[_0x4d26('0x0')],_0x426a5f=_0x15f3c4[_0x4d26('0x14')][_0x4d26('0xe')](_0x3e3dc4),_0x18cb3c=_0x15f3c4[_0x4d26('0x2')][_0x4d26('0x1c')][_0x4d26('0x1a')],_0xa20e82=_0x59adbf(()=>this[_0x4d26('0x2b')](),0xa);_0x18cb3c['on'](_0x4d26('0x8'),(_0x5d82b0,_0x43d9da)=>{_0x43d9da[_0x4d26('0x23')]&&(_0xa20e82['cancel'](),this['refreshSelectedViews']());}),this[_0x4d26('0x1d')](_0x15f3c4[_0x4d26('0x27')]['view']['document'],_0x4d26('0x28'),(_0x1c4368,_0x5b7dc6,_0x2b00b3)=>{_0x2b00b3&&_0xa20e82();}),this[_0x4d26('0x1d')](_0x15f3c4['ui'][_0x4d26('0x18')],_0x4d26('0x28'),(_0x31a3d6,_0x5e1555,_0x2909aa)=>{_0x2909aa||_0x15f3c4[_0x4d26('0xb')]||this['fire']('blur',{'isAnnotationTracked':_0xdd742e=>this[_0x4d26('0x5')][_0x4d26('0xa')](_0xdd742e['innerView'])});}),this[_0x4d26('0x1d')](this[_0x4d26('0x0')]['ui'],_0x4d26('0x1b'),()=>this['fire'](_0x4d26('0x3')));const _0x17aefd=new Set();this[_0x4d26('0x1d')](_0x426a5f[_0x4d26('0x2e')],'add',(_0x5e2160,_0x257c2c)=>{for(const _0x5c78f2 of this['_editorAnnotationsData'][_0x4d26('0x19')]())if(_0x5c78f2===_0x257c2c[_0x4d26('0x1f')]){_0x15f3c4['ui'][_0x4d26('0x18')][_0x4d26('0xf')](_0x257c2c[_0x4d26('0x17')][_0x4d26('0x9')]),_0x17aefd['add'](_0x257c2c[_0x4d26('0x17')]);break;}}),this[_0x4d26('0x1d')](_0x426a5f[_0x4d26('0x2e')],_0x4d26('0x29'),(_0x821fb8,_0x57d102)=>{_0x17aefd[_0x4d26('0xa')](_0x57d102[_0x4d26('0x17')])&&(_0x15f3c4['ui'][_0x4d26('0x18')][_0x4d26('0x29')](_0x57d102[_0x4d26('0x17')][_0x4d26('0x9')]),_0x17aefd['delete'](_0x57d102[_0x4d26('0x17')]));});}[_0x4d26('0x24')](){return this[_0x4d26('0x0')]['editing'][_0x4d26('0x17')][_0x4d26('0x24')];}[_0x4d26('0x21')](_0x283e65){if(_0x4d26('0x20')!=typeof _0x283e65)throw new _0x9d48fc(_0x4d26('0x26'));this[_0x4d26('0x15')][_0x4d26('0xf')](_0x283e65);}[_0x4d26('0x2b')](){this[_0x4d26('0x2a')](_0x4d26('0x1e'));}[_0x4d26('0x6')]({activeAnnotation:_0x453af7,annotations:_0x2f2035}){const _0x1b6ebb=[],_0x351aab=this[_0x4d26('0x0')][_0x4d26('0x2')][_0x4d26('0x1c')]['selection'],_0x21c9e8=Array[_0x4d26('0x13')](_0x351aab[_0x4d26('0x2c')]());for(const [_0x125a7f,_0x4c7b4b]of this[_0x4d26('0x5')]){const _0x4bd058=_0x1f9e1a(_0x4c7b4b),_0x2b2922=_0x2f2035[_0x4d26('0x2d')](_0x125a7f);_0x4bd058&&_0x2b2922&&_0x1b6ebb[_0x4d26('0x1')]({'annotation':_0x2b2922,'range':_0x4bd058});}function _0x1f9e1a(_0x4a0849){for(const _0x3e9234 of _0x4a0849)for(const _0x202c79 of _0x21c9e8)if(_0x3e9234[_0x4d26('0x7')](_0x202c79,!_0x351aab[_0x4d26('0x4')]))return _0x3e9234;return null;}return _0x1b6ebb[_0x4d26('0xd')]((_0x1d610c,_0x14b525)=>{const _0x403e90=_0x1d610c[_0x4d26('0x12')],_0x214ed9=_0x14b525[_0x4d26('0x12')];if(!_0x403e90[_0x4d26('0x16')](_0x214ed9)){if(_0x403e90['containsRange'](_0x214ed9,!0x0))return 0x1;if(_0x214ed9['containsRange'](_0x403e90,!0x0))return-0x1;}return _0x1d610c[_0x4d26('0x11')]==_0x453af7?-0x1:_0x14b525[_0x4d26('0x11')]==_0x453af7?0x1:0x0;})[_0x4d26('0x10')](_0x236e80=>_0x236e80[_0x4d26('0x11')]);}get[_0x4d26('0x5')](){const _0x3c8f5b=new Map();for(const _0x46f1d3 of Array[_0x4d26('0x13')](this['_dataCollectors']))for(const [_0x1a230f,_0x108079]of _0x46f1d3())_0x3c8f5b[_0x4d26('0x25')](_0x1a230f,_0x108079);return _0x3c8f5b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49a0=['add','plugins','getByView','_manuallyClosed','get','setActiveAnnotation','inlineannotations-not-allowed-with-context','_addedAnnotations','activeAnnotation','stopListening','hasView','change:visibleView','set','targetRect','listenTo','_removeAnnotationFromBalloon','blur','isAttached','hasActive','mousedown','focus','_annotations','editing','visibleView','inline','bind','context','focusTracker','refresh','attach','showStack','has','includes','EditorAnnotations','editor','_selectedAnnotations','remove','requires','Esc','InlineAnnotations','document','inlineannotations-detach-not-attached','keystrokes','change:isFocused','delete','detach','editableElement','init','_addAnnotationToBalloon','register','isActive','isFocused','switchTo','view','_setSelectedAnnotations','_balloon','afterInit','clear','destroy','updatePosition'];(function(_0xfcc72,_0x49a0c6){const _0x4fc040=function(_0x2ec178){while(--_0x2ec178){_0xfcc72['push'](_0xfcc72['shift']());}};_0x4fc040(++_0x49a0c6);}(_0x49a0,0x68));const _0x4fc0=function(_0xfcc72,_0x49a0c6){_0xfcc72=_0xfcc72-0x0;let _0x4fc040=_0x49a0[_0xfcc72];return _0x4fc040;};import{Plugin as _0x387b2a}from'ckeditor5/src/core';import _0x3d314a from'./annotationsuis';import _0x144cb7 from'./editorannotations';import{ContextualBalloon as _0x4c6882}from'ckeditor5/src/ui';import{MouseObserver as _0x378e8d}from'ckeditor5/src/engine';import{CKEditorError as _0x5d95e0}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x387b2a{static get[_0x4fc0('0x35')](){return[_0x144cb7,_0x4c6882,_0x3d314a];}static get['pluginName'](){return _0x4fc0('0x37');}constructor(_0x3ad8a7){super(_0x3ad8a7),_0x3ad8a7['editing']['view']['addObserver'](_0x378e8d),this['isAttached']=!0x1,this[_0x4fc0('0x1c')](_0x4fc0('0x18'),null),this[_0x4fc0('0x25')]=null,this[_0x4fc0('0x13')]=new Set(),this[_0x4fc0('0xb')]=_0x3ad8a7[_0x4fc0('0x11')][_0x4fc0('0x14')](_0x4c6882),this['_addedAnnotations']=new Set(),this[_0x4fc0('0x33')]=[];}[_0x4fc0('0x3')](){const _0xce2646=this[_0x4fc0('0x32')][_0x4fc0('0x11')]['get'](_0x3d314a);_0xce2646['context']===this['editor']&&(_0xce2646[_0x4fc0('0x5')](_0x4fc0('0x28'),this),this[_0x4fc0('0x32')][_0x4fc0('0x3a')][_0x4fc0('0x1c')]('Esc',(_0x13182f,_0x818708)=>{const _0x375665=this[_0x4fc0('0xb')];if(this[_0x4fc0('0x21')]&&_0x375665['visibleView']){const _0x267caf=this['_annotations'][_0x4fc0('0x12')](_0x375665[_0x4fc0('0x27')]);this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x267caf),this[_0x4fc0('0x1f')](_0x267caf),_0x818708();}}));}[_0x4fc0('0xc')](){const _0x328ba0=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a);_0x328ba0['context']===this[_0x4fc0('0x32')]&&(_0x328ba0[_0x4fc0('0x22')]()||_0x328ba0[_0x4fc0('0x8')](_0x4fc0('0x28')));}[_0x4fc0('0x15')](_0x1a5782){_0x1a5782!==this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')][_0x4fc0('0x6')]=!0x1),_0x1a5782&&this[_0x4fc0('0x32')]['ui']['focusTracker'][_0x4fc0('0x7')]&&(this[_0x4fc0('0x4')](_0x1a5782,!0x0),_0x1a5782['isActive']=!0x0),_0x1a5782||this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x18')]=_0x1a5782);}[_0x4fc0('0x2d')](_0x9a7996){this[_0x4fc0('0x25')]=_0x9a7996;const _0x5b7a99=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a),_0x310253=this[_0x4fc0('0xb')];if(this['isAttached'])throw new _0x5d95e0('inlineannotations-attach-already-attached',this);if(_0x5b7a99[_0x4fc0('0x2a')]!==this[_0x4fc0('0x32')])throw new _0x5d95e0(_0x4fc0('0x16'),this);const _0x2e4aea=this[_0x4fc0('0x32')]['plugins'][_0x4fc0('0x14')](_0x4fc0('0x31'));this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x2c'),function(){const _0x2fc8d5=_0x2e4aea['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x4fc0('0x18')],'annotations':this[_0x4fc0('0x25')]});this[_0x4fc0('0xa')](_0x2fc8d5),this[_0x4fc0('0x15')](_0x2fc8d5[0x0]||null);}[_0x4fc0('0x29')](this)),this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x20'),(_0x2b9d1d,{isAnnotationTracked:_0x10c8c1})=>{this[_0x4fc0('0x18')]&&_0x10c8c1(this[_0x4fc0('0x18')])&&(this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x15')](null));}),this[_0x4fc0('0x1e')](this[_0x4fc0('0x32')]['ui']['focusTracker'],_0x4fc0('0x3b'),(_0x438eb7,_0x22c2d1,_0x465971)=>{_0x465971||this['setActiveAnnotation'](null);}),this[_0x4fc0('0x1e')](_0x9a7996,_0x4fc0('0x34'),(_0x1b74a0,_0x107d4e)=>{this[_0x4fc0('0x1f')](_0x107d4e),_0x107d4e===this[_0x4fc0('0x18')]&&this[_0x4fc0('0x15')](null);}),this[_0x4fc0('0x1e')](_0x310253,_0x4fc0('0x1b'),(_0xeb4b35,_0x410731,_0x5891a3,_0x26428b)=>{if(_0x26428b&&this[_0x4fc0('0x19')](_0x26428b),!_0x5891a3||!_0x9a7996['getByView'](_0x5891a3))return;const _0x46e68c=_0x9a7996[_0x4fc0('0x12')](_0x5891a3);this[_0x4fc0('0x1e')](_0x5891a3,'change:height',()=>{_0x310253[_0x4fc0('0xf')]();}),this[_0x4fc0('0x1e')](_0x5891a3,_0x4fc0('0x36'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x46e68c),this[_0x4fc0('0x1f')](_0x46e68c),this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x24')]();}),this['activeAnnotation']!==_0x46e68c&&this['setActiveAnnotation'](_0x46e68c);}),this[_0x4fc0('0x1e')](this['editor']['ui'],'update',()=>{_0x310253[_0x4fc0('0x27')]&&(_0x9a7996[_0x4fc0('0x12')](_0x310253['visibleView'])&&_0x310253[_0x4fc0('0xf')]());}),this['listenTo'](this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x38')],_0x4fc0('0x23'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0xd')]();}),this[_0x4fc0('0x32')]['editing'][_0x4fc0('0x9')]['document']['selection'][_0x4fc0('0x2')]&&this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x4fc0('0x1')](){if(!this[_0x4fc0('0x21')])throw new _0x5d95e0(_0x4fc0('0x39'),this);this[_0x4fc0('0x15')](null);for(const _0x2aa29b of this[_0x4fc0('0x17')])this['_removeAnnotationFromBalloon'](_0x2aa29b);this[_0x4fc0('0x19')](),this['isAttached']=!0x1;}[_0x4fc0('0xe')](){this[_0x4fc0('0x21')]&&this[_0x4fc0('0x1')]();}[_0x4fc0('0xa')](_0x3081e7){const _0x3e305b=this['_selectedAnnotations'];for(const _0x3700f4 of _0x3e305b)_0x3081e7[_0x4fc0('0x30')](_0x3700f4)||this['_manuallyClosed'][_0x4fc0('0x0')](_0x3700f4);for(const _0x222052 of this[_0x4fc0('0x25')])_0x3081e7[_0x4fc0('0x30')](_0x222052)||this[_0x4fc0('0x1f')](_0x222052);if(this[_0x4fc0('0x32')]['ui'][_0x4fc0('0x2b')][_0x4fc0('0x7')])for(const _0x27195e of _0x3081e7)this[_0x4fc0('0x4')](_0x27195e);this[_0x4fc0('0x33')]=_0x3081e7;}[_0x4fc0('0x4')](_0x4529cb,_0x1e47c6){this[_0x4fc0('0x13')][_0x4fc0('0x2f')](_0x4529cb)||(this['_addedAnnotations'][_0x4fc0('0x2f')](_0x4529cb)||this['_balloon'][_0x4fc0('0x1a')](_0x4529cb[_0x4fc0('0x9')])||(this[_0x4fc0('0x17')][_0x4fc0('0x10')](_0x4529cb),this[_0x4fc0('0xb')][_0x4fc0('0x10')]({'stackId':_0x4529cb[_0x4fc0('0x9')]['id'],'view':_0x4529cb[_0x4fc0('0x9')],'position':{'target':()=>_0x4529cb['target']||_0x4529cb[_0x4fc0('0x1d')]||document['getSelection']()['getRangeAt'](0x0)}})),_0x1e47c6&&this[_0x4fc0('0xb')][_0x4fc0('0x2e')](_0x4529cb['view']['id']));}[_0x4fc0('0x1f')](_0x1e1bb1){this[_0x4fc0('0x17')][_0x4fc0('0x2f')](_0x1e1bb1)&&this[_0x4fc0('0xb')][_0x4fc0('0x1a')](_0x1e1bb1[_0x4fc0('0x9')])&&(this[_0x4fc0('0x17')][_0x4fc0('0x0')](_0x1e1bb1),this[_0x4fc0('0xb')][_0x4fc0('0x34')](_0x1e1bb1[_0x4fc0('0x9')]));}}
23
+ const _0x3396=['attach','_balloon','getByView','isFocused','isAttached','delete','mousedown','has','listenTo','showStack','Esc','init','editor','visibleView','get','includes','change:visibleView','refresh','context','inlineannotations-not-allowed-with-context','_addAnnotationToBalloon','afterInit','requires','hasActive','addObserver','target','plugins','_annotations','stopListening','document','update','remove','focus','_addedAnnotations','getSelection','inlineannotations-attach-already-attached','targetRect','keystrokes','set','detach','setActiveAnnotation','editing','activeAnnotation','focusTracker','isActive','bind','updatePosition','destroy','selection','getRangeAt','view','hasView','register','pluginName','_removeAnnotationFromBalloon','blur','_selectedAnnotations','_manuallyClosed','switchTo','InlineAnnotations','add','_setSelectedAnnotations'];(function(_0x378820,_0x3396a9){const _0x1aa174=function(_0x132818){while(--_0x132818){_0x378820['push'](_0x378820['shift']());}};_0x1aa174(++_0x3396a9);}(_0x3396,0x14d));const _0x1aa1=function(_0x378820,_0x3396a9){_0x378820=_0x378820-0x0;let _0x1aa174=_0x3396[_0x378820];return _0x1aa174;};import{Plugin as _0x50ef1d}from'ckeditor5/src/core';import _0x3ddb93 from'./annotationsuis';import _0x27b9c8 from'./editorannotations';import{ContextualBalloon as _0x313f07}from'ckeditor5/src/ui';import{MouseObserver as _0x1b0bf3}from'ckeditor5/src/engine';import{CKEditorError as _0x359701}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x50ef1d{static get[_0x1aa1('0x3d')](){return[_0x27b9c8,_0x313f07,_0x3ddb93];}static get[_0x1aa1('0x1e')](){return _0x1aa1('0x24');}constructor(_0x4a052f){super(_0x4a052f),_0x4a052f[_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x1')](_0x1b0bf3),this[_0x1aa1('0x2b')]=!0x1,this[_0x1aa1('0xf')](_0x1aa1('0x13'),null),this[_0x1aa1('0x4')]=null,this[_0x1aa1('0x22')]=new Set(),this[_0x1aa1('0x28')]=_0x4a052f[_0x1aa1('0x3')][_0x1aa1('0x35')](_0x313f07),this[_0x1aa1('0xa')]=new Set(),this[_0x1aa1('0x21')]=[];}[_0x1aa1('0x32')](){const _0x42a92c=this['editor'][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93);_0x42a92c[_0x1aa1('0x39')]===this[_0x1aa1('0x33')]&&(_0x42a92c[_0x1aa1('0x1d')]('inline',this),this[_0x1aa1('0x33')][_0x1aa1('0xe')]['set'](_0x1aa1('0x31'),(_0x371adb,_0x11c624)=>{const _0x3d25d0=this['_balloon'];if(this[_0x1aa1('0x2b')]&&_0x3d25d0[_0x1aa1('0x34')]){const _0x44e13b=this[_0x1aa1('0x4')][_0x1aa1('0x29')](_0x3d25d0[_0x1aa1('0x34')]);this[_0x1aa1('0x22')]['add'](_0x44e13b),this[_0x1aa1('0x1f')](_0x44e13b),_0x11c624();}}));}[_0x1aa1('0x3c')](){const _0x3aa2b6=this[_0x1aa1('0x33')][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93);_0x3aa2b6[_0x1aa1('0x39')]===this[_0x1aa1('0x33')]&&(_0x3aa2b6[_0x1aa1('0x0')]()||_0x3aa2b6[_0x1aa1('0x23')]('inline'));}[_0x1aa1('0x11')](_0x19a911){_0x19a911!==this[_0x1aa1('0x13')]&&(this[_0x1aa1('0x13')]&&(this[_0x1aa1('0x13')]['isActive']=!0x1),_0x19a911&&this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')][_0x1aa1('0x2a')]&&(this[_0x1aa1('0x3b')](_0x19a911,!0x0),_0x19a911[_0x1aa1('0x15')]=!0x0),_0x19a911||this[_0x1aa1('0x26')]([]),this['activeAnnotation']=_0x19a911);}[_0x1aa1('0x27')](_0x523145){this[_0x1aa1('0x4')]=_0x523145;const _0x1e733d=this[_0x1aa1('0x33')][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93),_0x16a6b0=this[_0x1aa1('0x28')];if(this['isAttached'])throw new _0x359701(_0x1aa1('0xc'),this);if(_0x1e733d[_0x1aa1('0x39')]!==this[_0x1aa1('0x33')])throw new _0x359701(_0x1aa1('0x3a'),this);const _0xa2e466=this['editor']['plugins'][_0x1aa1('0x35')]('EditorAnnotations');this[_0x1aa1('0x2f')](_0xa2e466,_0x1aa1('0x38'),function(){const _0x330cbf=_0xa2e466['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x1aa1('0x4')]});this[_0x1aa1('0x26')](_0x330cbf),this['setActiveAnnotation'](_0x330cbf[0x0]||null);}[_0x1aa1('0x16')](this)),this['listenTo'](_0xa2e466,_0x1aa1('0x20'),(_0x14da7d,{isAnnotationTracked:_0xcde918})=>{this[_0x1aa1('0x13')]&&_0xcde918(this[_0x1aa1('0x13')])&&(this[_0x1aa1('0x26')]([]),this['setActiveAnnotation'](null));}),this[_0x1aa1('0x2f')](this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')],'change:isFocused',(_0x363942,_0x7168de,_0x58f2d8)=>{_0x58f2d8||this[_0x1aa1('0x11')](null);}),this[_0x1aa1('0x2f')](_0x523145,'remove',(_0x47506c,_0x9cc996)=>{this[_0x1aa1('0x1f')](_0x9cc996),_0x9cc996===this[_0x1aa1('0x13')]&&this[_0x1aa1('0x11')](null);}),this[_0x1aa1('0x2f')](_0x16a6b0,_0x1aa1('0x37'),(_0x1bfeaf,_0x16eced,_0x544133,_0x4e3939)=>{if(_0x4e3939&&this['stopListening'](_0x4e3939),!_0x544133||!_0x523145['getByView'](_0x544133))return;const _0x506383=_0x523145[_0x1aa1('0x29')](_0x544133);this[_0x1aa1('0x2f')](_0x544133,'change:height',()=>{_0x16a6b0[_0x1aa1('0x17')]();}),this['listenTo'](_0x544133,'Esc',()=>{this[_0x1aa1('0x22')][_0x1aa1('0x25')](_0x506383),this[_0x1aa1('0x1f')](_0x506383),this[_0x1aa1('0x33')][_0x1aa1('0x12')]['view'][_0x1aa1('0x9')]();}),this['activeAnnotation']!==_0x506383&&this['setActiveAnnotation'](_0x506383);}),this[_0x1aa1('0x2f')](this[_0x1aa1('0x33')]['ui'],_0x1aa1('0x7'),()=>{_0x16a6b0[_0x1aa1('0x34')]&&(_0x523145['getByView'](_0x16a6b0[_0x1aa1('0x34')])&&_0x16a6b0[_0x1aa1('0x17')]());}),this['listenTo'](this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x6')],_0x1aa1('0x2d'),()=>{this[_0x1aa1('0x22')]['clear']();}),this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')]['document'][_0x1aa1('0x19')]['editableElement']&&this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x9')](),this[_0x1aa1('0x2b')]=!0x0;}[_0x1aa1('0x10')](){if(!this['isAttached'])throw new _0x359701('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x365e6b of this[_0x1aa1('0xa')])this[_0x1aa1('0x1f')](_0x365e6b);this[_0x1aa1('0x5')](),this[_0x1aa1('0x2b')]=!0x1;}[_0x1aa1('0x18')](){this['isAttached']&&this[_0x1aa1('0x10')]();}[_0x1aa1('0x26')](_0x2b0f3c){const _0x2ccfc6=this[_0x1aa1('0x21')];for(const _0x887737 of _0x2ccfc6)_0x2b0f3c[_0x1aa1('0x36')](_0x887737)||this['_manuallyClosed'][_0x1aa1('0x2c')](_0x887737);for(const _0xc1ef31 of this[_0x1aa1('0x4')])_0x2b0f3c[_0x1aa1('0x36')](_0xc1ef31)||this['_removeAnnotationFromBalloon'](_0xc1ef31);if(this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')][_0x1aa1('0x2a')])for(const _0xa395cb of _0x2b0f3c)this[_0x1aa1('0x3b')](_0xa395cb);this[_0x1aa1('0x21')]=_0x2b0f3c;}['_addAnnotationToBalloon'](_0x4de5c5,_0x454de9){this[_0x1aa1('0x22')][_0x1aa1('0x2e')](_0x4de5c5)||(this[_0x1aa1('0xa')][_0x1aa1('0x2e')](_0x4de5c5)||this[_0x1aa1('0x28')][_0x1aa1('0x1c')](_0x4de5c5[_0x1aa1('0x1b')])||(this[_0x1aa1('0xa')][_0x1aa1('0x25')](_0x4de5c5),this[_0x1aa1('0x28')][_0x1aa1('0x25')]({'stackId':_0x4de5c5[_0x1aa1('0x1b')]['id'],'view':_0x4de5c5['view'],'position':{'target':()=>_0x4de5c5[_0x1aa1('0x2')]||_0x4de5c5[_0x1aa1('0xd')]||document[_0x1aa1('0xb')]()[_0x1aa1('0x1a')](0x0)}})),_0x454de9&&this[_0x1aa1('0x28')][_0x1aa1('0x30')](_0x4de5c5[_0x1aa1('0x1b')]['id']));}[_0x1aa1('0x1f')](_0x20a9ee){this[_0x1aa1('0xa')]['has'](_0x20a9ee)&&this['_balloon'][_0x1aa1('0x1c')](_0x20a9ee['view'])&&(this[_0x1aa1('0xa')][_0x1aa1('0x2c')](_0x20a9ee),this['_balloon'][_0x1aa1('0x8')](_0x20a9ee[_0x1aa1('0x1b')]));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22c3=['isAttached','plugins','content','hasDomSelection','_detachFromContainer','Sidebar','init','_hideBalloon','preventClosingBalloon','EditorAnnotations','ck-sidebar--narrow','number','removeEventListener','northArrowSouth','_setSelectedAnnotations','resize','stopListening','keyCode','_destroyEditorAnnotationsIntegration','stop','editors','refreshPositioning','_attachListeners','_updateBalloonPosition','activeAnnotation','_domEmitter','target','mousedown','_annotationToNarrowView','balloonPanelView','blur','register','off','getByView','context','change:height','detach','isVisible','pluginName','refresh','narrowSidebar','Esc','listenTo','length','set','_throttledRefreshPositioning','preventDefault','first','set:container','attach','clear','stopPropagation','low','keydown','requires','ready','addEventListener','pin','change:container','high','type','focus','defaultPositions','esc','getSidebarItemView','setActiveAnnotation','_showBalloon','_annotations','cancel','bind','values','destroy','view','annotationType','get','contains','_selectedAnnotations','_detachListeners','element','remove','add','_integrateWithEditorAnnotations','northArrowSouthWest','unpin','delete','has','_editorAnnotations','bodyCollection','_refreshPositioning','_attachToContainer','southArrowNorthWest','locale','rearrange','southArrowNorthEast','_manuallyClosedAnnotationViews','narrowsidebar-attach-already-attached'];(function(_0x152738,_0x22c313){const _0xa3fa0a=function(_0x5a2e8b){while(--_0x5a2e8b){_0x152738['push'](_0x152738['shift']());}};_0xa3fa0a(++_0x22c313);}(_0x22c3,0xbc));const _0xa3fa=function(_0x152738,_0x22c313){_0x152738=_0x152738-0x0;let _0xa3fa0a=_0x22c3[_0x152738];return _0xa3fa0a;};import{ContextPlugin as _0xce22ef}from'ckeditor5/src/core';import _0x3eab28 from'./annotationsuis';import _0xdcc9b0 from'./sidebar';import _0x247ca2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1c66bc,BodyCollection as _0x561f52}from'ckeditor5/src/ui';import{CKEditorError as _0x20a550,DomEmitterMixin as _0x3bc5de,keyCodes as _0x506443,Collection as _0x45798c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x5471ef}from'lodash-es';export default class s extends _0xce22ef{static get[_0xa3fa('0x3a')](){return[_0xdcc9b0,_0x3eab28];}static get[_0xa3fa('0x2a')](){return'NarrowSidebar';}constructor(_0x4b3e6d){super(_0x4b3e6d),this[_0xa3fa('0x4')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xa3fa('0x1d')]=Object['create'](_0x3bc5de),this[_0xa3fa('0x20')]=new Map(),this[_0xa3fa('0x30')](_0xa3fa('0x1c'),null),this[_0xa3fa('0x47')]=null,this[_0xa3fa('0x50')]=[],this['_editorAnnotations']=new _0x45798c(),this[_0xa3fa('0x31')]=_0x5471ef(()=>{this[_0xa3fa('0x5c')]();},0x190,{'leading':!0x1});}[_0xa3fa('0xa')](){this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')](_0x3eab28)[_0xa3fa('0x23')](_0xa3fa('0x2c'),this),this[_0xa3fa('0x5b')]=new _0x561f52(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this[_0xa3fa('0x21')]=new _0x1c66bc(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this[_0xa3fa('0x21')]);}[_0xa3fa('0x35')](_0x163b9c){this['_annotations']=_0x163b9c;const _0x2176fc=this[_0xa3fa('0x26')]['plugins'][_0xa3fa('0x4e')](_0xdcc9b0),_0x15c5ef=this[_0xa3fa('0x21')];if(_0x2176fc[_0xa3fa('0x47')]=_0x163b9c,this[_0xa3fa('0x4')])throw new _0x20a550(_0xa3fa('0x3'),this);this[_0xa3fa('0x4')]=!0x0,this['listenTo'](_0x2176fc,_0xa3fa('0x34'),()=>{this[_0xa3fa('0x28')](),this['listenTo'](_0x2176fc,_0xa3fa('0x3e'),_0x4344dd=>{_0x4344dd[_0xa3fa('0x24')](),this[_0xa3fa('0x35')](_0x163b9c);});}),_0x2176fc[_0xa3fa('0x5d')]({'viewClass':_0xa3fa('0xe'),'spaceBetweenItems':0x5});const _0x5d6d22=_0x1adfed=>{const _0x58905f=new _0x247ca2(this['context'][_0xa3fa('0x5f')]);_0x2176fc['addAnnotation'](_0x1adfed,_0x58905f),this['_annotationToNarrowView'][_0xa3fa('0x30')](_0x1adfed,_0x58905f),_0x58905f[_0xa3fa('0x49')]('isDirty',_0xa3fa('0x4d'),_0xa3fa('0xf'))['to'](_0x1adfed['view'],'isDirty',_0xa3fa('0x40'),_0xa3fa('0x2f')),_0x58905f['on']('execute',()=>{this[_0xa3fa('0x2')][_0xa3fa('0x36')](),_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]!==_0x1adfed[_0xa3fa('0x4c')]?(this[_0xa3fa('0x46')](_0x1adfed),_0x1adfed[_0xa3fa('0x4c')][_0xa3fa('0x52')]['focus'](),this['setActiveAnnotation'](_0x1adfed)):this[_0xa3fa('0x45')](null);});};for(const _0x166106 of _0x163b9c)_0x5d6d22(_0x166106);this['listenTo'](_0x163b9c,'add',(_0x105519,_0x304e7a)=>{_0x5d6d22(_0x304e7a);}),this[_0xa3fa('0x2e')](_0x163b9c,_0xa3fa('0x53'),(_0x72d76,_0x3370e0,_0x558318)=>{this[_0xa3fa('0x20')]['get'](_0x3370e0)[_0xa3fa('0x4b')](),this['_annotationToNarrowView'][_0xa3fa('0x58')](_0x3370e0),_0x2176fc[_0xa3fa('0x0')]({'removedAnnotation':_0x3370e0,'previousAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318-0x1),'nextAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318+0x1)}),_0x3370e0===this[_0xa3fa('0x1c')]&&this[_0xa3fa('0x45')](null);},{'priority':_0xa3fa('0x38')}),this['listenTo'](_0x163b9c,_0xa3fa('0x41'),(_0x43bde2,_0x511568)=>{this[_0xa3fa('0x45')](_0x511568);}),this[_0xa3fa('0x2e')](_0x163b9c,'blur',()=>{this[_0xa3fa('0x45')](null);}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x39'),(_0x277001,_0x38a6d0)=>{_0x38a6d0[_0xa3fa('0x15')]===_0x506443[_0xa3fa('0x43')]&&_0x15c5ef[_0xa3fa('0x29')]&&(this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]),this[_0xa3fa('0xb')](),_0x38a6d0[_0xa3fa('0x37')](),_0x38a6d0[_0xa3fa('0x32')]());}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x1f'),(_0x401ab4,_0x71952f)=>{const _0x33f0cb=_0x71952f[_0xa3fa('0x1e')];_0x15c5ef[_0xa3fa('0x29')]&&_0x15c5ef[_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x2176fc[_0xa3fa('0x4c')][_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x401ab4[_0xa3fa('0xc')]||(this[_0xa3fa('0x2')][_0xa3fa('0x36')](),this['_hideBalloon'](),this[_0xa3fa('0x45')](null));});const _0x150498=this['context']['editors']?this['context'][_0xa3fa('0x18')]:new _0x45798c([this[_0xa3fa('0x26')]]);for(const _0x559692 of _0x150498)this[_0xa3fa('0x55')](_0x559692);this[_0xa3fa('0x2e')](_0x150498,_0xa3fa('0x54'),(_0x46947d,_0x4e4207)=>{this[_0xa3fa('0x2e')](_0x4e4207,_0xa3fa('0x3b'),()=>{this['_integrateWithEditorAnnotations'](_0x4e4207);});}),this[_0xa3fa('0x2e')](_0x150498,'remove',(_0x5a2c97,_0x52caf0)=>{_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x59')](_0xa3fa('0xd'))&&this[_0xa3fa('0x16')](_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x4e')](_0xa3fa('0xd')));}),window[_0xa3fa('0x3c')](_0xa3fa('0x13'),this[_0xa3fa('0x31')]),this[_0xa3fa('0x5c')]();}[_0xa3fa('0x45')](_0x4df7a8){if(_0x4df7a8===this[_0xa3fa('0x1c')])return;const _0x18dd5a=this[_0xa3fa('0x26')]['plugins']['get'](_0xa3fa('0x9'));if(_0x18dd5a[_0xa3fa('0x2b')]({'blurredAnnotation':this[_0xa3fa('0x1c')],'activatedAnnotation':_0x4df7a8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4df7a8)_0x18dd5a[_0xa3fa('0x44')](_0x4df7a8)?this['_showBalloon'](_0x4df7a8):this['_hideBalloon']();else this[_0xa3fa('0xb')]();this['activeAnnotation']=_0x4df7a8;}[_0xa3fa('0x28')](){if(!this[_0xa3fa('0x4')])throw new _0x20a550('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x341020=this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')]('Sidebar');this[_0xa3fa('0xb')](),Array['from'](this[_0xa3fa('0x20')][_0xa3fa('0x4a')](),_0x458d31=>_0x458d31['destroy']()),this[_0xa3fa('0x20')][_0xa3fa('0x36')](),_0x341020[_0xa3fa('0x8')](this[_0xa3fa('0x47')]),this[_0xa3fa('0x14')](),this[_0xa3fa('0x1d')][_0xa3fa('0x14')](),this[_0xa3fa('0x14')](this[_0xa3fa('0x26')]['editors']);for(const _0x63e327 of Array['from'](this[_0xa3fa('0x5a')]))this['_destroyEditorAnnotationsIntegration'](_0x63e327);window[_0xa3fa('0x10')](_0xa3fa('0x13'),this['_throttledRefreshPositioning']),this[_0xa3fa('0x31')][_0xa3fa('0x48')](),this[_0xa3fa('0x50')]=[],this['isAttached']=!0x1,this['_annotations']=null;}[_0xa3fa('0x4b')](){this[_0xa3fa('0x4')]&&this['detach'](),this[_0xa3fa('0x5b')]['detachFromDom']();}[_0xa3fa('0x55')](_0x38a283){const _0x34e3e8=_0x38a283['plugins'][_0xa3fa('0x4e')](_0xa3fa('0xd')),_0x4fb254=this[_0xa3fa('0x26')]['plugins']['get'](_0xdcc9b0),_0xdc292b=this['_annotations'],_0x2f897d=this['balloonPanelView'],_0x376133=()=>{const _0x20abe6=_0x34e3e8['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0xa3fa('0x47')]});this[_0xa3fa('0x12')](_0x20abe6),this['setActiveAnnotation'](_0x20abe6[0x0]||null);};this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x2b'),_0x376133),this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x22'),(_0x242c7c,{isAnnotationTracked:_0x3078fb})=>{this[_0xa3fa('0x1c')]&&_0x3078fb(this[_0xa3fa('0x1c')])&&(this[_0xa3fa('0x12')]([]),this[_0xa3fa('0x45')](null));}),this[_0xa3fa('0x2e')](_0x34e3e8,'uiUpdate',()=>{this[_0xa3fa('0x31')]();}),this[_0xa3fa('0x2e')](_0xdc292b,'blur',_0x154f6b=>{_0x34e3e8[_0xa3fa('0x7')]()&&_0x154f6b[_0xa3fa('0x17')]();},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x1d')]['listenTo'](document,_0xa3fa('0x1f'),(_0x53f636,_0x235d60)=>{const _0x5dfa1b=_0x235d60[_0xa3fa('0x1e')];_0x2f897d[_0xa3fa('0x29')]&&_0x2f897d['element']['contains'](_0x5dfa1b)||_0x4fb254[_0xa3fa('0x4c')]['element'][_0xa3fa('0x4f')](_0x5dfa1b)||this[_0xa3fa('0x1c')]&&_0x34e3e8[_0xa3fa('0x7')]()&&(_0x376133(),_0x53f636[_0xa3fa('0xc')]=!0x0);},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x5a')]['add'](_0x34e3e8);}[_0xa3fa('0x16')](_0x1b0005){_0x1b0005&&(this[_0xa3fa('0x14')](_0x1b0005),this[_0xa3fa('0x5a')][_0xa3fa('0x53')](_0x1b0005));}[_0xa3fa('0x12')](_0x1a3e3c){for(const _0x5a6307 of this['_selectedAnnotations'])_0x1a3e3c['includes'](_0x5a6307)||this[_0xa3fa('0x2')]['delete'](_0x5a6307['view']);this[_0xa3fa('0x50')]=_0x1a3e3c;}[_0xa3fa('0x5c')](){const _0x38f839=this[_0xa3fa('0x21')];this[_0xa3fa('0x47')][_0xa3fa('0x19')](),_0x38f839[_0xa3fa('0x29')]&&this[_0xa3fa('0x1b')]();}[_0xa3fa('0x46')](_0x3e8512){if(this[_0xa3fa('0x2')][_0xa3fa('0x59')](_0x3e8512[_0xa3fa('0x4c')]))return;const _0x4a088c=this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x33')];_0x4a088c!==_0x3e8512[_0xa3fa('0x4c')]?(_0x4a088c&&this[_0xa3fa('0x51')](_0x4a088c),this['_attachListeners'](_0x3e8512[_0xa3fa('0x4c')]),this['balloonPanelView']['content']['clear'](),this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x54')](_0x3e8512[_0xa3fa('0x4c')]),this[_0xa3fa('0x1b')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x298bf4=this[_0xa3fa('0x21')]['content'][_0xa3fa('0x33')],_0x5446f8=this['_annotations'][_0xa3fa('0x25')](_0x298bf4);if(!this[_0xa3fa('0x20')][_0xa3fa('0x59')](_0x5446f8))return;const _0x45b66e=this[_0xa3fa('0x20')][_0xa3fa('0x4e')](_0x5446f8)['element'],_0x32f2fa=function(){const _0x5c8749=_0x1c66bc[_0xa3fa('0x42')];return[_0x5c8749[_0xa3fa('0x1')],_0x5c8749['northArrowSouthEast'],_0x5c8749['southArrowNorth'],_0x5c8749[_0xa3fa('0x11')],_0x5c8749[_0xa3fa('0x5e')],_0x5c8749[_0xa3fa('0x56')]];}();this[_0xa3fa('0x21')][_0xa3fa('0x3d')]({'target':_0x45b66e,'positions':_0x32f2fa});}[_0xa3fa('0xb')](){const _0x2cd591=this[_0xa3fa('0x21')],_0x5b034a=_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x33')];_0x5b034a&&(this[_0xa3fa('0x51')](_0x5b034a),_0x2cd591[_0xa3fa('0x57')](),_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x36')]());}[_0xa3fa('0x1a')](_0x4a317e){this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x27'),()=>this[_0xa3fa('0x1b')]()),this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x2d'),(_0x8b3a0c,_0x11476a)=>{this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x4a317e),this['_hideBalloon'](),_0x11476a();});}[_0xa3fa('0x51')](_0x4915a0){this[_0xa3fa('0x14')](_0x4915a0);}}
23
+ const _0x4109=['bodyCollection','_detachListeners','isVisible','_refreshPositioning','preventClosingBalloon','EditorAnnotations','length','_integrateWithEditorAnnotations','Esc','blur','keyCode','_attachToContainer','_detachFromContainer','context','has','refresh','_updateBalloonPosition','first','execute','mousedown','_hideBalloon','isAttached','view','change:container','remove','off','southArrowNorth','from','resize','editors','element','_throttledRefreshPositioning','pin','detach','get','addEventListener','getSidebarItemView','unpin','_showBalloon','register','narrowSidebar','detachFromDom','rearrange','focus','cancel','stop','setActiveAnnotation','_domEmitter','clear','delete','narrowsidebar-attach-already-attached','_attachListeners','locale','_setSelectedAnnotations','_editorAnnotations','_annotations','_selectedAnnotations','getByView','set','hasDomSelection','removeEventListener','_destroyEditorAnnotationsIntegration','values','includes','uiUpdate','refreshPositioning','add','attach','type','init','listenTo','attachToDom','northArrowSouthWest','_annotationToNarrowView','set:container','target','plugins','activeAnnotation','destroy','isDirty','northArrowSouth','stopListening','content','_manuallyClosedAnnotationViews','pluginName','getOrderedSelectedAnnotations','balloonPanelView','bind','contains'];(function(_0x2b08ca,_0x4109ef){const _0x149e60=function(_0x47c522){while(--_0x47c522){_0x2b08ca['push'](_0x2b08ca['shift']());}};_0x149e60(++_0x4109ef);}(_0x4109,0x118));const _0x149e=function(_0x2b08ca,_0x4109ef){_0x2b08ca=_0x2b08ca-0x0;let _0x149e60=_0x4109[_0x2b08ca];return _0x149e60;};import{ContextPlugin as _0x41d2a7}from'ckeditor5/src/core';import _0x25ca17 from'./annotationsuis';import _0x3730a4 from'./sidebar';import _0xddd155 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x344a29,BodyCollection as _0x394ed0}from'ckeditor5/src/ui';import{CKEditorError as _0x2a189d,DomEmitterMixin as _0xbe4cda,keyCodes as _0x20d6be,Collection as _0x2da181}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x26e246}from'lodash-es';export default class s extends _0x41d2a7{static get['requires'](){return[_0x3730a4,_0x25ca17];}static get[_0x149e('0x47')](){return'NarrowSidebar';}constructor(_0x20a24b){super(_0x20a24b),this[_0x149e('0x8')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x149e('0x22')]=Object['create'](_0xbe4cda),this['_annotationToNarrowView']=new Map(),this[_0x149e('0x2d')](_0x149e('0x40'),null),this['_annotations']=null,this[_0x149e('0x2b')]=[],this['_editorAnnotations']=new _0x2da181(),this['_throttledRefreshPositioning']=_0x26e246(()=>{this[_0x149e('0x4f')]();},0x190,{'leading':!0x1});}[_0x149e('0x38')](){this[_0x149e('0x0')][_0x149e('0x3f')][_0x149e('0x15')](_0x25ca17)[_0x149e('0x1a')](_0x149e('0x1b'),this),this[_0x149e('0x4c')]=new _0x394ed0(this[_0x149e('0x0')][_0x149e('0x27')]),this[_0x149e('0x49')]=new _0x344a29(this[_0x149e('0x0')][_0x149e('0x27')]),this['bodyCollection'][_0x149e('0x3a')](),this['bodyCollection'][_0x149e('0x35')](this['balloonPanelView']);}[_0x149e('0x36')](_0x1c4ee3){this[_0x149e('0x2a')]=_0x1c4ee3;const _0x3146e2=this['context'][_0x149e('0x3f')][_0x149e('0x15')](_0x3730a4),_0x3b539d=this['balloonPanelView'];if(_0x3146e2[_0x149e('0x2a')]=_0x1c4ee3,this['isAttached'])throw new _0x2a189d(_0x149e('0x25'),this);this[_0x149e('0x8')]=!0x0,this[_0x149e('0x39')](_0x3146e2,_0x149e('0x3d'),()=>{this[_0x149e('0x14')](),this[_0x149e('0x39')](_0x3146e2,_0x149e('0xa'),_0x1e5241=>{_0x1e5241[_0x149e('0xc')](),this[_0x149e('0x36')](_0x1c4ee3);});}),_0x3146e2[_0x149e('0x57')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4603f4=_0x38e9df=>{const _0x504c28=new _0xddd155(this[_0x149e('0x0')][_0x149e('0x27')]);_0x3146e2['addAnnotation'](_0x38e9df,_0x504c28),this[_0x149e('0x3c')][_0x149e('0x2d')](_0x38e9df,_0x504c28),_0x504c28[_0x149e('0x4a')](_0x149e('0x42'),'annotationType','number')['to'](_0x38e9df['view'],_0x149e('0x42'),_0x149e('0x37'),_0x149e('0x52')),_0x504c28['on'](_0x149e('0x5'),()=>{this[_0x149e('0x46')][_0x149e('0x23')](),_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]!==_0x38e9df[_0x149e('0x9')]?(this[_0x149e('0x19')](_0x38e9df),_0x38e9df[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x1e')](),this[_0x149e('0x21')](_0x38e9df)):this[_0x149e('0x21')](null);});};for(const _0x357fc9 of _0x1c4ee3)_0x4603f4(_0x357fc9);this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x35'),(_0x3e133b,_0x194e73)=>{_0x4603f4(_0x194e73);}),this['listenTo'](_0x1c4ee3,_0x149e('0xb'),(_0x49f730,_0x31d7d4,_0x26ad97)=>{this[_0x149e('0x3c')][_0x149e('0x15')](_0x31d7d4)[_0x149e('0x41')](),this[_0x149e('0x3c')][_0x149e('0x24')](_0x31d7d4),_0x3146e2[_0x149e('0x1d')]({'removedAnnotation':_0x31d7d4,'previousAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97-0x1),'nextAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97+0x1)}),_0x31d7d4===this[_0x149e('0x40')]&&this[_0x149e('0x21')](null);},{'priority':'low'}),this['listenTo'](_0x1c4ee3,_0x149e('0x1e'),(_0x548029,_0x35351c)=>{this['setActiveAnnotation'](_0x35351c);}),this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x55'),()=>{this[_0x149e('0x21')](null);}),this[_0x149e('0x22')]['listenTo'](document,'keydown',(_0x281091,_0x454dcc)=>{_0x454dcc[_0x149e('0x56')]===_0x20d6be['esc']&&_0x3b539d[_0x149e('0x4e')]&&(this['_manuallyClosedAnnotationViews'][_0x149e('0x35')](_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]),this[_0x149e('0x7')](),_0x454dcc['stopPropagation'](),_0x454dcc['preventDefault']());}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x5c8b83,_0x2050d7)=>{const _0x480aab=_0x2050d7[_0x149e('0x3e')];_0x3b539d[_0x149e('0x4e')]&&_0x3b539d[_0x149e('0x11')][_0x149e('0x4b')](_0x480aab)||_0x3146e2[_0x149e('0x9')]['element'][_0x149e('0x4b')](_0x480aab)||_0x5c8b83[_0x149e('0x50')]||(this[_0x149e('0x46')][_0x149e('0x23')](),this[_0x149e('0x7')](),this[_0x149e('0x21')](null));});const _0x2b42e2=this[_0x149e('0x0')]['editors']?this[_0x149e('0x0')][_0x149e('0x10')]:new _0x2da181([this[_0x149e('0x0')]]);for(const _0x4f5ae3 of _0x2b42e2)this['_integrateWithEditorAnnotations'](_0x4f5ae3);this['listenTo'](_0x2b42e2,_0x149e('0x35'),(_0x222a5e,_0x18cb84)=>{this['listenTo'](_0x18cb84,'ready',()=>{this[_0x149e('0x53')](_0x18cb84);});}),this[_0x149e('0x39')](_0x2b42e2,_0x149e('0xb'),(_0x59d793,_0x58b7fd)=>{_0x58b7fd[_0x149e('0x3f')]['has'](_0x149e('0x51'))&&this[_0x149e('0x30')](_0x58b7fd[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')));}),window[_0x149e('0x16')](_0x149e('0xf'),this[_0x149e('0x12')]),this[_0x149e('0x4f')]();}['setActiveAnnotation'](_0x28f6b8){if(_0x28f6b8===this[_0x149e('0x40')])return;const _0x2eac12=this[_0x149e('0x0')]['plugins']['get']('Sidebar');if(_0x2eac12[_0x149e('0x2')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x28f6b8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x28f6b8)_0x2eac12[_0x149e('0x17')](_0x28f6b8)?this[_0x149e('0x19')](_0x28f6b8):this[_0x149e('0x7')]();else this[_0x149e('0x7')]();this[_0x149e('0x40')]=_0x28f6b8;}['detach'](){if(!this[_0x149e('0x8')])throw new _0x2a189d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x17c60b=this[_0x149e('0x0')][_0x149e('0x3f')]['get']('Sidebar');this[_0x149e('0x7')](),Array[_0x149e('0xe')](this[_0x149e('0x3c')][_0x149e('0x31')](),_0x396d0e=>_0x396d0e[_0x149e('0x41')]()),this[_0x149e('0x3c')]['clear'](),_0x17c60b[_0x149e('0x58')](this[_0x149e('0x2a')]),this[_0x149e('0x44')](),this[_0x149e('0x22')][_0x149e('0x44')](),this['stopListening'](this[_0x149e('0x0')][_0x149e('0x10')]);for(const _0x57076b of Array['from'](this['_editorAnnotations']))this[_0x149e('0x30')](_0x57076b);window[_0x149e('0x2f')](_0x149e('0xf'),this['_throttledRefreshPositioning']),this[_0x149e('0x12')][_0x149e('0x1f')](),this[_0x149e('0x2b')]=[],this['isAttached']=!0x1,this[_0x149e('0x2a')]=null;}[_0x149e('0x41')](){this[_0x149e('0x8')]&&this[_0x149e('0x14')](),this[_0x149e('0x4c')][_0x149e('0x1c')]();}[_0x149e('0x53')](_0x40a17f){const _0x1a5c1b=_0x40a17f[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')),_0x29634d=this[_0x149e('0x0')]['plugins'][_0x149e('0x15')](_0x3730a4),_0x1ed67f=this[_0x149e('0x2a')],_0x31f84c=this['balloonPanelView'],_0x3de6cc=()=>{const _0x5969e4=_0x1a5c1b[_0x149e('0x48')]({'activeAnnotation':this[_0x149e('0x40')],'annotations':this[_0x149e('0x2a')]});this[_0x149e('0x28')](_0x5969e4),this['setActiveAnnotation'](_0x5969e4[0x0]||null);};this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x2'),_0x3de6cc),this['listenTo'](_0x1a5c1b,_0x149e('0x55'),(_0xb4f5a8,{isAnnotationTracked:_0x4033ab})=>{this[_0x149e('0x40')]&&_0x4033ab(this[_0x149e('0x40')])&&(this[_0x149e('0x28')]([]),this[_0x149e('0x21')](null));}),this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x33'),()=>{this['_throttledRefreshPositioning']();}),this['listenTo'](_0x1ed67f,_0x149e('0x55'),_0x358abf=>{_0x1a5c1b['hasDomSelection']()&&_0x358abf[_0x149e('0x20')]();},{'priority':'high'}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x53d272,_0xa64762)=>{const _0x1a9a36=_0xa64762[_0x149e('0x3e')];_0x31f84c['isVisible']&&_0x31f84c[_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||_0x29634d[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||this['activeAnnotation']&&_0x1a5c1b[_0x149e('0x2e')]()&&(_0x3de6cc(),_0x53d272[_0x149e('0x50')]=!0x0);},{'priority':'high'}),this[_0x149e('0x29')]['add'](_0x1a5c1b);}[_0x149e('0x30')](_0x2f2da3){_0x2f2da3&&(this[_0x149e('0x44')](_0x2f2da3),this[_0x149e('0x29')][_0x149e('0xb')](_0x2f2da3));}[_0x149e('0x28')](_0x4d5959){for(const _0x5b0f21 of this[_0x149e('0x2b')])_0x4d5959[_0x149e('0x32')](_0x5b0f21)||this['_manuallyClosedAnnotationViews'][_0x149e('0x24')](_0x5b0f21[_0x149e('0x9')]);this[_0x149e('0x2b')]=_0x4d5959;}['_refreshPositioning'](){const _0x5086aa=this[_0x149e('0x49')];this['_annotations'][_0x149e('0x34')](),_0x5086aa[_0x149e('0x4e')]&&this[_0x149e('0x3')]();}[_0x149e('0x19')](_0x14cabe){if(this[_0x149e('0x46')][_0x149e('0x1')](_0x14cabe[_0x149e('0x9')]))return;const _0x5bcf79=this[_0x149e('0x49')]['content'][_0x149e('0x4')];_0x5bcf79!==_0x14cabe[_0x149e('0x9')]?(_0x5bcf79&&this[_0x149e('0x4d')](_0x5bcf79),this['_attachListeners'](_0x14cabe[_0x149e('0x9')]),this[_0x149e('0x49')]['content'][_0x149e('0x23')](),this[_0x149e('0x49')][_0x149e('0x45')][_0x149e('0x35')](_0x14cabe['view']),this[_0x149e('0x3')]()):this[_0x149e('0x3')]();}[_0x149e('0x3')](){const _0x423ad5=this['balloonPanelView'][_0x149e('0x45')][_0x149e('0x4')],_0x141e2b=this[_0x149e('0x2a')][_0x149e('0x2c')](_0x423ad5);if(!this[_0x149e('0x3c')][_0x149e('0x1')](_0x141e2b))return;const _0x5a683e=this[_0x149e('0x3c')][_0x149e('0x15')](_0x141e2b)[_0x149e('0x11')],_0x2ff870=function(){const _0x32b428=_0x344a29['defaultPositions'];return[_0x32b428['southArrowNorthEast'],_0x32b428['northArrowSouthEast'],_0x32b428[_0x149e('0xd')],_0x32b428[_0x149e('0x43')],_0x32b428['southArrowNorthWest'],_0x32b428[_0x149e('0x3b')]];}();this[_0x149e('0x49')][_0x149e('0x13')]({'target':_0x5a683e,'positions':_0x2ff870});}[_0x149e('0x7')](){const _0x2618b0=this[_0x149e('0x49')],_0x4488d9=_0x2618b0[_0x149e('0x45')][_0x149e('0x4')];_0x4488d9&&(this[_0x149e('0x4d')](_0x4488d9),_0x2618b0[_0x149e('0x18')](),_0x2618b0['content'][_0x149e('0x23')]());}[_0x149e('0x26')](_0x38d527){this[_0x149e('0x39')](_0x38d527,'change:height',()=>this[_0x149e('0x3')]()),this['listenTo'](_0x38d527,_0x149e('0x54'),(_0x58342e,_0x375260)=>{this[_0x149e('0x46')]['add'](_0x38d527),this[_0x149e('0x7')](),_0x375260();});}[_0x149e('0x4d')](_0x409a70){this['stopListening'](_0x409a70);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a07=['_spaceBetweenItems','minHeight','length','addAnnotation','_updateLastItem','_annotationToSidebarItemView','_annotations','view','content','delete','_getTargetTop','getIndex','bottom','_getItemAfter','top','updateHeight','_detachFromContainer','rearrange','_getItemBefore','_lastItem','remove','sidebar.preventScrollOutOfView','listenTo','last','_destroySidebarItemView','context','sidebar-setcontainer-invalid-element','target','_attachToContainer','change:_lastItem','getSidebarItemView','add','_setItemTop','bind','config','_activeAnnotation','destroy','_createSidebarView','_sidebarItemViewToAnnotation','list','change:bottom','Sidebar','_alignBeforeItem','container','_alignAfterItem','sidebar-attachtocontainer-missing-container','setContainer','set','_targetTop','max','isAnimationDisabled','pluginName','element','change:top','init','stopListening','class','locale','clear','appendChild','change:targetRect','define','sidebar.container','isActive','get','targetRect','refresh','_getMaxAvailableTop','_alignToTargetRect','height'];(function(_0x4f7cb2,_0x2a0701){const _0x32202f=function(_0x23ba6b){while(--_0x23ba6b){_0x4f7cb2['push'](_0x4f7cb2['shift']());}};_0x32202f(++_0x2a0701);}(_0x2a07,0x1b2));const _0x3220=function(_0x4f7cb2,_0x2a0701){_0x4f7cb2=_0x4f7cb2-0x0;let _0x32202f=_0x2a07[_0x4f7cb2];return _0x32202f;};import{ContextPlugin as _0x30bcc9}from'ckeditor5/src/core';import _0x36d231 from'./view/sidebarview';import _0x31561d from'./view/sidebaritemview';import{Rect as _0x4fa7f3,CKEditorError as _0x5aa609}from'ckeditor5/src/utils';import{isElement as _0x5c2a45,throttle as _0x5cfa75}from'lodash-es';export default class b extends _0x30bcc9{static get[_0x3220('0x25')](){return _0x3220('0x1b');}constructor(_0x107353){super(_0x107353),this[_0x3220('0x21')](_0x3220('0x5')),this[_0x3220('0x3f')]=this[_0x3220('0x17')](),this['set'](_0x3220('0x1d'),null),this[_0x3220('0x38')]=0x19,this[_0x3220('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x3220('0x14')][_0x3220('0x2f')](_0x3220('0x7'),!0x1),this[_0x3220('0x3e')]=null,this[_0x3220('0x15')]=null;}[_0x3220('0x28')](){const _0x490712=this['context'][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x30'));_0x490712&&this[_0x3220('0x20')](_0x490712);}['setContainer'](_0x324f2f){if(!_0x5c2a45(_0x324f2f))throw new _0x5aa609(_0x3220('0xc'));this[_0x3220('0x1d')]=_0x324f2f;}[_0x3220('0xe')]({viewClass:_0xce7e41='',spaceBetweenItems:_0x1fb45a=0x19}={}){if(!_0x5c2a45(this[_0x3220('0x1d')]))throw new _0x5aa609(_0x3220('0x1f'),this);this[_0x3220('0x1d')][_0x3220('0x2d')](this['view'][_0x3220('0x26')]),this[_0x3220('0x3f')][_0x3220('0x2a')]=_0xce7e41,this[_0x3220('0x38')]=_0x1fb45a;}[_0x3220('0x3')]({removedAnnotation:_0x4e5029,previousAnnotation:_0x4b3ca8,nextAnnotation:_0x3307a7}){const _0x30e497=this[_0x3220('0x10')](_0x4e5029);this[_0x3220('0x3f')][_0x3220('0x19')][_0x3220('0x6')](_0x30e497),this[_0x3220('0xa')](_0x4e5029),_0x4b3ca8&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x4b3ca8)),_0x3307a7&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x3307a7)),this['_updateLastItem']();}[_0x3220('0x34')]({blurredAnnotation:_0x5cdeab,activatedAnnotation:_0x19b67e,disableAnimationOnActivatedAnnotation:_0x1a0764}){if(this[_0x3220('0x15')]=_0x19b67e,_0x5cdeab){_0x5cdeab[_0x3220('0x31')]=!0x1;const _0x3e74ee=this[_0x3220('0x10')](_0x5cdeab);_0x3e74ee&&_0x1a0764&&(_0x3e74ee[_0x3220('0x24')]=!0x1);}if(_0x19b67e){const _0x175c7e=this[_0x3220('0x10')](_0x19b67e);_0x175c7e&&(_0x19b67e[_0x3220('0x31')]=!0x0,_0x1a0764&&(_0x175c7e['isAnimationDisabled']=!0x0,_0x175c7e[_0x3220('0x0')]+=0x1),this['_alignToTargetRect'](_0x175c7e));}}[_0x3220('0x2')](_0x377973){this[_0x3220('0x29')](),this[_0x3220('0x3f')][_0x3220('0x26')][_0x3220('0x6')]();for(const _0xc816e0 of _0x377973)this[_0x3220('0xa')](_0xc816e0);this['view'][_0x3220('0x19')][_0x3220('0x2c')](),this['view']['class']='',this[_0x3220('0x5')]=null;}[_0x3220('0x3b')](_0x456072,_0x467621){_0x467621||(_0x467621=_0x456072[_0x3220('0x3f')]);const _0x1f5e25=new _0x31561d(this[_0x3220('0xb')][_0x3220('0x2b')]);this[_0x3220('0x18')][_0x3220('0x21')](_0x1f5e25,_0x456072),this[_0x3220('0x3d')]['set'](_0x456072,_0x1f5e25),_0x1f5e25[_0x3220('0x40')][_0x3220('0x11')](_0x467621),this[_0x3220('0x36')](_0x1f5e25),this['listenTo'](_0x456072[_0x3220('0x3f')],_0x3220('0x2e'),()=>{const _0x421033=this[_0x3220('0x42')](_0x1f5e25);_0x1f5e25[_0x3220('0x22')]!=_0x421033&&(_0x1f5e25[_0x3220('0x22')]=_0x421033,this[_0x3220('0x12')](_0x1f5e25,_0x421033));}),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x27'),_0x5cfa75(()=>{if(!_0x1f5e25[_0x3220('0x40')][_0x3220('0x3a')])return;const _0x594e79=this[_0x3220('0x4')](_0x1f5e25);if(!_0x594e79)return;const _0x2724dc=this[_0x3220('0x18')][_0x3220('0x32')](_0x594e79),_0x56c4a4=this['_activeAnnotation'];_0x56c4a4&&_0x56c4a4===_0x2724dc?this[_0x3220('0x1e')](_0x594e79,_0x1f5e25):this[_0x3220('0x1c')](_0x1f5e25,_0x594e79);},0xa,{'leading':!0x1})),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x1a'),_0x5cfa75(()=>{if(!_0x1f5e25['content'][_0x3220('0x3a')])return;const _0x3f44ee=this[_0x3220('0x45')](_0x1f5e25);if(!_0x3f44ee)return;const _0x26d6d1=this[_0x3220('0x18')][_0x3220('0x32')](_0x3f44ee),_0x28d4ce=this[_0x3220('0xb')][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x7')),_0x5c2cfb=this['_activeAnnotation'];_0x5c2cfb&&_0x5c2cfb===_0x26d6d1&&_0x28d4ce?(this[_0x3220('0x1c')](_0x3f44ee,_0x1f5e25),this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee)):_0x5c2cfb&&_0x5c2cfb===_0x26d6d1?this['_alignBeforeItem'](_0x3f44ee,_0x1f5e25):this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee);},0xa,{'leading':!0x1}));const _0x283c35=this[_0x3220('0x4')](_0x1f5e25);if(_0x283c35)this[_0x3220('0x1e')](_0x283c35,_0x1f5e25)||this['_alignToTargetRect'](_0x1f5e25);else this[_0x3220('0x36')](_0x1f5e25);return this['_updateLastItem'](),this[_0x3220('0x3f')]['list'][_0x3220('0x11')](_0x1f5e25),_0x1f5e25;}[_0x3220('0x10')](_0x1a1496){return this[_0x3220('0x3d')][_0x3220('0x32')](_0x1a1496);}['destroy'](){this[_0x3220('0x3f')][_0x3220('0x16')]();}[_0x3220('0xa')](_0x69917){const _0x4b50aa=this['getSidebarItemView'](_0x69917);this[_0x3220('0x29')](_0x4b50aa),this[_0x3220('0x29')](_0x69917['view']),_0x4b50aa[_0x3220('0x16')](),this[_0x3220('0x3d')][_0x3220('0x41')](_0x69917),this[_0x3220('0x18')][_0x3220('0x41')](_0x4b50aa);}[_0x3220('0x17')](){const _0x46fbd2=new _0x36d231(this[_0x3220('0xb')][_0x3220('0x2b')]);return _0x46fbd2['render'](),this['on'](_0x3220('0xf'),(_0x39761d,_0x2127ce,_0x2c0c1f,_0x41d1b6)=>{_0x41d1b6&&_0x46fbd2['unbind'](_0x3220('0x39')),_0x2c0c1f?_0x46fbd2[_0x3220('0x13')](_0x3220('0x39'))['to'](_0x2c0c1f,_0x3220('0x44')):_0x46fbd2[_0x3220('0x39')]=null;}),_0x46fbd2;}[_0x3220('0x3c')](){this['_lastItem']=this[_0x3220('0x10')](this['_annotations'][_0x3220('0x9')]);}[_0x3220('0x4')](_0x17337f){const _0xbc4708=this[_0x3220('0x18')][_0x3220('0x32')](_0x17337f),_0x137844=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0xbc4708)-0x1);return _0x137844&&this['getSidebarItemView'](_0x137844);}['_getItemAfter'](_0x3d095d){const _0x32e84e=this[_0x3220('0x18')][_0x3220('0x32')](_0x3d095d),_0x4292b9=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0x32e84e)+0x1);return _0x4292b9&&this[_0x3220('0x10')](_0x4292b9);}['_alignBeforeItem'](_0x318bfb,_0x27608e){_0x318bfb[_0x3220('0x1')]();const _0x560500=C(_0x27608e['bottom']+this[_0x3220('0x38')],_0x318bfb[_0x3220('0x0')]);return!!_0x560500&&(this[_0x3220('0x12')](_0x27608e,_0x27608e[_0x3220('0x0')]-_0x560500),!0x0);}['_alignAfterItem'](_0xf7943a,_0x3dfce2){_0xf7943a[_0x3220('0x1')]();const _0x539fea=C(_0xf7943a[_0x3220('0x44')]+this['_spaceBetweenItems'],_0x3dfce2[_0x3220('0x0')]);return!!_0x539fea&&(this[_0x3220('0x12')](_0x3dfce2,_0x3dfce2[_0x3220('0x0')]+_0x539fea,!0x1),!0x0);}[_0x3220('0x36')](_0x131abd){const _0xbc1962=this['_sidebarItemViewToAnnotation'][_0x3220('0x32')](_0x131abd);if(!_0xbc1962||!_0xbc1962[_0x3220('0xd')])return;const _0x72ecc3=this[_0x3220('0x42')](_0x131abd);this[_0x3220('0x12')](_0x131abd,_0x72ecc3);}[_0x3220('0x42')](_0x30fb82){const _0x131b9f=this[_0x3220('0x18')][_0x3220('0x32')](_0x30fb82);if(null===_0x131b9f[_0x3220('0x33')])return 0x0;if(_0x131b9f['target']instanceof _0x4fa7f3)return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')];{const _0x46cdd8=new _0x4fa7f3(this['view'][_0x3220('0x26')])['top'];return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')]-_0x46cdd8;}}[_0x3220('0x12')](_0x1e22d2,_0x31f3ff,_0x5119a5=this[_0x3220('0xb')]['config'][_0x3220('0x32')](_0x3220('0x7'))){_0x5119a5&&(_0x31f3ff=Math['max'](_0x31f3ff,this[_0x3220('0x35')](_0x1e22d2))),_0x1e22d2[_0x3220('0x0')]=_0x31f3ff;}[_0x3220('0x35')](_0x17b881){let _0x14e1c5=this['_getItemBefore'](_0x17b881),_0x4e227d=0x0;for(;_0x14e1c5;)_0x14e1c5[_0x3220('0x1')](),_0x4e227d+=this['_spaceBetweenItems']+_0x14e1c5[_0x3220('0x37')],_0x14e1c5=this[_0x3220('0x4')](_0x14e1c5);return _0x4e227d;}}function C(_0x754e11,_0x19ea72){return Math[_0x3220('0x23')](_0x754e11-_0x19ea72,0x0);}
23
+ const _0x4eea=['_detachFromContainer','addAnnotation','destroy','_getItemBefore','render','height','content','minHeight','listenTo','define','add','getSidebarItemView','_getTargetTop','getIndex','isAnimationDisabled','_getMaxAvailableTop','view','bottom','pluginName','_alignBeforeItem','isActive','_destroySidebarItemView','_spaceBetweenItems','stopListening','list','delete','_setItemTop','target','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_targetTop','class','rearrange','refresh','context','config','change:bottom','_annotations','_annotationToSidebarItemView','init','sidebar-attachtocontainer-missing-container','remove','_updateLastItem','sidebar.preventScrollOutOfView','_createSidebarView','locale','appendChild','_alignToTargetRect','Sidebar','_alignAfterItem','set','container','sidebar.container','get','setContainer','updateHeight','max','top','_activeAnnotation','element','_attachToContainer','_lastItem','targetRect','length','_getItemAfter'];(function(_0x3ae4af,_0x4eea32){const _0x3ee09d=function(_0x15aab5){while(--_0x15aab5){_0x3ae4af['push'](_0x3ae4af['shift']());}};_0x3ee09d(++_0x4eea32);}(_0x4eea,0x15b));const _0x3ee0=function(_0x3ae4af,_0x4eea32){_0x3ae4af=_0x3ae4af-0x0;let _0x3ee09d=_0x4eea[_0x3ae4af];return _0x3ee09d;};import{ContextPlugin as _0x68dfe1}from'ckeditor5/src/core';import _0x51e552 from'./view/sidebarview';import _0x25479c from'./view/sidebaritemview';import{Rect as _0x58211e,CKEditorError as _0x12c62f}from'ckeditor5/src/utils';import{isElement as _0x54a130,throttle as _0x34f717}from'lodash-es';export default class it extends _0x68dfe1{static get[_0x3ee0('0x3d')](){return _0x3ee0('0x1a');}constructor(_0x41dbad){super(_0x41dbad),this[_0x3ee0('0x1c')](_0x3ee0('0x27')),this[_0x3ee0('0x3b')]=this[_0x3ee0('0x16')](),this[_0x3ee0('0x1c')](_0x3ee0('0x1d'),null),this[_0x3ee0('0x0')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3ee0('0x10')]=new Map(),this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x34')](_0x3ee0('0x15'),!0x1),this[_0x3ee0('0xf')]=null,this[_0x3ee0('0x24')]=null;}[_0x3ee0('0x11')](){const _0xe5e9df=this['context'][_0x3ee0('0xd')]['get'](_0x3ee0('0x1e'));_0xe5e9df&&this['setContainer'](_0xe5e9df);}[_0x3ee0('0x20')](_0x40e5f4){if(!_0x54a130(_0x40e5f4))throw new _0x12c62f(_0x3ee0('0x6'));this[_0x3ee0('0x1d')]=_0x40e5f4;}[_0x3ee0('0x26')]({viewClass:_0x52a4d9='',spaceBetweenItems:_0x17ed67=0x19}={}){if(!_0x54a130(this['container']))throw new _0x12c62f(_0x3ee0('0x12'),this);this[_0x3ee0('0x1d')][_0x3ee0('0x18')](this[_0x3ee0('0x3b')]['element']),this[_0x3ee0('0x3b')]['class']=_0x52a4d9,this[_0x3ee0('0x0')]=_0x17ed67;}[_0x3ee0('0xa')]({removedAnnotation:_0x10e1af,previousAnnotation:_0x55aadb,nextAnnotation:_0x454736}){const _0xdde4b3=this[_0x3ee0('0x36')](_0x10e1af);this[_0x3ee0('0x3b')]['list'][_0x3ee0('0x13')](_0xdde4b3),this[_0x3ee0('0x40')](_0x10e1af),_0x55aadb&&this[_0x3ee0('0x19')](this[_0x3ee0('0x36')](_0x55aadb)),_0x454736&&this['_alignToTargetRect'](this[_0x3ee0('0x36')](_0x454736)),this[_0x3ee0('0x14')]();}[_0x3ee0('0xb')]({blurredAnnotation:_0x3e0441,activatedAnnotation:_0xc7966d,disableAnimationOnActivatedAnnotation:_0xa5e066}){if(this['_activeAnnotation']=_0xc7966d,_0x3e0441){_0x3e0441[_0x3ee0('0x3f')]=!0x1;const _0x385766=this[_0x3ee0('0x36')](_0x3e0441);_0x385766&&_0xa5e066&&(_0x385766[_0x3ee0('0x39')]=!0x1);}if(_0xc7966d){const _0x59b1b2=this[_0x3ee0('0x36')](_0xc7966d);_0x59b1b2&&(_0xc7966d[_0x3ee0('0x3f')]=!0x0,_0xa5e066&&(_0x59b1b2[_0x3ee0('0x39')]=!0x0,_0x59b1b2[_0x3ee0('0x23')]+=0x1),this[_0x3ee0('0x19')](_0x59b1b2));}}[_0x3ee0('0x2b')](_0x4b1f35){this[_0x3ee0('0x1')](),this[_0x3ee0('0x3b')][_0x3ee0('0x25')][_0x3ee0('0x13')]();for(const _0x371891 of _0x4b1f35)this[_0x3ee0('0x40')](_0x371891);this[_0x3ee0('0x3b')][_0x3ee0('0x2')]['clear'](),this['view'][_0x3ee0('0x9')]='',this['_lastItem']=null;}[_0x3ee0('0x2c')](_0x319d22,_0x3836c3){_0x3836c3||(_0x3836c3=_0x319d22['view']);const _0x39eecc=new _0x25479c(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1c')](_0x39eecc,_0x319d22),this[_0x3ee0('0x10')]['set'](_0x319d22,_0x39eecc),_0x39eecc['content'][_0x3ee0('0x35')](_0x3836c3),this[_0x3ee0('0x19')](_0x39eecc),this[_0x3ee0('0x33')](_0x319d22['view'],'change:targetRect',()=>{const _0x42a51b=this[_0x3ee0('0x37')](_0x39eecc);_0x39eecc[_0x3ee0('0x8')]!=_0x42a51b&&(_0x39eecc[_0x3ee0('0x8')]=_0x42a51b,this[_0x3ee0('0x4')](_0x39eecc,_0x42a51b));}),this['listenTo'](_0x39eecc,'change:top',_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x5e69b7=this['_getItemBefore'](_0x39eecc);if(!_0x5e69b7)return;const _0x218afc=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x5e69b7),_0x5e71ed=this[_0x3ee0('0x24')];_0x5e71ed&&_0x5e71ed===_0x218afc?this[_0x3ee0('0x1b')](_0x5e69b7,_0x39eecc):this['_alignBeforeItem'](_0x39eecc,_0x5e69b7);},0xa,{'leading':!0x1})),this[_0x3ee0('0x33')](_0x39eecc,_0x3ee0('0xe'),_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x32c47b=this[_0x3ee0('0x2a')](_0x39eecc);if(!_0x32c47b)return;const _0x59c6e9=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x32c47b),_0x26067e=this['context'][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15')),_0x14e459=this[_0x3ee0('0x24')];_0x14e459&&_0x14e459===_0x59c6e9&&_0x26067e?(this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc),this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b)):_0x14e459&&_0x14e459===_0x59c6e9?this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc):this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b);},0xa,{'leading':!0x1}));const _0x196184=this[_0x3ee0('0x2e')](_0x39eecc);if(_0x196184)this[_0x3ee0('0x1b')](_0x196184,_0x39eecc)||this[_0x3ee0('0x19')](_0x39eecc);else this[_0x3ee0('0x19')](_0x39eecc);return this[_0x3ee0('0x14')](),this['view'][_0x3ee0('0x2')][_0x3ee0('0x35')](_0x39eecc),_0x39eecc;}[_0x3ee0('0x36')](_0x2b7e83){return this[_0x3ee0('0x10')][_0x3ee0('0x1f')](_0x2b7e83);}[_0x3ee0('0x2d')](){this[_0x3ee0('0x3b')][_0x3ee0('0x2d')]();}[_0x3ee0('0x40')](_0x16182c){const _0x7b6795=this[_0x3ee0('0x36')](_0x16182c);this['stopListening'](_0x7b6795),this[_0x3ee0('0x1')](_0x16182c[_0x3ee0('0x3b')]),_0x7b6795[_0x3ee0('0x2d')](),this[_0x3ee0('0x10')][_0x3ee0('0x3')](_0x16182c),this['_sidebarItemViewToAnnotation'][_0x3ee0('0x3')](_0x7b6795);}['_createSidebarView'](){const _0x58d6eb=new _0x51e552(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);return _0x58d6eb[_0x3ee0('0x2f')](),this['on']('change:_lastItem',(_0x497f81,_0x4a0e92,_0x566c8b,_0xa99dc9)=>{_0xa99dc9&&_0x58d6eb['unbind'](_0x3ee0('0x32')),_0x566c8b?_0x58d6eb['bind']('minHeight')['to'](_0x566c8b,_0x3ee0('0x3c')):_0x58d6eb[_0x3ee0('0x32')]=null;}),_0x58d6eb;}['_updateLastItem'](){this['_lastItem']=this['getSidebarItemView'](this[_0x3ee0('0xf')]['last']);}[_0x3ee0('0x2e')](_0x42e376){const _0x2ef8db=this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1f')](_0x42e376),_0x1a6767=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')]['getIndex'](_0x2ef8db)-0x1);return _0x1a6767&&this[_0x3ee0('0x36')](_0x1a6767);}[_0x3ee0('0x2a')](_0x1a0b25){const _0x387dab=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x1a0b25),_0x44fab4=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')][_0x3ee0('0x38')](_0x387dab)+0x1);return _0x44fab4&&this['getSidebarItemView'](_0x44fab4);}[_0x3ee0('0x3e')](_0x1a9db9,_0x51c35e){_0x1a9db9['updateHeight']();const _0x514790=lt(_0x51c35e[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x1a9db9[_0x3ee0('0x23')]);return!!_0x514790&&(this[_0x3ee0('0x4')](_0x51c35e,_0x51c35e['top']-_0x514790),!0x0);}[_0x3ee0('0x1b')](_0x3e12d3,_0x3d287d){_0x3e12d3[_0x3ee0('0x21')]();const _0x4d09d1=lt(_0x3e12d3[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x3d287d['top']);return!!_0x4d09d1&&(this['_setItemTop'](_0x3d287d,_0x3d287d[_0x3ee0('0x23')]+_0x4d09d1,!0x1),!0x0);}[_0x3ee0('0x19')](_0x4a00b9){const _0x5d6591=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x4a00b9);if(!_0x5d6591||!_0x5d6591[_0x3ee0('0x5')])return;const _0x52ec68=this[_0x3ee0('0x37')](_0x4a00b9);this[_0x3ee0('0x4')](_0x4a00b9,_0x52ec68);}[_0x3ee0('0x37')](_0x48ff99){const _0x366983=this['_sidebarItemViewToAnnotation']['get'](_0x48ff99);if(null===_0x366983[_0x3ee0('0x28')])return 0x0;if(_0x366983['target']instanceof _0x58211e)return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')];{const _0x5ee56b=new _0x58211e(this[_0x3ee0('0x3b')][_0x3ee0('0x25')])[_0x3ee0('0x23')];return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')]-_0x5ee56b;}}[_0x3ee0('0x4')](_0x1593f6,_0x20dc09,_0x4f6385=this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15'))){_0x4f6385&&(_0x20dc09=Math[_0x3ee0('0x22')](_0x20dc09,this[_0x3ee0('0x3a')](_0x1593f6))),_0x1593f6[_0x3ee0('0x23')]=_0x20dc09;}[_0x3ee0('0x3a')](_0x47b95c){let _0xb404bb=this[_0x3ee0('0x2e')](_0x47b95c),_0x56044=0x0;for(;_0xb404bb;)_0xb404bb[_0x3ee0('0x21')](),_0x56044+=this[_0x3ee0('0x0')]+_0xb404bb[_0x3ee0('0x30')],_0xb404bb=this[_0x3ee0('0x2e')](_0xb404bb);return _0x56044;}}function lt(_0x12bdb5,_0x2f68f3){return Math[_0x3ee0('0x22')](_0x12bdb5-_0x2f68f3,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x135b=['annotationType','add','ck-annotation-counter__badge--edit-mode','bind','children','ck-annotation-counter__badge--','ck-annotation-counter','icon','counterView','isDirty','ck-annotation-counter__badge','set','number'];(function(_0x519ce,_0x135b7c){const _0xdfd35=function(_0x482f09){while(--_0x482f09){_0x519ce['push'](_0x519ce['shift']());}};_0xdfd35(++_0x135b7c);}(_0x135b,0x65));const _0xdfd3=function(_0x519ce,_0x135b7c){_0x519ce=_0x519ce-0x0;let _0xdfd35=_0x135b[_0x519ce];return _0xdfd35;};import{ButtonView as _0x1e4576,View as _0x2d718f}from'ckeditor5/src/ui';import _0x360a61 from'../../../theme/icons/add-comment.svg';export default class B extends _0x1e4576{constructor(_0x4056f8){super(_0x4056f8);const _0x48770b=this['bindTemplate'];this[_0xdfd3('0x1')](_0xdfd3('0xc'),!0x1),this[_0xdfd3('0x1')](_0xdfd3('0x2'),0x0),this[_0xdfd3('0x6')]('_badge')['to'](this,_0xdfd3('0xc'),this,_0xdfd3('0x2'),(_0x1d5d67,_0x55524e)=>_0x1d5d67?'...':_0x55524e),this[_0xdfd3('0x1')](_0xdfd3('0x3'),''),this[_0xdfd3('0xa')]=_0x360a61,this['extendTemplate']({'attributes':{'class':[_0xdfd3('0x9')]}}),this[_0xdfd3('0xb')]=new _0x2d718f(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0xdfd3('0x0'),_0x48770b['to'](_0xdfd3('0x3'),_0x3486d2=>_0xdfd3('0x8')+_0x3486d2),_0x48770b['if'](_0xdfd3('0xc'),_0xdfd3('0x5'))]},'children':[{'text':_0x48770b['to']('_badge')}]}),this[_0xdfd3('0x7')][_0xdfd3('0x4')](this[_0xdfd3('0xb')]);}}
23
+ const _0x5660=['isDirty','setTemplate','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','span','ck-annotation-counter__badge--','icon','bindTemplate','number','...','ck-annotation-counter__badge','children','set','annotationType','counterView','_badge'];(function(_0x4e77b1,_0x5660d4){const _0xeb2b7d=function(_0x51cec7){while(--_0x51cec7){_0x4e77b1['push'](_0x4e77b1['shift']());}};_0xeb2b7d(++_0x5660d4);}(_0x5660,0x1ad));const _0xeb2b=function(_0x4e77b1,_0x5660d4){_0x4e77b1=_0x4e77b1-0x0;let _0xeb2b7d=_0x5660[_0x4e77b1];return _0xeb2b7d;};import{ButtonView as _0x3e25bf,View as _0x343d94}from'ckeditor5/src/ui';import _0x32c20a from'../../../theme/icons/add-comment.svg';export default class st extends _0x3e25bf{constructor(_0x53007f){super(_0x53007f);const _0x25088a=this[_0xeb2b('0xa')];this['set'](_0xeb2b('0x3'),!0x1),this[_0xeb2b('0xf')](_0xeb2b('0xb'),0x0),this['bind'](_0xeb2b('0x2'))['to'](this,_0xeb2b('0x3'),this,_0xeb2b('0xb'),(_0x3e3120,_0x2adb3a)=>_0x3e3120?_0xeb2b('0xc'):_0x2adb3a),this[_0xeb2b('0xf')](_0xeb2b('0x0'),''),this[_0xeb2b('0x9')]=_0x32c20a,this['extendTemplate']({'attributes':{'class':[_0xeb2b('0x5')]}}),this[_0xeb2b('0x1')]=new _0x343d94(),this[_0xeb2b('0x1')][_0xeb2b('0x4')]({'tag':_0xeb2b('0x7'),'attributes':{'class':[_0xeb2b('0xd'),_0x25088a['to'](_0xeb2b('0x0'),_0x32f22e=>_0xeb2b('0x8')+_0x32f22e),_0x25088a['if'](_0xeb2b('0x3'),_0xeb2b('0x6'))]},'children':[{'text':_0x25088a['to']('_badge')}]}),this[_0xeb2b('0xe')]['add'](this[_0xeb2b('0x1')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e5a=['focusTracker','mainView','clientHeight','div','render','_mutationObserver','add','isActive','focus','detach','bindTemplate','content','element','ck-rounded-corners','keystrokes','listenTo','attach','ck-annotation-wrapper','type','height','Esc','createCollection','isDirty','_updateHeight','destroy','setTemplate','set','fire'];(function(_0x5eb722,_0x2e5a13){const _0x5adf90=function(_0x31752f){while(--_0x31752f){_0x5eb722['push'](_0x5eb722['shift']());}};_0x5adf90(++_0x2e5a13);}(_0x2e5a,0x1f2));const _0x5adf=function(_0x5eb722,_0x2e5a13){_0x5eb722=_0x5eb722-0x0;let _0x5adf90=_0x2e5a[_0x5eb722];return _0x5adf90;};import{View as _0x52f669}from'ckeditor5/src/ui';import{FocusTracker as _0x348e70,KeystrokeHandler as _0x3a5703,uid as _0x5b956f}from'ckeditor5/src/utils';import _0x5ba1b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class it extends _0x52f669{constructor(_0x597702,_0x55c8fb){super(_0x597702),this['id']=_0x5b956f(),this['focusTracker']=new _0x348e70(),this[_0x5adf('0x14')]=new _0x3a5703(),this[_0x5adf('0x14')][_0x5adf('0x4')](_0x5adf('0x1a'),(_0x4608cb,_0x1a190f)=>this[_0x5adf('0x5')](_0x5adf('0x1a'),_0x1a190f)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5adf('0x4')](_0x5adf('0x19'),0x0),this[_0x5adf('0x4')](_0x5adf('0xd'),!0x1),this[_0x5adf('0x4')](_0x5adf('0x0'),!0x1),this[_0x5adf('0x4')]('length',0x0),this[_0x5adf('0x4')](_0x5adf('0x18'),''),this[_0x5adf('0xb')]=_0x5ba1b(()=>this[_0x5adf('0x1')]()),this[_0x5adf('0x11')]=this[_0x5adf('0x1b')](),this['content'][_0x5adf('0xc')](_0x55c8fb),this[_0x5adf('0x7')]=_0x55c8fb;const _0x1d4079=this[_0x5adf('0x10')];this[_0x5adf('0x3')]({'tag':_0x5adf('0x9'),'attributes':{'class':['ck',_0x5adf('0x17'),_0x5adf('0x13'),_0x1d4079['if'](_0x5adf('0xd'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5adf('0x11')]});}[_0x5adf('0xa')](){super['render'](),this[_0x5adf('0x6')]['add'](this[_0x5adf('0x12')]),this[_0x5adf('0x14')][_0x5adf('0x15')](this['element']),this[_0x5adf('0xb')][_0x5adf('0x16')](this[_0x5adf('0x12')]);}[_0x5adf('0x2')](){this[_0x5adf('0x11')]['clear'](),this[_0x5adf('0x14')][_0x5adf('0x2')](),this['focusTracker']['destroy'](),this[_0x5adf('0xb')][_0x5adf('0xf')](),super[_0x5adf('0x2')]();}[_0x5adf('0xe')](){this[_0x5adf('0x12')][_0x5adf('0xe')]();}[_0x5adf('0x1')](){const _0x4e5ec7=this[_0x5adf('0x12')][_0x5adf('0x8')];_0x4e5ec7&&(this[_0x5adf('0x19')]=_0x4e5ec7);}}
23
+ const _0x4978=['keystrokes','clear','ck-annotation-wrapper--active','type','isActive','setTemplate','isDirty','focus','set','listenTo','clientHeight','focusTracker','Esc','detach','length','div','element','add','fire','_mutationObserver','destroy','ck-rounded-corners','render','content','height','bindTemplate','targetRect','attach','_updateHeight'];(function(_0x42c95a,_0x49788e){const _0x223e85=function(_0x5ae1a5){while(--_0x5ae1a5){_0x42c95a['push'](_0x42c95a['shift']());}};_0x223e85(++_0x49788e);}(_0x4978,0x17c));const _0x223e=function(_0x42c95a,_0x49788e){_0x42c95a=_0x42c95a-0x0;let _0x223e85=_0x4978[_0x42c95a];return _0x223e85;};import{View as _0x146a39}from'ckeditor5/src/ui';import{FocusTracker as _0x4c4409,KeystrokeHandler as _0x1254e7,uid as _0x25b69b}from'ckeditor5/src/utils';import _0x39d89a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class S extends _0x146a39{constructor(_0x102757,_0x46c650){super(_0x102757),this['id']=_0x25b69b(),this[_0x223e('0x8')]=new _0x4c4409(),this[_0x223e('0x1a')]=new _0x1254e7(),this[_0x223e('0x1a')][_0x223e('0x5')](_0x223e('0x9'),(_0x5b60df,_0x5d500e)=>this[_0x223e('0xf')]('Esc',_0x5d500e)),this['set'](_0x223e('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x223e('0x5')](_0x223e('0x15'),0x0),this['set'](_0x223e('0x1'),!0x1),this['set'](_0x223e('0x3'),!0x1),this[_0x223e('0x5')](_0x223e('0xb'),0x0),this[_0x223e('0x5')](_0x223e('0x0'),''),this['_mutationObserver']=_0x39d89a(()=>this[_0x223e('0x19')]()),this[_0x223e('0x14')]=this['createCollection'](),this[_0x223e('0x14')][_0x223e('0xe')](_0x46c650),this['mainView']=_0x46c650;const _0x555d10=this[_0x223e('0x16')];this[_0x223e('0x2')]({'tag':_0x223e('0xc'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x223e('0x12'),_0x555d10['if'](_0x223e('0x1'),_0x223e('0x1c'))],'tabindex':-0x1},'children':this[_0x223e('0x14')]});}[_0x223e('0x13')](){super[_0x223e('0x13')](),this[_0x223e('0x8')][_0x223e('0xe')](this['element']),this[_0x223e('0x1a')][_0x223e('0x6')](this['element']),this[_0x223e('0x10')][_0x223e('0x18')](this[_0x223e('0xd')]);}[_0x223e('0x11')](){this[_0x223e('0x14')][_0x223e('0x1b')](),this['keystrokes'][_0x223e('0x11')](),this[_0x223e('0x8')][_0x223e('0x11')](),this[_0x223e('0x10')][_0x223e('0xa')](),super[_0x223e('0x11')]();}[_0x223e('0x4')](){this[_0x223e('0xd')][_0x223e('0x4')]();}[_0x223e('0x19')](){const _0x2f7c5b=this['element'][_0x223e('0x7')];_0x2f7c5b&&(this[_0x223e('0x15')]=_0x2f7c5b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d9f=['_mutationObserver','top','bind','set','setTemplate','bottom','render','element','height','content','bindTemplate','createCollection','updateHeight','ck-sidebar-item','destroy','isAnimationDisabled','clientHeight','detach','attach','_targetTop'];(function(_0x1c3a0b,_0x5d9f57){const _0x189dd0=function(_0x4d06b7){while(--_0x4d06b7){_0x1c3a0b['push'](_0x1c3a0b['shift']());}};_0x189dd0(++_0x5d9f57);}(_0x5d9f,0x6b));const _0x189d=function(_0x1c3a0b,_0x5d9f57){_0x1c3a0b=_0x1c3a0b-0x0;let _0x189dd0=_0x5d9f[_0x1c3a0b];return _0x189dd0;};import{View as _0x5a04fc}from'ckeditor5/src/ui';import{toUnit as _0x28f1b0}from'ckeditor5/src/utils';import _0x40690c from'../../utils/createmutationobserver';const gt=_0x28f1b0('px');export default class V extends _0x5a04fc{constructor(_0x4fef88){super(_0x4fef88),this['set']('top'),this[_0x189d('0x10')]('height',0x0),this[_0x189d('0xf')](_0x189d('0x12'))['to'](this,_0x189d('0xe'),this,_0x189d('0x1'),(_0x160580,_0xd3467f)=>(_0x160580||0x0)+_0xd3467f),this[_0x189d('0x10')](_0x189d('0x8'),!0x1),this[_0x189d('0xd')]=_0x40690c(()=>this[_0x189d('0x5')]()),this[_0x189d('0xc')]=null,this[_0x189d('0x2')]=this[_0x189d('0x4')]();const _0x42917e=this[_0x189d('0x3')];this[_0x189d('0x11')]({'tag':'div','attributes':{'class':[_0x189d('0x6'),_0x42917e['to'](_0x189d('0x8'),_0x2f2292=>_0x2f2292?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x42917e['to'](_0x189d('0xe'),gt)}},'children':this[_0x189d('0x2')]});}['render'](){super[_0x189d('0x13')](),this[_0x189d('0xd')][_0x189d('0xb')](this[_0x189d('0x0')]);}[_0x189d('0x5')](){const _0x83fd3d=this['element'][_0x189d('0x9')];_0x83fd3d&&(this[_0x189d('0x1')]=_0x83fd3d);}[_0x189d('0x7')](){this['content']['clear'](),this[_0x189d('0xd')][_0x189d('0xa')](),super[_0x189d('0x7')]();}}
23
+ const _0x180e=['createCollection','clientHeight','set','bind','updateHeight','render','setTemplate','div','ck-sidebar-item--no-animation','_targetTop','destroy','height','bindTemplate','_mutationObserver','element','bottom','content','top','attach','detach','clear','isAnimationDisabled'];(function(_0x206dfd,_0x180e23){const _0x4b01c5=function(_0x47274b){while(--_0x47274b){_0x206dfd['push'](_0x206dfd['shift']());}};_0x4b01c5(++_0x180e23);}(_0x180e,0xec));const _0x4b01=function(_0x206dfd,_0x180e23){_0x206dfd=_0x206dfd-0x0;let _0x4b01c5=_0x180e[_0x206dfd];return _0x4b01c5;};import{View as _0x1933e7}from'ckeditor5/src/ui';import{toUnit as _0x5926c5}from'ckeditor5/src/utils';import _0x3570d7 from'../../utils/createmutationobserver';const ft=_0x5926c5('px');export default class ct extends _0x1933e7{constructor(_0x325e8d){super(_0x325e8d),this[_0x4b01('0x8')](_0x4b01('0x1')),this[_0x4b01('0x8')]('height',0x0),this[_0x4b01('0x9')](_0x4b01('0x15'))['to'](this,'top',this,_0x4b01('0x11'),(_0xc56dee,_0x12d122)=>(_0xc56dee||0x0)+_0x12d122),this[_0x4b01('0x8')]('isAnimationDisabled',!0x1),this['_mutationObserver']=_0x3570d7(()=>this['updateHeight']()),this[_0x4b01('0xf')]=null,this[_0x4b01('0x0')]=this[_0x4b01('0x6')]();const _0x289be2=this[_0x4b01('0x12')];this[_0x4b01('0xc')]({'tag':_0x4b01('0xd'),'attributes':{'class':['ck-sidebar-item',_0x289be2['to'](_0x4b01('0x5'),_0x2cfc3d=>_0x2cfc3d?_0x4b01('0xe'):'')],'style':{'top':_0x289be2['to'](_0x4b01('0x1'),ft)}},'children':this[_0x4b01('0x0')]});}[_0x4b01('0xb')](){super[_0x4b01('0xb')](),this[_0x4b01('0x13')][_0x4b01('0x2')](this[_0x4b01('0x14')]);}[_0x4b01('0xa')](){const _0x176bfd=this[_0x4b01('0x14')][_0x4b01('0x7')];_0x176bfd&&(this['height']=_0x176bfd);}[_0x4b01('0x10')](){this[_0x4b01('0x0')][_0x4b01('0x4')](),this[_0x4b01('0x13')][_0x4b01('0x3')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30c3=['set','class','setTemplate','ck-reset','div','list','createCollection','bindTemplate','minHeight'];(function(_0xed5014,_0x30c38f){const _0x178aa0=function(_0x3ea671){while(--_0x3ea671){_0xed5014['push'](_0xed5014['shift']());}};_0x178aa0(++_0x30c38f);}(_0x30c3,0xa2));const _0x178a=function(_0xed5014,_0x30c38f){_0xed5014=_0xed5014-0x0;let _0x178aa0=_0x30c3[_0xed5014];return _0x178aa0;};import{View as _0x278cfa}from'ckeditor5/src/ui';import{toUnit as _0x6dd516}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x6dd516('px');export default class T extends _0x278cfa{constructor(_0x54db50){super(_0x54db50);const _0x590762=this[_0x178a('0x7')];this['set'](_0x178a('0x8'),0x0),this[_0x178a('0x0')]('class',''),this['list']=this[_0x178a('0x6')](),this[_0x178a('0x2')]({'tag':_0x178a('0x4'),'attributes':{'class':['ck','ck-sidebar',_0x178a('0x3'),_0x590762['to'](_0x178a('0x1'))],'style':{'minHeight':_0x590762['to'](_0x178a('0x8'),_0x1056b2=>_0x1056b2?gt(_0x1056b2+0xa):null)}},'children':this[_0x178a('0x5')]});}}
23
+ const _0x300b=['class','list','ck-sidebar','createCollection','minHeight','setTemplate','set'];(function(_0x2e453f,_0x300b24){const _0x10c099=function(_0x41ba89){while(--_0x41ba89){_0x2e453f['push'](_0x2e453f['shift']());}};_0x10c099(++_0x300b24);}(_0x300b,0x126));const _0x10c0=function(_0x2e453f,_0x300b24){_0x2e453f=_0x2e453f-0x0;let _0x10c099=_0x300b[_0x2e453f];return _0x10c099;};import{View as _0x43ae25}from'ckeditor5/src/ui';import{toUnit as _0x12c1a3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12c1a3('px');export default class at extends _0x43ae25{constructor(_0x1cc185){super(_0x1cc185);const _0x5a2b4b=this['bindTemplate'];this[_0x10c0('0x6')](_0x10c0('0x4'),0x0),this[_0x10c0('0x6')](_0x10c0('0x0'),''),this[_0x10c0('0x1')]=this[_0x10c0('0x3')](),this[_0x10c0('0x5')]({'tag':'div','attributes':{'class':['ck',_0x10c0('0x2'),'ck-reset',_0x5a2b4b['to'](_0x10c0('0x0'))],'style':{'minHeight':_0x5a2b4b['to'](_0x10c0('0x4'),_0x358f96=>_0x358f96?ft(_0x358f96+0xa):null)}},'children':this[_0x10c0('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x169e=['widesidebar-detach-not-attached','activeAnnotation','off','removeEventListener','refresh','stopListening','_annotations','_destroyEditorAnnotationsIntegration','_editorAnnotations','isAttached','ready','set','_integrateWithEditorAnnotations','setActiveAnnotation','requires','_attachToContainer','EditorAnnotations','hasDomSelection','add','register','_throttledPositioningRefresh','WideSidebar','addEventListener','high','pluginName','container','plugins','resize','widesidebar-attach-already-attached','wideSidebar','_detachFromContainer','_activeAnnotation','change:container','stop','context','uiUpdate','listenTo','remove','editors','refreshPositioning','has','blur','switchTo','getOrderedSelectedAnnotations','get','ck-sidebar--wide','detach','updateTargetRect','attach'];(function(_0x5542e7,_0x169e45){const _0x31236d=function(_0x434294){while(--_0x434294){_0x5542e7['push'](_0x5542e7['shift']());}};_0x31236d(++_0x169e45);}(_0x169e,0x1ca));const _0x3123=function(_0x5542e7,_0x169e45){_0x5542e7=_0x5542e7-0x0;let _0x31236d=_0x169e[_0x5542e7];return _0x31236d;};import{ContextPlugin as _0x20b92f}from'ckeditor5/src/core';import _0x2c81a3 from'./annotationsuis';import _0x6f2571 from'./sidebar';import{CKEditorError as _0x7fcb2c,Collection as _0x4d7e75}from'ckeditor5/src/utils';import{throttle as _0x1c865e}from'lodash-es';export default class i extends _0x20b92f{static get[_0x3123('0x2e')](){return[_0x6f2571,_0x2c81a3];}static get[_0x3123('0x7')](){return _0x3123('0x4');}constructor(_0x37a96b){super(_0x37a96b),this[_0x3123('0x29')]=!0x1,this[_0x3123('0x2b')](_0x3123('0x21'),null),this[_0x3123('0x26')]=null,this[_0x3123('0x28')]=new _0x4d7e75(),this[_0x3123('0x3')]=_0x1c865e(()=>{this[_0x3123('0x26')][_0x3123('0x16')]();},0x190,{'leading':!0x1});}['init'](){const _0xdd4cc9=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x2c81a3),_0x34d007=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x6f2571);_0xdd4cc9[_0x3123('0x2')]('wideSidebar',this),_0x34d007[_0x3123('0x8')]&&_0xdd4cc9[_0x3123('0x19')](_0x3123('0xc'));}[_0x3123('0x2d')](_0x21d5ec){if(_0x21d5ec===this[_0x3123('0x21')])return;const _0x511109=this['context'][_0x3123('0x9')]['get'](_0x6f2571);_0x511109[_0x3123('0xe')]=_0x21d5ec;const _0x2ac4cb=this[_0x3123('0x21')];this[_0x3123('0x21')]=_0x21d5ec,_0x511109[_0x3123('0x24')]({'blurredAnnotation':_0x2ac4cb,'activatedAnnotation':this[_0x3123('0x21')]});}[_0x3123('0x1f')](_0x2f4f2b){this['_annotations']=_0x2f4f2b;const _0xbe80cb=this[_0x3123('0x11')]['plugins'][_0x3123('0x1b')]('Sidebar');if(_0xbe80cb[_0x3123('0x26')]=_0x2f4f2b,this[_0x3123('0x29')])throw new _0x7fcb2c(_0x3123('0xb'),this);this[_0x3123('0x29')]=!0x0,this[_0x3123('0x13')](_0xbe80cb,'set:container',()=>{this[_0x3123('0x1d')](),this[_0x3123('0x13')](_0xbe80cb,_0x3123('0xf'),_0x30220b=>{_0x30220b[_0x3123('0x22')](),this['attach'](_0x2f4f2b);});}),_0xbe80cb[_0x3123('0x2f')]({'viewClass':_0x3123('0x1c')});const _0x2490ed=_0x469c10=>{_0x469c10[_0x3123('0x1e')](),_0xbe80cb['addAnnotation'](_0x469c10);};for(const _0x186a58 of _0x2f4f2b)_0x2490ed(_0x186a58);this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x1'),(_0x34f142,_0x56497c)=>{_0x2490ed(_0x56497c);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x14'),(_0x2cec4f,_0x50851b,_0x2a4be8)=>{_0xbe80cb['rearrange']({'removedAnnotation':_0x50851b,'previousAnnotation':_0x2f4f2b['get'](_0x2a4be8-0x1),'nextAnnotation':_0x2f4f2b['get'](_0x2a4be8+0x1)}),_0x50851b===this[_0x3123('0x21')]&&this[_0x3123('0x2d')](null);},{'priority':_0x3123('0x6')}),this[_0x3123('0x13')](_0x2f4f2b,'focus',(_0x1446d3,_0x4792ac)=>{this['setActiveAnnotation'](_0x4792ac);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x18'),()=>{this[_0x3123('0x2d')](null);});const _0x3f4860=this['context'][_0x3123('0x15')]?this[_0x3123('0x11')][_0x3123('0x15')]:new _0x4d7e75([this[_0x3123('0x11')]]);for(const _0x5881ec of _0x3f4860)this[_0x3123('0x2c')](_0x5881ec);this[_0x3123('0x13')](_0x3f4860,_0x3123('0x1'),(_0x16d712,_0x546826)=>{this[_0x3123('0x13')](_0x546826,_0x3123('0x2a'),()=>{this[_0x3123('0x2c')](_0x546826);});}),this[_0x3123('0x13')](_0x3f4860,_0x3123('0x14'),(_0x5abde6,_0x208097)=>{_0x208097[_0x3123('0x9')][_0x3123('0x17')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x208097[_0x3123('0x9')]['get'](_0x3123('0x30')));}),window[_0x3123('0x5')](_0x3123('0xa'),this[_0x3123('0x3')]),this['_annotations'][_0x3123('0x16')]();}[_0x3123('0x1d')](){if(!this['isAttached'])throw new _0x7fcb2c(_0x3123('0x20'),this);this[_0x3123('0x2d')](null);const _0x5061db=this[_0x3123('0x11')][_0x3123('0x9')]['get'](_0x6f2571);_0x5061db[_0x3123('0xd')](this[_0x3123('0x26')]),this[_0x3123('0x25')](_0x5061db),this[_0x3123('0x25')](this[_0x3123('0x26')]),this[_0x3123('0x25')](this['context'][_0x3123('0x15')]);for(const _0x11105f of Array['from'](this[_0x3123('0x28')]))this[_0x3123('0x27')](_0x11105f);window[_0x3123('0x23')](_0x3123('0xa'),this['_throttledPositioningRefresh']),this[_0x3123('0x3')]['cancel'](),this['activeAnnotation']=null,this[_0x3123('0x29')]=!0x1;}['destroy'](){this['isAttached']&&this[_0x3123('0x1d')]();}[_0x3123('0x2c')](_0x238c68){const _0xc1eb75=_0x238c68[_0x3123('0x9')][_0x3123('0x1b')](_0x3123('0x30'));if(!_0xc1eb75)return;const _0x5affe6=()=>{const _0x118e7c=_0xc1eb75[_0x3123('0x1a')]({'annotations':this[_0x3123('0x26')],'activeAnnotation':this[_0x3123('0x21')]});this[_0x3123('0x2d')](_0x118e7c[0x0]||null);};this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x24'),_0x5affe6),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x18'),(_0x45576e,{isAnnotationTracked:_0x14f3c1})=>{this[_0x3123('0x21')]&&_0x14f3c1(this[_0x3123('0x21')])&&this['setActiveAnnotation'](null);}),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x12'),()=>{this[_0x3123('0x26')]['refreshPositioning']();}),this[_0x3123('0x13')](this[_0x3123('0x26')],'blur',_0x12a7c5=>{_0xc1eb75[_0x3123('0x0')]()&&(_0x5affe6(),_0x12a7c5[_0x3123('0x10')]());},{'priority':_0x3123('0x6')}),this['_editorAnnotations'][_0x3123('0x1')](_0xc1eb75);}[_0x3123('0x27')](_0x3d355d){_0x3d355d&&(this[_0x3123('0x25')](_0x3d355d),this[_0x3123('0x28')]['remove'](_0x3d355d));}}
23
+ const _0x1c09=['from','_integrateWithEditorAnnotations','plugins','addEventListener','focus','ready','rearrange','WideSidebar','blur','editors','add','_detachFromContainer','wideSidebar','stopListening','hasDomSelection','set:container','register','set','context','init','widesidebar-detach-not-attached','refresh','has','switchTo','removeEventListener','_annotations','_editorAnnotations','addAnnotation','high','activeAnnotation','stop','cancel','setActiveAnnotation','Sidebar','isAttached','change:container','pluginName','listenTo','resize','remove','attach','widesidebar-attach-already-attached','updateTargetRect','uiUpdate','off','EditorAnnotations','requires','detach','_destroyEditorAnnotationsIntegration','refreshPositioning','_throttledPositioningRefresh','ck-sidebar--wide','getOrderedSelectedAnnotations','get'];(function(_0x49e85b,_0x1c090b){const _0x159278=function(_0x8dacd7){while(--_0x8dacd7){_0x49e85b['push'](_0x49e85b['shift']());}};_0x159278(++_0x1c090b);}(_0x1c09,0x19a));const _0x1592=function(_0x49e85b,_0x1c090b){_0x49e85b=_0x49e85b-0x0;let _0x159278=_0x1c09[_0x49e85b];return _0x159278;};import{ContextPlugin as _0x511b34}from'ckeditor5/src/core';import _0x58ba6a from'./annotationsuis';import _0x17ca9a from'./sidebar';import{CKEditorError as _0x3b9337,Collection as _0x13dde0}from'ckeditor5/src/utils';import{throttle as _0x1b46fd}from'lodash-es';export default class i extends _0x511b34{static get[_0x1592('0xe')](){return[_0x17ca9a,_0x58ba6a];}static get[_0x1592('0x4')](){return _0x1592('0x1d');}constructor(_0x4d4e15){super(_0x4d4e15),this[_0x1592('0x2')]=!0x1,this[_0x1592('0x27')](_0x1592('0x33'),null),this[_0x1592('0x2f')]=null,this[_0x1592('0x30')]=new _0x13dde0(),this[_0x1592('0x12')]=_0x1b46fd(()=>{this['_annotations']['refreshPositioning']();},0x190,{'leading':!0x1});}[_0x1592('0x29')](){const _0x3a1b56=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x58ba6a),_0xaf092b=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x3a1b56[_0x1592('0x26')](_0x1592('0x22'),this),_0xaf092b['container']&&_0x3a1b56[_0x1592('0x2d')](_0x1592('0x22'));}[_0x1592('0x0')](_0x33cd04){if(_0x33cd04===this[_0x1592('0x33')])return;const _0x2acbfa=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x2acbfa['_activeAnnotation']=_0x33cd04;const _0x2928d7=this['activeAnnotation'];this[_0x1592('0x33')]=_0x33cd04,_0x2acbfa[_0x1592('0x2b')]({'blurredAnnotation':_0x2928d7,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x525b45){this['_annotations']=_0x525b45;const _0xce7d7d=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x1592('0x1'));if(_0xce7d7d[_0x1592('0x2f')]=_0x525b45,this[_0x1592('0x2')])throw new _0x3b9337(_0x1592('0x9'),this);this[_0x1592('0x2')]=!0x0,this['listenTo'](_0xce7d7d,_0x1592('0x25'),()=>{this[_0x1592('0xf')](),this[_0x1592('0x5')](_0xce7d7d,_0x1592('0x3'),_0x470b93=>{_0x470b93[_0x1592('0xc')](),this[_0x1592('0x8')](_0x525b45);});}),_0xce7d7d['_attachToContainer']({'viewClass':_0x1592('0x13')});const _0x493c0c=_0xe918dd=>{_0xe918dd[_0x1592('0xa')](),_0xce7d7d[_0x1592('0x31')](_0xe918dd);};for(const _0x2404a3 of _0x525b45)_0x493c0c(_0x2404a3);this['listenTo'](_0x525b45,'add',(_0x1f0b75,_0x24908a)=>{_0x493c0c(_0x24908a);}),this['listenTo'](_0x525b45,_0x1592('0x7'),(_0xde60ab,_0x3e8ac9,_0xb558d9)=>{_0xce7d7d[_0x1592('0x1c')]({'removedAnnotation':_0x3e8ac9,'previousAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9-0x1),'nextAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9+0x1)}),_0x3e8ac9===this['activeAnnotation']&&this[_0x1592('0x0')](null);},{'priority':_0x1592('0x32')}),this[_0x1592('0x5')](_0x525b45,_0x1592('0x1a'),(_0x517bc9,_0x8b97a5)=>{this[_0x1592('0x0')](_0x8b97a5);}),this[_0x1592('0x5')](_0x525b45,'blur',()=>{this[_0x1592('0x0')](null);});const _0x2ab434=this[_0x1592('0x28')][_0x1592('0x1f')]?this[_0x1592('0x28')][_0x1592('0x1f')]:new _0x13dde0([this['context']]);for(const _0xa43372 of _0x2ab434)this[_0x1592('0x17')](_0xa43372);this[_0x1592('0x5')](_0x2ab434,'add',(_0x4747d0,_0x57675b)=>{this[_0x1592('0x5')](_0x57675b,_0x1592('0x1b'),()=>{this['_integrateWithEditorAnnotations'](_0x57675b);});}),this[_0x1592('0x5')](_0x2ab434,_0x1592('0x7'),(_0x3b313e,_0x34a714)=>{_0x34a714[_0x1592('0x18')][_0x1592('0x2c')]('EditorAnnotations')&&this[_0x1592('0x10')](_0x34a714[_0x1592('0x18')][_0x1592('0x15')]('EditorAnnotations'));}),window[_0x1592('0x19')](_0x1592('0x6'),this[_0x1592('0x12')]),this['_annotations'][_0x1592('0x11')]();}[_0x1592('0xf')](){if(!this['isAttached'])throw new _0x3b9337(_0x1592('0x2a'),this);this[_0x1592('0x0')](null);const _0xbc81c4=this['context'][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0xbc81c4[_0x1592('0x21')](this[_0x1592('0x2f')]),this[_0x1592('0x23')](_0xbc81c4),this[_0x1592('0x23')](this['_annotations']),this['stopListening'](this[_0x1592('0x28')][_0x1592('0x1f')]);for(const _0x3a5e87 of Array[_0x1592('0x16')](this[_0x1592('0x30')]))this[_0x1592('0x10')](_0x3a5e87);window[_0x1592('0x2e')]('resize',this['_throttledPositioningRefresh']),this[_0x1592('0x12')][_0x1592('0x35')](),this[_0x1592('0x33')]=null,this[_0x1592('0x2')]=!0x1;}['destroy'](){this[_0x1592('0x2')]&&this[_0x1592('0xf')]();}[_0x1592('0x17')](_0x57e869){const _0x33505f=_0x57e869['plugins'][_0x1592('0x15')](_0x1592('0xd'));if(!_0x33505f)return;const _0x240285=()=>{const _0xe8f660=_0x33505f[_0x1592('0x14')]({'annotations':this[_0x1592('0x2f')],'activeAnnotation':this[_0x1592('0x33')]});this[_0x1592('0x0')](_0xe8f660[0x0]||null);};this[_0x1592('0x5')](_0x33505f,_0x1592('0x2b'),_0x240285),this['listenTo'](_0x33505f,_0x1592('0x1e'),(_0x410e73,{isAnnotationTracked:_0x367cba})=>{this[_0x1592('0x33')]&&_0x367cba(this[_0x1592('0x33')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x33505f,_0x1592('0xb'),()=>{this[_0x1592('0x2f')][_0x1592('0x11')]();}),this[_0x1592('0x5')](this['_annotations'],_0x1592('0x1e'),_0x19992a=>{_0x33505f[_0x1592('0x24')]()&&(_0x240285(),_0x19992a[_0x1592('0x34')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1592('0x20')](_0x33505f);}['_destroyEditorAnnotationsIntegration'](_0x6bb4d6){_0x6bb4d6&&(this[_0x1592('0x23')](_0x6bb4d6),this[_0x1592('0x30')][_0x1592('0x7')](_0x6bb4d6));}}