@ckeditor/ckeditor5-comments 34.0.0 → 35.0.1

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 (81) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/comments.js +1 -1
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/es.js +1 -1
  10. package/build/translations/fi.js +1 -0
  11. package/build/translations/fr.js +1 -1
  12. package/build/translations/he.js +1 -0
  13. package/build/translations/it.js +1 -1
  14. package/build/translations/ja.js +1 -1
  15. package/build/translations/lt.js +1 -0
  16. package/build/translations/lv.js +1 -0
  17. package/build/translations/ms.js +1 -0
  18. package/build/translations/pt-br.js +1 -1
  19. package/build/translations/pt.js +1 -0
  20. package/build/translations/sr.js +1 -1
  21. package/build/translations/sv.js +1 -0
  22. package/build/translations/th.js +1 -0
  23. package/build/translations/ur.js +1 -0
  24. package/build/translations/vi.js +1 -0
  25. package/lang/translations/af.po +67 -0
  26. package/lang/translations/ar.po +71 -0
  27. package/lang/translations/bg.po +67 -0
  28. package/lang/translations/bn.po +67 -0
  29. package/lang/translations/ca.po +67 -0
  30. package/lang/translations/es.po +2 -1
  31. package/lang/translations/fi.po +67 -0
  32. package/lang/translations/fr.po +2 -1
  33. package/lang/translations/he.po +69 -0
  34. package/lang/translations/it.po +2 -1
  35. package/lang/translations/ja.po +3 -3
  36. package/lang/translations/lt.po +69 -0
  37. package/lang/translations/lv.po +68 -0
  38. package/lang/translations/ms.po +66 -0
  39. package/lang/translations/pt-br.po +2 -1
  40. package/lang/translations/pt.po +68 -0
  41. package/lang/translations/sr.po +3 -3
  42. package/lang/translations/sv.po +67 -0
  43. package/lang/translations/th.po +66 -0
  44. package/lang/translations/ur.po +67 -0
  45. package/lang/translations/vi.po +66 -0
  46. package/package.json +3 -3
  47. package/src/annotations/annotation.js +1 -1
  48. package/src/annotations/annotationcollection.js +1 -1
  49. package/src/annotations/annotations.js +1 -1
  50. package/src/annotations/annotationsuis.js +1 -1
  51. package/src/annotations/editorannotations.js +1 -1
  52. package/src/annotations/inlineannotations.js +1 -1
  53. package/src/annotations/narrowsidebar.js +1 -1
  54. package/src/annotations/sidebar.js +1 -1
  55. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  56. package/src/annotations/view/annotationview.js +1 -1
  57. package/src/annotations/view/sidebaritemview.js +1 -1
  58. package/src/annotations/view/sidebarview.js +1 -1
  59. package/src/annotations/widesidebar.js +1 -1
  60. package/src/comments/addcommentthreadcommand.js +1 -1
  61. package/src/comments/commentsediting.js +1 -1
  62. package/src/comments/commentsrepository.js +1 -1
  63. package/src/comments/commentsui.js +1 -1
  64. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  65. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  66. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  67. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  68. package/src/comments/ui/commentthreadcontroller.js +1 -1
  69. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  70. package/src/comments/ui/view/basecommentview.js +1 -1
  71. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  72. package/src/comments/ui/view/commentcontentview.js +1 -1
  73. package/src/comments/ui/view/commentinputview.js +1 -1
  74. package/src/comments/ui/view/commentslistview.js +1 -1
  75. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  76. package/src/comments/ui/view/commentthreadview.js +1 -1
  77. package/src/comments/ui/view/commentview.js +1 -1
  78. package/src/comments.js +1 -1
  79. package/src/commentsonly.js +1 -1
  80. package/src/utils/common-translations.js +1 -1
  81. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6239=['listenTo','blur','delete','getByInnerView','clear','sort','view','left','remove','_focusTracker','annotationcollection-not-existing-item','getByView','refreshPositioning','focusTracker','get','getIndex','change:isFocused','isFocused','destroy','length','_getOrderInContent','set','add','stopListening','targetRect','focusableElements','has','innerView','from','fire','_viewToAnnotation','focus','_innerViewToAnnotation'];(function(_0x23461a,_0x6239ed){const _0x4b10f3=function(_0x4bc498){while(--_0x4bc498){_0x23461a['push'](_0x23461a['shift']());}};_0x4b10f3(++_0x6239ed);}(_0x6239,0xf8));const _0x4b10=function(_0x23461a,_0x6239ed){_0x23461a=_0x23461a-0x0;let _0x4b10f3=_0x6239[_0x23461a];return _0x4b10f3;};import{CKEditorError as _0x2626b9,Collection as _0x4d184b,FocusTracker as _0x1f8475}from'ckeditor5/src/utils';export default class x extends _0x4d184b{constructor(_0x2f1b7b=[]){super(),this[_0x4b10('0xf')]=new Map(),this[_0x4b10('0xd')]=new Map(),this[_0x4b10('0x19')]=new _0x1f8475(),this['_focusTracker']['on'](_0x4b10('0x20'),(_0x358ac4,_0x7b52d8,_0x43edcc)=>{_0x43edcc||this[_0x4b10('0xc')](_0x4b10('0x11'));});for(const _0x5ce581 of _0x2f1b7b)this['add'](_0x5ce581);}get[_0x4b10('0x0')](){return this[_0x4b10('0x19')][_0x4b10('0x0')];}['add'](_0x4c6b92){if(this[_0x4b10('0x9')](_0x4c6b92))throw new _0x2626b9('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation'][_0x4b10('0x4')](_0x4c6b92['innerView'],_0x4c6b92),this['_viewToAnnotation'][_0x4b10('0x4')](_0x4c6b92[_0x4b10('0x16')],_0x4c6b92);for(const _0xdcec84 of _0x4c6b92[_0x4b10('0x8')])this[_0x4b10('0x19')][_0x4b10('0x5')](_0xdcec84);this[_0x4b10('0x10')](_0x4c6b92[_0x4b10('0x8')],'add',(_0x1a5642,_0x3a327c)=>{this['_focusTracker']['add'](_0x3a327c);}),this['listenTo'](_0x4c6b92[_0x4b10('0x8')],'remove',(_0x3a241b,_0x46a82f)=>{this[_0x4b10('0x19')][_0x4b10('0x18')](_0x46a82f);}),this[_0x4b10('0x10')](_0x4c6b92['view'][_0x4b10('0x1d')],_0x4b10('0x20'),(_0x201759,_0x10bce7,_0x30a0f6)=>{_0x30a0f6&&this['fire'](_0x4b10('0xe'),_0x4c6b92);});const _0x53b8c4=this[_0x4b10('0x3')](_0x4c6b92);super[_0x4b10('0x5')](_0x4c6b92,_0x53b8c4),_0x4c6b92['updateTargetRect']();}[_0x4b10('0x18')](_0x3e70df){if(!this['has'](_0x3e70df))throw new _0x2626b9(_0x4b10('0x1a'),null);this[_0x4b10('0x6')](_0x3e70df[_0x4b10('0x16')]['focusTracker']),this[_0x4b10('0x6')](_0x3e70df[_0x4b10('0x8')]);for(const _0xb8501 of _0x3e70df['focusableElements'])this[_0x4b10('0x19')][_0x4b10('0x18')](_0xb8501);this[_0x4b10('0xd')]['delete'](_0x3e70df['view']),this['_innerViewToAnnotation'][_0x4b10('0x12')](_0x3e70df[_0x4b10('0xa')]),super['remove'](_0x3e70df);}[_0x4b10('0x13')](_0x43e1e4){return this['_innerViewToAnnotation'][_0x4b10('0x1e')](_0x43e1e4);}[_0x4b10('0x1b')](_0x4325b8){return this[_0x4b10('0xd')][_0x4b10('0x1e')](_0x4325b8);}[_0x4b10('0x1')](){super[_0x4b10('0x14')](),this[_0x4b10('0x6')](),this['_innerViewToAnnotation']['clear'](),this[_0x4b10('0xd')][_0x4b10('0x14')](),this[_0x4b10('0x19')][_0x4b10('0x1')]();}[_0x4b10('0x1c')](){for(const _0x300718 of this)_0x300718['updateTargetRect']();this['_sort']();}['_sort'](){const _0x307042=Array[_0x4b10('0xb')](this)[_0x4b10('0x15')]((_0x7caf42,_0x2cc358)=>y(_0x7caf42[_0x4b10('0x7')],_0x2cc358['targetRect']));for(let _0x1d8716=_0x307042[_0x4b10('0x2')]-0x1;_0x1d8716>0x0;_0x1d8716--){const _0x14e801=_0x307042[_0x1d8716];_0x1d8716!==this[_0x4b10('0x1f')](_0x14e801)&&(this[_0x4b10('0x18')](_0x14e801),this['add'](_0x14e801,_0x1d8716));}}[_0x4b10('0x3')](_0x3a968d){let _0xb9264f=0x0;const _0x53d16d=_0x3a968d['targetRect'];if(!_0x53d16d)return this['_items'][_0x4b10('0x2')];for(const _0x1df4ea of this){const _0x3bf1c4=_0x1df4ea[_0x4b10('0x7')];if(_0x3bf1c4){if(y(_0x53d16d,_0x3bf1c4)<0x0)return _0xb9264f;_0xb9264f++;}}return _0xb9264f;}}export function bindAnnotationCollections({source:_0x5b84d8,target:_0x4d8f38,filter:_0x4e10e5}){for(const _0x350bff of _0x5b84d8)_0x4e10e5(_0x350bff)&&_0x4d8f38[_0x4b10('0x5')](_0x350bff);_0x4d8f38[_0x4b10('0x10')](_0x5b84d8,'add',(_0x2ce330,_0xa238a6)=>{_0x4e10e5(_0xa238a6)&&_0x4d8f38[_0x4b10('0x5')](_0xa238a6);}),_0x4d8f38['listenTo'](_0x5b84d8,_0x4b10('0x18'),(_0x18f13a,_0x227824)=>{_0x4d8f38[_0x4b10('0x9')](_0x227824)&&_0x4d8f38[_0x4b10('0x18')](_0x227824);});}function y(_0x80fb6e,_0x20f6a8){if(null===_0x80fb6e&&null===_0x20f6a8)return 0x0;if(null===_0x80fb6e)return-0x1;if(null===_0x20f6a8)return 0x1;const _0x4782cb=_0x80fb6e['top']-_0x20f6a8['top'];return 0x0==_0x4782cb?_0x80fb6e[_0x4b10('0x17')]-_0x20f6a8[_0x4b10('0x17')]:_0x4782cb;}
