@ckeditor/ckeditor5-comments 35.0.1 → 35.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsediting.js +1 -1
  18. package/src/comments/commentsrepository.js +1 -1
  19. package/src/comments/commentsui.js +1 -1
  20. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  21. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  24. package/src/comments/ui/commentthreadcontroller.js +1 -1
  25. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  26. package/src/comments/ui/view/basecommentview.js +1 -1
  27. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  28. package/src/comments/ui/view/commentcontentview.js +1 -1
  29. package/src/comments/ui/view/commentinputview.js +1 -1
  30. package/src/comments/ui/view/commentslistview.js +1 -1
  31. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  32. package/src/comments/ui/view/commentthreadview.js +1 -1
  33. package/src/comments/ui/view/commentview.js +1 -1
  34. package/src/comments.js +1 -1
  35. package/src/commentsonly.js +1 -1
  36. package/src/utils/common-translations.js +1 -1
  37. package/src/utils/createmutationobserver.js +1 -1
  38. package/theme/annotation-inline.css +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "35.0.1",
3
+ "version": "35.1.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "^35.0.1",
35
- "ckeditor5-collaboration": "^35.0.1",
34
+ "ckeditor5": "^35.1.0",
35
+ "ckeditor5-collaboration": "^35.1.0",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ad1=['item','_assertCorrectTarget','view','target','updateTargetRect','_isTargetElementVisible','isActive','remove','destroy','clear','_type','focusTracker','_target','annotation-invalid-target','render','add','element','targetRect','stopListening','function','refreshVisibility','focusableElements','mainView'];(function(_0x23e04c,_0x5ad176){const _0x4a6fe1=function(_0x2dbd6b){while(--_0x2dbd6b){_0x23e04c['push'](_0x23e04c['shift']());}};_0x4a6fe1(++_0x5ad176);}(_0x5ad1,0xfa));const _0x4a6f=function(_0x23e04c,_0x5ad176){_0x23e04c=_0x23e04c-0x0;let _0x4a6fe1=_0x5ad1[_0x23e04c];return _0x4a6fe1;};import{CKEditorError as _0x467a6e,Rect as _0xf7be1e,Collection as _0x47b18c,mix as _0x484f42,ObservableMixin as _0x150456}from'ckeditor5/src/utils';import{isElement as _0x45bbce}from'lodash-es';export default class p{constructor({view:_0x443b98,target:_0x5beee3,type:_0x5b06fa,isVisible:_0xcdba8c=!0x0}){this[_0x4a6f('0x5')]=_0x443b98,this[_0x4a6f('0x5')][_0x4a6f('0x13')]||this[_0x4a6f('0x5')][_0x4a6f('0x11')](),this['_type']=_0x5b06fa,this[_0x4a6f('0xf')]=_0x5beee3,this['_assertCorrectTarget'](),this['focusableElements']=new _0x47b18c([this[_0x4a6f('0x5')]['element']],{'idProperty':'_id'}),this[_0x4a6f('0x1')]['on'](_0x4a6f('0x12'),(_0x5a9c18,_0x42b57c)=>{this[_0x4a6f('0x5')][_0x4a6f('0xe')]['add'](_0x42b57c);}),this[_0x4a6f('0x1')]['on'](_0x4a6f('0xa'),(_0x4be530,_0xb07a98)=>{this[_0x4a6f('0x5')]['focusTracker'][_0x4a6f('0xa')](_0xb07a98);}),this['set']('isVisible',_0xcdba8c);}get['type'](){return'function'==typeof this['_type']?this[_0x4a6f('0xd')]():this['_type'];}get['innerView'](){return this[_0x4a6f('0x5')][_0x4a6f('0x2')];}get[_0x4a6f('0x6')](){return _0x4a6f('0x16')==typeof this[_0x4a6f('0xf')]?this[_0x4a6f('0xf')]():this[_0x4a6f('0xf')];}get['targetRect'](){const _0x4cbe84=this['target'];return this[_0x4a6f('0x4')](),null!==_0x4cbe84&&this[_0x4a6f('0x8')]()?new _0xf7be1e(_0x4cbe84):null;}get[_0x4a6f('0x9')](){return this[_0x4a6f('0x5')][_0x4a6f('0x9')];}set[_0x4a6f('0x9')](_0x19b713){this['view'][_0x4a6f('0x9')]=_0x19b713,this[_0x4a6f('0x5')]['mainView'][_0x4a6f('0x9')]=_0x19b713;}[_0x4a6f('0x7')](){this['view'][_0x4a6f('0x14')]=this[_0x4a6f('0x14')];}[_0x4a6f('0xb')](){this['focusableElements'][_0x4a6f('0x15')](),this[_0x4a6f('0x1')][_0x4a6f('0xc')](),this[_0x4a6f('0x15')]();}[_0x4a6f('0x0')](){this['isVisible']=this[_0x4a6f('0x8')]();}[_0x4a6f('0x8')](){const _0x1e3b9e=this[_0x4a6f('0x6')];if(_0x45bbce(_0x1e3b9e)){const _0x1f5672=_0x1e3b9e['getClientRects']()[_0x4a6f('0x3')](0x0),_0xe2a915=_0x1e3b9e['offsetParent'];if(!_0x1f5672||!_0xe2a915)return!0x1;}return!0x0;}[_0x4a6f('0x4')](){const _0x517bbe=this[_0x4a6f('0x6')];if(!(null===_0x517bbe||_0x517bbe instanceof _0xf7be1e||_0x45bbce(_0x517bbe)))throw new _0x467a6e(_0x4a6f('0x10'),null,{'target':_0x517bbe});}}_0x484f42(p,_0x150456);
23
+ const _0x4d52=['element','_type','mainView','targetRect','offsetParent','remove','function','_assertCorrectTarget','add','annotation-invalid-target','view','isActive','stopListening','getClientRects','item','focusableElements','clear','updateTargetRect','focusTracker','target','destroy','_id','_isTargetElementVisible','_target','refreshVisibility','type','isVisible'];(function(_0x23d341,_0x4d52c6){const _0x3e1556=function(_0x585ebc){while(--_0x585ebc){_0x23d341['push'](_0x23d341['shift']());}};_0x3e1556(++_0x4d52c6);}(_0x4d52,0xfa));const _0x3e15=function(_0x23d341,_0x4d52c6){_0x23d341=_0x23d341-0x0;let _0x3e1556=_0x4d52[_0x23d341];return _0x3e1556;};import{CKEditorError as _0x298f12,Rect as _0x4c2b33,Collection as _0x4acdda,mix as _0x24f693,ObservableMixin as _0x4af4ec}from'ckeditor5/src/utils';import{isElement as _0x1bb638}from'lodash-es';export default class p{constructor({view:_0x559a53,target:_0x1852d2,type:_0x5bd876,isVisible:_0xa42aa6=!0x0}){this[_0x3e15('0x3')]=_0x559a53,this['view'][_0x3e15('0x14')]||this[_0x3e15('0x3')]['render'](),this[_0x3e15('0x15')]=_0x5bd876,this[_0x3e15('0x10')]=_0x1852d2,this[_0x3e15('0x0')](),this['focusableElements']=new _0x4acdda([this[_0x3e15('0x3')]['element']],{'idProperty':_0x3e15('0xe')}),this[_0x3e15('0x8')]['on'](_0x3e15('0x1'),(_0x4d7a14,_0x1e0db3)=>{this[_0x3e15('0x3')][_0x3e15('0xb')][_0x3e15('0x1')](_0x1e0db3);}),this[_0x3e15('0x8')]['on'](_0x3e15('0x19'),(_0x333421,_0xb4356)=>{this[_0x3e15('0x3')][_0x3e15('0xb')]['remove'](_0xb4356);}),this['set'](_0x3e15('0x13'),_0xa42aa6);}get[_0x3e15('0x12')](){return _0x3e15('0x1a')==typeof this['_type']?this[_0x3e15('0x15')]():this[_0x3e15('0x15')];}get['innerView'](){return this['view'][_0x3e15('0x16')];}get['target'](){return'function'==typeof this[_0x3e15('0x10')]?this['_target']():this[_0x3e15('0x10')];}get[_0x3e15('0x17')](){const _0x5700a9=this['target'];return this['_assertCorrectTarget'](),null!==_0x5700a9&&this[_0x3e15('0xf')]()?new _0x4c2b33(_0x5700a9):null;}get[_0x3e15('0x4')](){return this[_0x3e15('0x3')][_0x3e15('0x4')];}set['isActive'](_0x214384){this['view'][_0x3e15('0x4')]=_0x214384,this['view']['mainView'][_0x3e15('0x4')]=_0x214384;}[_0x3e15('0xa')](){this[_0x3e15('0x3')][_0x3e15('0x17')]=this['targetRect'];}[_0x3e15('0xd')](){this['focusableElements'][_0x3e15('0x5')](),this['focusableElements'][_0x3e15('0x9')](),this['stopListening']();}[_0x3e15('0x11')](){this[_0x3e15('0x13')]=this['_isTargetElementVisible']();}[_0x3e15('0xf')](){const _0x1eca43=this['target'];if(_0x1bb638(_0x1eca43)){const _0x176e48=_0x1eca43[_0x3e15('0x6')]()[_0x3e15('0x7')](0x0),_0x5b6118=_0x1eca43[_0x3e15('0x18')];if(!_0x176e48||!_0x5b6118)return!0x1;}return!0x0;}[_0x3e15('0x0')](){const _0x53bdc7=this[_0x3e15('0xc')];if(!(null===_0x53bdc7||_0x53bdc7 instanceof _0x4c2b33||_0x1bb638(_0x53bdc7)))throw new _0x298f12(_0x3e15('0x2'),null,{'target':_0x53bdc7});}}_0x24f693(p,_0x4af4ec);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xafb7=['annotationcollection-not-existing-item','isFocused','delete','innerView','fire','blur','targetRect','_sort','view','add','updateTargetRect','focus','_focusTracker','listenTo','stopListening','clear','sort','getByInnerView','remove','from','has','_getOrderInContent','focusTracker','refreshPositioning','change:isFocused','left','annotationcollection-duplicated-item','destroy','top','_items','focusableElements','_innerViewToAnnotation','length','_viewToAnnotation'];(function(_0x951682,_0xafb7c7){const _0x90dfe=function(_0x1585aa){while(--_0x1585aa){_0x951682['push'](_0x951682['shift']());}};_0x90dfe(++_0xafb7c7);}(_0xafb7,0x8b));const _0x90df=function(_0x951682,_0xafb7c7){_0x951682=_0x951682-0x0;let _0x90dfe=_0xafb7[_0x951682];return _0x90dfe;};import{CKEditorError as _0x20b3b7,Collection as _0x2a00e4,FocusTracker as _0x381050}from'ckeditor5/src/utils';export default class x extends _0x2a00e4{constructor(_0x4ee508=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x90df('0x1e')]=new Map(),this[_0x90df('0x9')]=new _0x381050(),this['_focusTracker']['on']('change:isFocused',(_0x57fb42,_0x13c642,_0x9437d5)=>{_0x9437d5||this[_0x90df('0x1')](_0x90df('0x2'));});for(const _0x524527 of _0x4ee508)this[_0x90df('0x6')](_0x524527);}get[_0x90df('0x20')](){return this[_0x90df('0x9')][_0x90df('0x20')];}[_0x90df('0x6')](_0x50c9bb){if(this[_0x90df('0x11')](_0x50c9bb))throw new _0x20b3b7(_0x90df('0x17'),null);this[_0x90df('0x1c')]['set'](_0x50c9bb[_0x90df('0x0')],_0x50c9bb),this[_0x90df('0x1e')]['set'](_0x50c9bb[_0x90df('0x5')],_0x50c9bb);for(const _0x11a4b7 of _0x50c9bb[_0x90df('0x1b')])this[_0x90df('0x9')][_0x90df('0x6')](_0x11a4b7);this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0x6'),(_0x59bbaa,_0x5b1f73)=>{this['_focusTracker']['add'](_0x5b1f73);}),this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0xf'),(_0x5c8335,_0x29b1e9)=>{this[_0x90df('0x9')][_0x90df('0xf')](_0x29b1e9);}),this[_0x90df('0xa')](_0x50c9bb[_0x90df('0x5')]['focusTracker'],_0x90df('0x15'),(_0x1ec774,_0x36b52b,_0x51af0e)=>{_0x51af0e&&this['fire'](_0x90df('0x8'),_0x50c9bb);});const _0x19e7b0=this[_0x90df('0x12')](_0x50c9bb);super['add'](_0x50c9bb,_0x19e7b0),_0x50c9bb[_0x90df('0x7')]();}[_0x90df('0xf')](_0x1293d2){if(!this['has'](_0x1293d2))throw new _0x20b3b7(_0x90df('0x1f'),null);this[_0x90df('0xb')](_0x1293d2[_0x90df('0x5')][_0x90df('0x13')]),this[_0x90df('0xb')](_0x1293d2['focusableElements']);for(const _0x15ddd8 of _0x1293d2[_0x90df('0x1b')])this[_0x90df('0x9')]['remove'](_0x15ddd8);this[_0x90df('0x1e')][_0x90df('0x21')](_0x1293d2[_0x90df('0x5')]),this[_0x90df('0x1c')][_0x90df('0x21')](_0x1293d2[_0x90df('0x0')]),super[_0x90df('0xf')](_0x1293d2);}[_0x90df('0xe')](_0x497751){return this[_0x90df('0x1c')]['get'](_0x497751);}['getByView'](_0x378cbb){return this[_0x90df('0x1e')]['get'](_0x378cbb);}[_0x90df('0x18')](){super[_0x90df('0xc')](),this[_0x90df('0xb')](),this[_0x90df('0x1c')][_0x90df('0xc')](),this[_0x90df('0x1e')]['clear'](),this[_0x90df('0x9')][_0x90df('0x18')]();}[_0x90df('0x14')](){for(const _0x3870e6 of this)_0x3870e6[_0x90df('0x7')]();this[_0x90df('0x4')]();}[_0x90df('0x4')](){const _0x36854f=Array[_0x90df('0x10')](this)[_0x90df('0xd')]((_0x176b9f,_0x57c17d)=>y(_0x176b9f[_0x90df('0x3')],_0x57c17d[_0x90df('0x3')]));for(let _0x2578e7=_0x36854f[_0x90df('0x1d')]-0x1;_0x2578e7>0x0;_0x2578e7--){const _0xaa43fe=_0x36854f[_0x2578e7];_0x2578e7!==this['getIndex'](_0xaa43fe)&&(this[_0x90df('0xf')](_0xaa43fe),this[_0x90df('0x6')](_0xaa43fe,_0x2578e7));}}[_0x90df('0x12')](_0x3a1ba5){let _0x3a9c80=0x0;const _0x5070e0=_0x3a1ba5['targetRect'];if(!_0x5070e0)return this[_0x90df('0x1a')][_0x90df('0x1d')];for(const _0x12e6e4 of this){const _0x4b30b9=_0x12e6e4['targetRect'];if(_0x4b30b9){if(y(_0x5070e0,_0x4b30b9)<0x0)return _0x3a9c80;_0x3a9c80++;}}return _0x3a9c80;}}export function bindAnnotationCollections({source:_0x42d77c,target:_0x23989d,filter:_0x80e597}){for(const _0x52769e of _0x42d77c)_0x80e597(_0x52769e)&&_0x23989d[_0x90df('0x6')](_0x52769e);_0x23989d[_0x90df('0xa')](_0x42d77c,'add',(_0x23f430,_0x23f79a)=>{_0x80e597(_0x23f79a)&&_0x23989d[_0x90df('0x6')](_0x23f79a);}),_0x23989d['listenTo'](_0x42d77c,_0x90df('0xf'),(_0x1431c6,_0x5271b2)=>{_0x23989d[_0x90df('0x11')](_0x5271b2)&&_0x23989d[_0x90df('0xf')](_0x5271b2);});}function y(_0x2203af,_0x3abf14){if(null===_0x2203af&&null===_0x3abf14)return 0x0;if(null===_0x2203af)return-0x1;if(null===_0x3abf14)return 0x1;const _0x14825c=_0x2203af[_0x90df('0x19')]-_0x3abf14[_0x90df('0x19')];return 0x0==_0x14825c?_0x2203af[_0x90df('0x16')]-_0x3abf14[_0x90df('0x16')]:_0x14825c;}
23
+ const _0x53c3=['add','remove','focusTracker','delete','clear','annotationcollection-not-existing-item','destroy','_getOrderInContent','sort','isFocused','fire','blur','has','refreshPositioning','_innerViewToAnnotation','_viewToAnnotation','length','getIndex','focusableElements','change:isFocused','top','innerView','stopListening','_items','getByView','listenTo','_focusTracker','set','getByInnerView','left','targetRect','updateTargetRect','_sort','view','focus','from'];(function(_0x2124a3,_0x53c3bc){const _0x3c32b3=function(_0x4ac6e1){while(--_0x4ac6e1){_0x2124a3['push'](_0x2124a3['shift']());}};_0x3c32b3(++_0x53c3bc);}(_0x53c3,0xef));const _0x3c32=function(_0x2124a3,_0x53c3bc){_0x2124a3=_0x2124a3-0x0;let _0x3c32b3=_0x53c3[_0x2124a3];return _0x3c32b3;};import{CKEditorError as _0x3556f4,Collection as _0x21ae8b,FocusTracker as _0x5eabb4}from'ckeditor5/src/utils';export default class x extends _0x21ae8b{constructor(_0xa50ee2=[]){super(),this[_0x3c32('0x1b')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x3c32('0x3')]=new _0x5eabb4(),this[_0x3c32('0x3')]['on'](_0x3c32('0x20'),(_0x5987a1,_0x16a05f,_0x2b60c6)=>{_0x2b60c6||this[_0x3c32('0x17')](_0x3c32('0x18'));});for(const _0x588796 of _0xa50ee2)this[_0x3c32('0xd')](_0x588796);}get[_0x3c32('0x16')](){return this[_0x3c32('0x3')]['isFocused'];}[_0x3c32('0xd')](_0x1abf5e){if(this[_0x3c32('0x19')](_0x1abf5e))throw new _0x3556f4('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1abf5e[_0x3c32('0x22')],_0x1abf5e),this[_0x3c32('0x1c')][_0x3c32('0x4')](_0x1abf5e[_0x3c32('0xa')],_0x1abf5e);for(const _0x3e0fd0 of _0x1abf5e[_0x3c32('0x1f')])this[_0x3c32('0x3')]['add'](_0x3e0fd0);this[_0x3c32('0x2')](_0x1abf5e[_0x3c32('0x1f')],'add',(_0xdb09ea,_0x3361ce)=>{this[_0x3c32('0x3')]['add'](_0x3361ce);}),this[_0x3c32('0x2')](_0x1abf5e['focusableElements'],_0x3c32('0xe'),(_0x517ce4,_0x4d304f)=>{this['_focusTracker']['remove'](_0x4d304f);}),this[_0x3c32('0x2')](_0x1abf5e[_0x3c32('0xa')][_0x3c32('0xf')],_0x3c32('0x20'),(_0x15a754,_0x1cee2f,_0x4b6f82)=>{_0x4b6f82&&this[_0x3c32('0x17')](_0x3c32('0xb'),_0x1abf5e);});const _0x396ad6=this['_getOrderInContent'](_0x1abf5e);super[_0x3c32('0xd')](_0x1abf5e,_0x396ad6),_0x1abf5e[_0x3c32('0x8')]();}[_0x3c32('0xe')](_0x304311){if(!this[_0x3c32('0x19')](_0x304311))throw new _0x3556f4(_0x3c32('0x12'),null);this[_0x3c32('0x23')](_0x304311['view'][_0x3c32('0xf')]),this[_0x3c32('0x23')](_0x304311[_0x3c32('0x1f')]);for(const _0x817919 of _0x304311[_0x3c32('0x1f')])this[_0x3c32('0x3')][_0x3c32('0xe')](_0x817919);this[_0x3c32('0x1c')][_0x3c32('0x10')](_0x304311[_0x3c32('0xa')]),this[_0x3c32('0x1b')][_0x3c32('0x10')](_0x304311[_0x3c32('0x22')]),super[_0x3c32('0xe')](_0x304311);}[_0x3c32('0x5')](_0x22bb10){return this[_0x3c32('0x1b')]['get'](_0x22bb10);}[_0x3c32('0x1')](_0x54785e){return this[_0x3c32('0x1c')]['get'](_0x54785e);}[_0x3c32('0x13')](){super['clear'](),this[_0x3c32('0x23')](),this[_0x3c32('0x1b')][_0x3c32('0x11')](),this['_viewToAnnotation']['clear'](),this[_0x3c32('0x3')]['destroy']();}[_0x3c32('0x1a')](){for(const _0x2e187a of this)_0x2e187a[_0x3c32('0x8')]();this[_0x3c32('0x9')]();}[_0x3c32('0x9')](){const _0x3fc7ec=Array[_0x3c32('0xc')](this)[_0x3c32('0x15')]((_0x50532b,_0x17fcc3)=>y(_0x50532b['targetRect'],_0x17fcc3[_0x3c32('0x7')]));for(let _0x4f57f9=_0x3fc7ec[_0x3c32('0x1d')]-0x1;_0x4f57f9>0x0;_0x4f57f9--){const _0x2de244=_0x3fc7ec[_0x4f57f9];_0x4f57f9!==this[_0x3c32('0x1e')](_0x2de244)&&(this[_0x3c32('0xe')](_0x2de244),this[_0x3c32('0xd')](_0x2de244,_0x4f57f9));}}[_0x3c32('0x14')](_0x5990e6){let _0x576643=0x0;const _0x5ae50e=_0x5990e6[_0x3c32('0x7')];if(!_0x5ae50e)return this[_0x3c32('0x0')][_0x3c32('0x1d')];for(const _0x15e81e of this){const _0x4ac807=_0x15e81e['targetRect'];if(_0x4ac807){if(y(_0x5ae50e,_0x4ac807)<0x0)return _0x576643;_0x576643++;}}return _0x576643;}}export function bindAnnotationCollections({source:_0x156155,target:_0x4ef501,filter:_0x4b6f0b}){for(const _0x1be57b of _0x156155)_0x4b6f0b(_0x1be57b)&&_0x4ef501['add'](_0x1be57b);_0x4ef501['listenTo'](_0x156155,_0x3c32('0xd'),(_0x94530d,_0x227500)=>{_0x4b6f0b(_0x227500)&&_0x4ef501[_0x3c32('0xd')](_0x227500);}),_0x4ef501[_0x3c32('0x2')](_0x156155,_0x3c32('0xe'),(_0x18add5,_0x4c5adc)=>{_0x4ef501['has'](_0x4c5adc)&&_0x4ef501[_0x3c32('0xe')](_0x4c5adc);});}function y(_0x417097,_0x246efd){if(null===_0x417097&&null===_0x246efd)return 0x0;if(null===_0x417097)return-0x1;if(null===_0x246efd)return 0x1;const _0x1defef=_0x417097[_0x3c32('0x21')]-_0x246efd[_0x3c32('0x21')];return 0x0==_0x1defef?_0x417097[_0x3c32('0x6')]-_0x246efd[_0x3c32('0x6')]:_0x1defef;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5498=['remove','isVisible','createAnnotationView','stopListening','source','add','refreshPositioning','activeAnnotations','change:isVisible','has','Annotations','_deactivateAllAnnotations','fire','collection','_removeActiveAnnotation','set','_activateAnnotation','createAnnotation','_visibleAnnotations','deactivateAll','_bindAnnotationsToVisibleAnnotations','destroy','activate','listenTo','pluginName','getByInnerView'];(function(_0x52c4df,_0x5498ba){const _0x1fde21=function(_0x4e7cf9){while(--_0x4e7cf9){_0x52c4df['push'](_0x52c4df['shift']());}};_0x1fde21(++_0x5498ba);}(_0x5498,0x1c0));const _0x1fde=function(_0x52c4df,_0x5498ba){_0x52c4df=_0x52c4df-0x0;let _0x1fde21=_0x5498[_0x52c4df];return _0x1fde21;};import{ContextPlugin as _0x45d1af}from'ckeditor5/src/core';import _0x50a31c from'./annotation';import _0x40052b from'./annotationcollection';import _0x2f517d from'./view/annotationview';export default class V extends _0x45d1af{static get[_0x1fde('0x12')](){return _0x1fde('0x4');}constructor(_0x5ddeb2){super(_0x5ddeb2),this[_0x1fde('0x7')]=new _0x40052b(),this[_0x1fde('0xc')]=new _0x40052b(),this[_0x1fde('0x9')](_0x1fde('0x1'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1fde('0x19')](_0x26147c){this[_0x1fde('0x7')][_0x1fde('0x19')](_0x26147c);}['remove'](_0x2f7090){this[_0x1fde('0x7')][_0x1fde('0x14')](_0x2f7090),_0x2f7090[_0x1fde('0xf')]();}['refreshVisibility'](){for(const _0x233632 of this[_0x1fde('0x7')])_0x233632['refreshVisibility']();}[_0x1fde('0x0')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x1fde('0x13')](_0x2e9c23){return this[_0x1fde('0x7')][_0x1fde('0x13')](_0x2e9c23);}[_0x1fde('0xd')](){this[_0x1fde('0x6')](_0x1fde('0x5'));}[_0x1fde('0xf')](){for(const _0x15fb79 of this[_0x1fde('0x7')])_0x15fb79['destroy']();this[_0x1fde('0xc')][_0x1fde('0xf')](),this[_0x1fde('0x7')][_0x1fde('0xf')](),super['destroy']();}[_0x1fde('0x10')](_0x266dff){this[_0x1fde('0x6')](_0x1fde('0xa'),_0x266dff);}[_0x1fde('0xb')](_0x4b681f){return new _0x50a31c(_0x4b681f);}[_0x1fde('0x16')](_0x175b03,_0x2e2226){return new _0x2f517d(_0x175b03,_0x2e2226);}['_addActiveAnnotation'](_0x40fbff){const _0x16ee51=new Set(this[_0x1fde('0x1')]);_0x16ee51['add'](_0x40fbff),this[_0x1fde('0x1')]=_0x16ee51;}[_0x1fde('0x8')](_0x534c33){const _0x3fd3e6=new Set(this[_0x1fde('0x1')]);_0x3fd3e6['delete'](_0x534c33),this[_0x1fde('0x1')]=_0x3fd3e6;}[_0x1fde('0xe')](){const _0x4af0f6=this[_0x1fde('0x7')],_0x3a3d2c=this[_0x1fde('0xc')];function _0xf10c7(_0x5e26af){const _0x2034bb=_0x5e26af[_0x1fde('0x18')];_0x2034bb['isVisible']&&!_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)?_0x3a3d2c['add'](_0x2034bb):!_0x2034bb[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)&&_0x3a3d2c[_0x1fde('0x14')](_0x2034bb);}this[_0x1fde('0x11')](_0x4af0f6,_0x1fde('0x19'),(_0x4787f3,_0x1c1af5)=>{_0x1c1af5[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x19')](_0x1c1af5),this[_0x1fde('0x11')](_0x1c1af5,'change:isVisible',_0xf10c7);}),this['listenTo'](_0x4af0f6,'remove',(_0x238e95,_0x3850b6)=>{_0x3a3d2c['has'](_0x3850b6)&&_0x3a3d2c[_0x1fde('0x14')](_0x3850b6),this[_0x1fde('0x17')](_0x3850b6,_0x1fde('0x2'),_0xf10c7);});}}
23
+ const _0x293d=['destroy','createAnnotation','delete','deactivateAll','source','fire','has','refreshPositioning','add','_bindAnnotationsToVisibleAnnotations','activate','refreshVisibility','set','remove','change:isVisible','createAnnotationView','stopListening','collection','activeAnnotations','listenTo','getByInnerView','isVisible','_deactivateAllAnnotations','Annotations','_visibleAnnotations','pluginName'];(function(_0xecd5a7,_0x293daa){const _0x5d1311=function(_0x59a5ce){while(--_0x59a5ce){_0xecd5a7['push'](_0xecd5a7['shift']());}};_0x5d1311(++_0x293daa);}(_0x293d,0xa2));const _0x5d13=function(_0xecd5a7,_0x293daa){_0xecd5a7=_0xecd5a7-0x0;let _0x5d1311=_0x293d[_0xecd5a7];return _0x5d1311;};import{ContextPlugin as _0x2037f1}from'ckeditor5/src/core';import _0x886db5 from'./annotation';import _0x505e66 from'./annotationcollection';import _0x2b8e49 from'./view/annotationview';export default class V extends _0x2037f1{static get[_0x5d13('0x13')](){return _0x5d13('0x11');}constructor(_0x4f5970){super(_0x4f5970),this[_0x5d13('0xb')]=new _0x505e66(),this[_0x5d13('0x12')]=new _0x505e66(),this[_0x5d13('0x6')](_0x5d13('0xc'),new Set()),this[_0x5d13('0x3')]();}[_0x5d13('0x2')](_0x480df1){this['collection'][_0x5d13('0x2')](_0x480df1);}[_0x5d13('0x7')](_0x3757bb){this[_0x5d13('0xb')][_0x5d13('0x7')](_0x3757bb),_0x3757bb['destroy']();}['refreshVisibility'](){for(const _0x492a15 of this[_0x5d13('0xb')])_0x492a15[_0x5d13('0x5')]();}[_0x5d13('0x1')](){this[_0x5d13('0x12')][_0x5d13('0x1')]();}[_0x5d13('0xe')](_0x17e28a){return this['collection'][_0x5d13('0xe')](_0x17e28a);}[_0x5d13('0x17')](){this[_0x5d13('0x19')](_0x5d13('0x10'));}[_0x5d13('0x14')](){for(const _0x367aad of this[_0x5d13('0xb')])_0x367aad[_0x5d13('0x14')]();this['_visibleAnnotations'][_0x5d13('0x14')](),this[_0x5d13('0xb')][_0x5d13('0x14')](),super['destroy']();}[_0x5d13('0x4')](_0x1654bb){this[_0x5d13('0x19')]('_activateAnnotation',_0x1654bb);}[_0x5d13('0x15')](_0x44aa49){return new _0x886db5(_0x44aa49);}[_0x5d13('0x9')](_0x194d0e,_0x188937){return new _0x2b8e49(_0x194d0e,_0x188937);}['_addActiveAnnotation'](_0x155182){const _0x208456=new Set(this[_0x5d13('0xc')]);_0x208456[_0x5d13('0x2')](_0x155182),this[_0x5d13('0xc')]=_0x208456;}['_removeActiveAnnotation'](_0x32564f){const _0x5ca4f0=new Set(this[_0x5d13('0xc')]);_0x5ca4f0[_0x5d13('0x16')](_0x32564f),this[_0x5d13('0xc')]=_0x5ca4f0;}[_0x5d13('0x3')](){const _0x10d304=this[_0x5d13('0xb')],_0x49b6a9=this[_0x5d13('0x12')];function _0x334e8e(_0x356414){const _0x5359d0=_0x356414[_0x5d13('0x18')];_0x5359d0[_0x5d13('0xf')]&&!_0x49b6a9['has'](_0x5359d0)?_0x49b6a9[_0x5d13('0x2')](_0x5359d0):!_0x5359d0['isVisible']&&_0x49b6a9[_0x5d13('0x0')](_0x5359d0)&&_0x49b6a9[_0x5d13('0x7')](_0x5359d0);}this[_0x5d13('0xd')](_0x10d304,_0x5d13('0x2'),(_0x3631fb,_0x5e2724)=>{_0x5e2724['isVisible']&&_0x49b6a9[_0x5d13('0x2')](_0x5e2724),this[_0x5d13('0xd')](_0x5e2724,_0x5d13('0x8'),_0x334e8e);}),this['listenTo'](_0x10d304,'remove',(_0x5012d3,_0x2873dd)=>{_0x49b6a9['has'](_0x2873dd)&&_0x49b6a9[_0x5d13('0x7')](_0x2873dd),this[_0x5d13('0xa')](_0x2873dd,_0x5d13('0x8'),_0x334e8e);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e14=['plugins','context','function','get','listenTo','pluginName','isActive','push','annotationsuis-annotation-mismatch','find','change:activeAnnotation','annotationsuis-register-already-registered','from','set','setActiveAnnotation','activate','delete','_removeActiveAnnotation','deactivateAll','detach','add','filter','_visibleAnnotations','deactivate','type','stopListening','annotationsuis-activate-missing-ui','collection','destroy','switchTo','_uisData','has','_uis','_deactivateAllAnnotations','_activateAnnotation','activeUIs','AnnotationsUIs','size','annotationsuis-register-invalid-interface','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','init'];(function(_0x1656f8,_0x1e144d){const _0x4305ac=function(_0x374eff){while(--_0x374eff){_0x1656f8['push'](_0x1656f8['shift']());}};_0x4305ac(++_0x1e144d);}(_0x1e14,0xc1));const _0x4305=function(_0x1656f8,_0x1e144d){_0x1656f8=_0x1656f8-0x0;let _0x4305ac=_0x1e14[_0x1656f8];return _0x4305ac;};import{ContextPlugin as _0x2000cf}from'ckeditor5/src/core';import{CKEditorError as _0x4921e7}from'ckeditor5/src/utils';import _0x59794a,{bindAnnotationCollections as _0x3e10e2}from'./annotationcollection';import _0x3c6d73 from'./annotations';export default class I extends _0x2000cf{static get['requires'](){return[_0x3c6d73];}static get[_0x4305('0x16')](){return _0x4305('0xb');}constructor(_0x1b5973){super(_0x1b5973),this[_0x4305('0xa')]=new Set(),this[_0x4305('0x7')]=new Map(),this[_0x4305('0x5')]=new Map();}[_0x4305('0x10')](){const _0x365537=this['context'][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73);this[_0x4305('0x15')](_0x365537,_0x4305('0x9'),(_0x25dd40,_0x5bd58b)=>{for(const _0x3f0995 of this['activeUIs']){const _0x26edbf=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f0995);(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x3f0995)[_0x4305('0x26')])(_0x5bd58b)&&_0x26edbf[_0x4305('0x1f')](_0x5bd58b);}}),this[_0x4305('0x15')](_0x365537,_0x4305('0x8'),()=>{for(const _0x1fd5f3 of this[_0x4305('0xa')]){this[_0x4305('0x7')][_0x4305('0x14')](_0x1fd5f3)[_0x4305('0x1f')](null);}}),this[_0x4305('0x15')](_0x365537['_visibleAnnotations'],'add',(_0x44680a,_0x1e594d)=>{this[_0x4305('0xe')](_0x1e594d);});}['hasActive'](){return this[_0x4305('0xa')][_0x4305('0xc')]>0x0;}['isActive'](_0x342e83){return this[_0x4305('0xa')][_0x4305('0x6')](_0x342e83);}[_0x4305('0x20')](_0x5d6cac,_0x5d8d32=()=>!0x0){const _0x4ab1dd=this[_0x4305('0x12')][_0x4305('0x11')]['get'](_0x3c6d73);if(!this[_0x4305('0x7')][_0x4305('0x6')](_0x5d6cac))throw new _0x4921e7(_0x4305('0x1'),this,{'uiName':_0x5d6cac});this[_0x4305('0x17')](_0x5d6cac)&&this['deactivate'](_0x5d6cac),this[_0x4305('0xa')][_0x4305('0x25')](_0x5d6cac);const _0x4c7d36=new _0x59794a(),_0x267e0c=_0x4ab1dd[_0x4305('0x27')];_0x3e10e2({'source':_0x267e0c,'target':_0x4c7d36,'filter':_0x5d8d32}),this[_0x4305('0x5')][_0x4305('0x1e')](_0x5d6cac,{'collection':_0x4c7d36,'filter':_0x5d8d32});const _0x23dd7f=this[_0x4305('0x7')]['get'](_0x5d6cac);_0x23dd7f['attach'](_0x4c7d36),this[_0x4305('0x15')](_0x23dd7f,_0x4305('0x1b'),(_0x593b14,_0x363410,_0x5758f7,_0x57f490)=>{_0x57f490&&_0x4ab1dd[_0x4305('0x22')](_0x57f490),_0x5758f7&&_0x4ab1dd['_addActiveAnnotation'](_0x5758f7);});}[_0x4305('0x28')](_0x3f02f2){this[_0x4305('0xa')][_0x4305('0x21')](_0x3f02f2);const _0x44d424=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f02f2);_0x44d424[_0x4305('0x24')](),this[_0x4305('0x0')](_0x44d424),this[_0x4305('0x5')][_0x4305('0x14')](_0x3f02f2)[_0x4305('0x2')][_0x4305('0x3')](),this['_uisData']['delete'](_0x3f02f2);}[_0x4305('0x4')](_0x4278fc){const _0x1264c2=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73),_0x566c85=Array[_0x4305('0x1d')](_0x1264c2['activeAnnotations'])[0x0]||null;this[_0x4305('0x23')](),this['activate'](_0x4278fc);const _0x58d637=this[_0x4305('0x7')][_0x4305('0x14')](_0x4278fc);_0x58d637['setActiveAnnotation'](_0x566c85),_0x58d637[_0x4305('0xf')]&&_0x566c85&&_0x58d637[_0x4305('0xf')]([_0x566c85]);}[_0x4305('0x23')](){for(const _0x2e4ab9 of this['activeUIs'])this['deactivate'](_0x2e4ab9);}['register'](_0x1cc07d,_0x1b7a67){if(this['_uis'][_0x4305('0x6')](_0x1cc07d))throw new _0x4921e7(_0x4305('0x1c'));if(_0x4305('0x13')!=typeof _0x1b7a67['attach']||_0x4305('0x13')!=typeof _0x1b7a67[_0x4305('0x24')]||'function'!=typeof _0x1b7a67[_0x4305('0x1f')])throw new _0x4921e7(_0x4305('0xd'),null);this[_0x4305('0x7')][_0x4305('0x1e')](_0x1cc07d,_0x1b7a67);}['refilterAnnotations'](){const _0x25d903=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73)[_0x4305('0x2')],_0x57f492=new Map(),_0x4814de=Array[_0x4305('0x1d')](this['activeUIs']);for(const _0x1425fa of this[_0x4305('0xa')]){const _0x5c1ede=this['_uisData'][_0x4305('0x14')](_0x1425fa)['collection'];for(const _0x8f5122 of _0x5c1ede)_0x57f492[_0x4305('0x1e')](_0x8f5122,_0x1425fa);}for(const _0x2afee5 of _0x25d903){const _0x51c0ec=_0x57f492[_0x4305('0x14')](_0x2afee5);this[_0x4305('0xe')](_0x2afee5);const _0x180929=_0x4814de[_0x4305('0x1a')](_0x34f02d=>this[_0x4305('0x5')][_0x4305('0x14')](_0x34f02d)[_0x4305('0x26')](_0x2afee5));_0x51c0ec!==_0x180929&&(_0x51c0ec&&this[_0x4305('0x5')][_0x4305('0x14')](_0x51c0ec)[_0x4305('0x2')]['remove'](_0x2afee5),_0x180929&&this[_0x4305('0x5')][_0x4305('0x14')](_0x180929)['collection'][_0x4305('0x25')](_0x2afee5));}}[_0x4305('0x3')](){this[_0x4305('0x23')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x52119d){const _0x59463d=[];for(const _0x46bfd4 of this[_0x4305('0xa')]){(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x46bfd4)['filter'])(_0x52119d)&&_0x59463d[_0x4305('0x18')](_0x46bfd4);}if(_0x59463d['length']>0x1)throw new _0x4921e7(_0x4305('0x19'),null,{'matchedUIs':_0x59463d,'annotationType':_0x52119d[_0x4305('0x29')]});}}
23
+ const _0x2ac1=['_setSelectedAnnotations','_addActiveAnnotation','detach','init','context','activate','setActiveAnnotation','type','requires','plugins','from','find','function','pluginName','has','switchTo','annotationsuis-register-already-registered','_uisData','attach','refilterAnnotations','deactivate','set','annotationsuis-annotation-mismatch','AnnotationsUIs','add','stopListening','get','listenTo','collection','annotationsuis-activate-missing-ui','_uis','destroy','_visibleAnnotations','activeUIs','push','delete','deactivateAll','_activateAnnotation','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','activeAnnotations','length','isActive','register','filter','_deactivateAllAnnotations','remove','change:activeAnnotation'];(function(_0x32cc34,_0x2ac168){const _0xbadec2=function(_0x1ae306){while(--_0x1ae306){_0x32cc34['push'](_0x32cc34['shift']());}};_0xbadec2(++_0x2ac168);}(_0x2ac1,0x139));const _0xbade=function(_0x32cc34,_0x2ac168){_0x32cc34=_0x32cc34-0x0;let _0xbadec2=_0x2ac1[_0x32cc34];return _0xbadec2;};import{ContextPlugin as _0x928b54}from'ckeditor5/src/core';import{CKEditorError as _0x248d00}from'ckeditor5/src/utils';import _0x1b6ba6,{bindAnnotationCollections as _0x5eab34}from'./annotationcollection';import _0x478de1 from'./annotations';export default class I extends _0x928b54{static get[_0xbade('0x1f')](){return[_0x478de1];}static get[_0xbade('0x24')](){return _0xbade('0x2e');}constructor(_0x73be77){super(_0x73be77),this[_0xbade('0x8')]=new Set(),this[_0xbade('0x5')]=new Map(),this[_0xbade('0x28')]=new Map();}[_0xbade('0x1a')](){const _0x1a76dd=this[_0xbade('0x1b')]['plugins']['get'](_0x478de1);this['listenTo'](_0x1a76dd,_0xbade('0xc'),(_0x271e7c,_0x1d5fae)=>{for(const _0x104775 of this[_0xbade('0x8')]){const _0x51f774=this[_0xbade('0x5')]['get'](_0x104775);(0x0,this[_0xbade('0x28')][_0xbade('0x1')](_0x104775)['filter'])(_0x1d5fae)&&_0x51f774[_0xbade('0x1d')](_0x1d5fae);}}),this[_0xbade('0x2')](_0x1a76dd,_0xbade('0x14'),()=>{for(const _0x407590 of this[_0xbade('0x8')]){this['_uis'][_0xbade('0x1')](_0x407590)[_0xbade('0x1d')](null);}}),this[_0xbade('0x2')](_0x1a76dd[_0xbade('0x7')],_0xbade('0x2f'),(_0x2c0e00,_0x65d54d)=>{this[_0xbade('0xe')](_0x65d54d);});}[_0xbade('0xd')](){return this[_0xbade('0x8')]['size']>0x0;}[_0xbade('0x11')](_0x4bf429){return this['activeUIs'][_0xbade('0x25')](_0x4bf429);}['activate'](_0x584a6a,_0x28aec0=()=>!0x0){const _0x4c0562=this[_0xbade('0x1b')][_0xbade('0x20')][_0xbade('0x1')](_0x478de1);if(!this[_0xbade('0x5')][_0xbade('0x25')](_0x584a6a))throw new _0x248d00(_0xbade('0x4'),this,{'uiName':_0x584a6a});this[_0xbade('0x11')](_0x584a6a)&&this['deactivate'](_0x584a6a),this['activeUIs'][_0xbade('0x2f')](_0x584a6a);const _0x84fbe2=new _0x1b6ba6(),_0x53ed74=_0x4c0562['_visibleAnnotations'];_0x5eab34({'source':_0x53ed74,'target':_0x84fbe2,'filter':_0x28aec0}),this['_uisData'][_0xbade('0x2c')](_0x584a6a,{'collection':_0x84fbe2,'filter':_0x28aec0});const _0x2e61e7=this[_0xbade('0x5')]['get'](_0x584a6a);_0x2e61e7['attach'](_0x84fbe2),this['listenTo'](_0x2e61e7,_0xbade('0x16'),(_0x45eb08,_0x11ffe8,_0x56dc95,_0x1a9976)=>{_0x1a9976&&_0x4c0562['_removeActiveAnnotation'](_0x1a9976),_0x56dc95&&_0x4c0562[_0xbade('0x18')](_0x56dc95);});}[_0xbade('0x2b')](_0x46a33b){this[_0xbade('0x8')][_0xbade('0xa')](_0x46a33b);const _0x64e626=this['_uis'][_0xbade('0x1')](_0x46a33b);_0x64e626[_0xbade('0x19')](),this[_0xbade('0x0')](_0x64e626),this[_0xbade('0x28')][_0xbade('0x1')](_0x46a33b)[_0xbade('0x3')]['destroy'](),this[_0xbade('0x28')]['delete'](_0x46a33b);}[_0xbade('0x26')](_0x17c6e7){const _0x573ae7=this[_0xbade('0x1b')][_0xbade('0x20')][_0xbade('0x1')](_0x478de1),_0x8dabfc=Array[_0xbade('0x21')](_0x573ae7[_0xbade('0xf')])[0x0]||null;this[_0xbade('0xb')](),this[_0xbade('0x1c')](_0x17c6e7);const _0x11cfbb=this[_0xbade('0x5')][_0xbade('0x1')](_0x17c6e7);_0x11cfbb['setActiveAnnotation'](_0x8dabfc),_0x11cfbb[_0xbade('0x17')]&&_0x8dabfc&&_0x11cfbb[_0xbade('0x17')]([_0x8dabfc]);}[_0xbade('0xb')](){for(const _0x3f7dea of this['activeUIs'])this[_0xbade('0x2b')](_0x3f7dea);}[_0xbade('0x12')](_0x105cda,_0x3a45ff){if(this['_uis']['has'](_0x105cda))throw new _0x248d00(_0xbade('0x27'));if(_0xbade('0x23')!=typeof _0x3a45ff[_0xbade('0x29')]||_0xbade('0x23')!=typeof _0x3a45ff['detach']||_0xbade('0x23')!=typeof _0x3a45ff[_0xbade('0x1d')])throw new _0x248d00('annotationsuis-register-invalid-interface',null);this[_0xbade('0x5')][_0xbade('0x2c')](_0x105cda,_0x3a45ff);}[_0xbade('0x2a')](){const _0x4b0732=this['context'][_0xbade('0x20')][_0xbade('0x1')](_0x478de1)[_0xbade('0x3')],_0x3869c7=new Map(),_0x4c13b6=Array[_0xbade('0x21')](this['activeUIs']);for(const _0x343f32 of this[_0xbade('0x8')]){const _0x34fe20=this[_0xbade('0x28')]['get'](_0x343f32)[_0xbade('0x3')];for(const _0x597c45 of _0x34fe20)_0x3869c7[_0xbade('0x2c')](_0x597c45,_0x343f32);}for(const _0x2468f9 of _0x4b0732){const _0x5cc0fc=_0x3869c7['get'](_0x2468f9);this[_0xbade('0xe')](_0x2468f9);const _0x59ee61=_0x4c13b6[_0xbade('0x22')](_0x51a1bd=>this[_0xbade('0x28')][_0xbade('0x1')](_0x51a1bd)[_0xbade('0x13')](_0x2468f9));_0x5cc0fc!==_0x59ee61&&(_0x5cc0fc&&this[_0xbade('0x28')][_0xbade('0x1')](_0x5cc0fc)['collection'][_0xbade('0x15')](_0x2468f9),_0x59ee61&&this[_0xbade('0x28')]['get'](_0x59ee61)[_0xbade('0x3')][_0xbade('0x2f')](_0x2468f9));}}[_0xbade('0x6')](){this[_0xbade('0xb')](),super['destroy']();}[_0xbade('0xe')](_0x2bc1e7){const _0x2e54d1=[];for(const _0x51ad61 of this[_0xbade('0x8')]){(0x0,this['_uisData'][_0xbade('0x1')](_0x51ad61)[_0xbade('0x13')])(_0x2bc1e7)&&_0x2e54d1[_0xbade('0x9')](_0x51ad61);}if(_0x2e54d1[_0xbade('0x10')]>0x1)throw new _0x248d00(_0xbade('0x2d'),null,{'matchedUIs':_0x2e54d1,'annotationType':_0x2bc1e7[_0xbade('0x1e')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc155=['plugins','addSourceCollector','has','keys','from','focusTracker','getByInnerView','element','innerView','model','collection','directChange','update','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','editing','sort','hasDomSelection','get','containsRange','uiUpdate','_dataCollectors','getRanges','set','pluginName','listenTo','change:range','document','isReadOnly','fire','push','view','range','isCollapsed','annotation','cancel','change:isFocused','selection','_editorAnnotationsData','remove','map','add','EditorAnnotations','refreshSelectedViews','editor','blur','init','refresh'];(function(_0x18c90d,_0xc15590){const _0x1ec429=function(_0x408b96){while(--_0x408b96){_0x18c90d['push'](_0x18c90d['shift']());}};_0x1ec429(++_0xc15590);}(_0xc155,0xcc));const _0x1ec4=function(_0x18c90d,_0xc15590){_0x18c90d=_0x18c90d-0x0;let _0x1ec429=_0xc155[_0x18c90d];return _0x1ec429;};import{Plugin as _0x595d09}from'ckeditor5/src/core';import{CKEditorError as _0x233116}from'ckeditor5/src/utils';import{debounce as _0x40ff51}from'lodash-es';import _0x2954c9 from'./annotations';export default class k extends _0x595d09{static get['requires'](){return[_0x2954c9];}static get[_0x1ec4('0xc')](){return _0x1ec4('0x1e');}constructor(_0xb14f8f){super(_0xb14f8f),this[_0x1ec4('0x9')]=new Set();}[_0x1ec4('0x22')](){const _0xc18a97=this[_0x1ec4('0x20')],_0x36e361=_0xc18a97[_0x1ec4('0x24')][_0x1ec4('0x6')](_0x2954c9),_0x4d20db=_0xc18a97[_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x24d684=_0x40ff51(()=>this[_0x1ec4('0x1f')](),0xa);_0x4d20db['on'](_0x1ec4('0xe'),(_0x19bd92,_0x3ca9df)=>{_0x3ca9df[_0x1ec4('0x2f')]&&(_0x24d684[_0x1ec4('0x17')](),this[_0x1ec4('0x1f')]());}),this[_0x1ec4('0xd')](_0xc18a97['editing'][_0x1ec4('0x13')][_0x1ec4('0xf')],_0x1ec4('0x18'),(_0x1bbd8b,_0x34f00a,_0x32276e)=>{_0x32276e&&_0x24d684();}),this[_0x1ec4('0xd')](_0xc18a97['ui'][_0x1ec4('0x29')],_0x1ec4('0x18'),(_0x4ac596,_0x5d0794,_0x1abbd2)=>{_0x1abbd2||_0xc18a97[_0x1ec4('0x10')]||this[_0x1ec4('0x11')](_0x1ec4('0x21'),{'isAnnotationTracked':_0x574511=>this['_editorAnnotationsData'][_0x1ec4('0x26')](_0x574511[_0x1ec4('0x2c')])});}),this[_0x1ec4('0xd')](this[_0x1ec4('0x20')]['ui'],_0x1ec4('0x0'),()=>this[_0x1ec4('0x11')](_0x1ec4('0x8')));const _0x29d22b=new Set();this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1d'),(_0x19c11c,_0x2d5701)=>{for(const _0x3ead9f of this[_0x1ec4('0x1a')][_0x1ec4('0x27')]())if(_0x3ead9f===_0x2d5701[_0x1ec4('0x2c')]){_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1d')](_0x2d5701[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['add'](_0x2d5701[_0x1ec4('0x13')]);break;}}),this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1b'),(_0x3805c2,_0xee105b)=>{_0x29d22b[_0x1ec4('0x26')](_0xee105b[_0x1ec4('0x13')])&&(_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1b')](_0xee105b[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['delete'](_0xee105b[_0x1ec4('0x13')]));});}[_0x1ec4('0x5')](){return this[_0x1ec4('0x20')][_0x1ec4('0x3')][_0x1ec4('0x13')][_0x1ec4('0x5')];}[_0x1ec4('0x25')](_0x2f2a30){if('function'!=typeof _0x2f2a30)throw new _0x233116(_0x1ec4('0x2'));this[_0x1ec4('0x9')][_0x1ec4('0x1d')](_0x2f2a30);}[_0x1ec4('0x1f')](){this['fire'](_0x1ec4('0x23'));}[_0x1ec4('0x1')]({activeAnnotation:_0x28fefa,annotations:_0x564371}){const _0x50a85d=[],_0x93cfc=this[_0x1ec4('0x20')][_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x1ded9b=Array[_0x1ec4('0x28')](_0x93cfc[_0x1ec4('0xa')]());for(const [_0x469179,_0x4ad0a2]of this[_0x1ec4('0x1a')]){const _0x510681=_0x236b14(_0x4ad0a2),_0xb973d0=_0x564371[_0x1ec4('0x2a')](_0x469179);_0x510681&&_0xb973d0&&_0x50a85d[_0x1ec4('0x12')]({'annotation':_0xb973d0,'range':_0x510681});}function _0x236b14(_0x9bc714){for(const _0x105437 of _0x9bc714)for(const _0x35631f of _0x1ded9b)if(_0x105437[_0x1ec4('0x7')](_0x35631f,!_0x93cfc[_0x1ec4('0x15')]))return _0x105437;return null;}return _0x50a85d[_0x1ec4('0x4')]((_0x251f4b,_0x325377)=>{const _0xc82b9e=_0x251f4b[_0x1ec4('0x14')],_0x23ce45=_0x325377[_0x1ec4('0x14')];if(!_0xc82b9e['isEqual'](_0x23ce45)){if(_0xc82b9e[_0x1ec4('0x7')](_0x23ce45,!0x0))return 0x1;if(_0x23ce45[_0x1ec4('0x7')](_0xc82b9e,!0x0))return-0x1;}return _0x251f4b[_0x1ec4('0x16')]==_0x28fefa?-0x1:_0x325377[_0x1ec4('0x16')]==_0x28fefa?0x1:0x0;})[_0x1ec4('0x1c')](_0x466d96=>_0x466d96[_0x1ec4('0x16')]);}get[_0x1ec4('0x1a')](){const _0x140a72=new Map();for(const _0x1d7ee5 of Array[_0x1ec4('0x28')](this[_0x1ec4('0x9')]))for(const [_0x38441e,_0x150fe4]of _0x1d7ee5())_0x140a72[_0x1ec4('0xb')](_0x38441e,_0x150fe4);return _0x140a72;}}
23
+ const _0x4b98=['range','delete','model','from','document','plugins','editing','hasDomSelection','_editorAnnotationsData','has','selection','refreshSelectedViews','editorannotations-invalid-source-callback','element','change:range','push','sort','addSourceCollector','focusTracker','isCollapsed','remove','add','change:isFocused','innerView','function','getRanges','listenTo','getByInnerView','uiUpdate','isReadOnly','map','_dataCollectors','init','keys','annotation','containsRange','editor','collection','view','EditorAnnotations','getOrderedSelectedAnnotations'];(function(_0xf2ae57,_0x4b98fc){const _0x2b3e79=function(_0x29d8c2){while(--_0x29d8c2){_0xf2ae57['push'](_0xf2ae57['shift']());}};_0x2b3e79(++_0x4b98fc);}(_0x4b98,0xa3));const _0x2b3e=function(_0xf2ae57,_0x4b98fc){_0xf2ae57=_0xf2ae57-0x0;let _0x2b3e79=_0x4b98[_0xf2ae57];return _0x2b3e79;};import{Plugin as _0x504ca4}from'ckeditor5/src/core';import{CKEditorError as _0x28a666}from'ckeditor5/src/utils';import{debounce as _0x4357a1}from'lodash-es';import _0x1dc09f from'./annotations';export default class k extends _0x504ca4{static get['requires'](){return[_0x1dc09f];}static get['pluginName'](){return _0x2b3e('0x28');}constructor(_0x3136bc){super(_0x3136bc),this[_0x2b3e('0x20')]=new Set();}[_0x2b3e('0x21')](){const _0x5a4d58=this[_0x2b3e('0x25')],_0x548143=_0x5a4d58[_0x2b3e('0x6')]['get'](_0x1dc09f),_0x11d012=_0x5a4d58[_0x2b3e('0x3')][_0x2b3e('0x5')][_0x2b3e('0xb')],_0x50e5f9=_0x4357a1(()=>this[_0x2b3e('0xc')](),0xa);_0x11d012['on'](_0x2b3e('0xf'),(_0xf5cc62,_0x569866)=>{_0x569866['directChange']&&(_0x50e5f9['cancel'](),this[_0x2b3e('0xc')]());}),this[_0x2b3e('0x1b')](_0x5a4d58['editing']['view'][_0x2b3e('0x5')],_0x2b3e('0x17'),(_0x2094d7,_0x3ab158,_0x48d7fb)=>{_0x48d7fb&&_0x50e5f9();}),this[_0x2b3e('0x1b')](_0x5a4d58['ui']['focusTracker'],_0x2b3e('0x17'),(_0x4cb111,_0x413c16,_0x37df9b)=>{_0x37df9b||_0x5a4d58[_0x2b3e('0x1e')]||this['fire']('blur',{'isAnnotationTracked':_0x474baa=>this[_0x2b3e('0x9')][_0x2b3e('0xa')](_0x474baa['innerView'])});}),this[_0x2b3e('0x1b')](this[_0x2b3e('0x25')]['ui'],'update',()=>this['fire'](_0x2b3e('0x1d')));const _0x5089d5=new Set();this[_0x2b3e('0x1b')](_0x548143['collection'],_0x2b3e('0x16'),(_0x76bf7b,_0x5341b5)=>{for(const _0x4d3758 of this['_editorAnnotationsData'][_0x2b3e('0x22')]())if(_0x4d3758===_0x5341b5[_0x2b3e('0x18')]){_0x5a4d58['ui']['focusTracker']['add'](_0x5341b5[_0x2b3e('0x27')][_0x2b3e('0xe')]),_0x5089d5['add'](_0x5341b5[_0x2b3e('0x27')]);break;}}),this[_0x2b3e('0x1b')](_0x548143[_0x2b3e('0x26')],_0x2b3e('0x15'),(_0x229ad1,_0x44d8b2)=>{_0x5089d5[_0x2b3e('0xa')](_0x44d8b2['view'])&&(_0x5a4d58['ui'][_0x2b3e('0x13')][_0x2b3e('0x15')](_0x44d8b2[_0x2b3e('0x27')]['element']),_0x5089d5[_0x2b3e('0x2')](_0x44d8b2[_0x2b3e('0x27')]));});}[_0x2b3e('0x8')](){return this[_0x2b3e('0x25')][_0x2b3e('0x7')]['view']['hasDomSelection'];}[_0x2b3e('0x12')](_0x332e5e){if(_0x2b3e('0x19')!=typeof _0x332e5e)throw new _0x28a666(_0x2b3e('0xd'));this[_0x2b3e('0x20')][_0x2b3e('0x16')](_0x332e5e);}[_0x2b3e('0xc')](){this['fire']('refresh');}[_0x2b3e('0x0')]({activeAnnotation:_0x134365,annotations:_0x9179a2}){const _0xe23ed8=[],_0x15c1d2=this['editor']['model']['document'][_0x2b3e('0xb')],_0x5ab805=Array[_0x2b3e('0x4')](_0x15c1d2[_0x2b3e('0x1a')]());for(const [_0x209f0a,_0x4461b1]of this[_0x2b3e('0x9')]){const _0x34a25b=_0x5e98fd(_0x4461b1),_0x3f5e3e=_0x9179a2[_0x2b3e('0x1c')](_0x209f0a);_0x34a25b&&_0x3f5e3e&&_0xe23ed8[_0x2b3e('0x10')]({'annotation':_0x3f5e3e,'range':_0x34a25b});}function _0x5e98fd(_0x19a459){for(const _0x2ea2f6 of _0x19a459)for(const _0x3eacfd of _0x5ab805)if(_0x2ea2f6[_0x2b3e('0x24')](_0x3eacfd,!_0x15c1d2[_0x2b3e('0x14')]))return _0x2ea2f6;return null;}return _0xe23ed8[_0x2b3e('0x11')]((_0x4fe400,_0x2b7497)=>{const _0x15084f=_0x4fe400[_0x2b3e('0x1')],_0x2dcd2d=_0x2b7497['range'];if(!_0x15084f['isEqual'](_0x2dcd2d)){if(_0x15084f[_0x2b3e('0x24')](_0x2dcd2d,!0x0))return 0x1;if(_0x2dcd2d[_0x2b3e('0x24')](_0x15084f,!0x0))return-0x1;}return _0x4fe400[_0x2b3e('0x23')]==_0x134365?-0x1:_0x2b7497[_0x2b3e('0x23')]==_0x134365?0x1:0x0;})[_0x2b3e('0x1f')](_0x454ed4=>_0x454ed4[_0x2b3e('0x23')]);}get['_editorAnnotationsData'](){const _0x2be4d6=new Map();for(const _0x25fb8c of Array[_0x2b3e('0x4')](this[_0x2b3e('0x20')]))for(const [_0x2f1a1a,_0x324465]of _0x25fb8c())_0x2be4d6['set'](_0x2f1a1a,_0x324465);return _0x2be4d6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3310=['has','isAttached','switchTo','clear','change:height','hasActive','set','getByView','targetRect','_addAnnotationToBalloon','getSelection','inlineannotations-not-allowed-with-context','annotations','updatePosition','isActive','focus','_setSelectedAnnotations','attach','delete','activeAnnotation','isFocused','_removeAnnotationFromBalloon','listenTo','focusTracker','mousedown','inline','stopListening','add','inlineannotations-attach-already-attached','_manuallyClosed','afterInit','bind','init','detach','hasView','selection','context','_balloon','includes','target','_selectedAnnotations','getRangeAt','Esc','blur','plugins','register','update','_addedAnnotations','visibleView','document','editing','remove','showStack','editableElement','setActiveAnnotation','get','change:isFocused','inlineannotations-detach-not-attached','view','editor','keystrokes'];(function(_0x562da1,_0x331039){const _0x596b1b=function(_0x46ee05){while(--_0x46ee05){_0x562da1['push'](_0x562da1['shift']());}};_0x596b1b(++_0x331039);}(_0x3310,0x1ce));const _0x596b=function(_0x562da1,_0x331039){_0x562da1=_0x562da1-0x0;let _0x596b1b=_0x3310[_0x562da1];return _0x596b1b;};import{Plugin as _0x1fe802}from'ckeditor5/src/core';import _0x7584d1 from'./annotationsuis';import _0x53ad47 from'./editorannotations';import{ContextualBalloon as _0x5a0334}from'ckeditor5/src/ui';import{MouseObserver as _0x3ec191}from'ckeditor5/src/engine';import{CKEditorError as _0x358015}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1fe802{static get['requires'](){return[_0x53ad47,_0x5a0334,_0x7584d1];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x93aa10){super(_0x93aa10),_0x93aa10[_0x596b('0xf')][_0x596b('0x17')]['addObserver'](_0x3ec191),this[_0x596b('0x1b')]=!0x1,this[_0x596b('0x20')](_0x596b('0x2d'),null),this['annotations']=null,this[_0x596b('0x37')]=new Set(),this[_0x596b('0x2')]=_0x93aa10[_0x596b('0x9')][_0x596b('0x14')](_0x5a0334),this['_addedAnnotations']=new Set(),this[_0x596b('0x5')]=[];}[_0x596b('0x3a')](){const _0x3f38ac=this['editor'][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x3f38ac[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x3f38ac[_0x596b('0xa')](_0x596b('0x33'),this),this['editor'][_0x596b('0x19')][_0x596b('0x20')](_0x596b('0x7'),(_0x391a9e,_0x2c8c09)=>{const _0x22b2d7=this[_0x596b('0x2')];if(this[_0x596b('0x1b')]&&_0x22b2d7[_0x596b('0xd')]){const _0xace132=this[_0x596b('0x26')][_0x596b('0x21')](_0x22b2d7['visibleView']);this[_0x596b('0x37')]['add'](_0xace132),this['_removeAnnotationFromBalloon'](_0xace132),_0x2c8c09();}}));}[_0x596b('0x38')](){const _0x322f10=this[_0x596b('0x18')][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x322f10[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x322f10[_0x596b('0x1f')]()||_0x322f10[_0x596b('0x1c')](_0x596b('0x33')));}['setActiveAnnotation'](_0x3b96ca){_0x3b96ca!==this[_0x596b('0x2d')]&&(this['activeAnnotation']&&(this[_0x596b('0x2d')]['isActive']=!0x1),_0x3b96ca&&this[_0x596b('0x18')]['ui'][_0x596b('0x31')]['isFocused']&&(this[_0x596b('0x23')](_0x3b96ca,!0x0),_0x3b96ca[_0x596b('0x28')]=!0x0),_0x3b96ca||this[_0x596b('0x2a')]([]),this['activeAnnotation']=_0x3b96ca);}[_0x596b('0x2b')](_0x566d47){this[_0x596b('0x26')]=_0x566d47;const _0xdc5b69=this[_0x596b('0x18')][_0x596b('0x9')]['get'](_0x7584d1),_0x2ee02a=this['_balloon'];if(this[_0x596b('0x1b')])throw new _0x358015(_0x596b('0x36'),this);if(_0xdc5b69[_0x596b('0x1')]!==this[_0x596b('0x18')])throw new _0x358015(_0x596b('0x25'),this);const _0x360554=this[_0x596b('0x18')]['plugins'][_0x596b('0x14')]('EditorAnnotations');this['listenTo'](_0x360554,'refresh',function(){const _0x274ea2=_0x360554['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x274ea2),this[_0x596b('0x13')](_0x274ea2[0x0]||null);}[_0x596b('0x39')](this)),this['listenTo'](_0x360554,_0x596b('0x8'),(_0x6ea4f5,{isAnnotationTracked:_0x4ffb10})=>{this[_0x596b('0x2d')]&&_0x4ffb10(this[_0x596b('0x2d')])&&(this[_0x596b('0x2a')]([]),this[_0x596b('0x13')](null));}),this['listenTo'](this[_0x596b('0x18')]['ui'][_0x596b('0x31')],_0x596b('0x15'),(_0x25f5b4,_0x538393,_0x15b1bf)=>{_0x15b1bf||this['setActiveAnnotation'](null);}),this['listenTo'](_0x566d47,'remove',(_0x1c0a5e,_0x1d0f93)=>{this[_0x596b('0x2f')](_0x1d0f93),_0x1d0f93===this[_0x596b('0x2d')]&&this[_0x596b('0x13')](null);}),this['listenTo'](_0x2ee02a,'change:visibleView',(_0x3fc138,_0x191a75,_0x25bf5f,_0x5c7951)=>{if(_0x5c7951&&this[_0x596b('0x34')](_0x5c7951),!_0x25bf5f||!_0x566d47[_0x596b('0x21')](_0x25bf5f))return;const _0x4ccaa8=_0x566d47[_0x596b('0x21')](_0x25bf5f);this[_0x596b('0x30')](_0x25bf5f,_0x596b('0x1e'),()=>{_0x2ee02a[_0x596b('0x27')]();}),this['listenTo'](_0x25bf5f,'Esc',()=>{this['_manuallyClosed']['add'](_0x4ccaa8),this['_removeAnnotationFromBalloon'](_0x4ccaa8),this['editor'][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')]();}),this[_0x596b('0x2d')]!==_0x4ccaa8&&this[_0x596b('0x13')](_0x4ccaa8);}),this['listenTo'](this[_0x596b('0x18')]['ui'],_0x596b('0xb'),()=>{_0x2ee02a['visibleView']&&(_0x566d47['getByView'](_0x2ee02a[_0x596b('0xd')])&&_0x2ee02a[_0x596b('0x27')]());}),this[_0x596b('0x30')](this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')],_0x596b('0x32'),()=>{this['_manuallyClosed'][_0x596b('0x1d')]();}),this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')][_0x596b('0x0')][_0x596b('0x12')]&&this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')](),this[_0x596b('0x1b')]=!0x0;}[_0x596b('0x3b')](){if(!this['isAttached'])throw new _0x358015(_0x596b('0x16'),this);this[_0x596b('0x13')](null);for(const _0x27a03b of this[_0x596b('0xc')])this['_removeAnnotationFromBalloon'](_0x27a03b);this[_0x596b('0x34')](),this['isAttached']=!0x1,this[_0x596b('0x26')]=null;}['destroy'](){this[_0x596b('0x1b')]&&this['detach']();}[_0x596b('0x2a')](_0x297975){const _0x2c6ca2=this[_0x596b('0x5')];for(const _0x3c1e91 of _0x2c6ca2)_0x297975[_0x596b('0x3')](_0x3c1e91)||this[_0x596b('0x37')][_0x596b('0x2c')](_0x3c1e91);for(const _0x7d37eb of this[_0x596b('0x26')])_0x297975['includes'](_0x7d37eb)||this['_removeAnnotationFromBalloon'](_0x7d37eb);if(this[_0x596b('0x18')]['ui'][_0x596b('0x31')][_0x596b('0x2e')])for(const _0x5f2bec of _0x297975)this[_0x596b('0x23')](_0x5f2bec);this[_0x596b('0x5')]=_0x297975;}[_0x596b('0x23')](_0x1edfdb,_0x1345b3){this[_0x596b('0x37')][_0x596b('0x1a')](_0x1edfdb)||(this['_addedAnnotations']['has'](_0x1edfdb)||this[_0x596b('0x2')][_0x596b('0x3c')](_0x1edfdb[_0x596b('0x17')])||(this[_0x596b('0xc')][_0x596b('0x35')](_0x1edfdb),this['_balloon'][_0x596b('0x35')]({'stackId':_0x1edfdb[_0x596b('0x17')]['id'],'view':_0x1edfdb['view'],'position':{'target':()=>_0x1edfdb[_0x596b('0x4')]||_0x1edfdb[_0x596b('0x22')]||document[_0x596b('0x24')]()[_0x596b('0x6')](0x0)}})),_0x1345b3&&this[_0x596b('0x2')][_0x596b('0x11')](_0x1edfdb[_0x596b('0x17')]['id']));}[_0x596b('0x2f')](_0x4d3212){this[_0x596b('0xc')][_0x596b('0x1a')](_0x4d3212)&&this['_balloon'][_0x596b('0x3c')](_0x4d3212[_0x596b('0x17')])&&(this[_0x596b('0xc')][_0x596b('0x2c')](_0x4d3212),this['_balloon'][_0x596b('0x10')](_0x4d3212['view']));}}
23
+ const _0x4486=['switchTo','_removeAnnotationFromBalloon','editing','addObserver','delete','annotations','inlineannotations-attach-already-attached','view','focus','isFocused','getRangeAt','listenTo','stopListening','get','focusTracker','set','context','document','blur','_addedAnnotations','isActive','editor','_setSelectedAnnotations','selection','init','visibleView','plugins','getSelection','attach','change:height','getByView','EditorAnnotations','has','requires','hasActive','_selectedAnnotations','hasView','targetRect','includes','destroy','detach','remove','_manuallyClosed','pluginName','bind','add','_addAnnotationToBalloon','afterInit','_balloon','inlineannotations-detach-not-attached','setActiveAnnotation','isAttached','update','refresh','activeAnnotation','change:visibleView','change:isFocused','Esc','register','updatePosition','editableElement','inline'];(function(_0x31e4ea,_0x4486c1){const _0x2b9714=function(_0x2cf135){while(--_0x2cf135){_0x31e4ea['push'](_0x31e4ea['shift']());}};_0x2b9714(++_0x4486c1);}(_0x4486,0x135));const _0x2b97=function(_0x31e4ea,_0x4486c1){_0x31e4ea=_0x31e4ea-0x0;let _0x2b9714=_0x4486[_0x31e4ea];return _0x2b9714;};import{Plugin as _0x1d8821}from'ckeditor5/src/core';import _0x116dd7 from'./annotationsuis';import _0x4573bf from'./editorannotations';import{ContextualBalloon as _0x348557}from'ckeditor5/src/ui';import{MouseObserver as _0x11caaa}from'ckeditor5/src/engine';import{CKEditorError as _0x19e256}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1d8821{static get[_0x2b97('0x22')](){return[_0x4573bf,_0x348557,_0x116dd7];}static get[_0x2b97('0x2c')](){return'InlineAnnotations';}constructor(_0x34d9e6){super(_0x34d9e6),_0x34d9e6['editing'][_0x2b97('0x8')][_0x2b97('0x4')](_0x11caaa),this[_0x2b97('0x34')]=!0x1,this[_0x2b97('0x10')](_0x2b97('0x37'),null),this[_0x2b97('0x6')]=null,this[_0x2b97('0x2b')]=new Set(),this[_0x2b97('0x31')]=_0x34d9e6['plugins'][_0x2b97('0xe')](_0x348557),this[_0x2b97('0x14')]=new Set(),this[_0x2b97('0x24')]=[];}[_0x2b97('0x19')](){const _0x48151d=this[_0x2b97('0x16')]['plugins'][_0x2b97('0xe')](_0x116dd7);_0x48151d[_0x2b97('0x11')]===this[_0x2b97('0x16')]&&(_0x48151d[_0x2b97('0x3b')](_0x2b97('0x0'),this),this[_0x2b97('0x16')]['keystrokes'][_0x2b97('0x10')](_0x2b97('0x3a'),(_0x45bde7,_0x40094c)=>{const _0x274291=this[_0x2b97('0x31')];if(this[_0x2b97('0x34')]&&_0x274291[_0x2b97('0x1a')]){const _0x266c4b=this[_0x2b97('0x6')][_0x2b97('0x1f')](_0x274291[_0x2b97('0x1a')]);this[_0x2b97('0x2b')][_0x2b97('0x2e')](_0x266c4b),this[_0x2b97('0x2')](_0x266c4b),_0x40094c();}}));}[_0x2b97('0x30')](){const _0x18a16a=this[_0x2b97('0x16')][_0x2b97('0x1b')][_0x2b97('0xe')](_0x116dd7);_0x18a16a[_0x2b97('0x11')]===this['editor']&&(_0x18a16a[_0x2b97('0x23')]()||_0x18a16a[_0x2b97('0x1')](_0x2b97('0x0')));}[_0x2b97('0x33')](_0x3ce7df){_0x3ce7df!==this[_0x2b97('0x37')]&&(this[_0x2b97('0x37')]&&(this[_0x2b97('0x37')][_0x2b97('0x15')]=!0x1),_0x3ce7df&&this[_0x2b97('0x16')]['ui']['focusTracker'][_0x2b97('0xa')]&&(this['_addAnnotationToBalloon'](_0x3ce7df,!0x0),_0x3ce7df[_0x2b97('0x15')]=!0x0),_0x3ce7df||this[_0x2b97('0x17')]([]),this['activeAnnotation']=_0x3ce7df);}[_0x2b97('0x1d')](_0x223f3e){this[_0x2b97('0x6')]=_0x223f3e;const _0x4db9dc=this['editor'][_0x2b97('0x1b')][_0x2b97('0xe')](_0x116dd7),_0x3414c1=this[_0x2b97('0x31')];if(this[_0x2b97('0x34')])throw new _0x19e256(_0x2b97('0x7'),this);if(_0x4db9dc[_0x2b97('0x11')]!==this['editor'])throw new _0x19e256('inlineannotations-not-allowed-with-context',this);const _0x30195e=this['editor'][_0x2b97('0x1b')][_0x2b97('0xe')](_0x2b97('0x20'));this['listenTo'](_0x30195e,_0x2b97('0x36'),function(){const _0x38307e=_0x30195e['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x2b97('0x6')]});this[_0x2b97('0x17')](_0x38307e),this[_0x2b97('0x33')](_0x38307e[0x0]||null);}[_0x2b97('0x2d')](this)),this[_0x2b97('0xc')](_0x30195e,_0x2b97('0x13'),(_0xaa46a,{isAnnotationTracked:_0x235fee})=>{this[_0x2b97('0x37')]&&_0x235fee(this[_0x2b97('0x37')])&&(this['_setSelectedAnnotations']([]),this[_0x2b97('0x33')](null));}),this[_0x2b97('0xc')](this[_0x2b97('0x16')]['ui'][_0x2b97('0xf')],_0x2b97('0x39'),(_0x56d4fc,_0x3d731f,_0x466761)=>{_0x466761||this['setActiveAnnotation'](null);}),this[_0x2b97('0xc')](_0x223f3e,'remove',(_0x4e084d,_0x2b33fc)=>{this[_0x2b97('0x2')](_0x2b33fc),_0x2b33fc===this[_0x2b97('0x37')]&&this['setActiveAnnotation'](null);}),this[_0x2b97('0xc')](_0x3414c1,_0x2b97('0x38'),(_0x2f05ed,_0x529951,_0x49271e,_0x587372)=>{if(_0x587372&&this[_0x2b97('0xd')](_0x587372),!_0x49271e||!_0x223f3e[_0x2b97('0x1f')](_0x49271e))return;const _0x25580c=_0x223f3e['getByView'](_0x49271e);this['listenTo'](_0x49271e,_0x2b97('0x1e'),()=>{_0x3414c1[_0x2b97('0x3c')]();}),this[_0x2b97('0xc')](_0x49271e,_0x2b97('0x3a'),()=>{this['_manuallyClosed'][_0x2b97('0x2e')](_0x25580c),this['_removeAnnotationFromBalloon'](_0x25580c),this[_0x2b97('0x16')][_0x2b97('0x3')][_0x2b97('0x8')]['focus']();}),this['activeAnnotation']!==_0x25580c&&this[_0x2b97('0x33')](_0x25580c);}),this[_0x2b97('0xc')](this[_0x2b97('0x16')]['ui'],_0x2b97('0x35'),()=>{_0x3414c1['visibleView']&&(_0x223f3e[_0x2b97('0x1f')](_0x3414c1[_0x2b97('0x1a')])&&_0x3414c1['updatePosition']());}),this[_0x2b97('0xc')](this['editor'][_0x2b97('0x3')][_0x2b97('0x8')][_0x2b97('0x12')],'mousedown',()=>{this[_0x2b97('0x2b')]['clear']();}),this[_0x2b97('0x16')][_0x2b97('0x3')][_0x2b97('0x8')][_0x2b97('0x12')][_0x2b97('0x18')][_0x2b97('0x3d')]&&this[_0x2b97('0x16')][_0x2b97('0x3')]['view'][_0x2b97('0x9')](),this['isAttached']=!0x0;}[_0x2b97('0x29')](){if(!this[_0x2b97('0x34')])throw new _0x19e256(_0x2b97('0x32'),this);this[_0x2b97('0x33')](null);for(const _0x5b1952 of this[_0x2b97('0x14')])this[_0x2b97('0x2')](_0x5b1952);this['stopListening'](),this[_0x2b97('0x34')]=!0x1,this['annotations']=null;}[_0x2b97('0x28')](){this[_0x2b97('0x34')]&&this[_0x2b97('0x29')]();}[_0x2b97('0x17')](_0x326acd){const _0x4c8501=this['_selectedAnnotations'];for(const _0x4851f1 of _0x4c8501)_0x326acd[_0x2b97('0x27')](_0x4851f1)||this['_manuallyClosed'][_0x2b97('0x5')](_0x4851f1);for(const _0x131d66 of this[_0x2b97('0x6')])_0x326acd[_0x2b97('0x27')](_0x131d66)||this['_removeAnnotationFromBalloon'](_0x131d66);if(this['editor']['ui']['focusTracker'][_0x2b97('0xa')])for(const _0x8890c7 of _0x326acd)this[_0x2b97('0x2f')](_0x8890c7);this['_selectedAnnotations']=_0x326acd;}[_0x2b97('0x2f')](_0x3b9d27,_0xcd10dd){this[_0x2b97('0x2b')][_0x2b97('0x21')](_0x3b9d27)||(this[_0x2b97('0x14')]['has'](_0x3b9d27)||this[_0x2b97('0x31')][_0x2b97('0x25')](_0x3b9d27['view'])||(this[_0x2b97('0x14')]['add'](_0x3b9d27),this[_0x2b97('0x31')][_0x2b97('0x2e')]({'stackId':_0x3b9d27[_0x2b97('0x8')]['id'],'view':_0x3b9d27[_0x2b97('0x8')],'position':{'target':()=>_0x3b9d27['target']||_0x3b9d27[_0x2b97('0x26')]||document[_0x2b97('0x1c')]()[_0x2b97('0xb')](0x0)}})),_0xcd10dd&&this[_0x2b97('0x31')]['showStack'](_0x3b9d27[_0x2b97('0x8')]['id']));}[_0x2b97('0x2')](_0x5488f5){this[_0x2b97('0x14')][_0x2b97('0x21')](_0x5488f5)&&this['_balloon'][_0x2b97('0x25')](_0x5488f5[_0x2b97('0x8')])&&(this[_0x2b97('0x14')][_0x2b97('0x5')](_0x5488f5),this[_0x2b97('0x31')][_0x2b97('0x2a')](_0x5488f5['view']));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x332b=['init','rearrange','has','narrowsidebar-detach-not-attached','low','type','get','first','remove','mousedown','ck-sidebar--narrow','content','attachToDom','execute','_throttledRefreshPositioning','removeEventListener','target','refreshPositioning','cancel','add','values','attach','editors','_selectedAnnotations','delete','getOrderedSelectedAnnotations','ready','from','stopListening','isAttached','_refreshPositioning','narrowsidebar-attach-already-attached','pluginName','set:container','focus','locale','activeAnnotation','includes','change:height','hasDomSelection','stopPropagation','unpin','_showBalloon','balloonPanelView','set','isDirty','destroy','setActiveAnnotation','refresh','preventClosingBalloon','view','Sidebar','pin','EditorAnnotations','high','northArrowSouth','_hideBalloon','NarrowSidebar','resize','element','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','detach','defaultPositions','_updateBalloonPosition','context','clear','listenTo','uiUpdate','_detachListeners','stop','narrowSidebar','blur','annotations','keyCode','_annotations','isVisible','_domEmitter','_setSelectedAnnotations','bodyCollection','southArrowNorthEast','create','_editorAnnotations','preventDefault','plugins','_manuallyClosedAnnotationViews','off','detachFromDom','length','_annotationToNarrowView','contains','_attachListeners'];(function(_0xa98bd8,_0x332b83){const _0x541aa7=function(_0x22f4db){while(--_0x22f4db){_0xa98bd8['push'](_0xa98bd8['shift']());}};_0x541aa7(++_0x332b83);}(_0x332b,0x90));const _0x541a=function(_0xa98bd8,_0x332b83){_0xa98bd8=_0xa98bd8-0x0;let _0x541aa7=_0x332b[_0xa98bd8];return _0x541aa7;};import{ContextPlugin as _0xffe2e}from'ckeditor5/src/core';import _0x505547 from'./annotationsuis';import _0x2cf235 from'./sidebar';import _0x3a0fed from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5de32f,BodyCollection as _0x121e62}from'ckeditor5/src/ui';import{CKEditorError as _0x2617cf,DomEmitterMixin as _0x377e15,keyCodes as _0x396b0e,Collection as _0x3f35f8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x13bba1}from'lodash-es';export default class s extends _0xffe2e{static get['requires'](){return[_0x2cf235,_0x505547];}static get[_0x541a('0x48')](){return _0x541a('0x5');}constructor(_0x39535e){super(_0x39535e),this[_0x541a('0x45')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x541a('0x19')]=Object[_0x541a('0x1d')](_0x377e15),this[_0x541a('0x25')]=new Map(),this[_0x541a('0x54')](_0x541a('0x4c'),null),this[_0x541a('0x15')]=null,this[_0x541a('0x3f')]=[],this['_editorAnnotations']=new _0x3f35f8(),this[_0x541a('0x36')]=_0x13bba1(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x541a('0x28')](){this[_0x541a('0xd')]['plugins'][_0x541a('0x2e')](_0x505547)['register'](_0x541a('0x13'),this),this[_0x541a('0x1b')]=new _0x121e62(this['context'][_0x541a('0x4b')]),this[_0x541a('0x53')]=new _0x5de32f(this[_0x541a('0xd')]['locale']),this[_0x541a('0x1b')][_0x541a('0x34')](),this[_0x541a('0x1b')][_0x541a('0x3b')](this[_0x541a('0x53')]);}['attach'](_0x195575){this[_0x541a('0x15')]=_0x195575;const _0x424509=this[_0x541a('0xd')]['plugins']['get'](_0x2cf235),_0x4852f8=this['balloonPanelView'];if(_0x424509[_0x541a('0x17')]=_0x195575,this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x47'),this);this['isAttached']=!0x0,this['listenTo'](_0x424509,_0x541a('0x49'),()=>{this[_0x541a('0xa')](),this[_0x541a('0xf')](_0x424509,'change:container',_0x14ebfe=>{_0x14ebfe[_0x541a('0x22')](),this[_0x541a('0x3d')](_0x195575);});}),_0x424509['_attachToContainer']({'viewClass':_0x541a('0x32'),'spaceBetweenItems':0x5});const _0x2162c3=_0x3552f3=>{const _0x5f3645=new _0x3a0fed(this[_0x541a('0xd')][_0x541a('0x4b')]);_0x424509['addAnnotation'](_0x3552f3,_0x5f3645),this[_0x541a('0x25')][_0x541a('0x54')](_0x3552f3,_0x5f3645),_0x5f3645['bind']('isDirty','annotationType','number')['to'](_0x3552f3[_0x541a('0x5a')],_0x541a('0x55'),_0x541a('0x2d'),_0x541a('0x24')),_0x5f3645['on'](_0x541a('0x35'),()=>{this['_manuallyClosedAnnotationViews'][_0x541a('0xe')](),_0x4852f8[_0x541a('0x33')][_0x541a('0x2f')]!==_0x3552f3['view']?(this[_0x541a('0x52')](_0x3552f3),_0x3552f3[_0x541a('0x5a')]['element'][_0x541a('0x4a')](),this['setActiveAnnotation'](_0x3552f3)):this[_0x541a('0x57')](null);});};for(const _0x541c3a of _0x195575)_0x2162c3(_0x541c3a);this[_0x541a('0xf')](_0x195575,_0x541a('0x3b'),(_0x57da1e,_0x355843)=>{_0x2162c3(_0x355843);}),this['listenTo'](_0x195575,'remove',(_0x2243cd,_0x326b49,_0x55165f)=>{this[_0x541a('0x25')][_0x541a('0x2e')](_0x326b49)[_0x541a('0x56')](),this[_0x541a('0x25')][_0x541a('0x40')](_0x326b49),_0x424509[_0x541a('0x29')]({'removedAnnotation':_0x326b49,'previousAnnotation':_0x195575['get'](_0x55165f-0x1),'nextAnnotation':_0x195575[_0x541a('0x2e')](_0x55165f+0x1)}),_0x326b49===this[_0x541a('0x4c')]&&this[_0x541a('0x57')](null);},{'priority':_0x541a('0x2c')}),this['listenTo'](_0x195575,'focus',(_0x29c8e8,_0x59f7fc)=>{this['setActiveAnnotation'](_0x59f7fc);}),this[_0x541a('0xf')](_0x195575,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x541a('0x19')][_0x541a('0xf')](document,'keydown',(_0x29059e,_0x20e48d)=>{_0x20e48d[_0x541a('0x16')]===_0x396b0e['esc']&&_0x4852f8['isVisible']&&(this[_0x541a('0x21')][_0x541a('0x3b')](_0x4852f8[_0x541a('0x33')]['first']),this[_0x541a('0x4')](),_0x20e48d[_0x541a('0x50')](),_0x20e48d[_0x541a('0x1f')]());}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x20a93a,_0x5f2866)=>{const _0x105ff4=_0x5f2866[_0x541a('0x38')];_0x4852f8[_0x541a('0x18')]&&_0x4852f8['element'][_0x541a('0x26')](_0x105ff4)||_0x424509[_0x541a('0x5a')]['element'][_0x541a('0x26')](_0x105ff4)||_0x20a93a['preventClosingBalloon']||(this[_0x541a('0x21')][_0x541a('0xe')](),this[_0x541a('0x4')](),this[_0x541a('0x57')](null));});const _0x570716=this[_0x541a('0xd')]['editors']?this['context'][_0x541a('0x3e')]:new _0x3f35f8([this[_0x541a('0xd')]]);for(const _0x1554a1 of _0x570716)this['_integrateWithEditorAnnotations'](_0x1554a1);this[_0x541a('0xf')](_0x570716,'add',(_0x5184a8,_0x4ff103)=>{this[_0x541a('0xf')](_0x4ff103,_0x541a('0x42'),()=>{this[_0x541a('0x9')](_0x4ff103);});}),this[_0x541a('0xf')](_0x570716,_0x541a('0x30'),(_0x4f3e76,_0x56c28c)=>{_0x56c28c[_0x541a('0x20')]['has'](_0x541a('0x1'))&&this[_0x541a('0x8')](_0x56c28c['plugins'][_0x541a('0x2e')](_0x541a('0x1')));}),window['addEventListener']('resize',this[_0x541a('0x36')]),this[_0x541a('0x46')]();}[_0x541a('0x57')](_0x2393b2){if(_0x2393b2===this['activeAnnotation'])return;const _0x1782df=this['context']['plugins']['get'](_0x541a('0x5b'));if(_0x1782df[_0x541a('0x58')]({'blurredAnnotation':this[_0x541a('0x4c')],'activatedAnnotation':_0x2393b2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2393b2)_0x1782df['getSidebarItemView'](_0x2393b2)?this['_showBalloon'](_0x2393b2):this[_0x541a('0x4')]();else this[_0x541a('0x4')]();this[_0x541a('0x4c')]=_0x2393b2;}[_0x541a('0xa')](){if(!this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x2b'),this);this[_0x541a('0x57')](null);const _0x43d06e=this['context']['plugins'][_0x541a('0x2e')](_0x541a('0x5b'));this[_0x541a('0x4')](),Array[_0x541a('0x43')](this[_0x541a('0x25')][_0x541a('0x3c')](),_0xec3509=>_0xec3509[_0x541a('0x56')]()),this[_0x541a('0x25')][_0x541a('0xe')](),_0x43d06e['_detachFromContainer'](this['annotations']),this[_0x541a('0x44')](),this[_0x541a('0x19')][_0x541a('0x44')](),this['stopListening'](this['context'][_0x541a('0x3e')]);for(const _0x4cec6f of Array['from'](this[_0x541a('0x1e')]))this[_0x541a('0x8')](_0x4cec6f);window[_0x541a('0x37')](_0x541a('0x6'),this[_0x541a('0x36')]),this[_0x541a('0x36')][_0x541a('0x3a')](),this[_0x541a('0x3f')]=[],this[_0x541a('0x45')]=!0x1,this['annotations']=null;}[_0x541a('0x56')](){this[_0x541a('0x45')]&&this['detach'](),this['bodyCollection'][_0x541a('0x23')]();}[_0x541a('0x9')](_0x30c6e5){const _0x474fe2=_0x30c6e5[_0x541a('0x20')][_0x541a('0x2e')](_0x541a('0x1')),_0x1afdc3=this['context'][_0x541a('0x20')][_0x541a('0x2e')](_0x2cf235),_0x2cf952=this[_0x541a('0x15')],_0x70c65a=this[_0x541a('0x53')],_0x586ed4=()=>{const _0x3110fc=_0x474fe2[_0x541a('0x41')]({'activeAnnotation':this[_0x541a('0x4c')],'annotations':this[_0x541a('0x15')]});this[_0x541a('0x1a')](_0x3110fc),this['setActiveAnnotation'](_0x3110fc[0x0]||null);};this['listenTo'](_0x474fe2,_0x541a('0x58'),_0x586ed4),this[_0x541a('0xf')](_0x474fe2,'blur',(_0x30e7ef,{isAnnotationTracked:_0x4aa007})=>{this[_0x541a('0x4c')]&&_0x4aa007(this[_0x541a('0x4c')])&&(this[_0x541a('0x1a')]([]),this[_0x541a('0x57')](null));}),this[_0x541a('0xf')](_0x474fe2,_0x541a('0x10'),()=>{this[_0x541a('0x36')]();}),this[_0x541a('0xf')](_0x2cf952,_0x541a('0x14'),_0x4857b5=>{_0x474fe2[_0x541a('0x4f')]()&&_0x4857b5[_0x541a('0x12')]();},{'priority':'high'}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x3027e4,_0x5d7d9b)=>{const _0x3fb3d8=_0x5d7d9b['target'];_0x70c65a[_0x541a('0x18')]&&_0x70c65a[_0x541a('0x7')]['contains'](_0x3fb3d8)||_0x1afdc3[_0x541a('0x5a')][_0x541a('0x7')]['contains'](_0x3fb3d8)||this[_0x541a('0x4c')]&&_0x474fe2[_0x541a('0x4f')]()&&(_0x586ed4(),_0x3027e4[_0x541a('0x59')]=!0x0);},{'priority':_0x541a('0x2')}),this[_0x541a('0x1e')][_0x541a('0x3b')](_0x474fe2);}[_0x541a('0x8')](_0x2c6900){_0x2c6900&&(this[_0x541a('0x44')](_0x2c6900),this[_0x541a('0x1e')]['remove'](_0x2c6900));}['_setSelectedAnnotations'](_0x89c52c){for(const _0x402b26 of this[_0x541a('0x3f')])_0x89c52c[_0x541a('0x4d')](_0x402b26)||this[_0x541a('0x21')][_0x541a('0x40')](_0x402b26[_0x541a('0x5a')]);this[_0x541a('0x3f')]=_0x89c52c;}[_0x541a('0x46')](){const _0x908e06=this[_0x541a('0x53')];this[_0x541a('0x15')][_0x541a('0x39')](),_0x908e06['isVisible']&&this[_0x541a('0xc')]();}[_0x541a('0x52')](_0x45da14){if(this[_0x541a('0x21')][_0x541a('0x2a')](_0x45da14[_0x541a('0x5a')]))return;const _0x47064b=this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0x2f')];_0x47064b!==_0x45da14[_0x541a('0x5a')]?(_0x47064b&&this[_0x541a('0x11')](_0x47064b),this[_0x541a('0x27')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0xe')](),this['balloonPanelView'][_0x541a('0x33')][_0x541a('0x3b')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0xc')]()):this[_0x541a('0xc')]();}[_0x541a('0xc')](){const _0x5dd71a=this[_0x541a('0x53')][_0x541a('0x33')]['first'],_0x2f6f40=this[_0x541a('0x15')]['getByView'](_0x5dd71a);if(!this[_0x541a('0x25')][_0x541a('0x2a')](_0x2f6f40))return;const _0x52a4c6=this['_annotationToNarrowView'][_0x541a('0x2e')](_0x2f6f40)[_0x541a('0x7')],_0x39a040=function(){const _0x5dcf8f=_0x5de32f[_0x541a('0xb')];return[_0x5dcf8f[_0x541a('0x1c')],_0x5dcf8f['northArrowSouthEast'],_0x5dcf8f['southArrowNorth'],_0x5dcf8f[_0x541a('0x3')],_0x5dcf8f['southArrowNorthWest'],_0x5dcf8f['northArrowSouthWest']];}();this[_0x541a('0x53')][_0x541a('0x0')]({'target':_0x52a4c6,'positions':_0x39a040});}[_0x541a('0x4')](){const _0x36b840=this[_0x541a('0x53')],_0x23f01a=_0x36b840['content']['first'];_0x23f01a&&(this['_detachListeners'](_0x23f01a),_0x36b840[_0x541a('0x51')](),_0x36b840['content']['clear']());}['_attachListeners'](_0x39acba){this[_0x541a('0xf')](_0x39acba,_0x541a('0x4e'),()=>this[_0x541a('0xc')]()),this['listenTo'](_0x39acba,'Esc',(_0x973a57,_0x28a6b9)=>{this[_0x541a('0x21')]['add'](_0x39acba),this['_hideBalloon'](),_0x28a6b9();});}[_0x541a('0x11')](_0x31e3f7){this[_0x541a('0x44')](_0x31e3f7);}}
23
+ const _0x4305=['create','_attachListeners','blur','_setSelectedAnnotations','add','refresh','clear','set:container','type','pluginName','locale','northArrowSouthEast','focus','narrowSidebar','attach','southArrowNorthEast','preventDefault','values','first','stopPropagation','detachFromDom','_editorAnnotations','delete','low','balloonPanelView','includes','element','annotations','requires','off','change:container','pin','_selectedAnnotations','removeEventListener','EditorAnnotations','activeAnnotation','_annotationToNarrowView','getSidebarItemView','_manuallyClosedAnnotationViews','_domEmitter','_hideBalloon','rearrange','high','register','_showBalloon','_integrateWithEditorAnnotations','northArrowSouthWest','addAnnotation','cancel','execute','preventClosingBalloon','isVisible','Sidebar','isAttached','esc','has','Esc','getByView','hasDomSelection','_throttledRefreshPositioning','defaultPositions','listenTo','_refreshPositioning','annotationType','refreshPositioning','southArrowNorth','number','getOrderedSelectedAnnotations','uiUpdate','_attachToContainer','stopListening','mousedown','isDirty','_detachListeners','content','_destroyEditorAnnotationsIntegration','view','length','resize','change:height','bodyCollection','remove','context','detach','set','destroy','target','editors','narrowsidebar-detach-not-attached','from','_updateBalloonPosition','get','ck-sidebar--narrow','unpin','contains','southArrowNorthWest','setActiveAnnotation','_annotations','plugins'];(function(_0x546ae9,_0x4305d0){const _0x3b8630=function(_0x565051){while(--_0x565051){_0x546ae9['push'](_0x546ae9['shift']());}};_0x3b8630(++_0x4305d0);}(_0x4305,0x1c6));const _0x3b86=function(_0x546ae9,_0x4305d0){_0x546ae9=_0x546ae9-0x0;let _0x3b8630=_0x4305[_0x546ae9];return _0x3b8630;};import{ContextPlugin as _0x4435ab}from'ckeditor5/src/core';import _0xd71489 from'./annotationsuis';import _0x34fd7c from'./sidebar';import _0x51b7d7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x6b225,BodyCollection as _0x44e203}from'ckeditor5/src/ui';import{CKEditorError as _0x3a2f29,DomEmitterMixin as _0x49ebe4,keyCodes as _0x26eaee,Collection as _0x59100f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x540086}from'lodash-es';export default class s extends _0x4435ab{static get[_0x3b86('0x45')](){return[_0x34fd7c,_0xd71489];}static get[_0x3b86('0x32')](){return'NarrowSidebar';}constructor(_0x1d06ca){super(_0x1d06ca),this[_0x3b86('0x5e')]=!0x1,this[_0x3b86('0x4f')]=new Set(),this['_domEmitter']=Object[_0x3b86('0x29')](_0x49ebe4),this[_0x3b86('0x4d')]=new Map(),this[_0x3b86('0x1a')]('activeAnnotation',null),this[_0x3b86('0x44')]=null,this[_0x3b86('0x49')]=[],this[_0x3b86('0x3e')]=new _0x59100f(),this[_0x3b86('0x1')]=_0x540086(()=>{this[_0x3b86('0x4')]();},0x190,{'leading':!0x1});}['init'](){this[_0x3b86('0x18')]['plugins']['get'](_0xd71489)[_0x3b86('0x54')](_0x3b86('0x36'),this),this[_0x3b86('0x16')]=new _0x44e203(this['context'][_0x3b86('0x33')]),this[_0x3b86('0x41')]=new _0x6b225(this['context']['locale']),this[_0x3b86('0x16')]['attachToDom'](),this[_0x3b86('0x16')][_0x3b86('0x2d')](this[_0x3b86('0x41')]);}[_0x3b86('0x37')](_0x27333a){this[_0x3b86('0x44')]=_0x27333a;const _0x3530f6=this[_0x3b86('0x18')][_0x3b86('0x28')]['get'](_0x34fd7c),_0x118e57=this[_0x3b86('0x41')];if(_0x3530f6[_0x3b86('0x27')]=_0x27333a,this['isAttached'])throw new _0x3a2f29('narrowsidebar-attach-already-attached',this);this[_0x3b86('0x5e')]=!0x0,this[_0x3b86('0x3')](_0x3530f6,_0x3b86('0x30'),()=>{this[_0x3b86('0x19')](),this[_0x3b86('0x3')](_0x3530f6,_0x3b86('0x47'),_0x1cdc6f=>{_0x1cdc6f[_0x3b86('0x46')](),this[_0x3b86('0x37')](_0x27333a);});}),_0x3530f6[_0x3b86('0xb')]({'viewClass':_0x3b86('0x22'),'spaceBetweenItems':0x5});const _0x572516=_0x4b4a17=>{const _0x4bf1e7=new _0x51b7d7(this[_0x3b86('0x18')][_0x3b86('0x33')]);_0x3530f6[_0x3b86('0x58')](_0x4b4a17,_0x4bf1e7),this[_0x3b86('0x4d')][_0x3b86('0x1a')](_0x4b4a17,_0x4bf1e7),_0x4bf1e7['bind'](_0x3b86('0xe'),_0x3b86('0x5'),_0x3b86('0x8'))['to'](_0x4b4a17[_0x3b86('0x12')],_0x3b86('0xe'),_0x3b86('0x31'),_0x3b86('0x13')),_0x4bf1e7['on'](_0x3b86('0x5a'),()=>{this[_0x3b86('0x4f')][_0x3b86('0x2f')](),_0x118e57[_0x3b86('0x10')][_0x3b86('0x3b')]!==_0x4b4a17[_0x3b86('0x12')]?(this[_0x3b86('0x55')](_0x4b4a17),_0x4b4a17[_0x3b86('0x12')]['element'][_0x3b86('0x35')](),this['setActiveAnnotation'](_0x4b4a17)):this[_0x3b86('0x26')](null);});};for(const _0x46000b of _0x27333a)_0x572516(_0x46000b);this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x2d'),(_0x4a72a5,_0x4060eb)=>{_0x572516(_0x4060eb);}),this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x17'),(_0x1d4dde,_0x452e5b,_0x21ae02)=>{this[_0x3b86('0x4d')][_0x3b86('0x21')](_0x452e5b)[_0x3b86('0x1b')](),this[_0x3b86('0x4d')][_0x3b86('0x3f')](_0x452e5b),_0x3530f6[_0x3b86('0x52')]({'removedAnnotation':_0x452e5b,'previousAnnotation':_0x27333a['get'](_0x21ae02-0x1),'nextAnnotation':_0x27333a['get'](_0x21ae02+0x1)}),_0x452e5b===this[_0x3b86('0x4c')]&&this[_0x3b86('0x26')](null);},{'priority':_0x3b86('0x40')}),this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x35'),(_0x59f293,_0x344b22)=>{this['setActiveAnnotation'](_0x344b22);}),this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x2b'),()=>{this['setActiveAnnotation'](null);}),this[_0x3b86('0x50')][_0x3b86('0x3')](document,'keydown',(_0x2c68e9,_0x4dd3b3)=>{_0x4dd3b3['keyCode']===_0x26eaee[_0x3b86('0x5f')]&&_0x118e57['isVisible']&&(this[_0x3b86('0x4f')][_0x3b86('0x2d')](_0x118e57[_0x3b86('0x10')]['first']),this[_0x3b86('0x51')](),_0x4dd3b3[_0x3b86('0x3c')](),_0x4dd3b3[_0x3b86('0x39')]());}),this[_0x3b86('0x50')][_0x3b86('0x3')](document,_0x3b86('0xd'),(_0x49ae11,_0x2499ab)=>{const _0x81769a=_0x2499ab[_0x3b86('0x1c')];_0x118e57['isVisible']&&_0x118e57[_0x3b86('0x43')][_0x3b86('0x24')](_0x81769a)||_0x3530f6[_0x3b86('0x12')][_0x3b86('0x43')][_0x3b86('0x24')](_0x81769a)||_0x49ae11[_0x3b86('0x5b')]||(this[_0x3b86('0x4f')][_0x3b86('0x2f')](),this[_0x3b86('0x51')](),this[_0x3b86('0x26')](null));});const _0x46d03d=this[_0x3b86('0x18')][_0x3b86('0x1d')]?this[_0x3b86('0x18')][_0x3b86('0x1d')]:new _0x59100f([this[_0x3b86('0x18')]]);for(const _0x9e120f of _0x46d03d)this[_0x3b86('0x56')](_0x9e120f);this[_0x3b86('0x3')](_0x46d03d,_0x3b86('0x2d'),(_0x2acd2a,_0x2210ce)=>{this['listenTo'](_0x2210ce,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2210ce);});}),this[_0x3b86('0x3')](_0x46d03d,_0x3b86('0x17'),(_0x3e12a5,_0x489550)=>{_0x489550['plugins'][_0x3b86('0x60')](_0x3b86('0x4b'))&&this[_0x3b86('0x11')](_0x489550['plugins'][_0x3b86('0x21')](_0x3b86('0x4b')));}),window['addEventListener'](_0x3b86('0x14'),this['_throttledRefreshPositioning']),this[_0x3b86('0x4')]();}[_0x3b86('0x26')](_0x222df6){if(_0x222df6===this[_0x3b86('0x4c')])return;const _0x1063ab=this['context'][_0x3b86('0x28')][_0x3b86('0x21')](_0x3b86('0x5d'));if(_0x1063ab[_0x3b86('0x2e')]({'blurredAnnotation':this[_0x3b86('0x4c')],'activatedAnnotation':_0x222df6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x222df6)_0x1063ab[_0x3b86('0x4e')](_0x222df6)?this[_0x3b86('0x55')](_0x222df6):this[_0x3b86('0x51')]();else this[_0x3b86('0x51')]();this[_0x3b86('0x4c')]=_0x222df6;}[_0x3b86('0x19')](){if(!this[_0x3b86('0x5e')])throw new _0x3a2f29(_0x3b86('0x1e'),this);this[_0x3b86('0x26')](null);const _0x47c637=this[_0x3b86('0x18')][_0x3b86('0x28')][_0x3b86('0x21')](_0x3b86('0x5d'));this['_hideBalloon'](),Array[_0x3b86('0x1f')](this[_0x3b86('0x4d')][_0x3b86('0x3a')](),_0x372019=>_0x372019['destroy']()),this[_0x3b86('0x4d')]['clear'](),_0x47c637['_detachFromContainer'](this[_0x3b86('0x44')]),this[_0x3b86('0xc')](),this[_0x3b86('0x50')][_0x3b86('0xc')](),this[_0x3b86('0xc')](this[_0x3b86('0x18')]['editors']);for(const _0x45c23c of Array['from'](this[_0x3b86('0x3e')]))this[_0x3b86('0x11')](_0x45c23c);window[_0x3b86('0x4a')](_0x3b86('0x14'),this[_0x3b86('0x1')]),this['_throttledRefreshPositioning'][_0x3b86('0x59')](),this[_0x3b86('0x49')]=[],this['isAttached']=!0x1,this[_0x3b86('0x44')]=null;}[_0x3b86('0x1b')](){this[_0x3b86('0x5e')]&&this['detach'](),this[_0x3b86('0x16')][_0x3b86('0x3d')]();}[_0x3b86('0x56')](_0x645250){const _0xd3842=_0x645250[_0x3b86('0x28')][_0x3b86('0x21')](_0x3b86('0x4b')),_0x36f8f2=this['context']['plugins'][_0x3b86('0x21')](_0x34fd7c),_0x49b7d1=this[_0x3b86('0x44')],_0x45af26=this[_0x3b86('0x41')],_0x193a05=()=>{const _0xa3d2fa=_0xd3842[_0x3b86('0x9')]({'activeAnnotation':this[_0x3b86('0x4c')],'annotations':this['annotations']});this[_0x3b86('0x2c')](_0xa3d2fa),this[_0x3b86('0x26')](_0xa3d2fa[0x0]||null);};this[_0x3b86('0x3')](_0xd3842,_0x3b86('0x2e'),_0x193a05),this[_0x3b86('0x3')](_0xd3842,'blur',(_0x5980d9,{isAnnotationTracked:_0x21f138})=>{this[_0x3b86('0x4c')]&&_0x21f138(this[_0x3b86('0x4c')])&&(this[_0x3b86('0x2c')]([]),this['setActiveAnnotation'](null));}),this[_0x3b86('0x3')](_0xd3842,_0x3b86('0xa'),()=>{this[_0x3b86('0x1')]();}),this['listenTo'](_0x49b7d1,'blur',_0x5c0f81=>{_0xd3842[_0x3b86('0x0')]()&&_0x5c0f81['stop']();},{'priority':_0x3b86('0x53')}),this[_0x3b86('0x50')][_0x3b86('0x3')](document,'mousedown',(_0x9d5452,_0x2d856a)=>{const _0x451adb=_0x2d856a[_0x3b86('0x1c')];_0x45af26[_0x3b86('0x5c')]&&_0x45af26[_0x3b86('0x43')][_0x3b86('0x24')](_0x451adb)||_0x36f8f2[_0x3b86('0x12')][_0x3b86('0x43')]['contains'](_0x451adb)||this[_0x3b86('0x4c')]&&_0xd3842[_0x3b86('0x0')]()&&(_0x193a05(),_0x9d5452[_0x3b86('0x5b')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x3b86('0x2d')](_0xd3842);}[_0x3b86('0x11')](_0x2eafae){_0x2eafae&&(this[_0x3b86('0xc')](_0x2eafae),this[_0x3b86('0x3e')]['remove'](_0x2eafae));}[_0x3b86('0x2c')](_0x48e00f){for(const _0x33a5b6 of this[_0x3b86('0x49')])_0x48e00f[_0x3b86('0x42')](_0x33a5b6)||this['_manuallyClosedAnnotationViews']['delete'](_0x33a5b6['view']);this['_selectedAnnotations']=_0x48e00f;}[_0x3b86('0x4')](){const _0x59838a=this['balloonPanelView'];this[_0x3b86('0x44')][_0x3b86('0x6')](),_0x59838a[_0x3b86('0x5c')]&&this['_updateBalloonPosition']();}[_0x3b86('0x55')](_0x2e1281){if(this[_0x3b86('0x4f')]['has'](_0x2e1281['view']))return;const _0x165066=this[_0x3b86('0x41')][_0x3b86('0x10')]['first'];_0x165066!==_0x2e1281[_0x3b86('0x12')]?(_0x165066&&this[_0x3b86('0xf')](_0x165066),this['_attachListeners'](_0x2e1281[_0x3b86('0x12')]),this[_0x3b86('0x41')][_0x3b86('0x10')][_0x3b86('0x2f')](),this[_0x3b86('0x41')]['content']['add'](_0x2e1281[_0x3b86('0x12')]),this[_0x3b86('0x20')]()):this[_0x3b86('0x20')]();}['_updateBalloonPosition'](){const _0x2c4db5=this[_0x3b86('0x41')][_0x3b86('0x10')][_0x3b86('0x3b')],_0x1718a4=this[_0x3b86('0x44')][_0x3b86('0x62')](_0x2c4db5);if(!this[_0x3b86('0x4d')]['has'](_0x1718a4))return;const _0x259211=this['_annotationToNarrowView']['get'](_0x1718a4)[_0x3b86('0x43')],_0x1eef1b=function(){const _0x14695d=_0x6b225[_0x3b86('0x2')];return[_0x14695d[_0x3b86('0x38')],_0x14695d[_0x3b86('0x34')],_0x14695d[_0x3b86('0x7')],_0x14695d['northArrowSouth'],_0x14695d[_0x3b86('0x25')],_0x14695d[_0x3b86('0x57')]];}();this[_0x3b86('0x41')][_0x3b86('0x48')]({'target':_0x259211,'positions':_0x1eef1b});}['_hideBalloon'](){const _0x5e5549=this[_0x3b86('0x41')],_0x2a535e=_0x5e5549[_0x3b86('0x10')][_0x3b86('0x3b')];_0x2a535e&&(this[_0x3b86('0xf')](_0x2a535e),_0x5e5549[_0x3b86('0x23')](),_0x5e5549[_0x3b86('0x10')]['clear']());}[_0x3b86('0x2a')](_0x29ed26){this['listenTo'](_0x29ed26,_0x3b86('0x15'),()=>this[_0x3b86('0x20')]()),this[_0x3b86('0x3')](_0x29ed26,_0x3b86('0x61'),(_0xe46ae3,_0xffa9fa)=>{this[_0x3b86('0x4f')][_0x3b86('0x2d')](_0x29ed26),this['_hideBalloon'](),_0xffa9fa();});}[_0x3b86('0xf')](_0x569c40){this['stopListening'](_0x569c40);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5326=['_setItemTop','_alignBeforeItem','bottom','isActive','view','element','_annotations','locale','listenTo','pluginName','class','container','list','render','refresh','change:targetRect','sidebar-setcontainer-invalid-element','sidebar-attachtocontainer-missing-container','_getTargetTop','change:top','_activeAnnotation','_annotationToSidebarItemView','max','_lastItem','delete','set','sidebar.container','add','_sidebarItemViewToAnnotation','_updateLastItem','getSidebarItemView','define','_getItemBefore','destroy','targetRect','last','target','stopListening','_spaceBetweenItems','bind','isAnimationDisabled','_getMaxAvailableTop','clear','content','remove','context','_detachFromContainer','_alignToTargetRect','sidebar.preventScrollOutOfView','get','_attachToContainer','getIndex','_createSidebarView','appendChild','_destroySidebarItemView','length','updateHeight','addAnnotation','Sidebar','change:bottom','top','_targetTop','setContainer','_alignAfterItem','unbind','minHeight','rearrange','config'];(function(_0x46207d,_0x532629){const _0x37d201=function(_0x25c24c){while(--_0x25c24c){_0x46207d['push'](_0x46207d['shift']());}};_0x37d201(++_0x532629);}(_0x5326,0x18a));const _0x37d2=function(_0x46207d,_0x532629){_0x46207d=_0x46207d-0x0;let _0x37d201=_0x5326[_0x46207d];return _0x37d201;};import{ContextPlugin as _0x208e37}from'ckeditor5/src/core';import _0x4683bb from'./view/sidebarview';import _0x37d975 from'./view/sidebaritemview';import{Rect as _0x55cf78,CKEditorError as _0x599766}from'ckeditor5/src/utils';import{isElement as _0x4ad290,throttle as _0x254be6}from'lodash-es';export default class b extends _0x208e37{static get[_0x37d2('0x17')](){return _0x37d2('0x4');}constructor(_0x56e398){super(_0x56e398),this[_0x37d2('0x27')](_0x37d2('0x25')),this[_0x37d2('0x12')]=this[_0x37d2('0x42')](),this[_0x37d2('0x27')](_0x37d2('0x19'),null),this[_0x37d2('0x34')]=0x19,this[_0x37d2('0x2a')]=new Map(),this[_0x37d2('0x23')]=new Map(),this['context']['config'][_0x37d2('0x2d')](_0x37d2('0x3e'),!0x1),this[_0x37d2('0x14')]=null,this[_0x37d2('0x22')]=null;}['init'](){const _0x46d141=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x28'));_0x46d141&&this[_0x37d2('0x8')](_0x46d141);}[_0x37d2('0x8')](_0x3ca4cb){if(!_0x4ad290(_0x3ca4cb))throw new _0x599766(_0x37d2('0x1e'));this[_0x37d2('0x19')]=_0x3ca4cb;}[_0x37d2('0x40')]({viewClass:_0x2e4f19='',spaceBetweenItems:_0x4ade53=0x19}={}){if(!_0x4ad290(this['container']))throw new _0x599766(_0x37d2('0x1f'),this);this[_0x37d2('0x19')][_0x37d2('0x43')](this[_0x37d2('0x12')]['element']),this['view']['class']=_0x2e4f19,this['_spaceBetweenItems']=_0x4ade53;}[_0x37d2('0xc')]({removedAnnotation:_0x7062b6,previousAnnotation:_0x1047cf,nextAnnotation:_0x9e7bd8}){const _0x3bc7ec=this[_0x37d2('0x2c')](_0x7062b6);this['view'][_0x37d2('0x1a')]['remove'](_0x3bc7ec),this['_destroySidebarItemView'](_0x7062b6),_0x1047cf&&this['_alignToTargetRect'](this[_0x37d2('0x2c')](_0x1047cf)),_0x9e7bd8&&this[_0x37d2('0x3d')](this[_0x37d2('0x2c')](_0x9e7bd8)),this[_0x37d2('0x2b')]();}[_0x37d2('0x1c')]({blurredAnnotation:_0xd8dd03,activatedAnnotation:_0x2ced9c,disableAnimationOnActivatedAnnotation:_0x42cfc3}){if(this[_0x37d2('0x22')]=_0x2ced9c,_0xd8dd03){_0xd8dd03[_0x37d2('0x11')]=!0x1;const _0x25c137=this[_0x37d2('0x2c')](_0xd8dd03);_0x25c137&&_0x42cfc3&&(_0x25c137[_0x37d2('0x36')]=!0x1);}if(_0x2ced9c){const _0x1fa299=this[_0x37d2('0x2c')](_0x2ced9c);_0x1fa299&&(_0x2ced9c[_0x37d2('0x11')]=!0x0,_0x42cfc3&&(_0x1fa299[_0x37d2('0x36')]=!0x0,_0x1fa299['top']+=0x1),this[_0x37d2('0x3d')](_0x1fa299));}}[_0x37d2('0x3c')](_0x38c9e4){this['stopListening'](),this['view'][_0x37d2('0x13')][_0x37d2('0x3a')]();for(const _0x336bfa of _0x38c9e4)this[_0x37d2('0x0')](_0x336bfa);this[_0x37d2('0x12')]['list'][_0x37d2('0x38')](),this['view'][_0x37d2('0x18')]='',this[_0x37d2('0x25')]=null;}[_0x37d2('0x3')](_0x2b93c6,_0x24dca4){_0x24dca4||(_0x24dca4=_0x2b93c6[_0x37d2('0x12')]);const _0x27ef6d=new _0x37d975(this[_0x37d2('0x3b')][_0x37d2('0x15')]);this[_0x37d2('0x2a')][_0x37d2('0x27')](_0x27ef6d,_0x2b93c6),this[_0x37d2('0x23')][_0x37d2('0x27')](_0x2b93c6,_0x27ef6d),_0x27ef6d[_0x37d2('0x39')]['add'](_0x24dca4),this[_0x37d2('0x3d')](_0x27ef6d),this[_0x37d2('0x16')](_0x2b93c6[_0x37d2('0x12')],_0x37d2('0x1d'),()=>{const _0x23b5c6=this[_0x37d2('0x20')](_0x27ef6d);_0x27ef6d[_0x37d2('0x7')]!=_0x23b5c6&&(_0x27ef6d[_0x37d2('0x7')]=_0x23b5c6,this['_setItemTop'](_0x27ef6d,_0x23b5c6));}),this[_0x37d2('0x16')](_0x27ef6d,_0x37d2('0x21'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x20c15a=this[_0x37d2('0x2e')](_0x27ef6d);if(!_0x20c15a)return;const _0x277755=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x20c15a),_0xd096a4=this[_0x37d2('0x22')];_0xd096a4&&_0xd096a4===_0x277755?this[_0x37d2('0x9')](_0x20c15a,_0x27ef6d):this['_alignBeforeItem'](_0x27ef6d,_0x20c15a);},0xa,{'leading':!0x1})),this['listenTo'](_0x27ef6d,_0x37d2('0x5'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x867dd3=this['_getItemAfter'](_0x27ef6d);if(!_0x867dd3)return;const _0x17460d=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x867dd3),_0x5dd571=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x3e')),_0x57ac25=this[_0x37d2('0x22')];_0x57ac25&&_0x57ac25===_0x17460d&&_0x5dd571?(this[_0x37d2('0xf')](_0x867dd3,_0x27ef6d),this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3)):_0x57ac25&&_0x57ac25===_0x17460d?this['_alignBeforeItem'](_0x867dd3,_0x27ef6d):this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3);},0xa,{'leading':!0x1}));const _0x5a0e22=this[_0x37d2('0x2e')](_0x27ef6d);if(_0x5a0e22)this[_0x37d2('0x9')](_0x5a0e22,_0x27ef6d)||this[_0x37d2('0x3d')](_0x27ef6d);else this[_0x37d2('0x3d')](_0x27ef6d);return this[_0x37d2('0x2b')](),this[_0x37d2('0x12')]['list'][_0x37d2('0x29')](_0x27ef6d),_0x27ef6d;}['getSidebarItemView'](_0x5e7047){return this[_0x37d2('0x23')][_0x37d2('0x3f')](_0x5e7047);}[_0x37d2('0x2f')](){this[_0x37d2('0x12')][_0x37d2('0x2f')]();}[_0x37d2('0x0')](_0x50ff27){const _0x532cbe=this[_0x37d2('0x2c')](_0x50ff27);this[_0x37d2('0x33')](_0x532cbe),this['stopListening'](_0x50ff27[_0x37d2('0x12')]),_0x532cbe[_0x37d2('0x2f')](),this[_0x37d2('0x23')][_0x37d2('0x26')](_0x50ff27),this[_0x37d2('0x2a')][_0x37d2('0x26')](_0x532cbe);}[_0x37d2('0x42')](){const _0x185312=new _0x4683bb(this['context'][_0x37d2('0x15')]);return _0x185312[_0x37d2('0x1b')](),this['on']('change:_lastItem',(_0x5857d4,_0x286861,_0x58deee,_0x1ea0ad)=>{_0x1ea0ad&&_0x185312[_0x37d2('0xa')](_0x37d2('0xb')),_0x58deee?_0x185312[_0x37d2('0x35')]('minHeight')['to'](_0x58deee,_0x37d2('0x10')):_0x185312[_0x37d2('0xb')]=null;}),_0x185312;}[_0x37d2('0x2b')](){this['_lastItem']=this['getSidebarItemView'](this[_0x37d2('0x14')][_0x37d2('0x31')]);}['_getItemBefore'](_0x14b069){const _0x521ecc=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x14b069),_0x3a5703=this[_0x37d2('0x14')]['get'](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x521ecc)-0x1);return _0x3a5703&&this['getSidebarItemView'](_0x3a5703);}['_getItemAfter'](_0x4919c5){const _0x70107d=this[_0x37d2('0x2a')]['get'](_0x4919c5),_0xb820a2=this['_annotations'][_0x37d2('0x3f')](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x70107d)+0x1);return _0xb820a2&&this[_0x37d2('0x2c')](_0xb820a2);}[_0x37d2('0xf')](_0x3dd0b7,_0x3116fe){_0x3dd0b7['updateHeight']();const _0x3d4e6c=H(_0x3116fe[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x3dd0b7[_0x37d2('0x6')]);return!!_0x3d4e6c&&(this[_0x37d2('0xe')](_0x3116fe,_0x3116fe[_0x37d2('0x6')]-_0x3d4e6c),!0x0);}[_0x37d2('0x9')](_0x53d0fb,_0x8aeffa){_0x53d0fb[_0x37d2('0x2')]();const _0x3c8e7f=H(_0x53d0fb[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x8aeffa['top']);return!!_0x3c8e7f&&(this['_setItemTop'](_0x8aeffa,_0x8aeffa['top']+_0x3c8e7f,!0x1),!0x0);}[_0x37d2('0x3d')](_0x459d96){const _0x2dffc9=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x459d96);if(!_0x2dffc9||!_0x2dffc9[_0x37d2('0x32')])return;const _0x1e7b30=this[_0x37d2('0x20')](_0x459d96);this[_0x37d2('0xe')](_0x459d96,_0x1e7b30);}[_0x37d2('0x20')](_0x1e7d5f){const _0x1e6154=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x1e7d5f);if(null===_0x1e6154[_0x37d2('0x30')])return 0x0;if(_0x1e6154[_0x37d2('0x32')]instanceof _0x55cf78)return _0x1e6154[_0x37d2('0x30')][_0x37d2('0x6')];{const _0x58d4c4=new _0x55cf78(this[_0x37d2('0x12')]['element'])[_0x37d2('0x6')];return _0x1e6154['targetRect']['top']-_0x58d4c4;}}[_0x37d2('0xe')](_0x2fc474,_0x7384fa,_0x3cda8a=this[_0x37d2('0x3b')]['config'][_0x37d2('0x3f')](_0x37d2('0x3e'))){_0x3cda8a&&(_0x7384fa=Math[_0x37d2('0x24')](_0x7384fa,this['_getMaxAvailableTop'](_0x2fc474))),_0x2fc474[_0x37d2('0x6')]=_0x7384fa;}[_0x37d2('0x37')](_0x5e3cfc){let _0x391865=this[_0x37d2('0x2e')](_0x5e3cfc),_0x24e948=0x0;for(;_0x391865;)_0x391865[_0x37d2('0x2')](),_0x24e948+=this[_0x37d2('0x34')]+_0x391865['height'],_0x391865=this['_getItemBefore'](_0x391865);return _0x24e948;}}function H(_0x10742f,_0x26e95a){return Math[_0x37d2('0x24')](_0x10742f-_0x26e95a,0x0);}
23
+ const _0x2c6f=['_createSidebarView','change:_lastItem','class','_setItemTop','_alignAfterItem','_detachFromContainer','_alignToTargetRect','_attachToContainer','targetRect','define','get','pluginName','isAnimationDisabled','_targetTop','isActive','bottom','change:targetRect','bind','destroy','listenTo','_getItemAfter','sidebar-setcontainer-invalid-element','content','_getMaxAvailableTop','_sidebarItemViewToAnnotation','appendChild','sidebar.preventScrollOutOfView','change:top','clear','length','_spaceBetweenItems','Sidebar','_annotationToSidebarItemView','view','locale','minHeight','_alignBeforeItem','unbind','last','_destroySidebarItemView','add','target','context','setContainer','element','stopListening','_getTargetTop','_getItemBefore','config','_activeAnnotation','top','rearrange','container','_lastItem','sidebar.container','_updateLastItem','addAnnotation','getIndex','remove','_annotations','refresh','updateHeight','init','list','getSidebarItemView','set','render','max'];(function(_0x419ec9,_0x2c6fd5){const _0x8dce05=function(_0x143eb9){while(--_0x143eb9){_0x419ec9['push'](_0x419ec9['shift']());}};_0x8dce05(++_0x2c6fd5);}(_0x2c6f,0x177));const _0x8dce=function(_0x419ec9,_0x2c6fd5){_0x419ec9=_0x419ec9-0x0;let _0x8dce05=_0x2c6f[_0x419ec9];return _0x8dce05;};import{ContextPlugin as _0x44c3fe}from'ckeditor5/src/core';import _0x50da3b from'./view/sidebarview';import _0x1c4c84 from'./view/sidebaritemview';import{Rect as _0x4ba800,CKEditorError as _0x2cd1d8}from'ckeditor5/src/utils';import{isElement as _0x15bbcd,throttle as _0x1e3127}from'lodash-es';export default class b extends _0x44c3fe{static get[_0x8dce('0x2c')](){return _0x8dce('0x40');}constructor(_0x24594c){super(_0x24594c),this[_0x8dce('0x1e')](_0x8dce('0x12')),this['view']=this['_createSidebarView'](),this['set']('container',null),this[_0x8dce('0x3f')]=0x19,this[_0x8dce('0x39')]=new Map(),this[_0x8dce('0x41')]=new Map(),this[_0x8dce('0x7')][_0x8dce('0xd')][_0x8dce('0x2a')](_0x8dce('0x3b'),!0x1),this[_0x8dce('0x18')]=null,this[_0x8dce('0xe')]=null;}[_0x8dce('0x1b')](){const _0x351e08=this['context']['config']['get'](_0x8dce('0x13'));_0x351e08&&this[_0x8dce('0x8')](_0x351e08);}['setContainer'](_0xf7c01a){if(!_0x15bbcd(_0xf7c01a))throw new _0x2cd1d8(_0x8dce('0x36'));this[_0x8dce('0x11')]=_0xf7c01a;}[_0x8dce('0x28')]({viewClass:_0x4d7384='',spaceBetweenItems:_0x9eabcf=0x19}={}){if(!_0x15bbcd(this[_0x8dce('0x11')]))throw new _0x2cd1d8('sidebar-attachtocontainer-missing-container',this);this[_0x8dce('0x11')][_0x8dce('0x3a')](this[_0x8dce('0x42')][_0x8dce('0x9')]),this[_0x8dce('0x42')][_0x8dce('0x23')]=_0x4d7384,this[_0x8dce('0x3f')]=_0x9eabcf;}[_0x8dce('0x10')]({removedAnnotation:_0x244431,previousAnnotation:_0x4bc9d4,nextAnnotation:_0x4f0b75}){const _0x16a47d=this[_0x8dce('0x1d')](_0x244431);this[_0x8dce('0x42')][_0x8dce('0x1c')][_0x8dce('0x17')](_0x16a47d),this['_destroySidebarItemView'](_0x244431),_0x4bc9d4&&this[_0x8dce('0x27')](this[_0x8dce('0x1d')](_0x4bc9d4)),_0x4f0b75&&this[_0x8dce('0x27')](this[_0x8dce('0x1d')](_0x4f0b75)),this[_0x8dce('0x14')]();}[_0x8dce('0x19')]({blurredAnnotation:_0x59999d,activatedAnnotation:_0x32230e,disableAnimationOnActivatedAnnotation:_0x3a164f}){if(this[_0x8dce('0xe')]=_0x32230e,_0x59999d){_0x59999d[_0x8dce('0x2f')]=!0x1;const _0x572476=this[_0x8dce('0x1d')](_0x59999d);_0x572476&&_0x3a164f&&(_0x572476[_0x8dce('0x2d')]=!0x1);}if(_0x32230e){const _0x452655=this[_0x8dce('0x1d')](_0x32230e);_0x452655&&(_0x32230e[_0x8dce('0x2f')]=!0x0,_0x3a164f&&(_0x452655[_0x8dce('0x2d')]=!0x0,_0x452655['top']+=0x1),this[_0x8dce('0x27')](_0x452655));}}[_0x8dce('0x26')](_0x2a51e1){this[_0x8dce('0xa')](),this[_0x8dce('0x42')]['element'][_0x8dce('0x17')]();for(const _0x4f964b of _0x2a51e1)this[_0x8dce('0x4')](_0x4f964b);this[_0x8dce('0x42')][_0x8dce('0x1c')][_0x8dce('0x3d')](),this[_0x8dce('0x42')][_0x8dce('0x23')]='',this[_0x8dce('0x12')]=null;}[_0x8dce('0x15')](_0x46729d,_0x45a45b){_0x45a45b||(_0x45a45b=_0x46729d['view']);const _0x5a8e93=new _0x1c4c84(this[_0x8dce('0x7')][_0x8dce('0x43')]);this[_0x8dce('0x39')]['set'](_0x5a8e93,_0x46729d),this[_0x8dce('0x41')][_0x8dce('0x1e')](_0x46729d,_0x5a8e93),_0x5a8e93[_0x8dce('0x37')]['add'](_0x45a45b),this[_0x8dce('0x27')](_0x5a8e93),this[_0x8dce('0x34')](_0x46729d[_0x8dce('0x42')],_0x8dce('0x31'),()=>{const _0x1526d6=this[_0x8dce('0xb')](_0x5a8e93);_0x5a8e93[_0x8dce('0x2e')]!=_0x1526d6&&(_0x5a8e93[_0x8dce('0x2e')]=_0x1526d6,this[_0x8dce('0x24')](_0x5a8e93,_0x1526d6));}),this[_0x8dce('0x34')](_0x5a8e93,_0x8dce('0x3c'),_0x1e3127(()=>{if(!_0x5a8e93['content'][_0x8dce('0x3e')])return;const _0x3698b5=this['_getItemBefore'](_0x5a8e93);if(!_0x3698b5)return;const _0x1ac776=this[_0x8dce('0x39')]['get'](_0x3698b5),_0x12c1cd=this[_0x8dce('0xe')];_0x12c1cd&&_0x12c1cd===_0x1ac776?this[_0x8dce('0x25')](_0x3698b5,_0x5a8e93):this['_alignBeforeItem'](_0x5a8e93,_0x3698b5);},0xa,{'leading':!0x1})),this[_0x8dce('0x34')](_0x5a8e93,'change:bottom',_0x1e3127(()=>{if(!_0x5a8e93[_0x8dce('0x37')]['length'])return;const _0x14b2ea=this[_0x8dce('0x35')](_0x5a8e93);if(!_0x14b2ea)return;const _0x580e6f=this[_0x8dce('0x39')][_0x8dce('0x2b')](_0x14b2ea),_0x5f4e7b=this[_0x8dce('0x7')][_0x8dce('0xd')]['get']('sidebar.preventScrollOutOfView'),_0x2f66e9=this[_0x8dce('0xe')];_0x2f66e9&&_0x2f66e9===_0x580e6f&&_0x5f4e7b?(this[_0x8dce('0x1')](_0x14b2ea,_0x5a8e93),this['_alignAfterItem'](_0x5a8e93,_0x14b2ea)):_0x2f66e9&&_0x2f66e9===_0x580e6f?this['_alignBeforeItem'](_0x14b2ea,_0x5a8e93):this[_0x8dce('0x25')](_0x5a8e93,_0x14b2ea);},0xa,{'leading':!0x1}));const _0x5aca5b=this[_0x8dce('0xc')](_0x5a8e93);if(_0x5aca5b)this['_alignAfterItem'](_0x5aca5b,_0x5a8e93)||this[_0x8dce('0x27')](_0x5a8e93);else this['_alignToTargetRect'](_0x5a8e93);return this[_0x8dce('0x14')](),this[_0x8dce('0x42')][_0x8dce('0x1c')][_0x8dce('0x5')](_0x5a8e93),_0x5a8e93;}[_0x8dce('0x1d')](_0x146620){return this[_0x8dce('0x41')][_0x8dce('0x2b')](_0x146620);}[_0x8dce('0x33')](){this['view']['destroy']();}[_0x8dce('0x4')](_0x45754f){const _0x4ef7c1=this[_0x8dce('0x1d')](_0x45754f);this[_0x8dce('0xa')](_0x4ef7c1),this[_0x8dce('0xa')](_0x45754f[_0x8dce('0x42')]),_0x4ef7c1[_0x8dce('0x33')](),this['_annotationToSidebarItemView']['delete'](_0x45754f),this[_0x8dce('0x39')]['delete'](_0x4ef7c1);}[_0x8dce('0x21')](){const _0x2aef05=new _0x50da3b(this[_0x8dce('0x7')][_0x8dce('0x43')]);return _0x2aef05[_0x8dce('0x1f')](),this['on'](_0x8dce('0x22'),(_0x2528ee,_0x4b4252,_0x46fb7f,_0x5427b7)=>{_0x5427b7&&_0x2aef05[_0x8dce('0x2')](_0x8dce('0x0')),_0x46fb7f?_0x2aef05[_0x8dce('0x32')]('minHeight')['to'](_0x46fb7f,_0x8dce('0x30')):_0x2aef05[_0x8dce('0x0')]=null;}),_0x2aef05;}[_0x8dce('0x14')](){this[_0x8dce('0x12')]=this['getSidebarItemView'](this[_0x8dce('0x18')][_0x8dce('0x3')]);}[_0x8dce('0xc')](_0x160a7e){const _0x4e1e67=this['_sidebarItemViewToAnnotation'][_0x8dce('0x2b')](_0x160a7e),_0x2bfe1b=this[_0x8dce('0x18')][_0x8dce('0x2b')](this[_0x8dce('0x18')]['getIndex'](_0x4e1e67)-0x1);return _0x2bfe1b&&this[_0x8dce('0x1d')](_0x2bfe1b);}[_0x8dce('0x35')](_0x1e997c){const _0x1dfde5=this[_0x8dce('0x39')]['get'](_0x1e997c),_0x6e0c46=this[_0x8dce('0x18')][_0x8dce('0x2b')](this[_0x8dce('0x18')][_0x8dce('0x16')](_0x1dfde5)+0x1);return _0x6e0c46&&this['getSidebarItemView'](_0x6e0c46);}[_0x8dce('0x1')](_0x5bbff5,_0x10364d){_0x5bbff5[_0x8dce('0x1a')]();const _0x56aa55=H(_0x10364d[_0x8dce('0x30')]+this[_0x8dce('0x3f')],_0x5bbff5[_0x8dce('0xf')]);return!!_0x56aa55&&(this[_0x8dce('0x24')](_0x10364d,_0x10364d['top']-_0x56aa55),!0x0);}['_alignAfterItem'](_0x5d5752,_0xb25062){_0x5d5752[_0x8dce('0x1a')]();const _0xbbf17=H(_0x5d5752[_0x8dce('0x30')]+this[_0x8dce('0x3f')],_0xb25062[_0x8dce('0xf')]);return!!_0xbbf17&&(this['_setItemTop'](_0xb25062,_0xb25062['top']+_0xbbf17,!0x1),!0x0);}['_alignToTargetRect'](_0x1648ff){const _0x20753e=this[_0x8dce('0x39')]['get'](_0x1648ff);if(!_0x20753e||!_0x20753e['target'])return;const _0x392bae=this[_0x8dce('0xb')](_0x1648ff);this[_0x8dce('0x24')](_0x1648ff,_0x392bae);}[_0x8dce('0xb')](_0x247331){const _0x5c1384=this['_sidebarItemViewToAnnotation']['get'](_0x247331);if(null===_0x5c1384[_0x8dce('0x29')])return 0x0;if(_0x5c1384[_0x8dce('0x6')]instanceof _0x4ba800)return _0x5c1384[_0x8dce('0x29')][_0x8dce('0xf')];{const _0x24a063=new _0x4ba800(this[_0x8dce('0x42')]['element'])[_0x8dce('0xf')];return _0x5c1384[_0x8dce('0x29')][_0x8dce('0xf')]-_0x24a063;}}[_0x8dce('0x24')](_0x4cbb4e,_0x24d448,_0x1bb2e8=this[_0x8dce('0x7')][_0x8dce('0xd')][_0x8dce('0x2b')](_0x8dce('0x3b'))){_0x1bb2e8&&(_0x24d448=Math[_0x8dce('0x20')](_0x24d448,this[_0x8dce('0x38')](_0x4cbb4e))),_0x4cbb4e[_0x8dce('0xf')]=_0x24d448;}[_0x8dce('0x38')](_0x36802b){let _0x1805b6=this['_getItemBefore'](_0x36802b),_0x55bfc7=0x0;for(;_0x1805b6;)_0x1805b6[_0x8dce('0x1a')](),_0x55bfc7+=this[_0x8dce('0x3f')]+_0x1805b6['height'],_0x1805b6=this[_0x8dce('0xc')](_0x1805b6);return _0x55bfc7;}}function H(_0x39c735,_0x9a280e){return Math[_0x8dce('0x20')](_0x39c735-_0x9a280e,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x128a=['span','annotationType','setTemplate','isDirty','icon','add','counterView','ck-annotation-counter__badge--edit-mode','set','bindTemplate','children','...','_badge','bind','ck-annotation-counter__badge','extendTemplate','number','ck-annotation-counter'];(function(_0x146c94,_0x128ab9){const _0x25717e=function(_0x570d8e){while(--_0x570d8e){_0x146c94['push'](_0x146c94['shift']());}};_0x25717e(++_0x128ab9);}(_0x128a,0xb9));const _0x2571=function(_0x146c94,_0x128ab9){_0x146c94=_0x146c94-0x0;let _0x25717e=_0x128a[_0x146c94];return _0x25717e;};import{ButtonView as _0x41a802,View as _0x136bb1}from'ckeditor5/src/ui';import _0x2366e7 from'../../../theme/icons/add-comment.svg';export default class B extends _0x41a802{constructor(_0x4a674d){super(_0x4a674d);const _0x560b1b=this[_0x2571('0x4')];this[_0x2571('0x3')]('isDirty',!0x1),this['set'](_0x2571('0xb'),0x0),this[_0x2571('0x8')](_0x2571('0x7'))['to'](this,'isDirty',this,'number',(_0x1417ea,_0x5d506e)=>_0x1417ea?_0x2571('0x6'):_0x5d506e),this['set'](_0x2571('0xe'),''),this[_0x2571('0x11')]=_0x2366e7,this[_0x2571('0xa')]({'attributes':{'class':[_0x2571('0xc')]}}),this[_0x2571('0x1')]=new _0x136bb1(),this['counterView'][_0x2571('0xf')]({'tag':_0x2571('0xd'),'attributes':{'class':[_0x2571('0x9'),_0x560b1b['to']('annotationType',_0x59f746=>'ck-annotation-counter__badge--'+_0x59f746),_0x560b1b['if'](_0x2571('0x10'),_0x2571('0x2'))]},'children':[{'text':_0x560b1b['to'](_0x2571('0x7'))}]}),this[_0x2571('0x5')][_0x2571('0x0')](this['counterView']);}}
23
+ const _0x3112=['add','span','isDirty','setTemplate','ck-annotation-counter','_badge','ck-annotation-counter__badge--edit-mode','icon','children','bindTemplate','number','annotationType','set','bind','...','counterView'];(function(_0x5e7df6,_0x311209){const _0x4be03b=function(_0x5bd0d9){while(--_0x5bd0d9){_0x5e7df6['push'](_0x5e7df6['shift']());}};_0x4be03b(++_0x311209);}(_0x3112,0x1f1));const _0x4be0=function(_0x5e7df6,_0x311209){_0x5e7df6=_0x5e7df6-0x0;let _0x4be03b=_0x3112[_0x5e7df6];return _0x4be03b;};import{ButtonView as _0xa6e7fb,View as _0x45fa88}from'ckeditor5/src/ui';import _0x11f045 from'../../../theme/icons/add-comment.svg';export default class B extends _0xa6e7fb{constructor(_0x5cc624){super(_0x5cc624);const _0x251be7=this[_0x4be0('0x8')];this[_0x4be0('0xb')](_0x4be0('0x1'),!0x1),this[_0x4be0('0xb')]('number',0x0),this[_0x4be0('0xc')](_0x4be0('0x4'))['to'](this,_0x4be0('0x1'),this,_0x4be0('0x9'),(_0x922c08,_0xd10d06)=>_0x922c08?_0x4be0('0xd'):_0xd10d06),this['set']('annotationType',''),this[_0x4be0('0x6')]=_0x11f045,this['extendTemplate']({'attributes':{'class':[_0x4be0('0x3')]}}),this['counterView']=new _0x45fa88(),this[_0x4be0('0xe')][_0x4be0('0x2')]({'tag':_0x4be0('0x0'),'attributes':{'class':['ck-annotation-counter__badge',_0x251be7['to'](_0x4be0('0xa'),_0x4037ff=>'ck-annotation-counter__badge--'+_0x4037ff),_0x251be7['if'](_0x4be0('0x1'),_0x4be0('0x5'))]},'children':[{'text':_0x251be7['to']('_badge')}]}),this[_0x4be0('0x7')][_0x4be0('0xf')](this[_0x4be0('0xe')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x312d=['createCollection','targetRect','element','focus','clientHeight','div','isDirty','ck-rounded-corners','detach','add','set','ck-annotation-wrapper','content','length','bindTemplate','height','render','keystrokes','Esc','destroy','fire','attach','type','_updateHeight','isActive','focusTracker','_mutationObserver'];(function(_0x1fe922,_0x312d78){const _0x506528=function(_0x8253bb){while(--_0x8253bb){_0x1fe922['push'](_0x1fe922['shift']());}};_0x506528(++_0x312d78);}(_0x312d,0xea));const _0x5065=function(_0x1fe922,_0x312d78){_0x1fe922=_0x1fe922-0x0;let _0x506528=_0x312d[_0x1fe922];return _0x506528;};import{View as _0x1ba9e9}from'ckeditor5/src/ui';import{FocusTracker as _0x39034f,KeystrokeHandler as _0x18aeed,uid as _0x43495e}from'ckeditor5/src/utils';import _0x26fa64 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x1ba9e9{constructor(_0x29d37e,_0x2c1bdf){super(_0x29d37e),this['id']=_0x43495e(),this['focusTracker']=new _0x39034f(),this[_0x5065('0x1a')]=new _0x18aeed(),this[_0x5065('0x1a')]['set'](_0x5065('0x0'),(_0x123177,_0x4ece0f)=>this[_0x5065('0x2')]('Esc',_0x4ece0f)),this[_0x5065('0x13')](_0x5065('0xa'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x5065('0x18'),0x0),this['set']('isActive',!0x1),this[_0x5065('0x13')](_0x5065('0xf'),!0x1),this[_0x5065('0x13')](_0x5065('0x16'),0x0),this[_0x5065('0x13')](_0x5065('0x4'),''),this[_0x5065('0x8')]=_0x26fa64(()=>this[_0x5065('0x5')]()),this[_0x5065('0x15')]=this[_0x5065('0x9')](),this[_0x5065('0x15')][_0x5065('0x12')](_0x2c1bdf),this['mainView']=_0x2c1bdf;const _0xed74d2=this[_0x5065('0x17')];this['setTemplate']({'tag':_0x5065('0xe'),'attributes':{'class':['ck',_0x5065('0x14'),_0x5065('0x10'),_0xed74d2['if'](_0x5065('0x6'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5065('0x15')]});}['render'](){super[_0x5065('0x19')](),this['focusTracker'][_0x5065('0x12')](this[_0x5065('0xb')]),this[_0x5065('0x1a')]['listenTo'](this['element']),this[_0x5065('0x8')][_0x5065('0x3')](this['element']);}[_0x5065('0x1')](){this[_0x5065('0x15')]['clear'](),this[_0x5065('0x1a')][_0x5065('0x1')](),this[_0x5065('0x7')][_0x5065('0x1')](),this[_0x5065('0x8')][_0x5065('0x11')](),super['destroy']();}['focus'](){this[_0x5065('0xb')][_0x5065('0xc')]();}[_0x5065('0x5')](){const _0x204246=this['element'][_0x5065('0xd')];_0x204246&&(this['height']=_0x204246);}}
23
+ const _0x1b3f=['clientHeight','div','focus','render','_mutationObserver','attach','listenTo','detach','setTemplate','bindTemplate','content','focusTracker','ck-rounded-corners','Esc','add','set','isActive','type','height','targetRect','ck-annotation-wrapper','destroy','mainView','element','keystrokes','isDirty','fire','_updateHeight'];(function(_0x5b69d2,_0x1b3fcc){const _0xc29f1=function(_0x11cc00){while(--_0x11cc00){_0x5b69d2['push'](_0x5b69d2['shift']());}};_0xc29f1(++_0x1b3fcc);}(_0x1b3f,0x1e4));const _0xc29f=function(_0x5b69d2,_0x1b3fcc){_0x5b69d2=_0x5b69d2-0x0;let _0xc29f1=_0x1b3f[_0x5b69d2];return _0xc29f1;};import{View as _0x49b6a8}from'ckeditor5/src/ui';import{FocusTracker as _0x2c98bb,KeystrokeHandler as _0x46b0d3,uid as _0x2a9a72}from'ckeditor5/src/utils';import _0x3c0a39 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x49b6a8{constructor(_0x12316f,_0x206b5d){super(_0x12316f),this['id']=_0x2a9a72(),this[_0xc29f('0x3')]=new _0x2c98bb(),this['keystrokes']=new _0x46b0d3(),this[_0xc29f('0x10')][_0xc29f('0x7')]('Esc',(_0x3ccec7,_0x9cb5e7)=>this[_0xc29f('0x12')](_0xc29f('0x5'),_0x9cb5e7)),this['set'](_0xc29f('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xc29f('0x7')](_0xc29f('0xa'),0x0),this[_0xc29f('0x7')](_0xc29f('0x8'),!0x1),this[_0xc29f('0x7')](_0xc29f('0x11'),!0x1),this['set']('length',0x0),this['set'](_0xc29f('0x9'),''),this['_mutationObserver']=_0x3c0a39(()=>this[_0xc29f('0x13')]()),this[_0xc29f('0x2')]=this['createCollection'](),this[_0xc29f('0x2')][_0xc29f('0x6')](_0x206b5d),this[_0xc29f('0xe')]=_0x206b5d;const _0x4d4fa0=this[_0xc29f('0x1')];this[_0xc29f('0x0')]({'tag':_0xc29f('0x15'),'attributes':{'class':['ck',_0xc29f('0xc'),_0xc29f('0x4'),_0x4d4fa0['if'](_0xc29f('0x8'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0xc29f('0x2')]});}[_0xc29f('0x17')](){super[_0xc29f('0x17')](),this['focusTracker'][_0xc29f('0x6')](this[_0xc29f('0xf')]),this[_0xc29f('0x10')][_0xc29f('0x1a')](this[_0xc29f('0xf')]),this['_mutationObserver'][_0xc29f('0x19')](this[_0xc29f('0xf')]);}['destroy'](){this[_0xc29f('0x2')]['clear'](),this[_0xc29f('0x10')]['destroy'](),this[_0xc29f('0x3')][_0xc29f('0xd')](),this[_0xc29f('0x18')][_0xc29f('0x1b')](),super[_0xc29f('0xd')]();}['focus'](){this['element'][_0xc29f('0x16')]();}[_0xc29f('0x13')](){const _0x1f238d=this[_0xc29f('0xf')][_0xc29f('0x14')];_0x1f238d&&(this[_0xc29f('0xa')]=_0x1f238d);}}