23
+ const _0xafb7=['annotationcollection-not-existing-item','isFocused','delete','innerView','fire','blur','targetRect','_sort','view','add','updateTargetRect','focus','_focusTracker','listenTo','stopListening','clear','sort','getByInnerView','remove','from','has','_getOrderInContent','focusTracker','refreshPositioning','change:isFocused','left','annotationcollection-duplicated-item','destroy','top','_items','focusableElements','_innerViewToAnnotation','length','_viewToAnnotation'];(function(_0x951682,_0xafb7c7){const _0x90dfe=function(_0x1585aa){while(--_0x1585aa){_0x951682['push'](_0x951682['shift']());}};_0x90dfe(++_0xafb7c7);}(_0xafb7,0x8b));const _0x90df=function(_0x951682,_0xafb7c7){_0x951682=_0x951682-0x0;let _0x90dfe=_0xafb7[_0x951682];return _0x90dfe;};import{CKEditorError as _0x20b3b7,Collection as _0x2a00e4,FocusTracker as _0x381050}from'ckeditor5/src/utils';export default class x extends _0x2a00e4{constructor(_0x4ee508=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x90df('0x1e')]=new Map(),this[_0x90df('0x9')]=new _0x381050(),this['_focusTracker']['on']('change:isFocused',(_0x57fb42,_0x13c642,_0x9437d5)=>{_0x9437d5||this[_0x90df('0x1')](_0x90df('0x2'));});for(const _0x524527 of _0x4ee508)this[_0x90df('0x6')](_0x524527);}get[_0x90df('0x20')](){return this[_0x90df('0x9')][_0x90df('0x20')];}[_0x90df('0x6')](_0x50c9bb){if(this[_0x90df('0x11')](_0x50c9bb))throw new _0x20b3b7(_0x90df('0x17'),null);this[_0x90df('0x1c')]['set'](_0x50c9bb[_0x90df('0x0')],_0x50c9bb),this[_0x90df('0x1e')]['set'](_0x50c9bb[_0x90df('0x5')],_0x50c9bb);for(const _0x11a4b7 of _0x50c9bb[_0x90df('0x1b')])this[_0x90df('0x9')][_0x90df('0x6')](_0x11a4b7);this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0x6'),(_0x59bbaa,_0x5b1f73)=>{this['_focusTracker']['add'](_0x5b1f73);}),this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0xf'),(_0x5c8335,_0x29b1e9)=>{this[_0x90df('0x9')][_0x90df('0xf')](_0x29b1e9);}),this[_0x90df('0xa')](_0x50c9bb[_0x90df('0x5')]['focusTracker'],_0x90df('0x15'),(_0x1ec774,_0x36b52b,_0x51af0e)=>{_0x51af0e&&this['fire'](_0x90df('0x8'),_0x50c9bb);});const _0x19e7b0=this[_0x90df('0x12')](_0x50c9bb);super['add'](_0x50c9bb,_0x19e7b0),_0x50c9bb[_0x90df('0x7')]();}[_0x90df('0xf')](_0x1293d2){if(!this['has'](_0x1293d2))throw new _0x20b3b7(_0x90df('0x1f'),null);this[_0x90df('0xb')](_0x1293d2[_0x90df('0x5')][_0x90df('0x13')]),this[_0x90df('0xb')](_0x1293d2['focusableElements']);for(const _0x15ddd8 of _0x1293d2[_0x90df('0x1b')])this[_0x90df('0x9')]['remove'](_0x15ddd8);this[_0x90df('0x1e')][_0x90df('0x21')](_0x1293d2[_0x90df('0x5')]),this[_0x90df('0x1c')][_0x90df('0x21')](_0x1293d2[_0x90df('0x0')]),super[_0x90df('0xf')](_0x1293d2);}[_0x90df('0xe')](_0x497751){return this[_0x90df('0x1c')]['get'](_0x497751);}['getByView'](_0x378cbb){return this[_0x90df('0x1e')]['get'](_0x378cbb);}[_0x90df('0x18')](){super[_0x90df('0xc')](),this[_0x90df('0xb')](),this[_0x90df('0x1c')][_0x90df('0xc')](),this[_0x90df('0x1e')]['clear'](),this[_0x90df('0x9')][_0x90df('0x18')]();}[_0x90df('0x14')](){for(const _0x3870e6 of this)_0x3870e6[_0x90df('0x7')]();this[_0x90df('0x4')]();}[_0x90df('0x4')](){const _0x36854f=Array[_0x90df('0x10')](this)[_0x90df('0xd')]((_0x176b9f,_0x57c17d)=>y(_0x176b9f[_0x90df('0x3')],_0x57c17d[_0x90df('0x3')]));for(let _0x2578e7=_0x36854f[_0x90df('0x1d')]-0x1;_0x2578e7>0x0;_0x2578e7--){const _0xaa43fe=_0x36854f[_0x2578e7];_0x2578e7!==this['getIndex'](_0xaa43fe)&&(this[_0x90df('0xf')](_0xaa43fe),this[_0x90df('0x6')](_0xaa43fe,_0x2578e7));}}[_0x90df('0x12')](_0x3a1ba5){let _0x3a9c80=0x0;const _0x5070e0=_0x3a1ba5['targetRect'];if(!_0x5070e0)return this[_0x90df('0x1a')][_0x90df('0x1d')];for(const _0x12e6e4 of this){const _0x4b30b9=_0x12e6e4['targetRect'];if(_0x4b30b9){if(y(_0x5070e0,_0x4b30b9)<0x0)return _0x3a9c80;_0x3a9c80++;}}return _0x3a9c80;}}export function bindAnnotationCollections({source:_0x42d77c,target:_0x23989d,filter:_0x80e597}){for(const _0x52769e of _0x42d77c)_0x80e597(_0x52769e)&&_0x23989d[_0x90df('0x6')](_0x52769e);_0x23989d[_0x90df('0xa')](_0x42d77c,'add',(_0x23f430,_0x23f79a)=>{_0x80e597(_0x23f79a)&&_0x23989d[_0x90df('0x6')](_0x23f79a);}),_0x23989d['listenTo'](_0x42d77c,_0x90df('0xf'),(_0x1431c6,_0x5271b2)=>{_0x23989d[_0x90df('0x11')](_0x5271b2)&&_0x23989d[_0x90df('0xf')](_0x5271b2);});}function y(_0x2203af,_0x3abf14){if(null===_0x2203af&&null===_0x3abf14)return 0x0;if(null===_0x2203af)return-0x1;if(null===_0x3abf14)return 0x1;const _0x14825c=_0x2203af[_0x90df('0x19')]-_0x3abf14[_0x90df('0x19')];return 0x0==_0x14825c?_0x2203af[_0x90df('0x16')]-_0x3abf14[_0x90df('0x16')]:_0x14825c;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59ce=['activate','fire','activeAnnotations','pluginName','change:isVisible','_removeActiveAnnotation','createAnnotationView','deactivateAll','_visibleAnnotations','refreshVisibility','Annotations','_activateAnnotation','collection','_bindAnnotationsToVisibleAnnotations','delete','add','remove','destroy','set','listenTo','has','getByInnerView','isVisible','refreshPositioning'];(function(_0x15b2b8,_0x59ce5e){const _0x16414c=function(_0xb5eeba){while(--_0xb5eeba){_0x15b2b8['push'](_0x15b2b8['shift']());}};_0x16414c(++_0x59ce5e);}(_0x59ce,0xbf));const _0x1641=function(_0x15b2b8,_0x59ce5e){_0x15b2b8=_0x15b2b8-0x0;let _0x16414c=_0x59ce[_0x15b2b8];return _0x16414c;};import{ContextPlugin as _0x29299a}from'ckeditor5/src/core';import _0x376d19 from'./annotation';import _0x44e106 from'./annotationcollection';import _0x316304 from'./view/annotationview';export default class V extends _0x29299a{static get[_0x1641('0x4')](){return _0x1641('0xb');}constructor(_0x50df98){super(_0x50df98),this[_0x1641('0xd')]=new _0x44e106(),this[_0x1641('0x9')]=new _0x44e106(),this[_0x1641('0x13')](_0x1641('0x3'),new Set()),this[_0x1641('0xe')]();}[_0x1641('0x10')](_0x1f816f){this['collection']['add'](_0x1f816f);}[_0x1641('0x11')](_0x370475){this[_0x1641('0xd')]['remove'](_0x370475),_0x370475[_0x1641('0x12')]();}['refreshVisibility'](){for(const _0x347290 of this[_0x1641('0xd')])_0x347290[_0x1641('0xa')]();}[_0x1641('0x0')](){this['_visibleAnnotations'][_0x1641('0x0')]();}[_0x1641('0x16')](_0x252a8e){return this['collection'][_0x1641('0x16')](_0x252a8e);}[_0x1641('0x8')](){this[_0x1641('0x2')]('_deactivateAllAnnotations');}[_0x1641('0x12')](){for(const _0xca92f6 of this[_0x1641('0xd')])_0xca92f6[_0x1641('0x12')]();this[_0x1641('0x9')][_0x1641('0x12')](),this[_0x1641('0xd')][_0x1641('0x12')](),super['destroy']();}[_0x1641('0x1')](_0x5ca698){this[_0x1641('0x2')](_0x1641('0xc'),_0x5ca698);}['createAnnotation'](_0x47fd55){return new _0x376d19(_0x47fd55);}[_0x1641('0x7')](_0x39865c,_0x1c65e9){return new _0x316304(_0x39865c,_0x1c65e9);}['_addActiveAnnotation'](_0x13a4b2){const _0x4a6e96=new Set(this[_0x1641('0x3')]);_0x4a6e96[_0x1641('0x10')](_0x13a4b2),this[_0x1641('0x3')]=_0x4a6e96;}[_0x1641('0x6')](_0x14bba7){const _0x27c57c=new Set(this[_0x1641('0x3')]);_0x27c57c[_0x1641('0xf')](_0x14bba7),this[_0x1641('0x3')]=_0x27c57c;}[_0x1641('0xe')](){const _0xc7a83a=this[_0x1641('0xd')],_0x232f61=this['_visibleAnnotations'];function _0x3d966a(_0x3579a3){const _0x41b961=_0x3579a3['source'];_0x41b961[_0x1641('0x17')]&&!_0x232f61[_0x1641('0x15')](_0x41b961)?_0x232f61[_0x1641('0x10')](_0x41b961):!_0x41b961[_0x1641('0x17')]&&_0x232f61[_0x1641('0x15')](_0x41b961)&&_0x232f61[_0x1641('0x11')](_0x41b961);}this[_0x1641('0x14')](_0xc7a83a,'add',(_0x113c4b,_0x2fa33a)=>{_0x2fa33a[_0x1641('0x17')]&&_0x232f61[_0x1641('0x10')](_0x2fa33a),this[_0x1641('0x14')](_0x2fa33a,'change:isVisible',_0x3d966a);}),this[_0x1641('0x14')](_0xc7a83a,_0x1641('0x11'),(_0x9eefc9,_0x577f07)=>{_0x232f61[_0x1641('0x15')](_0x577f07)&&_0x232f61[_0x1641('0x11')](_0x577f07),this['stopListening'](_0x577f07,_0x1641('0x5'),_0x3d966a);});}}
23
+ const _0x5498=['remove','isVisible','createAnnotationView','stopListening','source','add','refreshPositioning','activeAnnotations','change:isVisible','has','Annotations','_deactivateAllAnnotations','fire','collection','_removeActiveAnnotation','set','_activateAnnotation','createAnnotation','_visibleAnnotations','deactivateAll','_bindAnnotationsToVisibleAnnotations','destroy','activate','listenTo','pluginName','getByInnerView'];(function(_0x52c4df,_0x5498ba){const _0x1fde21=function(_0x4e7cf9){while(--_0x4e7cf9){_0x52c4df['push'](_0x52c4df['shift']());}};_0x1fde21(++_0x5498ba);}(_0x5498,0x1c0));const _0x1fde=function(_0x52c4df,_0x5498ba){_0x52c4df=_0x52c4df-0x0;let _0x1fde21=_0x5498[_0x52c4df];return _0x1fde21;};import{ContextPlugin as _0x45d1af}from'ckeditor5/src/core';import _0x50a31c from'./annotation';import _0x40052b from'./annotationcollection';import _0x2f517d from'./view/annotationview';export default class V extends _0x45d1af{static get[_0x1fde('0x12')](){return _0x1fde('0x4');}constructor(_0x5ddeb2){super(_0x5ddeb2),this[_0x1fde('0x7')]=new _0x40052b(),this[_0x1fde('0xc')]=new _0x40052b(),this[_0x1fde('0x9')](_0x1fde('0x1'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1fde('0x19')](_0x26147c){this[_0x1fde('0x7')][_0x1fde('0x19')](_0x26147c);}['remove'](_0x2f7090){this[_0x1fde('0x7')][_0x1fde('0x14')](_0x2f7090),_0x2f7090[_0x1fde('0xf')]();}['refreshVisibility'](){for(const _0x233632 of this[_0x1fde('0x7')])_0x233632['refreshVisibility']();}[_0x1fde('0x0')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x1fde('0x13')](_0x2e9c23){return this[_0x1fde('0x7')][_0x1fde('0x13')](_0x2e9c23);}[_0x1fde('0xd')](){this[_0x1fde('0x6')](_0x1fde('0x5'));}[_0x1fde('0xf')](){for(const _0x15fb79 of this[_0x1fde('0x7')])_0x15fb79['destroy']();this[_0x1fde('0xc')][_0x1fde('0xf')](),this[_0x1fde('0x7')][_0x1fde('0xf')](),super['destroy']();}[_0x1fde('0x10')](_0x266dff){this[_0x1fde('0x6')](_0x1fde('0xa'),_0x266dff);}[_0x1fde('0xb')](_0x4b681f){return new _0x50a31c(_0x4b681f);}[_0x1fde('0x16')](_0x175b03,_0x2e2226){return new _0x2f517d(_0x175b03,_0x2e2226);}['_addActiveAnnotation'](_0x40fbff){const _0x16ee51=new Set(this[_0x1fde('0x1')]);_0x16ee51['add'](_0x40fbff),this[_0x1fde('0x1')]=_0x16ee51;}[_0x1fde('0x8')](_0x534c33){const _0x3fd3e6=new Set(this[_0x1fde('0x1')]);_0x3fd3e6['delete'](_0x534c33),this[_0x1fde('0x1')]=_0x3fd3e6;}[_0x1fde('0xe')](){const _0x4af0f6=this[_0x1fde('0x7')],_0x3a3d2c=this[_0x1fde('0xc')];function _0xf10c7(_0x5e26af){const _0x2034bb=_0x5e26af[_0x1fde('0x18')];_0x2034bb['isVisible']&&!_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)?_0x3a3d2c['add'](_0x2034bb):!_0x2034bb[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)&&_0x3a3d2c[_0x1fde('0x14')](_0x2034bb);}this[_0x1fde('0x11')](_0x4af0f6,_0x1fde('0x19'),(_0x4787f3,_0x1c1af5)=>{_0x1c1af5[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x19')](_0x1c1af5),this[_0x1fde('0x11')](_0x1c1af5,'change:isVisible',_0xf10c7);}),this['listenTo'](_0x4af0f6,'remove',(_0x238e95,_0x3850b6)=>{_0x3a3d2c['has'](_0x3850b6)&&_0x3a3d2c[_0x1fde('0x14')](_0x3850b6),this[_0x1fde('0x17')](_0x3850b6,_0x1fde('0x2'),_0xf10c7);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e14=['activeAnnotations','listenTo','register','_removeActiveAnnotation','has','plugins','collection','attach','_uis','pluginName','annotationsuis-register-invalid-interface','push','destroy','_uisData','setActiveAnnotation','deactivate','find','add','function','isActive','size','switchTo','hasActive','_deactivateAllAnnotations','from','requires','get','AnnotationsUIs','set','init','deactivateAll','_setSelectedAnnotations','annotationsuis-activate-missing-ui','change:activeAnnotation','_activateAnnotation','context','delete','activate','_addActiveAnnotation','_visibleAnnotations','type','remove','refilterAnnotations','detach','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','filter'];(function(_0x44dc65,_0x2e1455){const _0x8a12cd=function(_0x495936){while(--_0x495936){_0x44dc65['push'](_0x44dc65['shift']());}};_0x8a12cd(++_0x2e1455);}(_0x2e14,0x185));const _0x8a12=function(_0x44dc65,_0x2e1455){_0x44dc65=_0x44dc65-0x0;let _0x8a12cd=_0x2e14[_0x44dc65];return _0x8a12cd;};import{ContextPlugin as _0x22036e}from'ckeditor5/src/core';import{CKEditorError as _0x38791a}from'ckeditor5/src/utils';import _0x5e9a40,{bindAnnotationCollections as _0x42ec58}from'./annotationcollection';import _0x335386 from'./annotations';export default class I extends _0x22036e{static get[_0x8a12('0xc')](){return[_0x335386];}static get[_0x8a12('0x2b')](){return _0x8a12('0xe');}constructor(_0xd45566){super(_0xd45566),this[_0x8a12('0x20')]=new Set(),this[_0x8a12('0x2a')]=new Map(),this[_0x8a12('0x0')]=new Map();}[_0x8a12('0x10')](){const _0x29ee7b=this[_0x8a12('0x16')][_0x8a12('0x27')][_0x8a12('0xd')](_0x335386);this[_0x8a12('0x23')](_0x29ee7b,_0x8a12('0x15'),(_0x263c9d,_0x39c43d)=>{for(const _0x548c0a of this[_0x8a12('0x20')]){const _0x42ba85=this[_0x8a12('0x2a')][_0x8a12('0xd')](_0x548c0a);(0x0,this[_0x8a12('0x0')][_0x8a12('0xd')](_0x548c0a)[_0x8a12('0x21')])(_0x39c43d)&&_0x42ba85[_0x8a12('0x1')](_0x39c43d);}}),this[_0x8a12('0x23')](_0x29ee7b,_0x8a12('0xa'),()=>{for(const _0x181d75 of this[_0x8a12('0x20')]){this[_0x8a12('0x2a')][_0x8a12('0xd')](_0x181d75)[_0x8a12('0x1')](null);}}),this[_0x8a12('0x23')](_0x29ee7b[_0x8a12('0x1a')],_0x8a12('0x4'),(_0x2e87d1,_0x2dced1)=>{this[_0x8a12('0x1f')](_0x2dced1);});}[_0x8a12('0x9')](){return this[_0x8a12('0x20')][_0x8a12('0x7')]>0x0;}[_0x8a12('0x6')](_0x39daa3){return this['activeUIs'][_0x8a12('0x26')](_0x39daa3);}[_0x8a12('0x18')](_0xf840b5,_0x247229=()=>!0x0){const _0x5943d2=this[_0x8a12('0x16')][_0x8a12('0x27')]['get'](_0x335386);if(!this[_0x8a12('0x2a')][_0x8a12('0x26')](_0xf840b5))throw new _0x38791a(_0x8a12('0x13'),this,{'uiName':_0xf840b5});this[_0x8a12('0x6')](_0xf840b5)&&this[_0x8a12('0x2')](_0xf840b5),this[_0x8a12('0x20')][_0x8a12('0x4')](_0xf840b5);const _0x4b749c=new _0x5e9a40(),_0x38964d=_0x5943d2['_visibleAnnotations'];_0x42ec58({'source':_0x38964d,'target':_0x4b749c,'filter':_0x247229}),this[_0x8a12('0x0')][_0x8a12('0xf')](_0xf840b5,{'collection':_0x4b749c,'filter':_0x247229});const _0x15adf6=this['_uis'][_0x8a12('0xd')](_0xf840b5);_0x15adf6[_0x8a12('0x29')](_0x4b749c),this[_0x8a12('0x23')](_0x15adf6,_0x8a12('0x14'),(_0x412693,_0x5585f7,_0x2351bb,_0x36b7bb)=>{_0x36b7bb&&_0x5943d2[_0x8a12('0x25')](_0x36b7bb),_0x2351bb&&_0x5943d2[_0x8a12('0x19')](_0x2351bb);});}[_0x8a12('0x2')](_0x265ff8){this[_0x8a12('0x20')][_0x8a12('0x17')](_0x265ff8);const _0x3829ac=this[_0x8a12('0x2a')]['get'](_0x265ff8);_0x3829ac[_0x8a12('0x1e')](),this['stopListening'](_0x3829ac),this[_0x8a12('0x0')]['get'](_0x265ff8)[_0x8a12('0x28')][_0x8a12('0x2e')](),this['_uisData'][_0x8a12('0x17')](_0x265ff8);}[_0x8a12('0x8')](_0x2eba1d){const _0x32d79d=this['context'][_0x8a12('0x27')][_0x8a12('0xd')](_0x335386),_0x1b7495=Array[_0x8a12('0xb')](_0x32d79d[_0x8a12('0x22')])[0x0]||null;this[_0x8a12('0x11')](),this[_0x8a12('0x18')](_0x2eba1d);const _0x183112=this[_0x8a12('0x2a')][_0x8a12('0xd')](_0x2eba1d);_0x183112[_0x8a12('0x1')](_0x1b7495),_0x183112[_0x8a12('0x12')]&&_0x1b7495&&_0x183112['_setSelectedAnnotations']([_0x1b7495]);}[_0x8a12('0x11')](){for(const _0x523c96 of this[_0x8a12('0x20')])this[_0x8a12('0x2')](_0x523c96);}[_0x8a12('0x24')](_0x2e9aab,_0x567385){if(this[_0x8a12('0x2a')][_0x8a12('0x26')](_0x2e9aab))throw new _0x38791a('annotationsuis-register-already-registered');if(_0x8a12('0x5')!=typeof _0x567385[_0x8a12('0x29')]||_0x8a12('0x5')!=typeof _0x567385[_0x8a12('0x1e')]||'function'!=typeof _0x567385[_0x8a12('0x1')])throw new _0x38791a(_0x8a12('0x2c'),null);this[_0x8a12('0x2a')]['set'](_0x2e9aab,_0x567385);}[_0x8a12('0x1d')](){const _0x53b0bb=this[_0x8a12('0x16')][_0x8a12('0x27')][_0x8a12('0xd')](_0x335386)[_0x8a12('0x28')],_0x2ea31f=new Map(),_0x116942=Array[_0x8a12('0xb')](this[_0x8a12('0x20')]);for(const _0x83593e of this[_0x8a12('0x20')]){const _0x34f758=this[_0x8a12('0x0')][_0x8a12('0xd')](_0x83593e)['collection'];for(const _0x26ddac of _0x34f758)_0x2ea31f[_0x8a12('0xf')](_0x26ddac,_0x83593e);}for(const _0x5da9a1 of _0x53b0bb){const _0x301c41=_0x2ea31f[_0x8a12('0xd')](_0x5da9a1);this[_0x8a12('0x1f')](_0x5da9a1);const _0x1a86b5=_0x116942[_0x8a12('0x3')](_0x47de3c=>this['_uisData'][_0x8a12('0xd')](_0x47de3c)[_0x8a12('0x21')](_0x5da9a1));_0x301c41!==_0x1a86b5&&(_0x301c41&&this[_0x8a12('0x0')][_0x8a12('0xd')](_0x301c41)[_0x8a12('0x28')][_0x8a12('0x1c')](_0x5da9a1),_0x1a86b5&&this[_0x8a12('0x0')][_0x8a12('0xd')](_0x1a86b5)[_0x8a12('0x28')][_0x8a12('0x4')](_0x5da9a1));}}[_0x8a12('0x2e')](){this[_0x8a12('0x11')](),super[_0x8a12('0x2e')]();}[_0x8a12('0x1f')](_0x416864){const _0x1e0956=[];for(const _0x2cd6f5 of this[_0x8a12('0x20')]){(0x0,this['_uisData'][_0x8a12('0xd')](_0x2cd6f5)['filter'])(_0x416864)&&_0x1e0956[_0x8a12('0x2d')](_0x2cd6f5);}if(_0x1e0956['length']>0x1)throw new _0x38791a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1e0956,'annotationType':_0x416864[_0x8a12('0x1b')]});}}
23
+ const _0x1e14=['plugins','context','function','get','listenTo','pluginName','isActive','push','annotationsuis-annotation-mismatch','find','change:activeAnnotation','annotationsuis-register-already-registered','from','set','setActiveAnnotation','activate','delete','_removeActiveAnnotation','deactivateAll','detach','add','filter','_visibleAnnotations','deactivate','type','stopListening','annotationsuis-activate-missing-ui','collection','destroy','switchTo','_uisData','has','_uis','_deactivateAllAnnotations','_activateAnnotation','activeUIs','AnnotationsUIs','size','annotationsuis-register-invalid-interface','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','init'];(function(_0x1656f8,_0x1e144d){const _0x4305ac=function(_0x374eff){while(--_0x374eff){_0x1656f8['push'](_0x1656f8['shift']());}};_0x4305ac(++_0x1e144d);}(_0x1e14,0xc1));const _0x4305=function(_0x1656f8,_0x1e144d){_0x1656f8=_0x1656f8-0x0;let _0x4305ac=_0x1e14[_0x1656f8];return _0x4305ac;};import{ContextPlugin as _0x2000cf}from'ckeditor5/src/core';import{CKEditorError as _0x4921e7}from'ckeditor5/src/utils';import _0x59794a,{bindAnnotationCollections as _0x3e10e2}from'./annotationcollection';import _0x3c6d73 from'./annotations';export default class I extends _0x2000cf{static get['requires'](){return[_0x3c6d73];}static get[_0x4305('0x16')](){return _0x4305('0xb');}constructor(_0x1b5973){super(_0x1b5973),this[_0x4305('0xa')]=new Set(),this[_0x4305('0x7')]=new Map(),this[_0x4305('0x5')]=new Map();}[_0x4305('0x10')](){const _0x365537=this['context'][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73);this[_0x4305('0x15')](_0x365537,_0x4305('0x9'),(_0x25dd40,_0x5bd58b)=>{for(const _0x3f0995 of this['activeUIs']){const _0x26edbf=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f0995);(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x3f0995)[_0x4305('0x26')])(_0x5bd58b)&&_0x26edbf[_0x4305('0x1f')](_0x5bd58b);}}),this[_0x4305('0x15')](_0x365537,_0x4305('0x8'),()=>{for(const _0x1fd5f3 of this[_0x4305('0xa')]){this[_0x4305('0x7')][_0x4305('0x14')](_0x1fd5f3)[_0x4305('0x1f')](null);}}),this[_0x4305('0x15')](_0x365537['_visibleAnnotations'],'add',(_0x44680a,_0x1e594d)=>{this[_0x4305('0xe')](_0x1e594d);});}['hasActive'](){return this[_0x4305('0xa')][_0x4305('0xc')]>0x0;}['isActive'](_0x342e83){return this[_0x4305('0xa')][_0x4305('0x6')](_0x342e83);}[_0x4305('0x20')](_0x5d6cac,_0x5d8d32=()=>!0x0){const _0x4ab1dd=this[_0x4305('0x12')][_0x4305('0x11')]['get'](_0x3c6d73);if(!this[_0x4305('0x7')][_0x4305('0x6')](_0x5d6cac))throw new _0x4921e7(_0x4305('0x1'),this,{'uiName':_0x5d6cac});this[_0x4305('0x17')](_0x5d6cac)&&this['deactivate'](_0x5d6cac),this[_0x4305('0xa')][_0x4305('0x25')](_0x5d6cac);const _0x4c7d36=new _0x59794a(),_0x267e0c=_0x4ab1dd[_0x4305('0x27')];_0x3e10e2({'source':_0x267e0c,'target':_0x4c7d36,'filter':_0x5d8d32}),this[_0x4305('0x5')][_0x4305('0x1e')](_0x5d6cac,{'collection':_0x4c7d36,'filter':_0x5d8d32});const _0x23dd7f=this[_0x4305('0x7')]['get'](_0x5d6cac);_0x23dd7f['attach'](_0x4c7d36),this[_0x4305('0x15')](_0x23dd7f,_0x4305('0x1b'),(_0x593b14,_0x363410,_0x5758f7,_0x57f490)=>{_0x57f490&&_0x4ab1dd[_0x4305('0x22')](_0x57f490),_0x5758f7&&_0x4ab1dd['_addActiveAnnotation'](_0x5758f7);});}[_0x4305('0x28')](_0x3f02f2){this[_0x4305('0xa')][_0x4305('0x21')](_0x3f02f2);const _0x44d424=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f02f2);_0x44d424[_0x4305('0x24')](),this[_0x4305('0x0')](_0x44d424),this[_0x4305('0x5')][_0x4305('0x14')](_0x3f02f2)[_0x4305('0x2')][_0x4305('0x3')](),this['_uisData']['delete'](_0x3f02f2);}[_0x4305('0x4')](_0x4278fc){const _0x1264c2=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73),_0x566c85=Array[_0x4305('0x1d')](_0x1264c2['activeAnnotations'])[0x0]||null;this[_0x4305('0x23')](),this['activate'](_0x4278fc);const _0x58d637=this[_0x4305('0x7')][_0x4305('0x14')](_0x4278fc);_0x58d637['setActiveAnnotation'](_0x566c85),_0x58d637[_0x4305('0xf')]&&_0x566c85&&_0x58d637[_0x4305('0xf')]([_0x566c85]);}[_0x4305('0x23')](){for(const _0x2e4ab9 of this['activeUIs'])this['deactivate'](_0x2e4ab9);}['register'](_0x1cc07d,_0x1b7a67){if(this['_uis'][_0x4305('0x6')](_0x1cc07d))throw new _0x4921e7(_0x4305('0x1c'));if(_0x4305('0x13')!=typeof _0x1b7a67['attach']||_0x4305('0x13')!=typeof _0x1b7a67[_0x4305('0x24')]||'function'!=typeof _0x1b7a67[_0x4305('0x1f')])throw new _0x4921e7(_0x4305('0xd'),null);this[_0x4305('0x7')][_0x4305('0x1e')](_0x1cc07d,_0x1b7a67);}['refilterAnnotations'](){const _0x25d903=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73)[_0x4305('0x2')],_0x57f492=new Map(),_0x4814de=Array[_0x4305('0x1d')](this['activeUIs']);for(const _0x1425fa of this[_0x4305('0xa')]){const _0x5c1ede=this['_uisData'][_0x4305('0x14')](_0x1425fa)['collection'];for(const _0x8f5122 of _0x5c1ede)_0x57f492[_0x4305('0x1e')](_0x8f5122,_0x1425fa);}for(const _0x2afee5 of _0x25d903){const _0x51c0ec=_0x57f492[_0x4305('0x14')](_0x2afee5);this[_0x4305('0xe')](_0x2afee5);const _0x180929=_0x4814de[_0x4305('0x1a')](_0x34f02d=>this[_0x4305('0x5')][_0x4305('0x14')](_0x34f02d)[_0x4305('0x26')](_0x2afee5));_0x51c0ec!==_0x180929&&(_0x51c0ec&&this[_0x4305('0x5')][_0x4305('0x14')](_0x51c0ec)[_0x4305('0x2')]['remove'](_0x2afee5),_0x180929&&this[_0x4305('0x5')][_0x4305('0x14')](_0x180929)['collection'][_0x4305('0x25')](_0x2afee5));}}[_0x4305('0x3')](){this[_0x4305('0x23')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x52119d){const _0x59463d=[];for(const _0x46bfd4 of this[_0x4305('0xa')]){(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x46bfd4)['filter'])(_0x52119d)&&_0x59463d[_0x4305('0x18')](_0x46bfd4);}if(_0x59463d['length']>0x1)throw new _0x4921e7(_0x4305('0x19'),null,{'matchedUIs':_0x59463d,'annotationType':_0x52119d[_0x4305('0x29')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d02=['blur','model','init','element','isReadOnly','requires','refresh','_editorAnnotationsData','remove','range','selection','document','annotation','_dataCollectors','change:range','function','fire','listenTo','uiUpdate','update','isEqual','innerView','containsRange','getOrderedSelectedAnnotations','editing','add','getRanges','push','has','change:isFocused','addSourceCollector','view','focusTracker','get','collection','delete','getByInnerView','set','cancel','EditorAnnotations','editorannotations-invalid-source-callback','from','editor','hasDomSelection','refreshSelectedViews'];(function(_0x2d6d48,_0x5d02ef){const _0x703ba7=function(_0x402c49){while(--_0x402c49){_0x2d6d48['push'](_0x2d6d48['shift']());}};_0x703ba7(++_0x5d02ef);}(_0x5d02,0x122));const _0x703b=function(_0x2d6d48,_0x5d02ef){_0x2d6d48=_0x2d6d48-0x0;let _0x703ba7=_0x5d02[_0x2d6d48];return _0x703ba7;};import{Plugin as _0x1a1860}from'ckeditor5/src/core';import{CKEditorError as _0x38bc9a}from'ckeditor5/src/utils';import{debounce as _0x2bee78}from'lodash-es';import _0x1d7938 from'./annotations';export default class k extends _0x1a1860{static get[_0x703b('0x1e')](){return[_0x1d7938];}static get['pluginName'](){return _0x703b('0x13');}constructor(_0x8812db){super(_0x8812db),this['_dataCollectors']=new Set();}[_0x703b('0x1b')](){const _0xf5ec75=this[_0x703b('0x16')],_0x2ac575=_0xf5ec75['plugins'][_0x703b('0xd')](_0x1d7938),_0x2aab64=_0xf5ec75[_0x703b('0x1a')][_0x703b('0x24')][_0x703b('0x23')],_0x232d76=_0x2bee78(()=>this[_0x703b('0x18')](),0xa);_0x2aab64['on'](_0x703b('0x27'),(_0x29d245,_0x11a404)=>{_0x11a404['directChange']&&(_0x232d76[_0x703b('0x12')](),this[_0x703b('0x18')]());}),this[_0x703b('0x2a')](_0xf5ec75[_0x703b('0x4')][_0x703b('0xb')][_0x703b('0x24')],_0x703b('0x9'),(_0x5766a2,_0x46da9f,_0x956afa)=>{_0x956afa&&_0x232d76();}),this[_0x703b('0x2a')](_0xf5ec75['ui'][_0x703b('0xc')],_0x703b('0x9'),(_0x80a00,_0x1d40d5,_0x2dbb1c)=>{_0x2dbb1c||_0xf5ec75[_0x703b('0x1d')]||this['fire'](_0x703b('0x19'),{'isAnnotationTracked':_0x3931c0=>this[_0x703b('0x20')][_0x703b('0x8')](_0x3931c0['innerView'])});}),this[_0x703b('0x2a')](this[_0x703b('0x16')]['ui'],_0x703b('0x2c'),()=>this['fire'](_0x703b('0x2b')));const _0x2814e0=new Set();this[_0x703b('0x2a')](_0x2ac575[_0x703b('0xe')],_0x703b('0x5'),(_0x103755,_0x170573)=>{for(const _0x4a1b02 of this[_0x703b('0x20')]['keys']())if(_0x4a1b02===_0x170573[_0x703b('0x1')]){_0xf5ec75['ui']['focusTracker'][_0x703b('0x5')](_0x170573[_0x703b('0xb')][_0x703b('0x1c')]),_0x2814e0[_0x703b('0x5')](_0x170573['view']);break;}}),this[_0x703b('0x2a')](_0x2ac575['collection'],_0x703b('0x21'),(_0x332075,_0x33f688)=>{_0x2814e0[_0x703b('0x8')](_0x33f688[_0x703b('0xb')])&&(_0xf5ec75['ui'][_0x703b('0xc')]['remove'](_0x33f688[_0x703b('0xb')][_0x703b('0x1c')]),_0x2814e0[_0x703b('0xf')](_0x33f688[_0x703b('0xb')]));});}[_0x703b('0x17')](){return this[_0x703b('0x16')][_0x703b('0x4')][_0x703b('0xb')][_0x703b('0x17')];}[_0x703b('0xa')](_0x255b37){if(_0x703b('0x28')!=typeof _0x255b37)throw new _0x38bc9a(_0x703b('0x14'));this[_0x703b('0x26')][_0x703b('0x5')](_0x255b37);}[_0x703b('0x18')](){this[_0x703b('0x29')](_0x703b('0x1f'));}[_0x703b('0x3')]({activeAnnotation:_0x5066fd,annotations:_0x2ec0b0}){const _0x2ae3aa=[],_0x1b9ff2=this[_0x703b('0x16')][_0x703b('0x1a')][_0x703b('0x24')][_0x703b('0x23')],_0x30e1f4=Array['from'](_0x1b9ff2[_0x703b('0x6')]());for(const [_0x278464,_0x4adb68]of this[_0x703b('0x20')]){const _0x42a665=_0x2e9969(_0x4adb68),_0x395bd0=_0x2ec0b0[_0x703b('0x10')](_0x278464);_0x42a665&&_0x395bd0&&_0x2ae3aa[_0x703b('0x7')]({'annotation':_0x395bd0,'range':_0x42a665});}function _0x2e9969(_0x1d6629){for(const _0x5a1657 of _0x1d6629)for(const _0x41e178 of _0x30e1f4)if(_0x5a1657['containsRange'](_0x41e178,!_0x1b9ff2['isCollapsed']))return _0x5a1657;return null;}return _0x2ae3aa['sort']((_0x38b417,_0xf55f6a)=>{const _0x350387=_0x38b417[_0x703b('0x22')],_0x28bdce=_0xf55f6a['range'];if(!_0x350387[_0x703b('0x0')](_0x28bdce)){if(_0x350387[_0x703b('0x2')](_0x28bdce,!0x0))return 0x1;if(_0x28bdce[_0x703b('0x2')](_0x350387,!0x0))return-0x1;}return _0x38b417['annotation']==_0x5066fd?-0x1:_0xf55f6a[_0x703b('0x25')]==_0x5066fd?0x1:0x0;})['map'](_0x101b65=>_0x101b65[_0x703b('0x25')]);}get[_0x703b('0x20')](){const _0x1d1072=new Map();for(const _0x457536 of Array[_0x703b('0x15')](this[_0x703b('0x26')]))for(const [_0x2307e7,_0xa2c4b7]of _0x457536())_0x1d1072[_0x703b('0x11')](_0x2307e7,_0xa2c4b7);return _0x1d1072;}}
23
+ const _0xc155=['plugins','addSourceCollector','has','keys','from','focusTracker','getByInnerView','element','innerView','model','collection','directChange','update','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','editing','sort','hasDomSelection','get','containsRange','uiUpdate','_dataCollectors','getRanges','set','pluginName','listenTo','change:range','document','isReadOnly','fire','push','view','range','isCollapsed','annotation','cancel','change:isFocused','selection','_editorAnnotationsData','remove','map','add','EditorAnnotations','refreshSelectedViews','editor','blur','init','refresh'];(function(_0x18c90d,_0xc15590){const _0x1ec429=function(_0x408b96){while(--_0x408b96){_0x18c90d['push'](_0x18c90d['shift']());}};_0x1ec429(++_0xc15590);}(_0xc155,0xcc));const _0x1ec4=function(_0x18c90d,_0xc15590){_0x18c90d=_0x18c90d-0x0;let _0x1ec429=_0xc155[_0x18c90d];return _0x1ec429;};import{Plugin as _0x595d09}from'ckeditor5/src/core';import{CKEditorError as _0x233116}from'ckeditor5/src/utils';import{debounce as _0x40ff51}from'lodash-es';import _0x2954c9 from'./annotations';export default class k extends _0x595d09{static get['requires'](){return[_0x2954c9];}static get[_0x1ec4('0xc')](){return _0x1ec4('0x1e');}constructor(_0xb14f8f){super(_0xb14f8f),this[_0x1ec4('0x9')]=new Set();}[_0x1ec4('0x22')](){const _0xc18a97=this[_0x1ec4('0x20')],_0x36e361=_0xc18a97[_0x1ec4('0x24')][_0x1ec4('0x6')](_0x2954c9),_0x4d20db=_0xc18a97[_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x24d684=_0x40ff51(()=>this[_0x1ec4('0x1f')](),0xa);_0x4d20db['on'](_0x1ec4('0xe'),(_0x19bd92,_0x3ca9df)=>{_0x3ca9df[_0x1ec4('0x2f')]&&(_0x24d684[_0x1ec4('0x17')](),this[_0x1ec4('0x1f')]());}),this[_0x1ec4('0xd')](_0xc18a97['editing'][_0x1ec4('0x13')][_0x1ec4('0xf')],_0x1ec4('0x18'),(_0x1bbd8b,_0x34f00a,_0x32276e)=>{_0x32276e&&_0x24d684();}),this[_0x1ec4('0xd')](_0xc18a97['ui'][_0x1ec4('0x29')],_0x1ec4('0x18'),(_0x4ac596,_0x5d0794,_0x1abbd2)=>{_0x1abbd2||_0xc18a97[_0x1ec4('0x10')]||this[_0x1ec4('0x11')](_0x1ec4('0x21'),{'isAnnotationTracked':_0x574511=>this['_editorAnnotationsData'][_0x1ec4('0x26')](_0x574511[_0x1ec4('0x2c')])});}),this[_0x1ec4('0xd')](this[_0x1ec4('0x20')]['ui'],_0x1ec4('0x0'),()=>this[_0x1ec4('0x11')](_0x1ec4('0x8')));const _0x29d22b=new Set();this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1d'),(_0x19c11c,_0x2d5701)=>{for(const _0x3ead9f of this[_0x1ec4('0x1a')][_0x1ec4('0x27')]())if(_0x3ead9f===_0x2d5701[_0x1ec4('0x2c')]){_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1d')](_0x2d5701[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['add'](_0x2d5701[_0x1ec4('0x13')]);break;}}),this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1b'),(_0x3805c2,_0xee105b)=>{_0x29d22b[_0x1ec4('0x26')](_0xee105b[_0x1ec4('0x13')])&&(_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1b')](_0xee105b[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['delete'](_0xee105b[_0x1ec4('0x13')]));});}[_0x1ec4('0x5')](){return this[_0x1ec4('0x20')][_0x1ec4('0x3')][_0x1ec4('0x13')][_0x1ec4('0x5')];}[_0x1ec4('0x25')](_0x2f2a30){if('function'!=typeof _0x2f2a30)throw new _0x233116(_0x1ec4('0x2'));this[_0x1ec4('0x9')][_0x1ec4('0x1d')](_0x2f2a30);}[_0x1ec4('0x1f')](){this['fire'](_0x1ec4('0x23'));}[_0x1ec4('0x1')]({activeAnnotation:_0x28fefa,annotations:_0x564371}){const _0x50a85d=[],_0x93cfc=this[_0x1ec4('0x20')][_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x1ded9b=Array[_0x1ec4('0x28')](_0x93cfc[_0x1ec4('0xa')]());for(const [_0x469179,_0x4ad0a2]of this[_0x1ec4('0x1a')]){const _0x510681=_0x236b14(_0x4ad0a2),_0xb973d0=_0x564371[_0x1ec4('0x2a')](_0x469179);_0x510681&&_0xb973d0&&_0x50a85d[_0x1ec4('0x12')]({'annotation':_0xb973d0,'range':_0x510681});}function _0x236b14(_0x9bc714){for(const _0x105437 of _0x9bc714)for(const _0x35631f of _0x1ded9b)if(_0x105437[_0x1ec4('0x7')](_0x35631f,!_0x93cfc[_0x1ec4('0x15')]))return _0x105437;return null;}return _0x50a85d[_0x1ec4('0x4')]((_0x251f4b,_0x325377)=>{const _0xc82b9e=_0x251f4b[_0x1ec4('0x14')],_0x23ce45=_0x325377[_0x1ec4('0x14')];if(!_0xc82b9e['isEqual'](_0x23ce45)){if(_0xc82b9e[_0x1ec4('0x7')](_0x23ce45,!0x0))return 0x1;if(_0x23ce45[_0x1ec4('0x7')](_0xc82b9e,!0x0))return-0x1;}return _0x251f4b[_0x1ec4('0x16')]==_0x28fefa?-0x1:_0x325377[_0x1ec4('0x16')]==_0x28fefa?0x1:0x0;})[_0x1ec4('0x1c')](_0x466d96=>_0x466d96[_0x1ec4('0x16')]);}get[_0x1ec4('0x1a')](){const _0x140a72=new Map();for(const _0x1d7ee5 of Array[_0x1ec4('0x28')](this[_0x1ec4('0x9')]))for(const [_0x38441e,_0x150fe4]of _0x1d7ee5())_0x140a72[_0x1ec4('0xb')](_0x38441e,_0x150fe4);return _0x140a72;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f23=['detach','view','isActive','_selectedAnnotations','change:isFocused','document','afterInit','inline','refresh','_annotations','_addAnnotationToBalloon','visibleView','change:visibleView','requires','InlineAnnotations','inlineannotations-detach-not-attached','clear','_setSelectedAnnotations','editor','get','remove','selection','_manuallyClosed','isAttached','has','getSelection','set','blur','focusTracker','includes','showStack','updatePosition','add','hasView','switchTo','context','editing','delete','isFocused','attach','inlineannotations-attach-already-attached','focus','stopListening','Esc','destroy','_removeAnnotationFromBalloon','getByView','register','activeAnnotation','listenTo','mousedown','_addedAnnotations','pluginName','_balloon','plugins','targetRect','setActiveAnnotation','getOrderedSelectedAnnotations','update','bind','hasActive'];(function(_0x574bcd,_0x2f237){const _0x430660=function(_0xa5f99a){while(--_0xa5f99a){_0x574bcd['push'](_0x574bcd['shift']());}};_0x430660(++_0x2f237);}(_0x2f23,0x1d3));const _0x4306=function(_0x574bcd,_0x2f237){_0x574bcd=_0x574bcd-0x0;let _0x430660=_0x2f23[_0x574bcd];return _0x430660;};import{Plugin as _0x2a0d6f}from'ckeditor5/src/core';import _0x1f7a83 from'./annotationsuis';import _0x18b6ef from'./editorannotations';import{ContextualBalloon as _0x347abb}from'ckeditor5/src/ui';import{MouseObserver as _0x1b8dd5}from'ckeditor5/src/engine';import{CKEditorError as _0x65f77d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x2a0d6f{static get[_0x4306('0x22')](){return[_0x18b6ef,_0x347abb,_0x1f7a83];}static get[_0x4306('0xc')](){return _0x4306('0x23');}constructor(_0x81dc0d){super(_0x81dc0d),_0x81dc0d[_0x4306('0x39')][_0x4306('0x16')]['addObserver'](_0x1b8dd5),this[_0x4306('0x2c')]=!0x1,this[_0x4306('0x2f')](_0x4306('0x8'),null),this[_0x4306('0x1e')]=null,this[_0x4306('0x2b')]=new Set(),this[_0x4306('0xd')]=_0x81dc0d[_0x4306('0xe')][_0x4306('0x28')](_0x347abb),this[_0x4306('0xb')]=new Set(),this[_0x4306('0x18')]=[];}['init'](){const _0x387daa=this[_0x4306('0x27')]['plugins'][_0x4306('0x28')](_0x1f7a83);_0x387daa['context']===this[_0x4306('0x27')]&&(_0x387daa[_0x4306('0x7')](_0x4306('0x1c'),this),this[_0x4306('0x27')]['keystrokes'][_0x4306('0x2f')](_0x4306('0x3'),(_0x4759e5,_0x50c5d1)=>{const _0x2cb24f=this[_0x4306('0xd')];if(this['isAttached']&&_0x2cb24f[_0x4306('0x20')]){const _0x1ccc79=this[_0x4306('0x1e')][_0x4306('0x6')](_0x2cb24f[_0x4306('0x20')]);this['_manuallyClosed'][_0x4306('0x35')](_0x1ccc79),this['_removeAnnotationFromBalloon'](_0x1ccc79),_0x50c5d1();}}));}[_0x4306('0x1b')](){const _0x5c044b=this[_0x4306('0x27')][_0x4306('0xe')][_0x4306('0x28')](_0x1f7a83);_0x5c044b['context']===this['editor']&&(_0x5c044b[_0x4306('0x14')]()||_0x5c044b[_0x4306('0x37')]('inline'));}['setActiveAnnotation'](_0x3705b7){_0x3705b7!==this[_0x4306('0x8')]&&(this[_0x4306('0x8')]&&(this['activeAnnotation'][_0x4306('0x17')]=!0x1),_0x3705b7&&this[_0x4306('0x27')]['ui'][_0x4306('0x31')][_0x4306('0x3b')]&&(this[_0x4306('0x1f')](_0x3705b7,!0x0),_0x3705b7[_0x4306('0x17')]=!0x0),_0x3705b7||this[_0x4306('0x26')]([]),this[_0x4306('0x8')]=_0x3705b7);}[_0x4306('0x3c')](_0x4311e7){this[_0x4306('0x1e')]=_0x4311e7;const _0x55ff4d=this[_0x4306('0x27')][_0x4306('0xe')][_0x4306('0x28')](_0x1f7a83),_0x19f62e=this[_0x4306('0xd')];if(this[_0x4306('0x2c')])throw new _0x65f77d(_0x4306('0x0'),this);if(_0x55ff4d[_0x4306('0x38')]!==this['editor'])throw new _0x65f77d('inlineannotations-not-allowed-with-context',this);const _0x515239=this[_0x4306('0x27')][_0x4306('0xe')]['get']('EditorAnnotations');this[_0x4306('0x9')](_0x515239,_0x4306('0x1d'),function(){const _0x2c774b=_0x515239[_0x4306('0x11')]({'activeAnnotation':this[_0x4306('0x8')],'annotations':this[_0x4306('0x1e')]});this[_0x4306('0x26')](_0x2c774b),this['setActiveAnnotation'](_0x2c774b[0x0]||null);}[_0x4306('0x13')](this)),this[_0x4306('0x9')](_0x515239,_0x4306('0x30'),(_0x7e4748,{isAnnotationTracked:_0x45b200})=>{this['activeAnnotation']&&_0x45b200(this[_0x4306('0x8')])&&(this[_0x4306('0x26')]([]),this['setActiveAnnotation'](null));}),this[_0x4306('0x9')](this[_0x4306('0x27')]['ui'][_0x4306('0x31')],_0x4306('0x19'),(_0x41d6ee,_0x4efe7c,_0x393394)=>{_0x393394||this[_0x4306('0x10')](null);}),this[_0x4306('0x9')](_0x4311e7,_0x4306('0x29'),(_0x1bb998,_0x4612e9)=>{this[_0x4306('0x5')](_0x4612e9),_0x4612e9===this[_0x4306('0x8')]&&this[_0x4306('0x10')](null);}),this['listenTo'](_0x19f62e,_0x4306('0x21'),(_0x53008f,_0xce8f4,_0xf42d96,_0x2dfecf)=>{if(_0x2dfecf&&this[_0x4306('0x2')](_0x2dfecf),!_0xf42d96||!_0x4311e7[_0x4306('0x6')](_0xf42d96))return;const _0x3c9b6e=_0x4311e7[_0x4306('0x6')](_0xf42d96);this[_0x4306('0x9')](_0xf42d96,'change:height',()=>{_0x19f62e[_0x4306('0x34')]();}),this['listenTo'](_0xf42d96,'Esc',()=>{this[_0x4306('0x2b')][_0x4306('0x35')](_0x3c9b6e),this[_0x4306('0x5')](_0x3c9b6e),this[_0x4306('0x27')]['editing'][_0x4306('0x16')][_0x4306('0x1')]();}),this[_0x4306('0x8')]!==_0x3c9b6e&&this['setActiveAnnotation'](_0x3c9b6e);}),this[_0x4306('0x9')](this[_0x4306('0x27')]['ui'],_0x4306('0x12'),()=>{_0x19f62e[_0x4306('0x20')]&&(_0x4311e7[_0x4306('0x6')](_0x19f62e[_0x4306('0x20')])&&_0x19f62e[_0x4306('0x34')]());}),this[_0x4306('0x9')](this['editor'][_0x4306('0x39')][_0x4306('0x16')][_0x4306('0x1a')],_0x4306('0xa'),()=>{this['_manuallyClosed'][_0x4306('0x25')]();}),this[_0x4306('0x27')][_0x4306('0x39')][_0x4306('0x16')][_0x4306('0x1a')][_0x4306('0x2a')]['editableElement']&&this[_0x4306('0x27')]['editing'][_0x4306('0x16')]['focus'](),this[_0x4306('0x2c')]=!0x0;}['detach'](){if(!this[_0x4306('0x2c')])throw new _0x65f77d(_0x4306('0x24'),this);this[_0x4306('0x10')](null);for(const _0x468cbb of this[_0x4306('0xb')])this['_removeAnnotationFromBalloon'](_0x468cbb);this[_0x4306('0x2')](),this[_0x4306('0x2c')]=!0x1;}[_0x4306('0x4')](){this[_0x4306('0x2c')]&&this[_0x4306('0x15')]();}['_setSelectedAnnotations'](_0x5574df){const _0x304462=this[_0x4306('0x18')];for(const _0x2e4875 of _0x304462)_0x5574df['includes'](_0x2e4875)||this['_manuallyClosed']['delete'](_0x2e4875);for(const _0x240efe of this['_annotations'])_0x5574df[_0x4306('0x32')](_0x240efe)||this['_removeAnnotationFromBalloon'](_0x240efe);if(this[_0x4306('0x27')]['ui'][_0x4306('0x31')][_0x4306('0x3b')])for(const _0x29165f of _0x5574df)this[_0x4306('0x1f')](_0x29165f);this[_0x4306('0x18')]=_0x5574df;}['_addAnnotationToBalloon'](_0x38f435,_0x3e2bc2){this['_manuallyClosed'][_0x4306('0x2d')](_0x38f435)||(this['_addedAnnotations']['has'](_0x38f435)||this['_balloon'][_0x4306('0x36')](_0x38f435[_0x4306('0x16')])||(this[_0x4306('0xb')][_0x4306('0x35')](_0x38f435),this[_0x4306('0xd')]['add']({'stackId':_0x38f435[_0x4306('0x16')]['id'],'view':_0x38f435[_0x4306('0x16')],'position':{'target':()=>_0x38f435['target']||_0x38f435[_0x4306('0xf')]||document[_0x4306('0x2e')]()['getRangeAt'](0x0)}})),_0x3e2bc2&&this['_balloon'][_0x4306('0x33')](_0x38f435[_0x4306('0x16')]['id']));}['_removeAnnotationFromBalloon'](_0x12df3a){this[_0x4306('0xb')][_0x4306('0x2d')](_0x12df3a)&&this[_0x4306('0xd')][_0x4306('0x36')](_0x12df3a[_0x4306('0x16')])&&(this[_0x4306('0xb')][_0x4306('0x3a')](_0x12df3a),this['_balloon'][_0x4306('0x29')](_0x12df3a[_0x4306('0x16')]));}}
23
+ const _0x3310=['has','isAttached','switchTo','clear','change:height','hasActive','set','getByView','targetRect','_addAnnotationToBalloon','getSelection','inlineannotations-not-allowed-with-context','annotations','updatePosition','isActive','focus','_setSelectedAnnotations','attach','delete','activeAnnotation','isFocused','_removeAnnotationFromBalloon','listenTo','focusTracker','mousedown','inline','stopListening','add','inlineannotations-attach-already-attached','_manuallyClosed','afterInit','bind','init','detach','hasView','selection','context','_balloon','includes','target','_selectedAnnotations','getRangeAt','Esc','blur','plugins','register','update','_addedAnnotations','visibleView','document','editing','remove','showStack','editableElement','setActiveAnnotation','get','change:isFocused','inlineannotations-detach-not-attached','view','editor','keystrokes'];(function(_0x562da1,_0x331039){const _0x596b1b=function(_0x46ee05){while(--_0x46ee05){_0x562da1['push'](_0x562da1['shift']());}};_0x596b1b(++_0x331039);}(_0x3310,0x1ce));const _0x596b=function(_0x562da1,_0x331039){_0x562da1=_0x562da1-0x0;let _0x596b1b=_0x3310[_0x562da1];return _0x596b1b;};import{Plugin as _0x1fe802}from'ckeditor5/src/core';import _0x7584d1 from'./annotationsuis';import _0x53ad47 from'./editorannotations';import{ContextualBalloon as _0x5a0334}from'ckeditor5/src/ui';import{MouseObserver as _0x3ec191}from'ckeditor5/src/engine';import{CKEditorError as _0x358015}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1fe802{static get['requires'](){return[_0x53ad47,_0x5a0334,_0x7584d1];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x93aa10){super(_0x93aa10),_0x93aa10[_0x596b('0xf')][_0x596b('0x17')]['addObserver'](_0x3ec191),this[_0x596b('0x1b')]=!0x1,this[_0x596b('0x20')](_0x596b('0x2d'),null),this['annotations']=null,this[_0x596b('0x37')]=new Set(),this[_0x596b('0x2')]=_0x93aa10[_0x596b('0x9')][_0x596b('0x14')](_0x5a0334),this['_addedAnnotations']=new Set(),this[_0x596b('0x5')]=[];}[_0x596b('0x3a')](){const _0x3f38ac=this['editor'][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x3f38ac[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x3f38ac[_0x596b('0xa')](_0x596b('0x33'),this),this['editor'][_0x596b('0x19')][_0x596b('0x20')](_0x596b('0x7'),(_0x391a9e,_0x2c8c09)=>{const _0x22b2d7=this[_0x596b('0x2')];if(this[_0x596b('0x1b')]&&_0x22b2d7[_0x596b('0xd')]){const _0xace132=this[_0x596b('0x26')][_0x596b('0x21')](_0x22b2d7['visibleView']);this[_0x596b('0x37')]['add'](_0xace132),this['_removeAnnotationFromBalloon'](_0xace132),_0x2c8c09();}}));}[_0x596b('0x38')](){const _0x322f10=this[_0x596b('0x18')][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x322f10[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x322f10[_0x596b('0x1f')]()||_0x322f10[_0x596b('0x1c')](_0x596b('0x33')));}['setActiveAnnotation'](_0x3b96ca){_0x3b96ca!==this[_0x596b('0x2d')]&&(this['activeAnnotation']&&(this[_0x596b('0x2d')]['isActive']=!0x1),_0x3b96ca&&this[_0x596b('0x18')]['ui'][_0x596b('0x31')]['isFocused']&&(this[_0x596b('0x23')](_0x3b96ca,!0x0),_0x3b96ca[_0x596b('0x28')]=!0x0),_0x3b96ca||this[_0x596b('0x2a')]([]),this['activeAnnotation']=_0x3b96ca);}[_0x596b('0x2b')](_0x566d47){this[_0x596b('0x26')]=_0x566d47;const _0xdc5b69=this[_0x596b('0x18')][_0x596b('0x9')]['get'](_0x7584d1),_0x2ee02a=this['_balloon'];if(this[_0x596b('0x1b')])throw new _0x358015(_0x596b('0x36'),this);if(_0xdc5b69[_0x596b('0x1')]!==this[_0x596b('0x18')])throw new _0x358015(_0x596b('0x25'),this);const _0x360554=this[_0x596b('0x18')]['plugins'][_0x596b('0x14')]('EditorAnnotations');this['listenTo'](_0x360554,'refresh',function(){const _0x274ea2=_0x360554['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x274ea2),this[_0x596b('0x13')](_0x274ea2[0x0]||null);}[_0x596b('0x39')](this)),this['listenTo'](_0x360554,_0x596b('0x8'),(_0x6ea4f5,{isAnnotationTracked:_0x4ffb10})=>{this[_0x596b('0x2d')]&&_0x4ffb10(this[_0x596b('0x2d')])&&(this[_0x596b('0x2a')]([]),this[_0x596b('0x13')](null));}),this['listenTo'](this[_0x596b('0x18')]['ui'][_0x596b('0x31')],_0x596b('0x15'),(_0x25f5b4,_0x538393,_0x15b1bf)=>{_0x15b1bf||this['setActiveAnnotation'](null);}),this['listenTo'](_0x566d47,'remove',(_0x1c0a5e,_0x1d0f93)=>{this[_0x596b('0x2f')](_0x1d0f93),_0x1d0f93===this[_0x596b('0x2d')]&&this[_0x596b('0x13')](null);}),this['listenTo'](_0x2ee02a,'change:visibleView',(_0x3fc138,_0x191a75,_0x25bf5f,_0x5c7951)=>{if(_0x5c7951&&this[_0x596b('0x34')](_0x5c7951),!_0x25bf5f||!_0x566d47[_0x596b('0x21')](_0x25bf5f))return;const _0x4ccaa8=_0x566d47[_0x596b('0x21')](_0x25bf5f);this[_0x596b('0x30')](_0x25bf5f,_0x596b('0x1e'),()=>{_0x2ee02a[_0x596b('0x27')]();}),this['listenTo'](_0x25bf5f,'Esc',()=>{this['_manuallyClosed']['add'](_0x4ccaa8),this['_removeAnnotationFromBalloon'](_0x4ccaa8),this['editor'][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')]();}),this[_0x596b('0x2d')]!==_0x4ccaa8&&this[_0x596b('0x13')](_0x4ccaa8);}),this['listenTo'](this[_0x596b('0x18')]['ui'],_0x596b('0xb'),()=>{_0x2ee02a['visibleView']&&(_0x566d47['getByView'](_0x2ee02a[_0x596b('0xd')])&&_0x2ee02a[_0x596b('0x27')]());}),this[_0x596b('0x30')](this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')],_0x596b('0x32'),()=>{this['_manuallyClosed'][_0x596b('0x1d')]();}),this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')][_0x596b('0x0')][_0x596b('0x12')]&&this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')](),this[_0x596b('0x1b')]=!0x0;}[_0x596b('0x3b')](){if(!this['isAttached'])throw new _0x358015(_0x596b('0x16'),this);this[_0x596b('0x13')](null);for(const _0x27a03b of this[_0x596b('0xc')])this['_removeAnnotationFromBalloon'](_0x27a03b);this[_0x596b('0x34')](),this['isAttached']=!0x1,this[_0x596b('0x26')]=null;}['destroy'](){this[_0x596b('0x1b')]&&this['detach']();}[_0x596b('0x2a')](_0x297975){const _0x2c6ca2=this[_0x596b('0x5')];for(const _0x3c1e91 of _0x2c6ca2)_0x297975[_0x596b('0x3')](_0x3c1e91)||this[_0x596b('0x37')][_0x596b('0x2c')](_0x3c1e91);for(const _0x7d37eb of this[_0x596b('0x26')])_0x297975['includes'](_0x7d37eb)||this['_removeAnnotationFromBalloon'](_0x7d37eb);if(this[_0x596b('0x18')]['ui'][_0x596b('0x31')][_0x596b('0x2e')])for(const _0x5f2bec of _0x297975)this[_0x596b('0x23')](_0x5f2bec);this[_0x596b('0x5')]=_0x297975;}[_0x596b('0x23')](_0x1edfdb,_0x1345b3){this[_0x596b('0x37')][_0x596b('0x1a')](_0x1edfdb)||(this['_addedAnnotations']['has'](_0x1edfdb)||this[_0x596b('0x2')][_0x596b('0x3c')](_0x1edfdb[_0x596b('0x17')])||(this[_0x596b('0xc')][_0x596b('0x35')](_0x1edfdb),this['_balloon'][_0x596b('0x35')]({'stackId':_0x1edfdb[_0x596b('0x17')]['id'],'view':_0x1edfdb['view'],'position':{'target':()=>_0x1edfdb[_0x596b('0x4')]||_0x1edfdb[_0x596b('0x22')]||document[_0x596b('0x24')]()[_0x596b('0x6')](0x0)}})),_0x1345b3&&this[_0x596b('0x2')][_0x596b('0x11')](_0x1edfdb[_0x596b('0x17')]['id']));}[_0x596b('0x2f')](_0x4d3212){this[_0x596b('0xc')][_0x596b('0x1a')](_0x4d3212)&&this['_balloon'][_0x596b('0x3c')](_0x4d3212[_0x596b('0x17')])&&(this[_0x596b('0xc')][_0x596b('0x2c')](_0x4d3212),this['_balloon'][_0x596b('0x10')](_0x4d3212['view']));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e26=['resize','mousedown','_destroyEditorAnnotationsIntegration','change:container','activeAnnotation','destroy','low','delete','remove','_manuallyClosedAnnotationViews','EditorAnnotations','isVisible','listenTo','includes','hasDomSelection','addEventListener','view','editors','blur','init','northArrowSouthEast','high','setActiveAnnotation','narrowsidebar-attach-already-attached','stopPropagation','bodyCollection','northArrowSouthWest','length','has','_attachListeners','narrowsidebar-detach-not-attached','attach','pluginName','content','create','from','_showBalloon','change:height','stop','_throttledRefreshPositioning','Sidebar','get','refresh','element','number','preventClosingBalloon','rearrange','isAttached','annotationType','addAnnotation','_refreshPositioning','register','defaultPositions','unpin','_domEmitter','preventDefault','balloonPanelView','_editorAnnotations','detach','contains','southArrowNorthWest','attachToDom','pin','getSidebarItemView','_annotationToNarrowView','context','_updateBalloonPosition','plugins','isDirty','locale','refreshPositioning','ready','focus','_annotations','target','_hideBalloon','_detachFromContainer','narrowSidebar','esc','_selectedAnnotations','clear','execute','getByView','ck-sidebar--narrow','add','values','stopListening','_setSelectedAnnotations','bind','type','uiUpdate','keydown','keyCode','_detachListeners','removeEventListener','_integrateWithEditorAnnotations','first'];(function(_0x148a9e,_0x5e2673){const _0x58e5df=function(_0x19e3fe){while(--_0x19e3fe){_0x148a9e['push'](_0x148a9e['shift']());}};_0x58e5df(++_0x5e2673);}(_0x5e26,0x69));const _0x58e5=function(_0x148a9e,_0x5e2673){_0x148a9e=_0x148a9e-0x0;let _0x58e5df=_0x5e26[_0x148a9e];return _0x58e5df;};import{ContextPlugin as _0x313156}from'ckeditor5/src/core';import _0x49def1 from'./annotationsuis';import _0x306749 from'./sidebar';import _0x239eb3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x23aed9,BodyCollection as _0x21b295}from'ckeditor5/src/ui';import{CKEditorError as _0x19b1a3,DomEmitterMixin as _0x547266,keyCodes as _0x27fc61,Collection as _0x11c168}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x20a860}from'lodash-es';export default class s extends _0x313156{static get['requires'](){return[_0x306749,_0x49def1];}static get[_0x58e5('0x18')](){return'NarrowSidebar';}constructor(_0xc73979){super(_0xc73979),this[_0x58e5('0x27')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x58e5('0x2e')]=Object[_0x58e5('0x1a')](_0x547266),this[_0x58e5('0x38')]=new Map(),this['set'](_0x58e5('0x5d'),null),this[_0x58e5('0x41')]=null,this[_0x58e5('0x47')]=[],this[_0x58e5('0x31')]=new _0x11c168(),this[_0x58e5('0x1f')]=_0x20a860(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x58e5('0xb')](){this[_0x58e5('0x39')][_0x58e5('0x3b')]['get'](_0x49def1)[_0x58e5('0x2b')](_0x58e5('0x45'),this),this[_0x58e5('0x11')]=new _0x21b295(this[_0x58e5('0x39')][_0x58e5('0x3d')]),this['balloonPanelView']=new _0x23aed9(this['context'][_0x58e5('0x3d')]),this[_0x58e5('0x11')][_0x58e5('0x35')](),this[_0x58e5('0x11')][_0x58e5('0x4c')](this['balloonPanelView']);}['attach'](_0x2034e2){this[_0x58e5('0x41')]=_0x2034e2;const _0x2e4f57=this[_0x58e5('0x39')][_0x58e5('0x3b')][_0x58e5('0x21')](_0x306749),_0x1f506e=this[_0x58e5('0x30')];if(_0x2e4f57[_0x58e5('0x41')]=_0x2034e2,this['isAttached'])throw new _0x19b1a3(_0x58e5('0xf'),this);this[_0x58e5('0x27')]=!0x0,this['listenTo'](_0x2e4f57,'set:container',()=>{this['detach'](),this[_0x58e5('0x4')](_0x2e4f57,_0x58e5('0x5c'),_0x4bd08d=>{_0x4bd08d['off'](),this[_0x58e5('0x17')](_0x2034e2);});}),_0x2e4f57['_attachToContainer']({'viewClass':_0x58e5('0x4b'),'spaceBetweenItems':0x5});const _0x4cb2e8=_0x5660e4=>{const _0x9554b4=new _0x239eb3(this[_0x58e5('0x39')][_0x58e5('0x3d')]);_0x2e4f57[_0x58e5('0x29')](_0x5660e4,_0x9554b4),this['_annotationToNarrowView']['set'](_0x5660e4,_0x9554b4),_0x9554b4[_0x58e5('0x50')](_0x58e5('0x3c'),_0x58e5('0x28'),_0x58e5('0x24'))['to'](_0x5660e4['view'],_0x58e5('0x3c'),_0x58e5('0x51'),_0x58e5('0x13')),_0x9554b4['on'](_0x58e5('0x49'),()=>{this[_0x58e5('0x1')][_0x58e5('0x48')](),_0x1f506e[_0x58e5('0x19')][_0x58e5('0x58')]!==_0x5660e4[_0x58e5('0x8')]?(this[_0x58e5('0x1c')](_0x5660e4),_0x5660e4[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x40')](),this[_0x58e5('0xe')](_0x5660e4)):this[_0x58e5('0xe')](null);});};for(const _0x218b7c of _0x2034e2)_0x4cb2e8(_0x218b7c);this[_0x58e5('0x4')](_0x2034e2,_0x58e5('0x4c'),(_0x390ce7,_0x210add)=>{_0x4cb2e8(_0x210add);}),this['listenTo'](_0x2034e2,_0x58e5('0x0'),(_0x24708f,_0x1a9d5d,_0x34f655)=>{this[_0x58e5('0x38')][_0x58e5('0x21')](_0x1a9d5d)['destroy'](),this['_annotationToNarrowView'][_0x58e5('0x60')](_0x1a9d5d),_0x2e4f57[_0x58e5('0x26')]({'removedAnnotation':_0x1a9d5d,'previousAnnotation':_0x2034e2[_0x58e5('0x21')](_0x34f655-0x1),'nextAnnotation':_0x2034e2[_0x58e5('0x21')](_0x34f655+0x1)}),_0x1a9d5d===this[_0x58e5('0x5d')]&&this[_0x58e5('0xe')](null);},{'priority':_0x58e5('0x5f')}),this[_0x58e5('0x4')](_0x2034e2,_0x58e5('0x40'),(_0x354a5f,_0x38d1f9)=>{this[_0x58e5('0xe')](_0x38d1f9);}),this[_0x58e5('0x4')](_0x2034e2,'blur',()=>{this[_0x58e5('0xe')](null);}),this['_domEmitter'][_0x58e5('0x4')](document,_0x58e5('0x53'),(_0x46742f,_0x1efee6)=>{_0x1efee6[_0x58e5('0x54')]===_0x27fc61[_0x58e5('0x46')]&&_0x1f506e[_0x58e5('0x3')]&&(this[_0x58e5('0x1')][_0x58e5('0x4c')](_0x1f506e['content'][_0x58e5('0x58')]),this[_0x58e5('0x43')](),_0x1efee6[_0x58e5('0x10')](),_0x1efee6[_0x58e5('0x2f')]());}),this[_0x58e5('0x2e')][_0x58e5('0x4')](document,'mousedown',(_0x4480a5,_0x137be4)=>{const _0x25ac4d=_0x137be4[_0x58e5('0x42')];_0x1f506e['isVisible']&&_0x1f506e['element']['contains'](_0x25ac4d)||_0x2e4f57[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x33')](_0x25ac4d)||_0x4480a5[_0x58e5('0x25')]||(this[_0x58e5('0x1')][_0x58e5('0x48')](),this['_hideBalloon'](),this[_0x58e5('0xe')](null));});const _0x30be80=this[_0x58e5('0x39')][_0x58e5('0x9')]?this[_0x58e5('0x39')][_0x58e5('0x9')]:new _0x11c168([this[_0x58e5('0x39')]]);for(const _0x534615 of _0x30be80)this['_integrateWithEditorAnnotations'](_0x534615);this[_0x58e5('0x4')](_0x30be80,_0x58e5('0x4c'),(_0x503a66,_0x530f67)=>{this[_0x58e5('0x4')](_0x530f67,_0x58e5('0x3f'),()=>{this[_0x58e5('0x57')](_0x530f67);});}),this[_0x58e5('0x4')](_0x30be80,_0x58e5('0x0'),(_0x1c79a8,_0x3bef02)=>{_0x3bef02[_0x58e5('0x3b')][_0x58e5('0x14')](_0x58e5('0x2'))&&this[_0x58e5('0x5b')](_0x3bef02[_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x2')));}),window[_0x58e5('0x7')](_0x58e5('0x59'),this[_0x58e5('0x1f')]),this[_0x58e5('0x2a')]();}[_0x58e5('0xe')](_0x384535){if(_0x384535===this[_0x58e5('0x5d')])return;const _0x137bf1=this['context'][_0x58e5('0x3b')]['get']('Sidebar');if(_0x137bf1[_0x58e5('0x22')]({'blurredAnnotation':this[_0x58e5('0x5d')],'activatedAnnotation':_0x384535,'disableAnimationOnActivatedAnnotation':!0x0}),_0x384535)_0x137bf1[_0x58e5('0x37')](_0x384535)?this[_0x58e5('0x1c')](_0x384535):this[_0x58e5('0x43')]();else this['_hideBalloon']();this[_0x58e5('0x5d')]=_0x384535;}[_0x58e5('0x32')](){if(!this[_0x58e5('0x27')])throw new _0x19b1a3(_0x58e5('0x16'),this);this[_0x58e5('0xe')](null);const _0x1c0307=this['context'][_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x20'));this[_0x58e5('0x43')](),Array['from'](this[_0x58e5('0x38')][_0x58e5('0x4d')](),_0x2f3fcc=>_0x2f3fcc[_0x58e5('0x5e')]()),this['_annotationToNarrowView'][_0x58e5('0x48')](),_0x1c0307[_0x58e5('0x44')](this[_0x58e5('0x41')]),this[_0x58e5('0x4e')](),this[_0x58e5('0x2e')][_0x58e5('0x4e')](),this[_0x58e5('0x4e')](this[_0x58e5('0x39')][_0x58e5('0x9')]);for(const _0x4ba6ef of Array[_0x58e5('0x1b')](this[_0x58e5('0x31')]))this[_0x58e5('0x5b')](_0x4ba6ef);window[_0x58e5('0x56')](_0x58e5('0x59'),this['_throttledRefreshPositioning']),this['_throttledRefreshPositioning']['cancel'](),this[_0x58e5('0x47')]=[],this['isAttached']=!0x1,this[_0x58e5('0x41')]=null;}[_0x58e5('0x5e')](){this['isAttached']&&this[_0x58e5('0x32')](),this['bodyCollection']['detachFromDom']();}[_0x58e5('0x57')](_0x5d5311){const _0x14bca9=_0x5d5311[_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x2')),_0x705316=this[_0x58e5('0x39')][_0x58e5('0x3b')][_0x58e5('0x21')](_0x306749),_0x15defa=this['_annotations'],_0x1f7ddc=this[_0x58e5('0x30')],_0x298182=()=>{const _0x37ee04=_0x14bca9['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['_annotations']});this['_setSelectedAnnotations'](_0x37ee04),this[_0x58e5('0xe')](_0x37ee04[0x0]||null);};this[_0x58e5('0x4')](_0x14bca9,'refresh',_0x298182),this[_0x58e5('0x4')](_0x14bca9,'blur',(_0x55767a,{isAnnotationTracked:_0x12774b})=>{this[_0x58e5('0x5d')]&&_0x12774b(this[_0x58e5('0x5d')])&&(this[_0x58e5('0x4f')]([]),this[_0x58e5('0xe')](null));}),this[_0x58e5('0x4')](_0x14bca9,_0x58e5('0x52'),()=>{this[_0x58e5('0x1f')]();}),this[_0x58e5('0x4')](_0x15defa,_0x58e5('0xa'),_0x499a27=>{_0x14bca9[_0x58e5('0x6')]()&&_0x499a27[_0x58e5('0x1e')]();},{'priority':_0x58e5('0xd')}),this[_0x58e5('0x2e')][_0x58e5('0x4')](document,_0x58e5('0x5a'),(_0x34ec50,_0x40b3d6)=>{const _0x34b8fa=_0x40b3d6[_0x58e5('0x42')];_0x1f7ddc[_0x58e5('0x3')]&&_0x1f7ddc[_0x58e5('0x23')]['contains'](_0x34b8fa)||_0x705316[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x33')](_0x34b8fa)||this[_0x58e5('0x5d')]&&_0x14bca9['hasDomSelection']()&&(_0x298182(),_0x34ec50[_0x58e5('0x25')]=!0x0);},{'priority':_0x58e5('0xd')}),this[_0x58e5('0x31')][_0x58e5('0x4c')](_0x14bca9);}[_0x58e5('0x5b')](_0x4413f8){_0x4413f8&&(this['stopListening'](_0x4413f8),this[_0x58e5('0x31')][_0x58e5('0x0')](_0x4413f8));}['_setSelectedAnnotations'](_0x3b3569){for(const _0x2cb21e of this[_0x58e5('0x47')])_0x3b3569[_0x58e5('0x5')](_0x2cb21e)||this[_0x58e5('0x1')][_0x58e5('0x60')](_0x2cb21e[_0x58e5('0x8')]);this[_0x58e5('0x47')]=_0x3b3569;}[_0x58e5('0x2a')](){const _0x473a23=this[_0x58e5('0x30')];this[_0x58e5('0x41')][_0x58e5('0x3e')](),_0x473a23[_0x58e5('0x3')]&&this[_0x58e5('0x3a')]();}[_0x58e5('0x1c')](_0x52eb46){if(this[_0x58e5('0x1')]['has'](_0x52eb46[_0x58e5('0x8')]))return;const _0x1a5be4=this[_0x58e5('0x30')][_0x58e5('0x19')]['first'];_0x1a5be4!==_0x52eb46[_0x58e5('0x8')]?(_0x1a5be4&&this[_0x58e5('0x55')](_0x1a5be4),this[_0x58e5('0x15')](_0x52eb46[_0x58e5('0x8')]),this[_0x58e5('0x30')][_0x58e5('0x19')][_0x58e5('0x48')](),this[_0x58e5('0x30')][_0x58e5('0x19')][_0x58e5('0x4c')](_0x52eb46[_0x58e5('0x8')]),this[_0x58e5('0x3a')]()):this[_0x58e5('0x3a')]();}[_0x58e5('0x3a')](){const _0x1482fd=this[_0x58e5('0x30')]['content'][_0x58e5('0x58')],_0x58bb63=this[_0x58e5('0x41')][_0x58e5('0x4a')](_0x1482fd);if(!this[_0x58e5('0x38')][_0x58e5('0x14')](_0x58bb63))return;const _0x585b6c=this[_0x58e5('0x38')][_0x58e5('0x21')](_0x58bb63)[_0x58e5('0x23')],_0x40257e=function(){const _0x53e990=_0x23aed9[_0x58e5('0x2c')];return[_0x53e990['southArrowNorthEast'],_0x53e990[_0x58e5('0xc')],_0x53e990['southArrowNorth'],_0x53e990['northArrowSouth'],_0x53e990[_0x58e5('0x34')],_0x53e990[_0x58e5('0x12')]];}();this['balloonPanelView'][_0x58e5('0x36')]({'target':_0x585b6c,'positions':_0x40257e});}['_hideBalloon'](){const _0xb05b2a=this[_0x58e5('0x30')],_0x14f037=_0xb05b2a[_0x58e5('0x19')]['first'];_0x14f037&&(this[_0x58e5('0x55')](_0x14f037),_0xb05b2a[_0x58e5('0x2d')](),_0xb05b2a[_0x58e5('0x19')]['clear']());}['_attachListeners'](_0x7c7e73){this[_0x58e5('0x4')](_0x7c7e73,_0x58e5('0x1d'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7c7e73,'Esc',(_0x2105a9,_0x3bd61f)=>{this[_0x58e5('0x1')][_0x58e5('0x4c')](_0x7c7e73),this[_0x58e5('0x43')](),_0x3bd61f();});}[_0x58e5('0x55')](_0x1c3044){this[_0x58e5('0x4e')](_0x1c3044);}}
23
+ const _0x332b=['init','rearrange','has','narrowsidebar-detach-not-attached','low','type','get','first','remove','mousedown','ck-sidebar--narrow','content','attachToDom','execute','_throttledRefreshPositioning','removeEventListener','target','refreshPositioning','cancel','add','values','attach','editors','_selectedAnnotations','delete','getOrderedSelectedAnnotations','ready','from','stopListening','isAttached','_refreshPositioning','narrowsidebar-attach-already-attached','pluginName','set:container','focus','locale','activeAnnotation','includes','change:height','hasDomSelection','stopPropagation','unpin','_showBalloon','balloonPanelView','set','isDirty','destroy','setActiveAnnotation','refresh','preventClosingBalloon','view','Sidebar','pin','EditorAnnotations','high','northArrowSouth','_hideBalloon','NarrowSidebar','resize','element','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','detach','defaultPositions','_updateBalloonPosition','context','clear','listenTo','uiUpdate','_detachListeners','stop','narrowSidebar','blur','annotations','keyCode','_annotations','isVisible','_domEmitter','_setSelectedAnnotations','bodyCollection','southArrowNorthEast','create','_editorAnnotations','preventDefault','plugins','_manuallyClosedAnnotationViews','off','detachFromDom','length','_annotationToNarrowView','contains','_attachListeners'];(function(_0xa98bd8,_0x332b83){const _0x541aa7=function(_0x22f4db){while(--_0x22f4db){_0xa98bd8['push'](_0xa98bd8['shift']());}};_0x541aa7(++_0x332b83);}(_0x332b,0x90));const _0x541a=function(_0xa98bd8,_0x332b83){_0xa98bd8=_0xa98bd8-0x0;let _0x541aa7=_0x332b[_0xa98bd8];return _0x541aa7;};import{ContextPlugin as _0xffe2e}from'ckeditor5/src/core';import _0x505547 from'./annotationsuis';import _0x2cf235 from'./sidebar';import _0x3a0fed from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5de32f,BodyCollection as _0x121e62}from'ckeditor5/src/ui';import{CKEditorError as _0x2617cf,DomEmitterMixin as _0x377e15,keyCodes as _0x396b0e,Collection as _0x3f35f8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x13bba1}from'lodash-es';export default class s extends _0xffe2e{static get['requires'](){return[_0x2cf235,_0x505547];}static get[_0x541a('0x48')](){return _0x541a('0x5');}constructor(_0x39535e){super(_0x39535e),this[_0x541a('0x45')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x541a('0x19')]=Object[_0x541a('0x1d')](_0x377e15),this[_0x541a('0x25')]=new Map(),this[_0x541a('0x54')](_0x541a('0x4c'),null),this[_0x541a('0x15')]=null,this[_0x541a('0x3f')]=[],this['_editorAnnotations']=new _0x3f35f8(),this[_0x541a('0x36')]=_0x13bba1(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x541a('0x28')](){this[_0x541a('0xd')]['plugins'][_0x541a('0x2e')](_0x505547)['register'](_0x541a('0x13'),this),this[_0x541a('0x1b')]=new _0x121e62(this['context'][_0x541a('0x4b')]),this[_0x541a('0x53')]=new _0x5de32f(this[_0x541a('0xd')]['locale']),this[_0x541a('0x1b')][_0x541a('0x34')](),this[_0x541a('0x1b')][_0x541a('0x3b')](this[_0x541a('0x53')]);}['attach'](_0x195575){this[_0x541a('0x15')]=_0x195575;const _0x424509=this[_0x541a('0xd')]['plugins']['get'](_0x2cf235),_0x4852f8=this['balloonPanelView'];if(_0x424509[_0x541a('0x17')]=_0x195575,this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x47'),this);this['isAttached']=!0x0,this['listenTo'](_0x424509,_0x541a('0x49'),()=>{this[_0x541a('0xa')](),this[_0x541a('0xf')](_0x424509,'change:container',_0x14ebfe=>{_0x14ebfe[_0x541a('0x22')](),this[_0x541a('0x3d')](_0x195575);});}),_0x424509['_attachToContainer']({'viewClass':_0x541a('0x32'),'spaceBetweenItems':0x5});const _0x2162c3=_0x3552f3=>{const _0x5f3645=new _0x3a0fed(this[_0x541a('0xd')][_0x541a('0x4b')]);_0x424509['addAnnotation'](_0x3552f3,_0x5f3645),this[_0x541a('0x25')][_0x541a('0x54')](_0x3552f3,_0x5f3645),_0x5f3645['bind']('isDirty','annotationType','number')['to'](_0x3552f3[_0x541a('0x5a')],_0x541a('0x55'),_0x541a('0x2d'),_0x541a('0x24')),_0x5f3645['on'](_0x541a('0x35'),()=>{this['_manuallyClosedAnnotationViews'][_0x541a('0xe')](),_0x4852f8[_0x541a('0x33')][_0x541a('0x2f')]!==_0x3552f3['view']?(this[_0x541a('0x52')](_0x3552f3),_0x3552f3[_0x541a('0x5a')]['element'][_0x541a('0x4a')](),this['setActiveAnnotation'](_0x3552f3)):this[_0x541a('0x57')](null);});};for(const _0x541c3a of _0x195575)_0x2162c3(_0x541c3a);this[_0x541a('0xf')](_0x195575,_0x541a('0x3b'),(_0x57da1e,_0x355843)=>{_0x2162c3(_0x355843);}),this['listenTo'](_0x195575,'remove',(_0x2243cd,_0x326b49,_0x55165f)=>{this[_0x541a('0x25')][_0x541a('0x2e')](_0x326b49)[_0x541a('0x56')](),this[_0x541a('0x25')][_0x541a('0x40')](_0x326b49),_0x424509[_0x541a('0x29')]({'removedAnnotation':_0x326b49,'previousAnnotation':_0x195575['get'](_0x55165f-0x1),'nextAnnotation':_0x195575[_0x541a('0x2e')](_0x55165f+0x1)}),_0x326b49===this[_0x541a('0x4c')]&&this[_0x541a('0x57')](null);},{'priority':_0x541a('0x2c')}),this['listenTo'](_0x195575,'focus',(_0x29c8e8,_0x59f7fc)=>{this['setActiveAnnotation'](_0x59f7fc);}),this[_0x541a('0xf')](_0x195575,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x541a('0x19')][_0x541a('0xf')](document,'keydown',(_0x29059e,_0x20e48d)=>{_0x20e48d[_0x541a('0x16')]===_0x396b0e['esc']&&_0x4852f8['isVisible']&&(this[_0x541a('0x21')][_0x541a('0x3b')](_0x4852f8[_0x541a('0x33')]['first']),this[_0x541a('0x4')](),_0x20e48d[_0x541a('0x50')](),_0x20e48d[_0x541a('0x1f')]());}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x20a93a,_0x5f2866)=>{const _0x105ff4=_0x5f2866[_0x541a('0x38')];_0x4852f8[_0x541a('0x18')]&&_0x4852f8['element'][_0x541a('0x26')](_0x105ff4)||_0x424509[_0x541a('0x5a')]['element'][_0x541a('0x26')](_0x105ff4)||_0x20a93a['preventClosingBalloon']||(this[_0x541a('0x21')][_0x541a('0xe')](),this[_0x541a('0x4')](),this[_0x541a('0x57')](null));});const _0x570716=this[_0x541a('0xd')]['editors']?this['context'][_0x541a('0x3e')]:new _0x3f35f8([this[_0x541a('0xd')]]);for(const _0x1554a1 of _0x570716)this['_integrateWithEditorAnnotations'](_0x1554a1);this[_0x541a('0xf')](_0x570716,'add',(_0x5184a8,_0x4ff103)=>{this[_0x541a('0xf')](_0x4ff103,_0x541a('0x42'),()=>{this[_0x541a('0x9')](_0x4ff103);});}),this[_0x541a('0xf')](_0x570716,_0x541a('0x30'),(_0x4f3e76,_0x56c28c)=>{_0x56c28c[_0x541a('0x20')]['has'](_0x541a('0x1'))&&this[_0x541a('0x8')](_0x56c28c['plugins'][_0x541a('0x2e')](_0x541a('0x1')));}),window['addEventListener']('resize',this[_0x541a('0x36')]),this[_0x541a('0x46')]();}[_0x541a('0x57')](_0x2393b2){if(_0x2393b2===this['activeAnnotation'])return;const _0x1782df=this['context']['plugins']['get'](_0x541a('0x5b'));if(_0x1782df[_0x541a('0x58')]({'blurredAnnotation':this[_0x541a('0x4c')],'activatedAnnotation':_0x2393b2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2393b2)_0x1782df['getSidebarItemView'](_0x2393b2)?this['_showBalloon'](_0x2393b2):this[_0x541a('0x4')]();else this[_0x541a('0x4')]();this[_0x541a('0x4c')]=_0x2393b2;}[_0x541a('0xa')](){if(!this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x2b'),this);this[_0x541a('0x57')](null);const _0x43d06e=this['context']['plugins'][_0x541a('0x2e')](_0x541a('0x5b'));this[_0x541a('0x4')](),Array[_0x541a('0x43')](this[_0x541a('0x25')][_0x541a('0x3c')](),_0xec3509=>_0xec3509[_0x541a('0x56')]()),this[_0x541a('0x25')][_0x541a('0xe')](),_0x43d06e['_detachFromContainer'](this['annotations']),this[_0x541a('0x44')](),this[_0x541a('0x19')][_0x541a('0x44')](),this['stopListening'](this['context'][_0x541a('0x3e')]);for(const _0x4cec6f of Array['from'](this[_0x541a('0x1e')]))this[_0x541a('0x8')](_0x4cec6f);window[_0x541a('0x37')](_0x541a('0x6'),this[_0x541a('0x36')]),this[_0x541a('0x36')][_0x541a('0x3a')](),this[_0x541a('0x3f')]=[],this[_0x541a('0x45')]=!0x1,this['annotations']=null;}[_0x541a('0x56')](){this[_0x541a('0x45')]&&this['detach'](),this['bodyCollection'][_0x541a('0x23')]();}[_0x541a('0x9')](_0x30c6e5){const _0x474fe2=_0x30c6e5[_0x541a('0x20')][_0x541a('0x2e')](_0x541a('0x1')),_0x1afdc3=this['context'][_0x541a('0x20')][_0x541a('0x2e')](_0x2cf235),_0x2cf952=this[_0x541a('0x15')],_0x70c65a=this[_0x541a('0x53')],_0x586ed4=()=>{const _0x3110fc=_0x474fe2[_0x541a('0x41')]({'activeAnnotation':this[_0x541a('0x4c')],'annotations':this[_0x541a('0x15')]});this[_0x541a('0x1a')](_0x3110fc),this['setActiveAnnotation'](_0x3110fc[0x0]||null);};this['listenTo'](_0x474fe2,_0x541a('0x58'),_0x586ed4),this[_0x541a('0xf')](_0x474fe2,'blur',(_0x30e7ef,{isAnnotationTracked:_0x4aa007})=>{this[_0x541a('0x4c')]&&_0x4aa007(this[_0x541a('0x4c')])&&(this[_0x541a('0x1a')]([]),this[_0x541a('0x57')](null));}),this[_0x541a('0xf')](_0x474fe2,_0x541a('0x10'),()=>{this[_0x541a('0x36')]();}),this[_0x541a('0xf')](_0x2cf952,_0x541a('0x14'),_0x4857b5=>{_0x474fe2[_0x541a('0x4f')]()&&_0x4857b5[_0x541a('0x12')]();},{'priority':'high'}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x3027e4,_0x5d7d9b)=>{const _0x3fb3d8=_0x5d7d9b['target'];_0x70c65a[_0x541a('0x18')]&&_0x70c65a[_0x541a('0x7')]['contains'](_0x3fb3d8)||_0x1afdc3[_0x541a('0x5a')][_0x541a('0x7')]['contains'](_0x3fb3d8)||this[_0x541a('0x4c')]&&_0x474fe2[_0x541a('0x4f')]()&&(_0x586ed4(),_0x3027e4[_0x541a('0x59')]=!0x0);},{'priority':_0x541a('0x2')}),this[_0x541a('0x1e')][_0x541a('0x3b')](_0x474fe2);}[_0x541a('0x8')](_0x2c6900){_0x2c6900&&(this[_0x541a('0x44')](_0x2c6900),this[_0x541a('0x1e')]['remove'](_0x2c6900));}['_setSelectedAnnotations'](_0x89c52c){for(const _0x402b26 of this[_0x541a('0x3f')])_0x89c52c[_0x541a('0x4d')](_0x402b26)||this[_0x541a('0x21')][_0x541a('0x40')](_0x402b26[_0x541a('0x5a')]);this[_0x541a('0x3f')]=_0x89c52c;}[_0x541a('0x46')](){const _0x908e06=this[_0x541a('0x53')];this[_0x541a('0x15')][_0x541a('0x39')](),_0x908e06['isVisible']&&this[_0x541a('0xc')]();}[_0x541a('0x52')](_0x45da14){if(this[_0x541a('0x21')][_0x541a('0x2a')](_0x45da14[_0x541a('0x5a')]))return;const _0x47064b=this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0x2f')];_0x47064b!==_0x45da14[_0x541a('0x5a')]?(_0x47064b&&this[_0x541a('0x11')](_0x47064b),this[_0x541a('0x27')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0xe')](),this['balloonPanelView'][_0x541a('0x33')][_0x541a('0x3b')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0xc')]()):this[_0x541a('0xc')]();}[_0x541a('0xc')](){const _0x5dd71a=this[_0x541a('0x53')][_0x541a('0x33')]['first'],_0x2f6f40=this[_0x541a('0x15')]['getByView'](_0x5dd71a);if(!this[_0x541a('0x25')][_0x541a('0x2a')](_0x2f6f40))return;const _0x52a4c6=this['_annotationToNarrowView'][_0x541a('0x2e')](_0x2f6f40)[_0x541a('0x7')],_0x39a040=function(){const _0x5dcf8f=_0x5de32f[_0x541a('0xb')];return[_0x5dcf8f[_0x541a('0x1c')],_0x5dcf8f['northArrowSouthEast'],_0x5dcf8f['southArrowNorth'],_0x5dcf8f[_0x541a('0x3')],_0x5dcf8f['southArrowNorthWest'],_0x5dcf8f['northArrowSouthWest']];}();this[_0x541a('0x53')][_0x541a('0x0')]({'target':_0x52a4c6,'positions':_0x39a040});}[_0x541a('0x4')](){const _0x36b840=this[_0x541a('0x53')],_0x23f01a=_0x36b840['content']['first'];_0x23f01a&&(this['_detachListeners'](_0x23f01a),_0x36b840[_0x541a('0x51')](),_0x36b840['content']['clear']());}['_attachListeners'](_0x39acba){this[_0x541a('0xf')](_0x39acba,_0x541a('0x4e'),()=>this[_0x541a('0xc')]()),this['listenTo'](_0x39acba,'Esc',(_0x973a57,_0x28a6b9)=>{this[_0x541a('0x21')]['add'](_0x39acba),this['_hideBalloon'](),_0x28a6b9();});}[_0x541a('0x11')](_0x31e3f7){this[_0x541a('0x44')](_0x31e3f7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6aa8=['view','_updateLastItem','bind','_sidebarItemViewToAnnotation','refresh','_annotations','container','sidebar.container','isAnimationDisabled','content','_alignAfterItem','getSidebarItemView','context','_getItemAfter','updateHeight','Sidebar','_getTargetTop','top','locale','isActive','_spaceBetweenItems','sidebar.preventScrollOutOfView','get','set','target','unbind','_setItemTop','listenTo','_detachFromContainer','minHeight','appendChild','element','change:top','getIndex','sidebar-setcontainer-invalid-element','stopListening','config','clear','remove','sidebar-attachtocontainer-missing-container','setContainer','bottom','_targetTop','_activeAnnotation','_alignBeforeItem','_alignToTargetRect','max','_destroySidebarItemView','_attachToContainer','init','targetRect','delete','add','_annotationToSidebarItemView','length','destroy','_lastItem','define','change:bottom','_getItemBefore','list','_createSidebarView','_getMaxAvailableTop'];(function(_0x36668f,_0x6aa844){const _0x323597=function(_0x4db177){while(--_0x4db177){_0x36668f['push'](_0x36668f['shift']());}};_0x323597(++_0x6aa844);}(_0x6aa8,0x148));const _0x3235=function(_0x36668f,_0x6aa844){_0x36668f=_0x36668f-0x0;let _0x323597=_0x6aa8[_0x36668f];return _0x323597;};import{ContextPlugin as _0x1fef07}from'ckeditor5/src/core';import _0xdee877 from'./view/sidebarview';import _0x2ac473 from'./view/sidebaritemview';import{Rect as _0x5daed1,CKEditorError as _0xadd2ea}from'ckeditor5/src/utils';import{isElement as _0x1858a1,throttle as _0x3148b1}from'lodash-es';export default class b extends _0x1fef07{static get['pluginName'](){return _0x3235('0x2');}constructor(_0xbd9b9c){super(_0xbd9b9c),this[_0x3235('0xa')]('_lastItem'),this[_0x3235('0x32')]=this['_createSidebarView'](),this[_0x3235('0xa')]('container',null),this[_0x3235('0x7')]=0x19,this[_0x3235('0x35')]=new Map(),this[_0x3235('0x28')]=new Map(),this[_0x3235('0x3e')]['config'][_0x3235('0x2c')](_0x3235('0x8'),!0x1),this['_annotations']=null,this[_0x3235('0x1e')]=null;}[_0x3235('0x24')](){const _0x51826e=this[_0x3235('0x3e')][_0x3235('0x17')][_0x3235('0x9')](_0x3235('0x39'));_0x51826e&&this[_0x3235('0x1b')](_0x51826e);}['setContainer'](_0x3205df){if(!_0x1858a1(_0x3205df))throw new _0xadd2ea(_0x3235('0x15'));this['container']=_0x3205df;}[_0x3235('0x23')]({viewClass:_0x475f80='',spaceBetweenItems:_0x2937d8=0x19}={}){if(!_0x1858a1(this[_0x3235('0x38')]))throw new _0xadd2ea(_0x3235('0x1a'),this);this[_0x3235('0x38')][_0x3235('0x11')](this['view']['element']),this[_0x3235('0x32')]['class']=_0x475f80,this[_0x3235('0x7')]=_0x2937d8;}['rearrange']({removedAnnotation:_0x573a0a,previousAnnotation:_0x2b914f,nextAnnotation:_0x59b599}){const _0xee054b=this['getSidebarItemView'](_0x573a0a);this[_0x3235('0x32')][_0x3235('0x2f')][_0x3235('0x19')](_0xee054b),this['_destroySidebarItemView'](_0x573a0a),_0x2b914f&&this[_0x3235('0x20')](this[_0x3235('0x3d')](_0x2b914f)),_0x59b599&&this[_0x3235('0x20')](this[_0x3235('0x3d')](_0x59b599)),this[_0x3235('0x33')]();}[_0x3235('0x36')]({blurredAnnotation:_0x30ca68,activatedAnnotation:_0x21708b,disableAnimationOnActivatedAnnotation:_0x165f85}){if(this['_activeAnnotation']=_0x21708b,_0x30ca68){_0x30ca68[_0x3235('0x6')]=!0x1;const _0x1560cf=this[_0x3235('0x3d')](_0x30ca68);_0x1560cf&&_0x165f85&&(_0x1560cf['isAnimationDisabled']=!0x1);}if(_0x21708b){const _0x43cf0b=this[_0x3235('0x3d')](_0x21708b);_0x43cf0b&&(_0x21708b[_0x3235('0x6')]=!0x0,_0x165f85&&(_0x43cf0b[_0x3235('0x3a')]=!0x0,_0x43cf0b[_0x3235('0x4')]+=0x1),this[_0x3235('0x20')](_0x43cf0b));}}[_0x3235('0xf')](_0x147c17){this[_0x3235('0x16')](),this[_0x3235('0x32')][_0x3235('0x12')][_0x3235('0x19')]();for(const _0x2d7935 of _0x147c17)this['_destroySidebarItemView'](_0x2d7935);this[_0x3235('0x32')][_0x3235('0x2f')][_0x3235('0x18')](),this[_0x3235('0x32')]['class']='',this[_0x3235('0x2b')]=null;}['addAnnotation'](_0x5dac3f,_0x4bf18c){_0x4bf18c||(_0x4bf18c=_0x5dac3f[_0x3235('0x32')]);const _0x5d8c57=new _0x2ac473(this[_0x3235('0x3e')][_0x3235('0x5')]);this['_sidebarItemViewToAnnotation'][_0x3235('0xa')](_0x5d8c57,_0x5dac3f),this[_0x3235('0x28')][_0x3235('0xa')](_0x5dac3f,_0x5d8c57),_0x5d8c57[_0x3235('0x3b')][_0x3235('0x27')](_0x4bf18c),this[_0x3235('0x20')](_0x5d8c57),this[_0x3235('0xe')](_0x5dac3f[_0x3235('0x32')],'change:targetRect',()=>{const _0x2993d8=this[_0x3235('0x3')](_0x5d8c57);_0x5d8c57[_0x3235('0x1d')]!=_0x2993d8&&(_0x5d8c57[_0x3235('0x1d')]=_0x2993d8,this[_0x3235('0xd')](_0x5d8c57,_0x2993d8));}),this[_0x3235('0xe')](_0x5d8c57,_0x3235('0x13'),_0x3148b1(()=>{if(!_0x5d8c57[_0x3235('0x3b')][_0x3235('0x29')])return;const _0x1943ba=this[_0x3235('0x2e')](_0x5d8c57);if(!_0x1943ba)return;const _0x2bc91c=this[_0x3235('0x35')][_0x3235('0x9')](_0x1943ba),_0x44ef8e=this[_0x3235('0x1e')];_0x44ef8e&&_0x44ef8e===_0x2bc91c?this[_0x3235('0x3c')](_0x1943ba,_0x5d8c57):this[_0x3235('0x1f')](_0x5d8c57,_0x1943ba);},0xa,{'leading':!0x1})),this[_0x3235('0xe')](_0x5d8c57,_0x3235('0x2d'),_0x3148b1(()=>{if(!_0x5d8c57['content'][_0x3235('0x29')])return;const _0x28594a=this[_0x3235('0x0')](_0x5d8c57);if(!_0x28594a)return;const _0x337d2a=this['_sidebarItemViewToAnnotation'][_0x3235('0x9')](_0x28594a),_0x33b2a7=this[_0x3235('0x3e')]['config'][_0x3235('0x9')](_0x3235('0x8')),_0x5b75d5=this['_activeAnnotation'];_0x5b75d5&&_0x5b75d5===_0x337d2a&&_0x33b2a7?(this[_0x3235('0x1f')](_0x28594a,_0x5d8c57),this[_0x3235('0x3c')](_0x5d8c57,_0x28594a)):_0x5b75d5&&_0x5b75d5===_0x337d2a?this[_0x3235('0x1f')](_0x28594a,_0x5d8c57):this[_0x3235('0x3c')](_0x5d8c57,_0x28594a);},0xa,{'leading':!0x1}));const _0x1c8257=this[_0x3235('0x2e')](_0x5d8c57);if(_0x1c8257)this[_0x3235('0x3c')](_0x1c8257,_0x5d8c57)||this['_alignToTargetRect'](_0x5d8c57);else this['_alignToTargetRect'](_0x5d8c57);return this[_0x3235('0x33')](),this['view']['list'][_0x3235('0x27')](_0x5d8c57),_0x5d8c57;}[_0x3235('0x3d')](_0x228598){return this[_0x3235('0x28')][_0x3235('0x9')](_0x228598);}[_0x3235('0x2a')](){this[_0x3235('0x32')][_0x3235('0x2a')]();}[_0x3235('0x22')](_0x3f5415){const _0x32470a=this[_0x3235('0x3d')](_0x3f5415);this[_0x3235('0x16')](_0x32470a),this[_0x3235('0x16')](_0x3f5415[_0x3235('0x32')]),_0x32470a[_0x3235('0x2a')](),this[_0x3235('0x28')]['delete'](_0x3f5415),this['_sidebarItemViewToAnnotation'][_0x3235('0x26')](_0x32470a);}[_0x3235('0x30')](){const _0x256edf=new _0xdee877(this[_0x3235('0x3e')][_0x3235('0x5')]);return _0x256edf['render'](),this['on']('change:_lastItem',(_0x4ad207,_0x3688a0,_0x1edf15,_0x15da7b)=>{_0x15da7b&&_0x256edf[_0x3235('0xc')](_0x3235('0x10')),_0x1edf15?_0x256edf[_0x3235('0x34')](_0x3235('0x10'))['to'](_0x1edf15,_0x3235('0x1c')):_0x256edf['minHeight']=null;}),_0x256edf;}[_0x3235('0x33')](){this[_0x3235('0x2b')]=this['getSidebarItemView'](this[_0x3235('0x37')]['last']);}[_0x3235('0x2e')](_0x2f908a){const _0x3cdc6b=this['_sidebarItemViewToAnnotation']['get'](_0x2f908a),_0x599ff3=this['_annotations'][_0x3235('0x9')](this['_annotations'][_0x3235('0x14')](_0x3cdc6b)-0x1);return _0x599ff3&&this[_0x3235('0x3d')](_0x599ff3);}['_getItemAfter'](_0x2cc8d1){const _0x5cff89=this[_0x3235('0x35')]['get'](_0x2cc8d1),_0x2648ba=this[_0x3235('0x37')]['get'](this[_0x3235('0x37')][_0x3235('0x14')](_0x5cff89)+0x1);return _0x2648ba&&this[_0x3235('0x3d')](_0x2648ba);}[_0x3235('0x1f')](_0x358608,_0x5b65c9){_0x358608['updateHeight']();const _0x298a78=H(_0x5b65c9[_0x3235('0x1c')]+this[_0x3235('0x7')],_0x358608[_0x3235('0x4')]);return!!_0x298a78&&(this[_0x3235('0xd')](_0x5b65c9,_0x5b65c9[_0x3235('0x4')]-_0x298a78),!0x0);}[_0x3235('0x3c')](_0x5673ae,_0x3e5888){_0x5673ae[_0x3235('0x1')]();const _0x10841d=H(_0x5673ae[_0x3235('0x1c')]+this['_spaceBetweenItems'],_0x3e5888[_0x3235('0x4')]);return!!_0x10841d&&(this['_setItemTop'](_0x3e5888,_0x3e5888[_0x3235('0x4')]+_0x10841d,!0x1),!0x0);}[_0x3235('0x20')](_0x23f142){const _0x3a04c2=this[_0x3235('0x35')][_0x3235('0x9')](_0x23f142);if(!_0x3a04c2||!_0x3a04c2[_0x3235('0xb')])return;const _0x596c83=this['_getTargetTop'](_0x23f142);this[_0x3235('0xd')](_0x23f142,_0x596c83);}['_getTargetTop'](_0xc2d715){const _0x29701a=this[_0x3235('0x35')][_0x3235('0x9')](_0xc2d715);if(null===_0x29701a[_0x3235('0x25')])return 0x0;if(_0x29701a[_0x3235('0xb')]instanceof _0x5daed1)return _0x29701a[_0x3235('0x25')][_0x3235('0x4')];{const _0x54d584=new _0x5daed1(this['view'][_0x3235('0x12')])[_0x3235('0x4')];return _0x29701a[_0x3235('0x25')][_0x3235('0x4')]-_0x54d584;}}[_0x3235('0xd')](_0x417629,_0x31890e,_0x5f04dc=this[_0x3235('0x3e')][_0x3235('0x17')][_0x3235('0x9')](_0x3235('0x8'))){_0x5f04dc&&(_0x31890e=Math[_0x3235('0x21')](_0x31890e,this[_0x3235('0x31')](_0x417629))),_0x417629['top']=_0x31890e;}[_0x3235('0x31')](_0x18e052){let _0x8da68c=this[_0x3235('0x2e')](_0x18e052),_0x4ffa46=0x0;for(;_0x8da68c;)_0x8da68c['updateHeight'](),_0x4ffa46+=this[_0x3235('0x7')]+_0x8da68c['height'],_0x8da68c=this[_0x3235('0x2e')](_0x8da68c);return _0x4ffa46;}}function H(_0x57938b,_0x425b67){return Math[_0x3235('0x21')](_0x57938b-_0x425b67,0x0);}
23
+ const _0x5326=['_setItemTop','_alignBeforeItem','bottom','isActive','view','element','_annotations','locale','listenTo','pluginName','class','container','list','render','refresh','change:targetRect','sidebar-setcontainer-invalid-element','sidebar-attachtocontainer-missing-container','_getTargetTop','change:top','_activeAnnotation','_annotationToSidebarItemView','max','_lastItem','delete','set','sidebar.container','add','_sidebarItemViewToAnnotation','_updateLastItem','getSidebarItemView','define','_getItemBefore','destroy','targetRect','last','target','stopListening','_spaceBetweenItems','bind','isAnimationDisabled','_getMaxAvailableTop','clear','content','remove','context','_detachFromContainer','_alignToTargetRect','sidebar.preventScrollOutOfView','get','_attachToContainer','getIndex','_createSidebarView','appendChild','_destroySidebarItemView','length','updateHeight','addAnnotation','Sidebar','change:bottom','top','_targetTop','setContainer','_alignAfterItem','unbind','minHeight','rearrange','config'];(function(_0x46207d,_0x532629){const _0x37d201=function(_0x25c24c){while(--_0x25c24c){_0x46207d['push'](_0x46207d['shift']());}};_0x37d201(++_0x532629);}(_0x5326,0x18a));const _0x37d2=function(_0x46207d,_0x532629){_0x46207d=_0x46207d-0x0;let _0x37d201=_0x5326[_0x46207d];return _0x37d201;};import{ContextPlugin as _0x208e37}from'ckeditor5/src/core';import _0x4683bb from'./view/sidebarview';import _0x37d975 from'./view/sidebaritemview';import{Rect as _0x55cf78,CKEditorError as _0x599766}from'ckeditor5/src/utils';import{isElement as _0x4ad290,throttle as _0x254be6}from'lodash-es';export default class b extends _0x208e37{static get[_0x37d2('0x17')](){return _0x37d2('0x4');}constructor(_0x56e398){super(_0x56e398),this[_0x37d2('0x27')](_0x37d2('0x25')),this[_0x37d2('0x12')]=this[_0x37d2('0x42')](),this[_0x37d2('0x27')](_0x37d2('0x19'),null),this[_0x37d2('0x34')]=0x19,this[_0x37d2('0x2a')]=new Map(),this[_0x37d2('0x23')]=new Map(),this['context']['config'][_0x37d2('0x2d')](_0x37d2('0x3e'),!0x1),this[_0x37d2('0x14')]=null,this[_0x37d2('0x22')]=null;}['init'](){const _0x46d141=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x28'));_0x46d141&&this[_0x37d2('0x8')](_0x46d141);}[_0x37d2('0x8')](_0x3ca4cb){if(!_0x4ad290(_0x3ca4cb))throw new _0x599766(_0x37d2('0x1e'));this[_0x37d2('0x19')]=_0x3ca4cb;}[_0x37d2('0x40')]({viewClass:_0x2e4f19='',spaceBetweenItems:_0x4ade53=0x19}={}){if(!_0x4ad290(this['container']))throw new _0x599766(_0x37d2('0x1f'),this);this[_0x37d2('0x19')][_0x37d2('0x43')](this[_0x37d2('0x12')]['element']),this['view']['class']=_0x2e4f19,this['_spaceBetweenItems']=_0x4ade53;}[_0x37d2('0xc')]({removedAnnotation:_0x7062b6,previousAnnotation:_0x1047cf,nextAnnotation:_0x9e7bd8}){const _0x3bc7ec=this[_0x37d2('0x2c')](_0x7062b6);this['view'][_0x37d2('0x1a')]['remove'](_0x3bc7ec),this['_destroySidebarItemView'](_0x7062b6),_0x1047cf&&this['_alignToTargetRect'](this[_0x37d2('0x2c')](_0x1047cf)),_0x9e7bd8&&this[_0x37d2('0x3d')](this[_0x37d2('0x2c')](_0x9e7bd8)),this[_0x37d2('0x2b')]();}[_0x37d2('0x1c')]({blurredAnnotation:_0xd8dd03,activatedAnnotation:_0x2ced9c,disableAnimationOnActivatedAnnotation:_0x42cfc3}){if(this[_0x37d2('0x22')]=_0x2ced9c,_0xd8dd03){_0xd8dd03[_0x37d2('0x11')]=!0x1;const _0x25c137=this[_0x37d2('0x2c')](_0xd8dd03);_0x25c137&&_0x42cfc3&&(_0x25c137[_0x37d2('0x36')]=!0x1);}if(_0x2ced9c){const _0x1fa299=this[_0x37d2('0x2c')](_0x2ced9c);_0x1fa299&&(_0x2ced9c[_0x37d2('0x11')]=!0x0,_0x42cfc3&&(_0x1fa299[_0x37d2('0x36')]=!0x0,_0x1fa299['top']+=0x1),this[_0x37d2('0x3d')](_0x1fa299));}}[_0x37d2('0x3c')](_0x38c9e4){this['stopListening'](),this['view'][_0x37d2('0x13')][_0x37d2('0x3a')]();for(const _0x336bfa of _0x38c9e4)this[_0x37d2('0x0')](_0x336bfa);this[_0x37d2('0x12')]['list'][_0x37d2('0x38')](),this['view'][_0x37d2('0x18')]='',this[_0x37d2('0x25')]=null;}[_0x37d2('0x3')](_0x2b93c6,_0x24dca4){_0x24dca4||(_0x24dca4=_0x2b93c6[_0x37d2('0x12')]);const _0x27ef6d=new _0x37d975(this[_0x37d2('0x3b')][_0x37d2('0x15')]);this[_0x37d2('0x2a')][_0x37d2('0x27')](_0x27ef6d,_0x2b93c6),this[_0x37d2('0x23')][_0x37d2('0x27')](_0x2b93c6,_0x27ef6d),_0x27ef6d[_0x37d2('0x39')]['add'](_0x24dca4),this[_0x37d2('0x3d')](_0x27ef6d),this[_0x37d2('0x16')](_0x2b93c6[_0x37d2('0x12')],_0x37d2('0x1d'),()=>{const _0x23b5c6=this[_0x37d2('0x20')](_0x27ef6d);_0x27ef6d[_0x37d2('0x7')]!=_0x23b5c6&&(_0x27ef6d[_0x37d2('0x7')]=_0x23b5c6,this['_setItemTop'](_0x27ef6d,_0x23b5c6));}),this[_0x37d2('0x16')](_0x27ef6d,_0x37d2('0x21'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x20c15a=this[_0x37d2('0x2e')](_0x27ef6d);if(!_0x20c15a)return;const _0x277755=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x20c15a),_0xd096a4=this[_0x37d2('0x22')];_0xd096a4&&_0xd096a4===_0x277755?this[_0x37d2('0x9')](_0x20c15a,_0x27ef6d):this['_alignBeforeItem'](_0x27ef6d,_0x20c15a);},0xa,{'leading':!0x1})),this['listenTo'](_0x27ef6d,_0x37d2('0x5'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x867dd3=this['_getItemAfter'](_0x27ef6d);if(!_0x867dd3)return;const _0x17460d=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x867dd3),_0x5dd571=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x3e')),_0x57ac25=this[_0x37d2('0x22')];_0x57ac25&&_0x57ac25===_0x17460d&&_0x5dd571?(this[_0x37d2('0xf')](_0x867dd3,_0x27ef6d),this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3)):_0x57ac25&&_0x57ac25===_0x17460d?this['_alignBeforeItem'](_0x867dd3,_0x27ef6d):this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3);},0xa,{'leading':!0x1}));const _0x5a0e22=this[_0x37d2('0x2e')](_0x27ef6d);if(_0x5a0e22)this[_0x37d2('0x9')](_0x5a0e22,_0x27ef6d)||this[_0x37d2('0x3d')](_0x27ef6d);else this[_0x37d2('0x3d')](_0x27ef6d);return this[_0x37d2('0x2b')](),this[_0x37d2('0x12')]['list'][_0x37d2('0x29')](_0x27ef6d),_0x27ef6d;}['getSidebarItemView'](_0x5e7047){return this[_0x37d2('0x23')][_0x37d2('0x3f')](_0x5e7047);}[_0x37d2('0x2f')](){this[_0x37d2('0x12')][_0x37d2('0x2f')]();}[_0x37d2('0x0')](_0x50ff27){const _0x532cbe=this[_0x37d2('0x2c')](_0x50ff27);this[_0x37d2('0x33')](_0x532cbe),this['stopListening'](_0x50ff27[_0x37d2('0x12')]),_0x532cbe[_0x37d2('0x2f')](),this[_0x37d2('0x23')][_0x37d2('0x26')](_0x50ff27),this[_0x37d2('0x2a')][_0x37d2('0x26')](_0x532cbe);}[_0x37d2('0x42')](){const _0x185312=new _0x4683bb(this['context'][_0x37d2('0x15')]);return _0x185312[_0x37d2('0x1b')](),this['on']('change:_lastItem',(_0x5857d4,_0x286861,_0x58deee,_0x1ea0ad)=>{_0x1ea0ad&&_0x185312[_0x37d2('0xa')](_0x37d2('0xb')),_0x58deee?_0x185312[_0x37d2('0x35')]('minHeight')['to'](_0x58deee,_0x37d2('0x10')):_0x185312[_0x37d2('0xb')]=null;}),_0x185312;}[_0x37d2('0x2b')](){this['_lastItem']=this['getSidebarItemView'](this[_0x37d2('0x14')][_0x37d2('0x31')]);}['_getItemBefore'](_0x14b069){const _0x521ecc=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x14b069),_0x3a5703=this[_0x37d2('0x14')]['get'](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x521ecc)-0x1);return _0x3a5703&&this['getSidebarItemView'](_0x3a5703);}['_getItemAfter'](_0x4919c5){const _0x70107d=this[_0x37d2('0x2a')]['get'](_0x4919c5),_0xb820a2=this['_annotations'][_0x37d2('0x3f')](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x70107d)+0x1);return _0xb820a2&&this[_0x37d2('0x2c')](_0xb820a2);}[_0x37d2('0xf')](_0x3dd0b7,_0x3116fe){_0x3dd0b7['updateHeight']();const _0x3d4e6c=H(_0x3116fe[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x3dd0b7[_0x37d2('0x6')]);return!!_0x3d4e6c&&(this[_0x37d2('0xe')](_0x3116fe,_0x3116fe[_0x37d2('0x6')]-_0x3d4e6c),!0x0);}[_0x37d2('0x9')](_0x53d0fb,_0x8aeffa){_0x53d0fb[_0x37d2('0x2')]();const _0x3c8e7f=H(_0x53d0fb[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x8aeffa['top']);return!!_0x3c8e7f&&(this['_setItemTop'](_0x8aeffa,_0x8aeffa['top']+_0x3c8e7f,!0x1),!0x0);}[_0x37d2('0x3d')](_0x459d96){const _0x2dffc9=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x459d96);if(!_0x2dffc9||!_0x2dffc9[_0x37d2('0x32')])return;const _0x1e7b30=this[_0x37d2('0x20')](_0x459d96);this[_0x37d2('0xe')](_0x459d96,_0x1e7b30);}[_0x37d2('0x20')](_0x1e7d5f){const _0x1e6154=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x1e7d5f);if(null===_0x1e6154[_0x37d2('0x30')])return 0x0;if(_0x1e6154[_0x37d2('0x32')]instanceof _0x55cf78)return _0x1e6154[_0x37d2('0x30')][_0x37d2('0x6')];{const _0x58d4c4=new _0x55cf78(this[_0x37d2('0x12')]['element'])[_0x37d2('0x6')];return _0x1e6154['targetRect']['top']-_0x58d4c4;}}[_0x37d2('0xe')](_0x2fc474,_0x7384fa,_0x3cda8a=this[_0x37d2('0x3b')]['config'][_0x37d2('0x3f')](_0x37d2('0x3e'))){_0x3cda8a&&(_0x7384fa=Math[_0x37d2('0x24')](_0x7384fa,this['_getMaxAvailableTop'](_0x2fc474))),_0x2fc474[_0x37d2('0x6')]=_0x7384fa;}[_0x37d2('0x37')](_0x5e3cfc){let _0x391865=this[_0x37d2('0x2e')](_0x5e3cfc),_0x24e948=0x0;for(;_0x391865;)_0x391865[_0x37d2('0x2')](),_0x24e948+=this[_0x37d2('0x34')]+_0x391865['height'],_0x391865=this['_getItemBefore'](_0x391865);return _0x24e948;}}function H(_0x10742f,_0x26e95a){return Math[_0x37d2('0x24')](_0x10742f-_0x26e95a,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f29=['bind','add','ck-annotation-counter','bindTemplate','isDirty','icon','setTemplate','children','ck-annotation-counter__badge--edit-mode','span','_badge','extendTemplate','number','counterView','annotationType','set'];(function(_0x22a084,_0x4f2914){const _0x559d55=function(_0x19e01f){while(--_0x19e01f){_0x22a084['push'](_0x22a084['shift']());}};_0x559d55(++_0x4f2914);}(_0x4f29,0xf5));const _0x559d=function(_0x22a084,_0x4f2914){_0x22a084=_0x22a084-0x0;let _0x559d55=_0x4f29[_0x22a084];return _0x559d55;};import{ButtonView as _0x165ede,View as _0x33533b}from'ckeditor5/src/ui';import _0x5bd713 from'../../../theme/icons/add-comment.svg';export default class B extends _0x165ede{constructor(_0x50c9f9){super(_0x50c9f9);const _0x2ca483=this[_0x559d('0xe')];this['set']('isDirty',!0x1),this[_0x559d('0xa')]('number',0x0),this[_0x559d('0xb')](_0x559d('0x5'))['to'](this,'isDirty',this,_0x559d('0x7'),(_0x58c579,_0xfe3fc1)=>_0x58c579?'...':_0xfe3fc1),this[_0x559d('0xa')]('annotationType',''),this[_0x559d('0x0')]=_0x5bd713,this[_0x559d('0x6')]({'attributes':{'class':[_0x559d('0xd')]}}),this['counterView']=new _0x33533b(),this[_0x559d('0x8')][_0x559d('0x1')]({'tag':_0x559d('0x4'),'attributes':{'class':['ck-annotation-counter__badge',_0x2ca483['to'](_0x559d('0x9'),_0x2bf509=>'ck-annotation-counter__badge--'+_0x2bf509),_0x2ca483['if'](_0x559d('0xf'),_0x559d('0x3'))]},'children':[{'text':_0x2ca483['to'](_0x559d('0x5'))}]}),this[_0x559d('0x2')][_0x559d('0xc')](this['counterView']);}}
23
+ const _0x128a=['span','annotationType','setTemplate','isDirty','icon','add','counterView','ck-annotation-counter__badge--edit-mode','set','bindTemplate','children','...','_badge','bind','ck-annotation-counter__badge','extendTemplate','number','ck-annotation-counter'];(function(_0x146c94,_0x128ab9){const _0x25717e=function(_0x570d8e){while(--_0x570d8e){_0x146c94['push'](_0x146c94['shift']());}};_0x25717e(++_0x128ab9);}(_0x128a,0xb9));const _0x2571=function(_0x146c94,_0x128ab9){_0x146c94=_0x146c94-0x0;let _0x25717e=_0x128a[_0x146c94];return _0x25717e;};import{ButtonView as _0x41a802,View as _0x136bb1}from'ckeditor5/src/ui';import _0x2366e7 from'../../../theme/icons/add-comment.svg';export default class B extends _0x41a802{constructor(_0x4a674d){super(_0x4a674d);const _0x560b1b=this[_0x2571('0x4')];this[_0x2571('0x3')]('isDirty',!0x1),this['set'](_0x2571('0xb'),0x0),this[_0x2571('0x8')](_0x2571('0x7'))['to'](this,'isDirty',this,'number',(_0x1417ea,_0x5d506e)=>_0x1417ea?_0x2571('0x6'):_0x5d506e),this['set'](_0x2571('0xe'),''),this[_0x2571('0x11')]=_0x2366e7,this[_0x2571('0xa')]({'attributes':{'class':[_0x2571('0xc')]}}),this[_0x2571('0x1')]=new _0x136bb1(),this['counterView'][_0x2571('0xf')]({'tag':_0x2571('0xd'),'attributes':{'class':[_0x2571('0x9'),_0x560b1b['to']('annotationType',_0x59f746=>'ck-annotation-counter__badge--'+_0x59f746),_0x560b1b['if'](_0x2571('0x10'),_0x2571('0x2'))]},'children':[{'text':_0x560b1b['to'](_0x2571('0x7'))}]}),this[_0x2571('0x5')][_0x2571('0x0')](this['counterView']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32cc=['setTemplate','type','content','listenTo','bindTemplate','Esc','isDirty','ck-rounded-corners','createCollection','height','ck-annotation-wrapper','focus','div','length','_updateHeight','keystrokes','clear','clientHeight','add','focusTracker','detach','fire','element','destroy','set','mainView','ck-annotation-wrapper--active'];(function(_0x11f6cf,_0x32cc43){const _0x48cf2a=function(_0xc640fb){while(--_0xc640fb){_0x11f6cf['push'](_0x11f6cf['shift']());}};_0x48cf2a(++_0x32cc43);}(_0x32cc,0xaf));const _0x48cf=function(_0x11f6cf,_0x32cc43){_0x11f6cf=_0x11f6cf-0x0;let _0x48cf2a=_0x32cc[_0x11f6cf];return _0x48cf2a;};import{View as _0xff819f}from'ckeditor5/src/ui';import{FocusTracker as _0x5a0a6e,KeystrokeHandler as _0x3420c8,uid as _0x34e889}from'ckeditor5/src/utils';import _0x75e86e from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xff819f{constructor(_0x24f1f7,_0x248384){super(_0x24f1f7),this['id']=_0x34e889(),this[_0x48cf('0x6')]=new _0x5a0a6e(),this['keystrokes']=new _0x3420c8(),this[_0x48cf('0x2')][_0x48cf('0xb')](_0x48cf('0x13'),(_0x395647,_0x4570de)=>this[_0x48cf('0x8')](_0x48cf('0x13'),_0x4570de)),this[_0x48cf('0xb')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x48cf('0xb')]('height',0x0),this[_0x48cf('0xb')]('isActive',!0x1),this[_0x48cf('0xb')](_0x48cf('0x14'),!0x1),this[_0x48cf('0xb')](_0x48cf('0x0'),0x0),this['set'](_0x48cf('0xf'),''),this['_mutationObserver']=_0x75e86e(()=>this[_0x48cf('0x1')]()),this[_0x48cf('0x10')]=this[_0x48cf('0x16')](),this[_0x48cf('0x10')]['add'](_0x248384),this[_0x48cf('0xc')]=_0x248384;const _0x721e4a=this[_0x48cf('0x12')];this[_0x48cf('0xe')]({'tag':_0x48cf('0x1a'),'attributes':{'class':['ck',_0x48cf('0x18'),_0x48cf('0x15'),_0x721e4a['if']('isActive',_0x48cf('0xd'))],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this[_0x48cf('0x6')][_0x48cf('0x5')](this[_0x48cf('0x9')]),this[_0x48cf('0x2')][_0x48cf('0x11')](this[_0x48cf('0x9')]),this['_mutationObserver']['attach'](this[_0x48cf('0x9')]);}[_0x48cf('0xa')](){this[_0x48cf('0x10')][_0x48cf('0x3')](),this['keystrokes']['destroy'](),this[_0x48cf('0x6')][_0x48cf('0xa')](),this['_mutationObserver'][_0x48cf('0x7')](),super['destroy']();}[_0x48cf('0x19')](){this[_0x48cf('0x9')][_0x48cf('0x19')]();}[_0x48cf('0x1')](){const _0x44f3cc=this[_0x48cf('0x9')][_0x48cf('0x4')];_0x44f3cc&&(this[_0x48cf('0x17')]=_0x44f3cc);}}
23
+ const _0x312d=['createCollection','targetRect','element','focus','clientHeight','div','isDirty','ck-rounded-corners','detach','add','set','ck-annotation-wrapper','content','length','bindTemplate','height','render','keystrokes','Esc','destroy','fire','attach','type','_updateHeight','isActive','focusTracker','_mutationObserver'];(function(_0x1fe922,_0x312d78){const _0x506528=function(_0x8253bb){while(--_0x8253bb){_0x1fe922['push'](_0x1fe922['shift']());}};_0x506528(++_0x312d78);}(_0x312d,0xea));const _0x5065=function(_0x1fe922,_0x312d78){_0x1fe922=_0x1fe922-0x0;let _0x506528=_0x312d[_0x1fe922];return _0x506528;};import{View as _0x1ba9e9}from'ckeditor5/src/ui';import{FocusTracker as _0x39034f,KeystrokeHandler as _0x18aeed,uid as _0x43495e}from'ckeditor5/src/utils';import _0x26fa64 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x1ba9e9{constructor(_0x29d37e,_0x2c1bdf){super(_0x29d37e),this['id']=_0x43495e(),this['focusTracker']=new _0x39034f(),this[_0x5065('0x1a')]=new _0x18aeed(),this[_0x5065('0x1a')]['set'](_0x5065('0x0'),(_0x123177,_0x4ece0f)=>this[_0x5065('0x2')]('Esc',_0x4ece0f)),this[_0x5065('0x13')](_0x5065('0xa'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x5065('0x18'),0x0),this['set']('isActive',!0x1),this[_0x5065('0x13')](_0x5065('0xf'),!0x1),this[_0x5065('0x13')](_0x5065('0x16'),0x0),this[_0x5065('0x13')](_0x5065('0x4'),''),this[_0x5065('0x8')]=_0x26fa64(()=>this[_0x5065('0x5')]()),this[_0x5065('0x15')]=this[_0x5065('0x9')](),this[_0x5065('0x15')][_0x5065('0x12')](_0x2c1bdf),this['mainView']=_0x2c1bdf;const _0xed74d2=this[_0x5065('0x17')];this['setTemplate']({'tag':_0x5065('0xe'),'attributes':{'class':['ck',_0x5065('0x14'),_0x5065('0x10'),_0xed74d2['if'](_0x5065('0x6'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5065('0x15')]});}['render'](){super[_0x5065('0x19')](),this['focusTracker'][_0x5065('0x12')](this[_0x5065('0xb')]),this[_0x5065('0x1a')]['listenTo'](this['element']),this[_0x5065('0x8')][_0x5065('0x3')](this['element']);}[_0x5065('0x1')](){this[_0x5065('0x15')]['clear'](),this[_0x5065('0x1a')][_0x5065('0x1')](),this[_0x5065('0x7')][_0x5065('0x1')](),this[_0x5065('0x8')][_0x5065('0x11')](),super['destroy']();}['focus'](){this[_0x5065('0xb')][_0x5065('0xc')]();}[_0x5065('0x5')](){const _0x204246=this['element'][_0x5065('0xd')];_0x204246&&(this['height']=_0x204246);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1576=['updateHeight','render','_mutationObserver','ck-sidebar-item','div','clear','bind','element','bindTemplate','ck-sidebar-item--no-animation','createCollection','detach','content','destroy','_targetTop','height','isAnimationDisabled','setTemplate','top','set','bottom'];(function(_0x79b508,_0x157680){const _0x30f303=function(_0x1d4b57){while(--_0x1d4b57){_0x79b508['push'](_0x79b508['shift']());}};_0x30f303(++_0x157680);}(_0x1576,0x83));const _0x30f3=function(_0x79b508,_0x157680){_0x79b508=_0x79b508-0x0;let _0x30f303=_0x1576[_0x79b508];return _0x30f303;};import{View as _0x5688e3}from'ckeditor5/src/ui';import{toUnit as _0x1dc2f1}from'ckeditor5/src/utils';import _0x1ddf8b from'../../utils/createmutationobserver';const ft=_0x1dc2f1('px');export default class C extends _0x5688e3{constructor(_0x4826e5){super(_0x4826e5),this['set'](_0x30f3('0xd')),this[_0x30f3('0xe')](_0x30f3('0xa'),0x0),this[_0x30f3('0x1')](_0x30f3('0xf'))['to'](this,_0x30f3('0xd'),this,_0x30f3('0xa'),(_0x11d563,_0xb26ed6)=>(_0x11d563||0x0)+_0xb26ed6),this['set']('isAnimationDisabled',!0x1),this[_0x30f3('0x12')]=_0x1ddf8b(()=>this[_0x30f3('0x10')]()),this[_0x30f3('0x9')]=null,this['content']=this[_0x30f3('0x5')]();const _0x18414e=this[_0x30f3('0x3')];this[_0x30f3('0xc')]({'tag':_0x30f3('0x14'),'attributes':{'class':[_0x30f3('0x13'),_0x18414e['to'](_0x30f3('0xb'),_0x317082=>_0x317082?_0x30f3('0x4'):'')],'style':{'top':_0x18414e['to'](_0x30f3('0xd'),ft)}},'children':this[_0x30f3('0x7')]});}[_0x30f3('0x11')](){super[_0x30f3('0x11')](),this[_0x30f3('0x12')]['attach'](this[_0x30f3('0x2')]);}[_0x30f3('0x10')](){const _0x165eb4=this[_0x30f3('0x2')]['clientHeight'];_0x165eb4&&(this[_0x30f3('0xa')]=_0x165eb4);}[_0x30f3('0x8')](){this[_0x30f3('0x7')][_0x30f3('0x0')](),this[_0x30f3('0x12')][_0x30f3('0x6')](),super[_0x30f3('0x8')]();}}
23
+ const _0x8ce5=['destroy','detach','createCollection','div','isAnimationDisabled','_targetTop','_mutationObserver','element','content','render','height','top','bindTemplate','updateHeight'];(function(_0x578122,_0x8ce57d){const _0x1f0aa9=function(_0xe02cb3){while(--_0xe02cb3){_0x578122['push'](_0x578122['shift']());}};_0x1f0aa9(++_0x8ce57d);}(_0x8ce5,0x1d3));const _0x1f0a=function(_0x578122,_0x8ce57d){_0x578122=_0x578122-0x0;let _0x1f0aa9=_0x8ce5[_0x578122];return _0x1f0aa9;};import{View as _0x35d645}from'ckeditor5/src/ui';import{toUnit as _0x43db09}from'ckeditor5/src/utils';import _0xb2aaa6 from'../../utils/createmutationobserver';const ft=_0x43db09('px');export default class C extends _0x35d645{constructor(_0x18fd09){super(_0x18fd09),this['set'](_0x1f0a('0x6')),this['set']('height',0x0),this['bind']('bottom')['to'](this,_0x1f0a('0x6'),this,_0x1f0a('0x5'),(_0x430026,_0x2ce723)=>(_0x430026||0x0)+_0x2ce723),this['set'](_0x1f0a('0xd'),!0x1),this[_0x1f0a('0x1')]=_0xb2aaa6(()=>this[_0x1f0a('0x8')]()),this[_0x1f0a('0x0')]=null,this['content']=this[_0x1f0a('0xb')]();const _0x4a20bc=this[_0x1f0a('0x7')];this['setTemplate']({'tag':_0x1f0a('0xc'),'attributes':{'class':['ck-sidebar-item',_0x4a20bc['to']('isAnimationDisabled',_0x5539db=>_0x5539db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4a20bc['to'](_0x1f0a('0x6'),ft)}},'children':this[_0x1f0a('0x3')]});}[_0x1f0a('0x4')](){super[_0x1f0a('0x4')](),this[_0x1f0a('0x1')]['attach'](this[_0x1f0a('0x2')]);}['updateHeight'](){const _0x225a7e=this['element']['clientHeight'];_0x225a7e&&(this[_0x1f0a('0x5')]=_0x225a7e);}[_0x1f0a('0x9')](){this[_0x1f0a('0x3')]['clear'](),this['_mutationObserver'][_0x1f0a('0xa')](),super[_0x1f0a('0x9')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x852d=['list','setTemplate','minHeight','createCollection','div','ck-sidebar','ck-reset','set','class'];(function(_0x29dd54,_0x852d01){const _0x481467=function(_0x5d47b0){while(--_0x5d47b0){_0x29dd54['push'](_0x29dd54['shift']());}};_0x481467(++_0x852d01);}(_0x852d,0x114));const _0x4814=function(_0x29dd54,_0x852d01){_0x29dd54=_0x29dd54-0x0;let _0x481467=_0x852d[_0x29dd54];return _0x481467;};import{View as _0x54697a}from'ckeditor5/src/ui';import{toUnit as _0x12f0d4}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12f0d4('px');export default class T extends _0x54697a{constructor(_0x1bd18b){super(_0x1bd18b);const _0x1a51aa=this['bindTemplate'];this[_0x4814('0x1')](_0x4814('0x5'),0x0),this[_0x4814('0x1')](_0x4814('0x2'),''),this[_0x4814('0x3')]=this[_0x4814('0x6')](),this[_0x4814('0x4')]({'tag':_0x4814('0x7'),'attributes':{'class':['ck',_0x4814('0x8'),_0x4814('0x0'),_0x1a51aa['to'](_0x4814('0x2'))],'style':{'minHeight':_0x1a51aa['to'](_0x4814('0x5'),_0x42899e=>_0x42899e?ft(_0x42899e+0xa):null)}},'children':this['list']});}}
23
+ const _0xcfdc=['list','ck-reset','set','div','minHeight','class','createCollection','setTemplate'];(function(_0x2bc717,_0xcfdcd2){const _0x58af96=function(_0x4dcc3b){while(--_0x4dcc3b){_0x2bc717['push'](_0x2bc717['shift']());}};_0x58af96(++_0xcfdcd2);}(_0xcfdc,0x11c));const _0x58af=function(_0x2bc717,_0xcfdcd2){_0x2bc717=_0x2bc717-0x0;let _0x58af96=_0xcfdc[_0x2bc717];return _0x58af96;};import{View as _0x5b2a36}from'ckeditor5/src/ui';import{toUnit as _0x2565be}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2565be('px');export default class T extends _0x5b2a36{constructor(_0x3af59d){super(_0x3af59d);const _0x279c78=this['bindTemplate'];this['set'](_0x58af('0x0'),0x0),this[_0x58af('0x6')]('class',''),this[_0x58af('0x4')]=this[_0x58af('0x2')](),this[_0x58af('0x3')]({'tag':_0x58af('0x7'),'attributes':{'class':['ck','ck-sidebar',_0x58af('0x5'),_0x279c78['to'](_0x58af('0x1'))],'style':{'minHeight':_0x279c78['to'](_0x58af('0x0'),_0x264eb0=>_0x264eb0?ft(_0x264eb0+0xa):null)}},'children':this[_0x58af('0x4')]});}}