@ckeditor/ckeditor5-comments 38.0.0-rc.0 → 38.0.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 (42) 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/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "38.0.0-rc.0",
3
+ "version": "38.0.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/)",
@@ -45,8 +45,8 @@
45
45
  "postversion": "npm run build"
46
46
  },
47
47
  "dependencies": {
48
- "ckeditor5": "^37.1.0",
49
- "ckeditor5-collaboration": "^38.0.0-rc.0",
48
+ "ckeditor5": "^38.0.0",
49
+ "ckeditor5-collaboration": "^38.0.0",
50
50
  "lodash-es": "^4.17.11"
51
51
  },
52
52
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15fa=['_target','mainView','length','clear','filter','_assertCorrectTarget','isVisible','focusableElements','refreshVisibility','view','add','isActive','_getNormalizedTarget','item','getClientRects','nodeType','render','object','targetRect','annotation-invalid-target','_type','stopListening','innerView','offsetParent','element','target','type'];(function(_0x46477f,_0x15fa9e){const _0x2c0268=function(_0x204c6e){while(--_0x204c6e){_0x46477f['push'](_0x46477f['shift']());}};_0x2c0268(++_0x15fa9e);}(_0x15fa,0x18b));const _0x2c02=function(_0x46477f,_0x15fa9e){_0x46477f=_0x46477f-0x0;let _0x2c0268=_0x15fa[_0x46477f];return _0x2c0268;};import{CKEditorError as _0x287b82,Rect as _0x63972d,Collection as _0x30c179,ObservableMixin as _0x3c7867}from'ckeditor5/src/utils';export default class d extends _0x3c7867(){constructor({view:_0x290943,target:_0x523fe2,type:_0x25d98b,isVisible:_0x59031f=!0x0}){super(),this[_0x2c02('0x13')]=_0x290943,this[_0x2c02('0x13')][_0x2c02('0x7')]||this[_0x2c02('0x13')][_0x2c02('0x1a')](),this['_type']=_0x25d98b,this[_0x2c02('0xa')]=_0x523fe2,d[_0x2c02('0xf')](this[_0x2c02('0x16')]()),this[_0x2c02('0x11')]=new _0x30c179([this[_0x2c02('0x13')][_0x2c02('0x7')]],{'idProperty':'_id'}),this[_0x2c02('0x11')]['on']('add',(_0x4aa827,_0x22a57d)=>{this['view']['focusTracker'][_0x2c02('0x14')](_0x22a57d);}),this[_0x2c02('0x11')]['on']('remove',(_0x583825,_0x1ff195)=>{this[_0x2c02('0x13')]['focusTracker']['remove'](_0x1ff195);}),this['set'](_0x2c02('0x10'),_0x59031f);}get[_0x2c02('0x9')](){return'function'==typeof this['_type']?this[_0x2c02('0x3')]():this[_0x2c02('0x3')];}get[_0x2c02('0x5')](){return this[_0x2c02('0x13')][_0x2c02('0xb')];}get['target'](){const _0x36d207=this['_getNormalizedTarget']();return d[_0x2c02('0xf')](_0x36d207),_0x36d207;}get[_0x2c02('0x1')](){const _0x110d30=this[_0x2c02('0x8')];if(null===_0x110d30)return null;if(_0x110d30 instanceof _0x63972d)return _0x110d30;const _0x49c8f6=_0x110d30[_0x2c02('0xe')](_0x4c39d4=>function(_0x17370e){const _0x474e6c=_0x17370e[_0x2c02('0x6')];if(_0x474e6c)return!0x0;const _0x6124ba=_0x17370e[_0x2c02('0x18')]()[_0x2c02('0x17')](0x0);return!!_0x6124ba;}(_0x4c39d4));return 0x0===_0x49c8f6[_0x2c02('0xc')]?null:new _0x63972d(_0x49c8f6[0x0]['getClientRects']()['item'](0x0));}get[_0x2c02('0x15')](){return this['view']['isActive'];}set[_0x2c02('0x15')](_0x4998c2){this['view'][_0x2c02('0x15')]=_0x4998c2,this[_0x2c02('0x13')][_0x2c02('0xb')][_0x2c02('0x15')]=_0x4998c2;}['updateTargetRect'](){this[_0x2c02('0x13')][_0x2c02('0x1')]=this[_0x2c02('0x1')];}['destroy'](){this['focusableElements'][_0x2c02('0x4')](),this[_0x2c02('0x11')][_0x2c02('0xd')](),this[_0x2c02('0x4')]();}[_0x2c02('0x12')](){this['isVisible']=!!this['targetRect'];}static[_0x2c02('0xf')](_0x3feac2){if(!(null===_0x3feac2||_0x3feac2 instanceof _0x63972d||Array['isArray'](_0x3feac2)&&_0x3feac2['every'](_0x22a763=>y(_0x22a763))))throw new _0x287b82(_0x2c02('0x2'),null,{'target':_0x3feac2});}[_0x2c02('0x16')](){const _0x37f7e0='function'==typeof this[_0x2c02('0xa')]?this['_target']():this[_0x2c02('0xa')];return y(_0x37f7e0)?[_0x37f7e0]:_0x37f7e0;}}function y(_0x228854){return null!==_0x228854&&_0x2c02('0x0')==typeof _0x228854&&'nodeType'in _0x228854&&0x1===_0x228854[_0x2c02('0x19')];}
23
+ const _0x2cfb=['destroy','targetRect','focusTracker','isActive','getClientRects','item','isVisible','_target','_type','add','target','mainView','focusableElements','innerView','_getNormalizedTarget','isArray','filter','remove','type','render','_id','clear','element','object','updateTargetRect','view','set','length','_assertCorrectTarget','nodeType','every'];(function(_0x7e81e8,_0x2cfb37){const _0x3fb31b=function(_0x11c650){while(--_0x11c650){_0x7e81e8['push'](_0x7e81e8['shift']());}};_0x3fb31b(++_0x2cfb37);}(_0x2cfb,0x85));const _0x3fb3=function(_0x7e81e8,_0x2cfb37){_0x7e81e8=_0x7e81e8-0x0;let _0x3fb31b=_0x2cfb[_0x7e81e8];return _0x3fb31b;};import{CKEditorError as _0x66b450,Rect as _0xf0fdd9,Collection as _0x468e73,ObservableMixin as _0xe99362}from'ckeditor5/src/utils';export default class d extends _0xe99362(){constructor({view:_0x32ef57,target:_0xca3ac1,type:_0x2db2ae,isVisible:_0x36c4a9=!0x0}){super(),this[_0x3fb3('0x10')]=_0x32ef57,this[_0x3fb3('0x10')][_0x3fb3('0xd')]||this[_0x3fb3('0x10')][_0x3fb3('0xa')](),this[_0x3fb3('0x1e')]=_0x2db2ae,this['_target']=_0xca3ac1,d[_0x3fb3('0x13')](this[_0x3fb3('0x5')]()),this['focusableElements']=new _0x468e73([this[_0x3fb3('0x10')]['element']],{'idProperty':_0x3fb3('0xb')}),this[_0x3fb3('0x3')]['on'](_0x3fb3('0x0'),(_0x21fe91,_0x4ce20d)=>{this[_0x3fb3('0x10')][_0x3fb3('0x18')][_0x3fb3('0x0')](_0x4ce20d);}),this['focusableElements']['on']('remove',(_0x155b46,_0x2073de)=>{this[_0x3fb3('0x10')][_0x3fb3('0x18')][_0x3fb3('0x8')](_0x2073de);}),this[_0x3fb3('0x11')]('isVisible',_0x36c4a9);}get[_0x3fb3('0x9')](){return'function'==typeof this[_0x3fb3('0x1e')]?this[_0x3fb3('0x1e')]():this[_0x3fb3('0x1e')];}get[_0x3fb3('0x4')](){return this[_0x3fb3('0x10')][_0x3fb3('0x2')];}get[_0x3fb3('0x1')](){const _0x4c4786=this[_0x3fb3('0x5')]();return d['_assertCorrectTarget'](_0x4c4786),_0x4c4786;}get['targetRect'](){const _0x295e4d=this['target'];if(null===_0x295e4d)return null;if(_0x295e4d instanceof _0xf0fdd9)return _0x295e4d;const _0x45c47e=_0x295e4d[_0x3fb3('0x7')](_0x47084d=>function(_0x47fac1){const _0x34ae5d=_0x47fac1['offsetParent'];if(_0x34ae5d)return!0x0;const _0xaa5ef9=_0x47fac1[_0x3fb3('0x1a')]()[_0x3fb3('0x1b')](0x0);return!!_0xaa5ef9;}(_0x47084d));return 0x0===_0x45c47e[_0x3fb3('0x12')]?null:new _0xf0fdd9(_0x45c47e[0x0][_0x3fb3('0x1a')]()['item'](0x0));}get[_0x3fb3('0x19')](){return this['view'][_0x3fb3('0x19')];}set[_0x3fb3('0x19')](_0x1553c9){this[_0x3fb3('0x10')]['isActive']=_0x1553c9,this['view'][_0x3fb3('0x2')][_0x3fb3('0x19')]=_0x1553c9;}[_0x3fb3('0xf')](){this[_0x3fb3('0x10')]['targetRect']=this[_0x3fb3('0x17')];}[_0x3fb3('0x16')](){this[_0x3fb3('0x3')]['stopListening'](),this['focusableElements'][_0x3fb3('0xc')](),this['stopListening']();}['refreshVisibility'](){this[_0x3fb3('0x1c')]=!!this[_0x3fb3('0x17')];}static[_0x3fb3('0x13')](_0x1ee5b0){if(!(null===_0x1ee5b0||_0x1ee5b0 instanceof _0xf0fdd9||Array[_0x3fb3('0x6')](_0x1ee5b0)&&_0x1ee5b0[_0x3fb3('0x15')](_0x24f76a=>y(_0x24f76a))))throw new _0x66b450('annotation-invalid-target',null,{'target':_0x1ee5b0});}['_getNormalizedTarget'](){const _0x1f705e='function'==typeof this[_0x3fb3('0x1d')]?this[_0x3fb3('0x1d')]():this[_0x3fb3('0x1d')];return y(_0x1f705e)?[_0x1f705e]:_0x1f705e;}}function y(_0x2ec36a){return null!==_0x2ec36a&&_0x3fb3('0xe')==typeof _0x2ec36a&&_0x3fb3('0x14')in _0x2ec36a&&0x1===_0x2ec36a[_0x3fb3('0x14')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a42=['getByInnerView','clear','_innerViewToAnnotation','fire','getByView','sort','isFocused','length','refreshPositioning','top','change:isFocused','targetRect','focusTracker','_focusTracker','stopListening','focus','delete','innerView','destroy','from','annotationcollection-not-existing-item','_sort','left','updateTargetRect','add','listenTo','annotationcollection-duplicated-item','get','_getOrderInContent','view','set','has','focusableElements','getIndex','remove','_viewToAnnotation'];(function(_0x565633,_0x2a42cc){const _0x5351bb=function(_0x11a638){while(--_0x11a638){_0x565633['push'](_0x565633['shift']());}};_0x5351bb(++_0x2a42cc);}(_0x2a42,0x1cf));const _0x5351=function(_0x565633,_0x2a42cc){_0x565633=_0x565633-0x0;let _0x5351bb=_0x2a42[_0x565633];return _0x5351bb;};import{CKEditorError as _0x1fe021,Collection as _0x1c8861,FocusTracker as _0x5c02cd}from'ckeditor5/src/utils';export default class x extends _0x1c8861{constructor(_0x39ff13=[]){super(),this[_0x5351('0x7')]=new Map(),this[_0x5351('0x4')]=new Map(),this[_0x5351('0x12')]=new _0x5c02cd(),this[_0x5351('0x12')]['on'](_0x5351('0xf'),(_0x25d84e,_0x258017,_0x3b2093)=>{_0x3b2093||this[_0x5351('0x8')]('blur');});for(const _0x286d63 of _0x39ff13)this[_0x5351('0x1d')](_0x286d63);}get['isFocused'](){return this[_0x5351('0x12')][_0x5351('0xb')];}[_0x5351('0x1d')](_0x5c705a){if(this[_0x5351('0x0')](_0x5c705a))throw new _0x1fe021(_0x5351('0x1f'),null);this[_0x5351('0x7')]['set'](_0x5c705a[_0x5351('0x16')],_0x5c705a),this[_0x5351('0x4')][_0x5351('0x23')](_0x5c705a['view'],_0x5c705a);for(const _0x344054 of _0x5c705a[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x1d')](_0x344054);this[_0x5351('0x1e')](_0x5c705a['focusableElements'],_0x5351('0x1d'),(_0x3a3c34,_0x12a47a)=>{this[_0x5351('0x12')][_0x5351('0x1d')](_0x12a47a);}),this[_0x5351('0x1e')](_0x5c705a[_0x5351('0x1')],_0x5351('0x3'),(_0x171abd,_0x576411)=>{this[_0x5351('0x12')][_0x5351('0x3')](_0x576411);}),this['listenTo'](_0x5c705a[_0x5351('0x22')][_0x5351('0x11')],'change:isFocused',(_0x259838,_0x56dc8c,_0x3f4ebc)=>{_0x3f4ebc&&this['fire'](_0x5351('0x14'),_0x5c705a);}),_0x5c705a[_0x5351('0x1c')]();const _0x19f910=this[_0x5351('0x21')](_0x5c705a[_0x5351('0x22')][_0x5351('0x10')]);return super[_0x5351('0x1d')](_0x5c705a,_0x19f910);}[_0x5351('0x3')](_0x1fa54b){if(!this[_0x5351('0x0')](_0x1fa54b))throw new _0x1fe021(_0x5351('0x19'),null);this[_0x5351('0x13')](_0x1fa54b[_0x5351('0x22')][_0x5351('0x11')]),this['stopListening'](_0x1fa54b[_0x5351('0x1')]);for(const _0xb4f7b1 of _0x1fa54b[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x3')](_0xb4f7b1);return this[_0x5351('0x4')][_0x5351('0x15')](_0x1fa54b[_0x5351('0x22')]),this[_0x5351('0x7')][_0x5351('0x15')](_0x1fa54b['innerView']),super[_0x5351('0x3')](_0x1fa54b);}[_0x5351('0x5')](_0x2c8bd8){return this[_0x5351('0x7')][_0x5351('0x20')](_0x2c8bd8);}[_0x5351('0x9')](_0x42188a){return this[_0x5351('0x4')][_0x5351('0x20')](_0x42188a);}[_0x5351('0x17')](){super[_0x5351('0x6')](),this[_0x5351('0x13')](),this[_0x5351('0x7')][_0x5351('0x6')](),this['_viewToAnnotation']['clear'](),this[_0x5351('0x12')]['destroy']();}[_0x5351('0xd')](){for(const _0x106f91 of this)_0x106f91[_0x5351('0x1c')]();this[_0x5351('0x1a')]();}['_sort'](){const _0x2dcf55=Array[_0x5351('0x18')](this)[_0x5351('0xa')]((_0x1eb9c0,_0x4fe523)=>v(_0x1eb9c0[_0x5351('0x22')][_0x5351('0x10')],_0x4fe523[_0x5351('0x22')][_0x5351('0x10')]));for(let _0x596f1d=_0x2dcf55[_0x5351('0xc')]-0x1;_0x596f1d>0x0;_0x596f1d--){const _0x49d3a3=_0x2dcf55[_0x596f1d];_0x596f1d!==this[_0x5351('0x2')](_0x49d3a3)&&(this[_0x5351('0x3')](_0x49d3a3),this['add'](_0x49d3a3));}}['_getOrderInContent'](_0xc41e14){let _0x168bdf=0x0;if(!_0xc41e14)return this['length'];for(const _0x4c3b27 of this){const _0x202f71=_0x4c3b27[_0x5351('0x22')][_0x5351('0x10')];if(_0x202f71){if(v(_0xc41e14,_0x202f71)<0x0)return _0x168bdf;_0x168bdf++;}}return _0x168bdf;}}export function bindAnnotationCollections({source:_0x34795c,target:_0x13b0f4,filter:_0x47e915}){for(const _0x203674 of _0x34795c)_0x47e915(_0x203674)&&_0x13b0f4[_0x5351('0x1d')](_0x203674);_0x13b0f4['listenTo'](_0x34795c,_0x5351('0x1d'),(_0x375f13,_0x33d10f)=>{_0x47e915(_0x33d10f)&&_0x13b0f4[_0x5351('0x1d')](_0x33d10f);}),_0x13b0f4['listenTo'](_0x34795c,'remove',(_0x28d5b4,_0x2e1c33)=>{_0x13b0f4['has'](_0x2e1c33)&&_0x13b0f4[_0x5351('0x3')](_0x2e1c33);});}function v(_0x987633,_0x30f350){if(null===_0x987633&&null===_0x30f350)return 0x0;if(null===_0x987633)return-0x1;if(null===_0x30f350)return 0x1;const _0x19fdbf=_0x987633[_0x5351('0xe')]-_0x30f350[_0x5351('0xe')];return 0x0==_0x19fdbf?_0x987633[_0x5351('0x1b')]-_0x30f350[_0x5351('0x1b')]:_0x19fdbf;}
23
+ const _0x4d59=['delete','sort','annotationcollection-duplicated-item','focusTracker','isFocused','getIndex','getByInnerView','_innerViewToAnnotation','left','set','add','focusableElements','_focusTracker','innerView','fire','blur','top','stopListening','clear','length','get','change:isFocused','targetRect','view','listenTo','_sort','getByView','_getOrderInContent','has','updateTargetRect','destroy','_viewToAnnotation','from','focus','remove','annotationcollection-not-existing-item','refreshPositioning'];(function(_0x21f080,_0x4d595c){const _0x31df0a=function(_0x3e27ab){while(--_0x3e27ab){_0x21f080['push'](_0x21f080['shift']());}};_0x31df0a(++_0x4d595c);}(_0x4d59,0xf2));const _0x31df=function(_0x21f080,_0x4d595c){_0x21f080=_0x21f080-0x0;let _0x31df0a=_0x4d59[_0x21f080];return _0x31df0a;};import{CKEditorError as _0x54d704,Collection as _0x8e0be0,FocusTracker as _0x4fb942}from'ckeditor5/src/utils';export default class x extends _0x8e0be0{constructor(_0x2a0a49=[]){super(),this[_0x31df('0x18')]=new Map(),this[_0x31df('0xb')]=new Map(),this[_0x31df('0x1d')]=new _0x4fb942(),this[_0x31df('0x1d')]['on'](_0x31df('0x1'),(_0x217a3f,_0x2c96cc,_0x11fa98)=>{_0x11fa98||this[_0x31df('0x1f')](_0x31df('0x20'));});for(const _0x524244 of _0x2a0a49)this['add'](_0x524244);}get[_0x31df('0x15')](){return this[_0x31df('0x1d')][_0x31df('0x15')];}[_0x31df('0x1b')](_0x2e54da){if(this[_0x31df('0x8')](_0x2e54da))throw new _0x54d704(_0x31df('0x13'),null);this[_0x31df('0x18')][_0x31df('0x1a')](_0x2e54da[_0x31df('0x1e')],_0x2e54da),this['_viewToAnnotation'][_0x31df('0x1a')](_0x2e54da[_0x31df('0x3')],_0x2e54da);for(const _0x22d355 of _0x2e54da[_0x31df('0x1c')])this[_0x31df('0x1d')][_0x31df('0x1b')](_0x22d355);this['listenTo'](_0x2e54da[_0x31df('0x1c')],_0x31df('0x1b'),(_0x4a60d7,_0x56bde1)=>{this[_0x31df('0x1d')][_0x31df('0x1b')](_0x56bde1);}),this['listenTo'](_0x2e54da['focusableElements'],'remove',(_0x33724d,_0x1fa9ec)=>{this[_0x31df('0x1d')][_0x31df('0xe')](_0x1fa9ec);}),this[_0x31df('0x4')](_0x2e54da[_0x31df('0x3')][_0x31df('0x14')],_0x31df('0x1'),(_0x1ba9eb,_0x257e58,_0x49afa3)=>{_0x49afa3&&this[_0x31df('0x1f')](_0x31df('0xd'),_0x2e54da);}),_0x2e54da[_0x31df('0x9')]();const _0x236714=this['_getOrderInContent'](_0x2e54da[_0x31df('0x3')]['targetRect']);return super[_0x31df('0x1b')](_0x2e54da,_0x236714);}[_0x31df('0xe')](_0x5be628){if(!this['has'](_0x5be628))throw new _0x54d704(_0x31df('0xf'),null);this[_0x31df('0x22')](_0x5be628[_0x31df('0x3')][_0x31df('0x14')]),this['stopListening'](_0x5be628[_0x31df('0x1c')]);for(const _0x4611ed of _0x5be628[_0x31df('0x1c')])this[_0x31df('0x1d')]['remove'](_0x4611ed);return this[_0x31df('0xb')][_0x31df('0x11')](_0x5be628['view']),this[_0x31df('0x18')]['delete'](_0x5be628[_0x31df('0x1e')]),super[_0x31df('0xe')](_0x5be628);}[_0x31df('0x17')](_0x1a6dc6){return this['_innerViewToAnnotation'][_0x31df('0x0')](_0x1a6dc6);}[_0x31df('0x6')](_0x1687bf){return this[_0x31df('0xb')][_0x31df('0x0')](_0x1687bf);}[_0x31df('0xa')](){super[_0x31df('0x23')](),this[_0x31df('0x22')](),this[_0x31df('0x18')]['clear'](),this['_viewToAnnotation']['clear'](),this[_0x31df('0x1d')][_0x31df('0xa')]();}[_0x31df('0x10')](){for(const _0x35efd9 of this)_0x35efd9[_0x31df('0x9')]();this[_0x31df('0x5')]();}[_0x31df('0x5')](){const _0x289ce4=Array[_0x31df('0xc')](this)[_0x31df('0x12')]((_0x46ebdd,_0x3fa6a6)=>v(_0x46ebdd[_0x31df('0x3')][_0x31df('0x2')],_0x3fa6a6[_0x31df('0x3')]['targetRect']));for(let _0x37a324=_0x289ce4[_0x31df('0x24')]-0x1;_0x37a324>0x0;_0x37a324--){const _0x39e54f=_0x289ce4[_0x37a324];_0x37a324!==this[_0x31df('0x16')](_0x39e54f)&&(this[_0x31df('0xe')](_0x39e54f),this[_0x31df('0x1b')](_0x39e54f));}}[_0x31df('0x7')](_0x556945){let _0x1d1617=0x0;if(!_0x556945)return this['length'];for(const _0x2e7da0 of this){const _0x453d33=_0x2e7da0[_0x31df('0x3')][_0x31df('0x2')];if(_0x453d33){if(v(_0x556945,_0x453d33)<0x0)return _0x1d1617;_0x1d1617++;}}return _0x1d1617;}}export function bindAnnotationCollections({source:_0x528416,target:_0xec5900,filter:_0x407650}){for(const _0x254b78 of _0x528416)_0x407650(_0x254b78)&&_0xec5900['add'](_0x254b78);_0xec5900[_0x31df('0x4')](_0x528416,_0x31df('0x1b'),(_0x5f18f2,_0x200537)=>{_0x407650(_0x200537)&&_0xec5900[_0x31df('0x1b')](_0x200537);}),_0xec5900[_0x31df('0x4')](_0x528416,_0x31df('0xe'),(_0x43fff4,_0x2518ed)=>{_0xec5900[_0x31df('0x8')](_0x2518ed)&&_0xec5900['remove'](_0x2518ed);});}function v(_0x2b09b4,_0x3dec63){if(null===_0x2b09b4&&null===_0x3dec63)return 0x0;if(null===_0x2b09b4)return-0x1;if(null===_0x3dec63)return 0x1;const _0x5c5932=_0x2b09b4['top']-_0x3dec63[_0x31df('0x21')];return 0x0==_0x5c5932?_0x2b09b4[_0x31df('0x19')]-_0x3dec63['left']:_0x5c5932;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bdb=['listenTo','isVisible','activeAnnotations','stopListening','_visibleAnnotations','activate','getByInnerView','remove','_addActiveAnnotation','deactivateAll','_removeActiveAnnotation','has','delete','refreshVisibility','element','focusTracker','set','createAnnotationView','_activateAnnotation','change:isVisible','destroy','fire','_bindAnnotationsToVisibleAnnotations','createAnnotation','add','refreshPositioning','collection','source','view','pluginName'];(function(_0x1f84bf,_0x5bdb69){const _0x59b749=function(_0x31b686){while(--_0x31b686){_0x1f84bf['push'](_0x1f84bf['shift']());}};_0x59b749(++_0x5bdb69);}(_0x5bdb,0xe8));const _0x59b7=function(_0x1f84bf,_0x5bdb69){_0x1f84bf=_0x1f84bf-0x0;let _0x59b749=_0x5bdb[_0x1f84bf];return _0x59b749;};import{ContextPlugin as _0x50d61f}from'ckeditor5/src/core';import _0x48f2b6 from'./annotation';import _0x2c8c17 from'./annotationcollection';import _0x38efdc from'./view/annotationview';export default class b extends _0x50d61f{static get[_0x59b7('0x7')](){return'Annotations';}constructor(_0x1f1b43){super(_0x1f1b43),this[_0x59b7('0x4')]=new _0x2c8c17(),this[_0x59b7('0xc')]=new _0x2c8c17(),this[_0x59b7('0x18')](_0x59b7('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x59b7('0x2')](_0x2c89fc){this[_0x59b7('0x4')][_0x59b7('0x2')](_0x2c89fc);}[_0x59b7('0xf')](_0x4a301d){this[_0x59b7('0x4')][_0x59b7('0xf')](_0x4a301d),_0x4a301d['destroy']();}[_0x59b7('0x15')](){for(const _0x543df0 of this['collection'])_0x543df0[_0x59b7('0x15')]();}['refreshPositioning'](){this[_0x59b7('0xc')][_0x59b7('0x3')]();}[_0x59b7('0xe')](_0x30e454){return this['collection'][_0x59b7('0xe')](_0x30e454);}[_0x59b7('0x11')](){this[_0x59b7('0x1d')]('_deactivateAllAnnotations');}[_0x59b7('0x1c')](){for(const _0xafe822 of this[_0x59b7('0x4')])_0xafe822[_0x59b7('0x1c')]();this['_visibleAnnotations']['destroy'](),this[_0x59b7('0x4')][_0x59b7('0x1c')](),super['destroy']();}[_0x59b7('0xd')](_0x3ca581){this[_0x59b7('0x1d')](_0x59b7('0x1a'),_0x3ca581);}[_0x59b7('0x1')](_0x552f3e){return new _0x48f2b6(_0x552f3e);}[_0x59b7('0x19')](_0x29003b,_0x52cad6){return new _0x38efdc(_0x29003b,_0x52cad6);}[_0x59b7('0x10')](_0x5a5dc5){const _0xbef7f1=new Set(this[_0x59b7('0xa')]);_0xbef7f1[_0x59b7('0x2')](_0x5a5dc5),this[_0x59b7('0xa')]=_0xbef7f1;}[_0x59b7('0x12')](_0x4d637b){const _0x5ecf08=new Set(this[_0x59b7('0xa')]);_0x5ecf08[_0x59b7('0x14')](_0x4d637b),this[_0x59b7('0xa')]=_0x5ecf08;}[_0x59b7('0x0')](){const _0x450f9b=this[_0x59b7('0x4')],_0x5b8052=this['_visibleAnnotations'];function _0x97d7fd(_0x59426e){const _0x55bd92=_0x59426e[_0x59b7('0x5')];_0x55bd92[_0x59b7('0x9')]&&!_0x5b8052['has'](_0x55bd92)?_0x5b8052[_0x59b7('0x2')](_0x55bd92):!_0x55bd92['isVisible']&&_0x5b8052[_0x59b7('0x13')](_0x55bd92)&&_0x5b8052[_0x59b7('0xf')](_0x55bd92),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0xf')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0x2')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]);}this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0x2'),(_0x3e7cf0,_0x23fb40)=>{_0x23fb40[_0x59b7('0x9')]&&_0x5b8052['add'](_0x23fb40),this[_0x59b7('0x8')](_0x23fb40,_0x59b7('0x1b'),_0x97d7fd);}),this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0xf'),(_0x91d4ec,_0x232453)=>{_0x5b8052[_0x59b7('0x13')](_0x232453)&&_0x5b8052[_0x59b7('0xf')](_0x232453),this[_0x59b7('0xb')](_0x232453,'change:isVisible',_0x97d7fd);});}}
23
+ const _0x28bb=['_addActiveAnnotation','_removeActiveAnnotation','activate','activeAnnotations','refreshPositioning','collection','deactivateAll','_activateAnnotation','_deactivateAllAnnotations','destroy','remove','refreshVisibility','_visibleAnnotations','source','_bindAnnotationsToVisibleAnnotations','delete','createAnnotation','pluginName','isVisible','change:isVisible','createAnnotationView','stopListening','listenTo','getByInnerView','add','view','set','has','fire'];(function(_0xee38e3,_0x28bbff){const _0x1f45bf=function(_0x407fd7){while(--_0x407fd7){_0xee38e3['push'](_0xee38e3['shift']());}};_0x1f45bf(++_0x28bbff);}(_0x28bb,0xa2));const _0x1f45=function(_0xee38e3,_0x28bbff){_0xee38e3=_0xee38e3-0x0;let _0x1f45bf=_0x28bb[_0xee38e3];return _0x1f45bf;};import{ContextPlugin as _0x202d86}from'ckeditor5/src/core';import _0x32f79c from'./annotation';import _0x5e65ff from'./annotationcollection';import _0x18bee8 from'./view/annotationview';export default class b extends _0x202d86{static get[_0x1f45('0x0')](){return'Annotations';}constructor(_0x5ba683){super(_0x5ba683),this[_0x1f45('0x11')]=new _0x5e65ff(),this[_0x1f45('0x18')]=new _0x5e65ff(),this[_0x1f45('0x9')](_0x1f45('0xf'),new Set()),this[_0x1f45('0x1a')]();}['add'](_0x43da7b){this['collection'][_0x1f45('0x7')](_0x43da7b);}['remove'](_0x3728e7){this[_0x1f45('0x11')][_0x1f45('0x16')](_0x3728e7),_0x3728e7[_0x1f45('0x15')]();}[_0x1f45('0x17')](){for(const _0x40933e of this['collection'])_0x40933e['refreshVisibility']();}[_0x1f45('0x10')](){this[_0x1f45('0x18')]['refreshPositioning']();}[_0x1f45('0x6')](_0xb2375a){return this[_0x1f45('0x11')]['getByInnerView'](_0xb2375a);}[_0x1f45('0x12')](){this[_0x1f45('0xb')](_0x1f45('0x14'));}[_0x1f45('0x15')](){for(const _0x3a0fb1 of this['collection'])_0x3a0fb1[_0x1f45('0x15')]();this['_visibleAnnotations']['destroy'](),this[_0x1f45('0x11')][_0x1f45('0x15')](),super[_0x1f45('0x15')]();}[_0x1f45('0xe')](_0x5d8059){this[_0x1f45('0xb')](_0x1f45('0x13'),_0x5d8059);}[_0x1f45('0x1c')](_0x234c46){return new _0x32f79c(_0x234c46);}[_0x1f45('0x3')](_0x58d81f,_0x44f0b7){return new _0x18bee8(_0x58d81f,_0x44f0b7);}[_0x1f45('0xc')](_0x673e1c){const _0xa3e5f6=new Set(this['activeAnnotations']);_0xa3e5f6[_0x1f45('0x7')](_0x673e1c),this[_0x1f45('0xf')]=_0xa3e5f6;}[_0x1f45('0xd')](_0x4193ed){const _0x3772c9=new Set(this[_0x1f45('0xf')]);_0x3772c9[_0x1f45('0x1b')](_0x4193ed),this[_0x1f45('0xf')]=_0x3772c9;}[_0x1f45('0x1a')](){const _0x24b249=this[_0x1f45('0x11')],_0x493939=this['_visibleAnnotations'];function _0x5bd90f(_0x2e89f7){const _0x4d6035=_0x2e89f7[_0x1f45('0x19')];_0x4d6035[_0x1f45('0x1')]&&!_0x493939[_0x1f45('0xa')](_0x4d6035)?_0x493939[_0x1f45('0x7')](_0x4d6035):!_0x4d6035[_0x1f45('0x1')]&&_0x493939[_0x1f45('0xa')](_0x4d6035)&&_0x493939[_0x1f45('0x16')](_0x4d6035),_0x4d6035[_0x1f45('0x8')]['focusTracker'][_0x1f45('0x16')](_0x4d6035[_0x1f45('0x8')]['element']),_0x4d6035[_0x1f45('0x8')]['focusTracker'][_0x1f45('0x7')](_0x4d6035[_0x1f45('0x8')]['element']);}this['listenTo'](_0x24b249,'add',(_0x591c6f,_0x3a7ba5)=>{_0x3a7ba5[_0x1f45('0x1')]&&_0x493939[_0x1f45('0x7')](_0x3a7ba5),this['listenTo'](_0x3a7ba5,_0x1f45('0x2'),_0x5bd90f);}),this[_0x1f45('0x5')](_0x24b249,'remove',(_0x1b4611,_0x16b31e)=>{_0x493939['has'](_0x16b31e)&&_0x493939[_0x1f45('0x16')](_0x16b31e),this[_0x1f45('0x4')](_0x16b31e,'change:isVisible',_0x5bd90f);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2085=['type','length','attach','_setSelectedAnnotations','find','annotationsuis-register-already-registered','deactivate','_visibleAnnotations','annotationsuis-annotation-mismatch','switchTo','push','_uisData','detach','annotationsuis-register-invalid-interface','from','filter','_removeActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','destroy','context','delete','register','isActive','activeAnnotations','pluginName','AnnotationsUIs','listenTo','plugins','get','_activateAnnotation','function','activate','_addActiveAnnotation','set','collection','stopListening','has','_deactivateAllAnnotations','deactivateAll','setActiveAnnotation','requires','size','activeUIs','init','add','_uis','annotationsuis-missing-ui'];(function(_0x11747d,_0x2085cb){const _0x40e9db=function(_0x2adf7c){while(--_0x2adf7c){_0x11747d['push'](_0x11747d['shift']());}};_0x40e9db(++_0x2085cb);}(_0x2085,0xad));const _0x40e9=function(_0x11747d,_0x2085cb){_0x11747d=_0x11747d-0x0;let _0x40e9db=_0x2085[_0x11747d];return _0x40e9db;};import{ContextPlugin as _0x234370}from'ckeditor5/src/core';import{CKEditorError as _0x5b58f6}from'ckeditor5/src/utils';import _0x36165e,{bindAnnotationCollections as _0x24d852}from'./annotationcollection';import _0x309bea from'./annotations';export default class M extends _0x234370{static get[_0x40e9('0x8')](){return[_0x309bea];}static get[_0x40e9('0x27')](){return _0x40e9('0x28');}constructor(_0x1571f9){super(_0x1571f9),this[_0x40e9('0xa')]=new Set(),this['_uis']=new Map(),this[_0x40e9('0x1a')]=new Map();}[_0x40e9('0xb')](){const _0x1d3c1d=this['context'][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);this['listenTo'](_0x1d3c1d,_0x40e9('0x2c'),(_0x1f7d0d,_0x229479)=>{for(const _0x55adfb of this['activeUIs']){const _0x2ac8f9=this['_uis'][_0x40e9('0x2b')](_0x55adfb);(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x55adfb)['filter'])(_0x229479)&&_0x2ac8f9[_0x40e9('0x7')](_0x229479);}}),this[_0x40e9('0x29')](_0x1d3c1d,_0x40e9('0x5'),()=>{for(const _0x44eabc of this[_0x40e9('0xa')]){this['_uis'][_0x40e9('0x2b')](_0x44eabc)[_0x40e9('0x7')](null);}}),this[_0x40e9('0x29')](_0x1d3c1d[_0x40e9('0x16')],_0x40e9('0xc'),(_0x275b87,_0x37a86f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37a86f);});}['hasActive'](){return this[_0x40e9('0xa')][_0x40e9('0x9')]>0x0;}[_0x40e9('0x25')](_0x9ea674){return this[_0x40e9('0xa')]['has'](_0x9ea674);}[_0x40e9('0x2e')](_0x345cc3,_0x4b7ef9=()=>!0x0){const _0x347482=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x345cc3))throw new _0x5b58f6('annotationsuis-missing-ui',this,{'uiName':_0x345cc3});this['isActive'](_0x345cc3)&&this['deactivate'](_0x345cc3),this['activeUIs'][_0x40e9('0xc')](_0x345cc3);const _0x80caaa=new _0x36165e(),_0x34a5ee=_0x347482['_visibleAnnotations'];_0x24d852({'source':_0x34a5ee,'target':_0x80caaa,'filter':_0x4b7ef9}),this[_0x40e9('0x1a')]['set'](_0x345cc3,{'collection':_0x80caaa,'filter':_0x4b7ef9});const _0x17d88b=this['_uis'][_0x40e9('0x2b')](_0x345cc3);_0x17d88b['attach'](_0x80caaa),this[_0x40e9('0x29')](_0x17d88b,'change:activeAnnotation',(_0x58ad59,_0x5ad956,_0x164488,_0x45ddc5)=>{_0x45ddc5&&_0x347482[_0x40e9('0x1f')](_0x45ddc5),_0x164488&&_0x347482[_0x40e9('0x0')](_0x164488);});}[_0x40e9('0x15')](_0x57ef89){if(this[_0x40e9('0xa')][_0x40e9('0x23')](_0x57ef89),!this['_uis'][_0x40e9('0x4')](_0x57ef89))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x57ef89});const _0x363428=this['_uis'][_0x40e9('0x2b')](_0x57ef89);_0x363428[_0x40e9('0x1b')](),this[_0x40e9('0x3')](_0x363428),this['_uisData']['get'](_0x57ef89)[_0x40e9('0x2')][_0x40e9('0x21')](),this[_0x40e9('0x1a')][_0x40e9('0x23')](_0x57ef89);}[_0x40e9('0x18')](_0x2ae332){if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x2ae332))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x2ae332});const _0x25e8de=this[_0x40e9('0x22')][_0x40e9('0x2a')]['get'](_0x309bea),_0x1b96ec=Array[_0x40e9('0x1d')](_0x25e8de[_0x40e9('0x26')])[0x0]||null;this[_0x40e9('0x6')](),this[_0x40e9('0x2e')](_0x2ae332);const _0x31e032=this[_0x40e9('0xd')][_0x40e9('0x2b')](_0x2ae332);_0x31e032[_0x40e9('0x7')](_0x1b96ec),_0x31e032[_0x40e9('0x12')]&&_0x1b96ec&&_0x31e032[_0x40e9('0x12')]([_0x1b96ec]);}[_0x40e9('0x6')](){for(const _0x87df73 of this[_0x40e9('0xa')])this['deactivate'](_0x87df73);}[_0x40e9('0x24')](_0x49ac02,_0x11cd45){if(this[_0x40e9('0xd')][_0x40e9('0x4')](_0x49ac02))throw new _0x5b58f6(_0x40e9('0x14'));if(_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x11')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x1b')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x7')])throw new _0x5b58f6(_0x40e9('0x1c'),null);this['_uis'][_0x40e9('0x1')](_0x49ac02,_0x11cd45);}['refilterAnnotations'](){const _0x25091e=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea)[_0x40e9('0x2')],_0x26cd8e=new Map(),_0x2bfba6=Array[_0x40e9('0x1d')](this[_0x40e9('0xa')]);for(const _0x78df99 of this[_0x40e9('0xa')]){const _0x74376d=this['_uisData'][_0x40e9('0x2b')](_0x78df99)[_0x40e9('0x2')];for(const _0x184c82 of _0x74376d)_0x26cd8e[_0x40e9('0x1')](_0x184c82,_0x78df99);}for(const _0x1fd964 of _0x25091e){const _0x42f074=_0x26cd8e['get'](_0x1fd964);this[_0x40e9('0x20')](_0x1fd964);const _0x48b026=_0x2bfba6[_0x40e9('0x13')](_0x26ed01=>this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x26ed01)[_0x40e9('0x1e')](_0x1fd964));_0x42f074!==_0x48b026&&(_0x42f074&&this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x42f074)[_0x40e9('0x2')]['remove'](_0x1fd964),_0x48b026&&this['_uisData'][_0x40e9('0x2b')](_0x48b026)[_0x40e9('0x2')]['add'](_0x1fd964));}}[_0x40e9('0x21')](){this[_0x40e9('0x6')](),super[_0x40e9('0x21')]();}[_0x40e9('0x20')](_0x491ecd){const _0x11c307=[];for(const _0x50f4e7 of this['activeUIs']){(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x50f4e7)['filter'])(_0x491ecd)&&_0x11c307[_0x40e9('0x19')](_0x50f4e7);}if(_0x11c307[_0x40e9('0x10')]>0x1)throw new _0x5b58f6(_0x40e9('0x17'),null,{'matchedUIs':_0x11c307,'annotationType':_0x491ecd[_0x40e9('0xf')]});}}
23
+ const _0x1682=['has','detach','filter','_setSelectedAnnotations','annotationsuis-annotation-mismatch','activeAnnotations','deactivate','pluginName','stopListening','_assertAnnotationDoesNotBelongToMultipleUIs','length','register','destroy','delete','context','plugins','AnnotationsUIs','_uisData','push','function','refilterAnnotations','attach','listenTo','isActive','collection','type','change:activeAnnotation','find','activeUIs','_activateAnnotation','deactivateAll','set','_uis','hasActive','get','annotationsuis-missing-ui','from','setActiveAnnotation','_removeActiveAnnotation','init','activate','_deactivateAllAnnotations','requires','switchTo','add','remove'];(function(_0x3f8da4,_0x168227){const _0x36afa2=function(_0x1d4a1b){while(--_0x1d4a1b){_0x3f8da4['push'](_0x3f8da4['shift']());}};_0x36afa2(++_0x168227);}(_0x1682,0x16f));const _0x36af=function(_0x3f8da4,_0x168227){_0x3f8da4=_0x3f8da4-0x0;let _0x36afa2=_0x1682[_0x3f8da4];return _0x36afa2;};import{ContextPlugin as _0x43e75d}from'ckeditor5/src/core';import{CKEditorError as _0x9764c9}from'ckeditor5/src/utils';import _0xb7d91b,{bindAnnotationCollections as _0x26326a}from'./annotationcollection';import _0x2f9152 from'./annotations';export default class M extends _0x43e75d{static get[_0x36af('0x2b')](){return[_0x2f9152];}static get[_0x36af('0x8')](){return _0x36af('0x11');}constructor(_0x57ca05){super(_0x57ca05),this['activeUIs']=new Set(),this['_uis']=new Map(),this[_0x36af('0x12')]=new Map();}[_0x36af('0x28')](){const _0x4d3eab=this[_0x36af('0xf')]['plugins'][_0x36af('0x23')](_0x2f9152);this[_0x36af('0x17')](_0x4d3eab,_0x36af('0x1e'),(_0x3c4258,_0x4d537c)=>{for(const _0x26c381 of this[_0x36af('0x1d')]){const _0x72c668=this['_uis']['get'](_0x26c381);(0x0,this[_0x36af('0x12')][_0x36af('0x23')](_0x26c381)['filter'])(_0x4d537c)&&_0x72c668[_0x36af('0x26')](_0x4d537c);}}),this[_0x36af('0x17')](_0x4d3eab,_0x36af('0x2a'),()=>{for(const _0x6464e4 of this['activeUIs']){this[_0x36af('0x21')]['get'](_0x6464e4)[_0x36af('0x26')](null);}}),this[_0x36af('0x17')](_0x4d3eab['_visibleAnnotations'],_0x36af('0x2d'),(_0x2cc3b4,_0x34beb1)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x34beb1);});}[_0x36af('0x22')](){return this[_0x36af('0x1d')]['size']>0x0;}['isActive'](_0x51024b){return this['activeUIs'][_0x36af('0x1')](_0x51024b);}['activate'](_0x29cd6f,_0x17e392=()=>!0x0){const _0x49720c=this[_0x36af('0xf')][_0x36af('0x10')][_0x36af('0x23')](_0x2f9152);if(!this[_0x36af('0x21')]['has'](_0x29cd6f))throw new _0x9764c9(_0x36af('0x24'),this,{'uiName':_0x29cd6f});this[_0x36af('0x18')](_0x29cd6f)&&this[_0x36af('0x7')](_0x29cd6f),this['activeUIs']['add'](_0x29cd6f);const _0x4447d8=new _0xb7d91b(),_0x1d341b=_0x49720c['_visibleAnnotations'];_0x26326a({'source':_0x1d341b,'target':_0x4447d8,'filter':_0x17e392}),this[_0x36af('0x12')]['set'](_0x29cd6f,{'collection':_0x4447d8,'filter':_0x17e392});const _0xb2c0b4=this['_uis'][_0x36af('0x23')](_0x29cd6f);_0xb2c0b4['attach'](_0x4447d8),this[_0x36af('0x17')](_0xb2c0b4,_0x36af('0x1b'),(_0x1c06d3,_0xc2a4a6,_0x508df0,_0x1c612f)=>{_0x1c612f&&_0x49720c[_0x36af('0x27')](_0x1c612f),_0x508df0&&_0x49720c['_addActiveAnnotation'](_0x508df0);});}[_0x36af('0x7')](_0x52051d){if(this[_0x36af('0x1d')]['delete'](_0x52051d),!this['_uis'][_0x36af('0x1')](_0x52051d))throw new _0x9764c9(_0x36af('0x24'),this,{'uiName':_0x52051d});const _0x443994=this[_0x36af('0x21')][_0x36af('0x23')](_0x52051d);_0x443994[_0x36af('0x2')](),this[_0x36af('0x9')](_0x443994),this['_uisData']['get'](_0x52051d)[_0x36af('0x19')][_0x36af('0xd')](),this['_uisData'][_0x36af('0xe')](_0x52051d);}[_0x36af('0x2c')](_0x5ad636){if(!this[_0x36af('0x21')]['has'](_0x5ad636))throw new _0x9764c9(_0x36af('0x24'),this,{'uiName':_0x5ad636});const _0x1069c8=this['context'][_0x36af('0x10')]['get'](_0x2f9152),_0x5ebc95=Array['from'](_0x1069c8[_0x36af('0x6')])[0x0]||null;this[_0x36af('0x1f')](),this[_0x36af('0x29')](_0x5ad636);const _0x81b336=this['_uis'][_0x36af('0x23')](_0x5ad636);_0x81b336[_0x36af('0x26')](_0x5ebc95),_0x81b336[_0x36af('0x4')]&&_0x5ebc95&&_0x81b336[_0x36af('0x4')]([_0x5ebc95]);}[_0x36af('0x1f')](){for(const _0x17b52b of this['activeUIs'])this[_0x36af('0x7')](_0x17b52b);}[_0x36af('0xc')](_0x3a4949,_0x272e68){if(this[_0x36af('0x21')]['has'](_0x3a4949))throw new _0x9764c9('annotationsuis-register-already-registered');if(_0x36af('0x14')!=typeof _0x272e68[_0x36af('0x16')]||_0x36af('0x14')!=typeof _0x272e68[_0x36af('0x2')]||_0x36af('0x14')!=typeof _0x272e68['setActiveAnnotation'])throw new _0x9764c9('annotationsuis-register-invalid-interface',null);this[_0x36af('0x21')][_0x36af('0x20')](_0x3a4949,_0x272e68);}[_0x36af('0x15')](){const _0x3e34d3=this[_0x36af('0xf')][_0x36af('0x10')][_0x36af('0x23')](_0x2f9152)[_0x36af('0x19')],_0x22a8d7=new Map(),_0x2e9fa1=Array[_0x36af('0x25')](this['activeUIs']);for(const _0x32d949 of this[_0x36af('0x1d')]){const _0xf6a906=this[_0x36af('0x12')]['get'](_0x32d949)['collection'];for(const _0x144ef5 of _0xf6a906)_0x22a8d7['set'](_0x144ef5,_0x32d949);}for(const _0x1bc158 of _0x3e34d3){const _0x3d6644=_0x22a8d7[_0x36af('0x23')](_0x1bc158);this[_0x36af('0xa')](_0x1bc158);const _0x13f289=_0x2e9fa1[_0x36af('0x1c')](_0x200011=>this[_0x36af('0x12')][_0x36af('0x23')](_0x200011)[_0x36af('0x3')](_0x1bc158));_0x3d6644!==_0x13f289&&(_0x3d6644&&this[_0x36af('0x12')][_0x36af('0x23')](_0x3d6644)[_0x36af('0x19')][_0x36af('0x0')](_0x1bc158),_0x13f289&&this[_0x36af('0x12')]['get'](_0x13f289)['collection'][_0x36af('0x2d')](_0x1bc158));}}[_0x36af('0xd')](){this[_0x36af('0x1f')](),super[_0x36af('0xd')]();}[_0x36af('0xa')](_0xd4a8b7){const _0x1e87a8=[];for(const _0xf19591 of this['activeUIs']){(0x0,this['_uisData']['get'](_0xf19591)[_0x36af('0x3')])(_0xd4a8b7)&&_0x1e87a8[_0x36af('0x13')](_0xf19591);}if(_0x1e87a8[_0x36af('0xb')]>0x1)throw new _0x9764c9(_0x36af('0x5'),null,{'matchedUIs':_0x1e87a8,'annotationType':_0xd4a8b7[_0x36af('0x1a')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45b6=['refresh','addSourceCollector','get','has','isReadOnly','focusTracker','sort','_editorAnnotations','containsRange','isEqual','editing','fire','refreshSelectedViews','_editorAnnotationsData','push','map','model','from','isCollapsed','collection','uiUpdate','cancel','editorannotations-invalid-source-callback','directChange','plugins','function','annotation','view','getByInnerView','document','selection','init','hasDomSelection','change:isFocused','listenTo','add','set','getRanges','editor','requires','range','_dataCollectors','element'];(function(_0x37f9b7,_0x45b6dc){const _0x1c95ee=function(_0x11a346){while(--_0x11a346){_0x37f9b7['push'](_0x37f9b7['shift']());}};_0x1c95ee(++_0x45b6dc);}(_0x45b6,0x14f));const _0x1c95=function(_0x37f9b7,_0x45b6dc){_0x37f9b7=_0x37f9b7-0x0;let _0x1c95ee=_0x45b6[_0x37f9b7];return _0x1c95ee;};import{Plugin as _0x205d54}from'ckeditor5/src/core';import{CKEditorError as _0x5b23a8}from'ckeditor5/src/utils';import{debounce as _0x40e3ee}from'lodash-es';import _0x27831a from'./annotations';export default class k extends _0x205d54{static get[_0x1c95('0x5')](){return[_0x27831a];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x4d4a4f){super(_0x4d4a4f),this['_dataCollectors']=new Set(),this[_0x1c95('0x10')]=new Set();}[_0x1c95('0x28')](){const _0x2c274b=this['editor'],_0x4377bf=_0x2c274b[_0x1c95('0x19')]['document'][_0x1c95('0x27')],_0x18c245=_0x40e3ee(()=>this[_0x1c95('0x15')](),0xa);_0x4377bf['on']('change:range',(_0x1ebdb3,_0x4d06dd)=>{_0x4d06dd[_0x1c95('0x20')]&&(_0x18c245[_0x1c95('0x1e')](),this['refreshSelectedViews']());}),this[_0x1c95('0x0')](_0x2c274b[_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x26')],'change:isFocused',(_0x57b212,_0x11aab8,_0xa2a2e6)=>{_0xa2a2e6&&_0x18c245();}),this[_0x1c95('0x0')](_0x2c274b['ui'][_0x1c95('0xe')],_0x1c95('0x2a'),(_0x36ca24,_0xaaa399,_0xcc1415)=>{_0xcc1415||_0x2c274b[_0x1c95('0xd')]||this[_0x1c95('0x14')]('blur',{'isAnnotationTracked':_0x205069=>this[_0x1c95('0x16')][_0x1c95('0xc')](_0x205069['innerView'])});}),this[_0x1c95('0x0')](this[_0x1c95('0x4')]['ui'],'update',()=>this[_0x1c95('0x14')](_0x1c95('0x1d')));}['registerAnnotation'](_0x22517b){if(this[_0x1c95('0x10')][_0x1c95('0xc')](_0x22517b[_0x1c95('0x24')]))return;this[_0x1c95('0x10')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')]),this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')][_0x1c95('0x8')]);const _0x2a1844=this[_0x1c95('0x4')][_0x1c95('0x21')][_0x1c95('0xb')](_0x27831a);this[_0x1c95('0x0')](_0x2a1844[_0x1c95('0x1c')],'remove',(_0x264242,_0x4b822c)=>{this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')]['remove'](_0x4b822c[_0x1c95('0x24')][_0x1c95('0x8')]),this[_0x1c95('0x10')]['delete'](_0x4b822c[_0x1c95('0x24')]);});}[_0x1c95('0x29')](){return this[_0x1c95('0x4')][_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x29')];}[_0x1c95('0xa')](_0x269469){if(_0x1c95('0x22')!=typeof _0x269469)throw new _0x5b23a8(_0x1c95('0x1f'));this[_0x1c95('0x7')][_0x1c95('0x1')](_0x269469);}[_0x1c95('0x15')](){this[_0x1c95('0x14')](_0x1c95('0x9'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1cf3a5,annotations:_0x401001}){const _0x299ccf=[],_0x3e8028=this[_0x1c95('0x4')]['model']['document'][_0x1c95('0x27')],_0x414573=Array[_0x1c95('0x1a')](_0x3e8028[_0x1c95('0x3')]());for(const [_0x251a69,_0x25f875]of this[_0x1c95('0x16')]){const _0x35dfc3=_0x33ff98(_0x25f875),_0x2dc1ac=_0x401001[_0x1c95('0x25')](_0x251a69);_0x35dfc3&&_0x2dc1ac&&_0x299ccf[_0x1c95('0x17')]({'annotation':_0x2dc1ac,'range':_0x35dfc3});}function _0x33ff98(_0x5d088c){for(const _0x45061f of _0x5d088c)for(const _0x3265d4 of _0x414573)if(_0x45061f[_0x1c95('0x11')](_0x3265d4,!_0x3e8028[_0x1c95('0x1b')]))return _0x45061f;return null;}return _0x299ccf[_0x1c95('0xf')]((_0x57b3a4,_0x36194e)=>{const _0x26ffdb=_0x57b3a4['range'],_0x333993=_0x36194e[_0x1c95('0x6')];if(!_0x26ffdb[_0x1c95('0x12')](_0x333993)){if(_0x26ffdb[_0x1c95('0x11')](_0x333993,!0x0))return 0x1;if(_0x333993[_0x1c95('0x11')](_0x26ffdb,!0x0))return-0x1;}return _0x57b3a4[_0x1c95('0x23')]==_0x1cf3a5?-0x1:_0x36194e[_0x1c95('0x23')]==_0x1cf3a5?0x1:0x0;})[_0x1c95('0x18')](_0x3091cc=>_0x3091cc[_0x1c95('0x23')]);}get[_0x1c95('0x16')](){const _0x3a2ff9=new Map();for(const _0x154895 of Array[_0x1c95('0x1a')](this[_0x1c95('0x7')]))for(const [_0x9b3231,_0x4e2f5f]of _0x154895())_0x3a2ff9[_0x1c95('0x2')](_0x9b3231,_0x4e2f5f);return _0x3a2ff9;}}
23
+ const _0xafd1=['containsRange','innerView','init','editor','remove','focusTracker','add','change:range','_dataCollectors','collection','annotation','refresh','element','range','update','addSourceCollector','has','refreshSelectedViews','cancel','registerAnnotation','_editorAnnotations','uiUpdate','_editorAnnotationsData','hasDomSelection','listenTo','selection','get','view','pluginName','fire','model','requires','from','change:isFocused','delete','map','editorannotations-invalid-source-callback','document','EditorAnnotations','function'];(function(_0x4c466f,_0xafd18e){const _0x52a060=function(_0x5439ce){while(--_0x5439ce){_0x4c466f['push'](_0x4c466f['shift']());}};_0x52a060(++_0xafd18e);}(_0xafd1,0x1a4));const _0x52a0=function(_0x4c466f,_0xafd18e){_0x4c466f=_0x4c466f-0x0;let _0x52a060=_0xafd1[_0x4c466f];return _0x52a060;};import{Plugin as _0x69658a}from'ckeditor5/src/core';import{CKEditorError as _0x1f33a8}from'ckeditor5/src/utils';import{debounce as _0x4174cd}from'lodash-es';import _0x13adf8 from'./annotations';export default class k extends _0x69658a{static get[_0x52a0('0xb')](){return[_0x13adf8];}static get[_0x52a0('0x8')](){return _0x52a0('0x12');}constructor(_0x55ee77){super(_0x55ee77),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}[_0x52a0('0x16')](){const _0x4556a2=this[_0x52a0('0x17')],_0x2c2341=_0x4556a2[_0x52a0('0xa')][_0x52a0('0x11')][_0x52a0('0x5')],_0x40397d=_0x4174cd(()=>this[_0x52a0('0x25')](),0xa);_0x2c2341['on'](_0x52a0('0x1b'),(_0x7697dd,_0xfe89b2)=>{_0xfe89b2['directChange']&&(_0x40397d[_0x52a0('0x26')](),this['refreshSelectedViews']());}),this['listenTo'](_0x4556a2['editing'][_0x52a0('0x7')][_0x52a0('0x11')],_0x52a0('0xd'),(_0x3e5b2f,_0x27438a,_0x36cf4d)=>{_0x36cf4d&&_0x40397d();}),this[_0x52a0('0x4')](_0x4556a2['ui'][_0x52a0('0x19')],_0x52a0('0xd'),(_0x5efe06,_0xe19ea3,_0x24c835)=>{_0x24c835||_0x4556a2['isReadOnly']||this[_0x52a0('0x9')]('blur',{'isAnnotationTracked':_0x179f4f=>this[_0x52a0('0x2')][_0x52a0('0x24')](_0x179f4f[_0x52a0('0x15')])});}),this[_0x52a0('0x4')](this[_0x52a0('0x17')]['ui'],_0x52a0('0x22'),()=>this[_0x52a0('0x9')](_0x52a0('0x1')));}[_0x52a0('0x27')](_0x1330a7){if(this[_0x52a0('0x0')][_0x52a0('0x24')](_0x1330a7['view']))return;this[_0x52a0('0x0')][_0x52a0('0x1a')](_0x1330a7[_0x52a0('0x7')]),this[_0x52a0('0x17')]['ui'][_0x52a0('0x19')][_0x52a0('0x1a')](_0x1330a7[_0x52a0('0x7')][_0x52a0('0x20')]);const _0x196df7=this[_0x52a0('0x17')]['plugins'][_0x52a0('0x6')](_0x13adf8);this['listenTo'](_0x196df7[_0x52a0('0x1d')],'remove',(_0x299225,_0x2a4c0a)=>{this[_0x52a0('0x17')]['ui'][_0x52a0('0x19')][_0x52a0('0x18')](_0x2a4c0a[_0x52a0('0x7')][_0x52a0('0x20')]),this[_0x52a0('0x0')][_0x52a0('0xe')](_0x2a4c0a[_0x52a0('0x7')]);});}[_0x52a0('0x3')](){return this['editor']['editing']['view'][_0x52a0('0x3')];}[_0x52a0('0x23')](_0x21d3e3){if(_0x52a0('0x13')!=typeof _0x21d3e3)throw new _0x1f33a8(_0x52a0('0x10'));this['_dataCollectors'][_0x52a0('0x1a')](_0x21d3e3);}[_0x52a0('0x25')](){this[_0x52a0('0x9')](_0x52a0('0x1f'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0xd7f93c,annotations:_0x572d2e}){const _0x484c1b=[],_0x11f917=this[_0x52a0('0x17')][_0x52a0('0xa')][_0x52a0('0x11')][_0x52a0('0x5')],_0x1ef703=Array['from'](_0x11f917['getRanges']());for(const [_0x1e40d9,_0x4ec240]of this['_editorAnnotationsData']){const _0x5906c7=_0x242010(_0x4ec240),_0x243f53=_0x572d2e['getByInnerView'](_0x1e40d9);_0x5906c7&&_0x243f53&&_0x484c1b['push']({'annotation':_0x243f53,'range':_0x5906c7});}function _0x242010(_0x20ad1b){for(const _0x1674f4 of _0x20ad1b)for(const _0x1efe26 of _0x1ef703)if(_0x1674f4[_0x52a0('0x14')](_0x1efe26,!_0x11f917['isCollapsed']))return _0x1674f4;return null;}return _0x484c1b['sort']((_0x127dd6,_0x55e4c1)=>{const _0x52405a=_0x127dd6['range'],_0x9f7133=_0x55e4c1[_0x52a0('0x21')];if(!_0x52405a['isEqual'](_0x9f7133)){if(_0x52405a[_0x52a0('0x14')](_0x9f7133,!0x0))return 0x1;if(_0x9f7133[_0x52a0('0x14')](_0x52405a,!0x0))return-0x1;}return _0x127dd6[_0x52a0('0x1e')]==_0xd7f93c?-0x1:_0x55e4c1[_0x52a0('0x1e')]==_0xd7f93c?0x1:0x0;})[_0x52a0('0xf')](_0x1dbd72=>_0x1dbd72[_0x52a0('0x1e')]);}get[_0x52a0('0x2')](){const _0x41a6b4=new Map();for(const _0x7013ba of Array[_0x52a0('0xc')](this[_0x52a0('0x1c')]))for(const [_0x232791,_0x5863d5]of _0x7013ba())_0x41a6b4['set'](_0x232791,_0x5863d5);return _0x41a6b4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12df=['pluginName','set','Esc','requires','_addedAnnotations','getClientRects','register','_getBalloonTargetForAnnotation','isAttached','length','includes','editor','update','editing','every','setActiveAnnotation','map','_selectedAnnotations','detach','focus','stopListening','get','domConverter','_closeAnnotation','plugins','selection','getByView','activeAnnotation','inline','listenTo','focusTracker','fromRect','change:isFocused','isActive','targetRect','keystrokes','has','annotations','left','right','_setSelectedAnnotations','refresh','_addAnnotationToBalloon','_removeAnnotationFromBalloon','change:visibleView','document','hasView','visibleView','change:height','remove','mousedown','clear','_forceRefresh','switchTo','InlineAnnotations','editableElement','init','find','inlineannotations-attach-already-attached','isFocused','hasActive','add','top','_manuallyClosed','collapse','_balloon','push','blur','showStack','context','viewRangeToDom','width','bottom','destroy','view','updatePosition','delete','inlineannotations-not-allowed-with-context','from'];(function(_0x1ee210,_0x12df6b){const _0x244a01=function(_0x94a4e4){while(--_0x94a4e4){_0x1ee210['push'](_0x1ee210['shift']());}};_0x244a01(++_0x12df6b);}(_0x12df,0xe5));const _0x244a=function(_0x1ee210,_0x12df6b){_0x1ee210=_0x1ee210-0x0;let _0x244a01=_0x12df[_0x1ee210];return _0x244a01;};import{Plugin as _0x3b5198}from'ckeditor5/src/core';import _0xd97840 from'./annotationsuis';import _0x197b3a from'./editorannotations';import{ContextualBalloon as _0x44d7d0}from'ckeditor5/src/ui';import{MouseObserver as _0x230bea}from'ckeditor5/src/engine';import{CKEditorError as _0x506e15,Rect as _0x64b5d7}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x3b5198{static get[_0x244a('0xb')](){return[_0x197b3a,_0x44d7d0,_0xd97840];}static get[_0x244a('0x8')](){return _0x244a('0x3e');}constructor(_0x1238e9){super(_0x1238e9),_0x1238e9['editing'][_0x244a('0x3')]['addObserver'](_0x230bea),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x9')](_0x244a('0x23'),null),this[_0x244a('0x2d')]=null,this[_0x244a('0x47')]=new Set(),this[_0x244a('0x49')]=_0x1238e9[_0x244a('0x20')]['get'](_0x44d7d0),this[_0x244a('0xc')]=new Set(),this[_0x244a('0x19')]=[],this[_0x244a('0x3c')]=!0x1;}[_0x244a('0x40')](){const _0x37e361=this[_0x244a('0x13')]['plugins'][_0x244a('0x1d')](_0xd97840);_0x37e361[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x37e361[_0x244a('0xe')](_0x244a('0x24'),this),this[_0x244a('0x13')][_0x244a('0x2b')][_0x244a('0x9')](_0x244a('0xa'),(_0xb42dc8,_0x28f60a)=>{const _0x18e84d=this[_0x244a('0x49')];if(this[_0x244a('0x10')]&&_0x18e84d[_0x244a('0x37')]){const _0x2991c4=this[_0x244a('0x2d')][_0x244a('0x22')](_0x18e84d['visibleView']);_0x2991c4&&this[_0x244a('0x1f')](_0x2991c4),_0x28f60a();}}));}['afterInit'](){const _0x2c8a66=this['editor']['plugins'][_0x244a('0x1d')](_0xd97840);_0x2c8a66[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x2c8a66[_0x244a('0x44')]()||_0x2c8a66[_0x244a('0x3d')](_0x244a('0x24')));}[_0x244a('0x17')](_0x2f7ee9){_0x2f7ee9!==this['activeAnnotation']&&(this[_0x244a('0x23')]&&(this[_0x244a('0x23')][_0x244a('0x29')]=!0x1),_0x2f7ee9&&this[_0x244a('0x13')]['ui']['focusTracker'][_0x244a('0x43')]&&(this['annotations'][_0x244a('0x2c')](_0x2f7ee9)&&this[_0x244a('0x32')](_0x2f7ee9,!0x0),_0x2f7ee9[_0x244a('0x29')]=!0x0),_0x2f7ee9||this[_0x244a('0x30')]([]),this[_0x244a('0x23')]=_0x2f7ee9);}['attach'](_0x38e7a1){this[_0x244a('0x2d')]=_0x38e7a1;const _0x2cc913=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0xd97840),_0x5edc88=this['_balloon'];if(this[_0x244a('0x10')])throw new _0x506e15(_0x244a('0x42'),this);if(_0x2cc913['context']!==this[_0x244a('0x13')])throw new _0x506e15(_0x244a('0x6'),this);const _0xb42b17=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0x197b3a);this[_0x244a('0x25')](_0xb42b17,_0x244a('0x31'),()=>{const _0x8200d7=_0xb42b17['getOrderedSelectedAnnotations']({'annotations':this[_0x244a('0x2d')],'activeAnnotation':this['activeAnnotation']});var _0x3a1439,_0x54ae82;!this[_0x244a('0x3c')]&&(_0x3a1439=_0x8200d7,_0x54ae82=this[_0x244a('0x19')],_0x3a1439[_0x244a('0x11')]===_0x54ae82[_0x244a('0x11')]&&_0x3a1439[_0x244a('0x16')](_0x51f7b6=>_0x54ae82[_0x244a('0x12')](_0x51f7b6)))||(this[_0x244a('0x3c')]=!0x1,this[_0x244a('0x30')](_0x8200d7),this[_0x244a('0x17')](_0x8200d7[0x0]||null));}),this[_0x244a('0x25')](_0xb42b17,_0x244a('0x4b'),(_0x2103d3,{isAnnotationTracked:_0x321352})=>{this[_0x244a('0x23')]&&_0x321352(this[_0x244a('0x23')])&&(this['_setSelectedAnnotations']([]),this[_0x244a('0x17')](null));}),this['listenTo'](this[_0x244a('0x13')]['ui'][_0x244a('0x26')],_0x244a('0x28'),(_0x4ab978,_0x264374,_0x18d7ea)=>{_0x18d7ea||this[_0x244a('0x17')](null);}),this['listenTo'](_0x38e7a1,_0x244a('0x39'),(_0x191d04,_0x1e9318)=>{this['_removeAnnotationFromBalloon'](_0x1e9318),_0x1e9318===this['activeAnnotation']&&this[_0x244a('0x17')](null);}),this['listenTo'](_0x5edc88,_0x244a('0x34'),(_0x100dbf,_0x2d8977,_0xb04d5e,_0xc4cf0d)=>{_0xc4cf0d&&this[_0x244a('0x1c')](_0xc4cf0d);const _0x4c9aa5=_0x38e7a1['getByView'](_0xb04d5e);_0xb04d5e&&_0x4c9aa5&&(this[_0x244a('0x25')](_0xb04d5e,_0x244a('0x38'),()=>{_0x5edc88[_0x244a('0x4')]();}),this['listenTo'](_0xb04d5e,_0x244a('0xa'),()=>{this[_0x244a('0x1f')](_0x4c9aa5),this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x1b')]();}),this[_0x244a('0x23')]!==_0x4c9aa5&&this[_0x244a('0x17')](_0x4c9aa5));}),this[_0x244a('0x25')](this[_0x244a('0x13')]['ui'],_0x244a('0x14'),()=>{_0x5edc88[_0x244a('0x37')]&&(_0x38e7a1[_0x244a('0x22')](_0x5edc88[_0x244a('0x37')])&&_0x5edc88[_0x244a('0x4')]());}),this[_0x244a('0x25')](this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x35')],_0x244a('0x3a'),()=>{this[_0x244a('0x3c')]=!0x0,this['_manuallyClosed'][_0x244a('0x3b')]();}),this[_0x244a('0x13')]['editing']['view'][_0x244a('0x35')][_0x244a('0x21')][_0x244a('0x3f')]&&this[_0x244a('0x13')]['editing']['view']['focus'](),this[_0x244a('0x10')]=!0x0;}[_0x244a('0x1a')](){if(!this[_0x244a('0x10')])throw new _0x506e15('inlineannotations-detach-not-attached',this);this[_0x244a('0x17')](null);for(const _0xc6ad64 of this[_0x244a('0xc')])this[_0x244a('0x33')](_0xc6ad64);this[_0x244a('0x1c')](),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x2d')]=null;}[_0x244a('0x2')](){this[_0x244a('0x10')]&&this[_0x244a('0x1a')]();}[_0x244a('0x30')](_0x370d8d){for(const _0x24953d of this[_0x244a('0x19')])_0x370d8d[_0x244a('0x12')](_0x24953d)||this[_0x244a('0x47')]['delete'](_0x24953d);for(const _0x19edec of this[_0x244a('0x2d')])_0x370d8d[_0x244a('0x12')](_0x19edec)||this[_0x244a('0x33')](_0x19edec);if(this[_0x244a('0x13')]['ui'][_0x244a('0x26')][_0x244a('0x43')])for(const _0x425a76 of _0x370d8d)this['_addAnnotationToBalloon'](_0x425a76);this[_0x244a('0x19')]=_0x370d8d;}[_0x244a('0x32')](_0x3764dc,_0xd024fc=!0x1){this['_manuallyClosed'][_0x244a('0x2c')](_0x3764dc)||(this[_0x244a('0xc')][_0x244a('0x2c')](_0x3764dc)||this[_0x244a('0x49')]['hasView'](_0x3764dc['view'])||(this[_0x244a('0xc')][_0x244a('0x45')](_0x3764dc),this[_0x244a('0x49')][_0x244a('0x45')]({'stackId':_0x3764dc[_0x244a('0x3')]['id'],'view':_0x3764dc[_0x244a('0x3')],'position':{'target':()=>this[_0x244a('0xf')](_0x3764dc)}})),_0xd024fc&&this['_balloon'][_0x244a('0x4c')](_0x3764dc[_0x244a('0x3')]['id']));}[_0x244a('0xf')](_0x3b7160){const _0x38eeae=_0x3b7160['target'],_0x5e5fa0=this[_0x244a('0x13')]['editing'][_0x244a('0x3')],_0x281c61=_0x5e5fa0[_0x244a('0x35')][_0x244a('0x21')]['getFirstRange'](),_0x4a8b27=_0x5e5fa0[_0x244a('0x1e')][_0x244a('0x4e')](_0x281c61);if(_0x4a8b27[_0x244a('0x48')](!0x0),_0x38eeae){if(_0x38eeae instanceof _0x64b5d7)return _0x38eeae;let _0x3de75e=[];for(const _0x18aacf of _0x38eeae)_0x3de75e[_0x244a('0x4a')](...(_0x5f32d7=_0x18aacf[_0x244a('0xd')](),Array[_0x244a('0x7')](_0x5f32d7)[_0x244a('0x18')](DOMRect[_0x244a('0x27')])));_0x3de75e=function(_0x1b8237){const _0x1a2bb8=[];let _0x2e2d68=_0x1b8237[0x0];for(let _0x5eee31=0x1;_0x5eee31<_0x1b8237['length'];_0x5eee31++)F(_0x2e2d68,_0x1b8237[_0x5eee31])?_0x2e2d68[_0x244a('0x0')]+=_0x1b8237[_0x5eee31]['width']:(_0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x2e2d68=_0x1b8237[_0x5eee31]);return _0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x1a2bb8;}(_0x3de75e);const _0x33a0ca=_0x4a8b27['getBoundingClientRect']();return _0x3de75e[_0x244a('0x41')](_0xc9b201=>_0xc9b201[_0x244a('0x46')]<=_0x33a0ca['top']&&_0xc9b201[_0x244a('0x1')]>=_0x33a0ca[_0x244a('0x1')]&&_0xc9b201[_0x244a('0x2e')]<=_0x33a0ca[_0x244a('0x2e')]&&_0xc9b201[_0x244a('0x2f')]>=_0x33a0ca[_0x244a('0x2f')])||_0x3de75e[0x0];}var _0x5f32d7;return _0x3b7160[_0x244a('0x2a')]||_0x4a8b27;}['_removeAnnotationFromBalloon'](_0x3dbb78){this[_0x244a('0xc')][_0x244a('0x2c')](_0x3dbb78)&&this['_balloon'][_0x244a('0x36')](_0x3dbb78[_0x244a('0x3')])&&(this[_0x244a('0xc')][_0x244a('0x5')](_0x3dbb78),this[_0x244a('0x49')][_0x244a('0x39')](_0x3dbb78['view']));}[_0x244a('0x1f')](_0x5c4e42){this[_0x244a('0x47')]['add'](_0x5c4e42),this[_0x244a('0x33')](_0x5c4e42);}}function F(_0x345a40,_0x147583){return _0x345a40['top']===_0x147583[_0x244a('0x46')]&&_0x345a40[_0x244a('0x1')]===_0x147583[_0x244a('0x1')]&&_0x345a40['right']===_0x147583['left'];}
23
+ const _0x4cba=['_balloon','_selectedAnnotations','activeAnnotation','isActive','switchTo','visibleView','updatePosition','getOrderedSelectedAnnotations','every','editor','context','width','requires','change:isFocused','hasActive','add','change:height','push','getFirstRange','document','_setSelectedAnnotations','hasView','annotations','plugins','change:visibleView','find','_getBalloonTargetForAnnotation','refresh','_removeAnnotationFromBalloon','blur','attach','view','delete','selection','setActiveAnnotation','_addedAnnotations','_closeAnnotation','inline','_addAnnotationToBalloon','getClientRects','init','_forceRefresh','fromRect','includes','detach','addObserver','_manuallyClosed','register','set','Esc','map','remove','target','right','domConverter','getByView','clear','showStack','focusTracker','get','isFocused','afterInit','length','bottom','stopListening','has','isAttached','editing','collapse','pluginName','listenTo','viewRangeToDom','focus'];(function(_0x374430,_0x4cba49){const _0xd34594=function(_0x5b549d){while(--_0x5b549d){_0x374430['push'](_0x374430['shift']());}};_0xd34594(++_0x4cba49);}(_0x4cba,0x14c));const _0xd345=function(_0x374430,_0x4cba49){_0x374430=_0x374430-0x0;let _0xd34594=_0x4cba[_0x374430];return _0xd34594;};import{Plugin as _0x37231c}from'ckeditor5/src/core';import _0x46c468 from'./annotationsuis';import _0x43d6d2 from'./editorannotations';import{ContextualBalloon as _0x5028c7}from'ckeditor5/src/ui';import{MouseObserver as _0x50787f}from'ckeditor5/src/engine';import{CKEditorError as _0x52cf22,Rect as _0x40040d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x37231c{static get[_0xd345('0x2d')](){return[_0x43d6d2,_0x5028c7,_0x46c468];}static get[_0xd345('0x1d')](){return'InlineAnnotations';}constructor(_0x2e2327){super(_0x2e2327),_0x2e2327[_0xd345('0x1b')][_0xd345('0x40')][_0xd345('0x5')](_0x50787f),this[_0xd345('0x1a')]=!0x1,this['set'](_0xd345('0x23'),null),this[_0xd345('0x37')]=null,this[_0xd345('0x6')]=new Set(),this['_balloon']=_0x2e2327[_0xd345('0x38')][_0xd345('0x13')](_0x5028c7),this['_addedAnnotations']=new Set(),this[_0xd345('0x22')]=[],this[_0xd345('0x1')]=!0x1;}[_0xd345('0x0')](){const _0x376546=this[_0xd345('0x2a')]['plugins']['get'](_0x46c468);_0x376546['context']===this[_0xd345('0x2a')]&&(_0x376546[_0xd345('0x7')]('inline',this),this['editor']['keystrokes'][_0xd345('0x8')](_0xd345('0x9'),(_0x403350,_0x1f2534)=>{const _0x10b4e8=this[_0xd345('0x21')];if(this['isAttached']&&_0x10b4e8[_0xd345('0x26')]){const _0x1c5945=this[_0xd345('0x37')]['getByView'](_0x10b4e8['visibleView']);_0x1c5945&&this[_0xd345('0x45')](_0x1c5945),_0x1f2534();}}));}[_0xd345('0x15')](){const _0x190a2f=this[_0xd345('0x2a')][_0xd345('0x38')][_0xd345('0x13')](_0x46c468);_0x190a2f['context']===this[_0xd345('0x2a')]&&(_0x190a2f[_0xd345('0x2f')]()||_0x190a2f[_0xd345('0x25')](_0xd345('0x46')));}[_0xd345('0x43')](_0xc4ad4f){_0xc4ad4f!==this[_0xd345('0x23')]&&(this['activeAnnotation']&&(this[_0xd345('0x23')][_0xd345('0x24')]=!0x1),_0xc4ad4f&&this[_0xd345('0x2a')]['ui'][_0xd345('0x12')][_0xd345('0x14')]&&(this[_0xd345('0x37')]['has'](_0xc4ad4f)&&this[_0xd345('0x47')](_0xc4ad4f,!0x0),_0xc4ad4f['isActive']=!0x0),_0xc4ad4f||this[_0xd345('0x35')]([]),this[_0xd345('0x23')]=_0xc4ad4f);}[_0xd345('0x3f')](_0x594ad6){this['annotations']=_0x594ad6;const _0x185534=this[_0xd345('0x2a')][_0xd345('0x38')][_0xd345('0x13')](_0x46c468),_0x8931f=this[_0xd345('0x21')];if(this[_0xd345('0x1a')])throw new _0x52cf22('inlineannotations-attach-already-attached',this);if(_0x185534[_0xd345('0x2b')]!==this[_0xd345('0x2a')])throw new _0x52cf22('inlineannotations-not-allowed-with-context',this);const _0x20622d=this['editor']['plugins'][_0xd345('0x13')](_0x43d6d2);this[_0xd345('0x1e')](_0x20622d,_0xd345('0x3c'),()=>{const _0x3bc294=_0x20622d[_0xd345('0x28')]({'annotations':this[_0xd345('0x37')],'activeAnnotation':this[_0xd345('0x23')]});var _0x395351,_0x396fff;!this[_0xd345('0x1')]&&(_0x395351=_0x3bc294,_0x396fff=this['_selectedAnnotations'],_0x395351[_0xd345('0x16')]===_0x396fff['length']&&_0x395351[_0xd345('0x29')](_0x352b9f=>_0x396fff[_0xd345('0x3')](_0x352b9f)))||(this[_0xd345('0x1')]=!0x1,this['_setSelectedAnnotations'](_0x3bc294),this[_0xd345('0x43')](_0x3bc294[0x0]||null));}),this['listenTo'](_0x20622d,_0xd345('0x3e'),(_0x399590,{isAnnotationTracked:_0x5a3590})=>{this[_0xd345('0x23')]&&_0x5a3590(this[_0xd345('0x23')])&&(this[_0xd345('0x35')]([]),this['setActiveAnnotation'](null));}),this[_0xd345('0x1e')](this[_0xd345('0x2a')]['ui'][_0xd345('0x12')],_0xd345('0x2e'),(_0x4cad91,_0x2438d2,_0x348aab)=>{_0x348aab||this[_0xd345('0x43')](null);}),this['listenTo'](_0x594ad6,'remove',(_0x43d838,_0x5d51f5)=>{this[_0xd345('0x3d')](_0x5d51f5),_0x5d51f5===this[_0xd345('0x23')]&&this[_0xd345('0x43')](null);}),this[_0xd345('0x1e')](_0x8931f,_0xd345('0x39'),(_0x4ab15e,_0x5625c1,_0x27bc2e,_0x1344b7)=>{_0x1344b7&&this[_0xd345('0x18')](_0x1344b7);const _0x58919f=_0x594ad6[_0xd345('0xf')](_0x27bc2e);_0x27bc2e&&_0x58919f&&(this[_0xd345('0x1e')](_0x27bc2e,_0xd345('0x31'),()=>{_0x8931f[_0xd345('0x27')]();}),this[_0xd345('0x1e')](_0x27bc2e,_0xd345('0x9'),()=>{this['_closeAnnotation'](_0x58919f),this['editor']['editing'][_0xd345('0x40')][_0xd345('0x20')]();}),this[_0xd345('0x23')]!==_0x58919f&&this[_0xd345('0x43')](_0x58919f));}),this['listenTo'](this[_0xd345('0x2a')]['ui'],'update',()=>{_0x8931f[_0xd345('0x26')]&&(_0x594ad6['getByView'](_0x8931f['visibleView'])&&_0x8931f[_0xd345('0x27')]());}),this[_0xd345('0x1e')](this[_0xd345('0x2a')][_0xd345('0x1b')][_0xd345('0x40')][_0xd345('0x34')],'mousedown',()=>{this[_0xd345('0x1')]=!0x0,this[_0xd345('0x6')][_0xd345('0x10')]();}),this['editor'][_0xd345('0x1b')]['view'][_0xd345('0x34')]['selection']['editableElement']&&this[_0xd345('0x2a')][_0xd345('0x1b')][_0xd345('0x40')][_0xd345('0x20')](),this['isAttached']=!0x0;}[_0xd345('0x4')](){if(!this[_0xd345('0x1a')])throw new _0x52cf22('inlineannotations-detach-not-attached',this);this[_0xd345('0x43')](null);for(const _0x485e11 of this[_0xd345('0x44')])this[_0xd345('0x3d')](_0x485e11);this['stopListening'](),this[_0xd345('0x1a')]=!0x1,this[_0xd345('0x37')]=null;}['destroy'](){this[_0xd345('0x1a')]&&this[_0xd345('0x4')]();}[_0xd345('0x35')](_0x5a249d){for(const _0x1f1bee of this[_0xd345('0x22')])_0x5a249d[_0xd345('0x3')](_0x1f1bee)||this[_0xd345('0x6')][_0xd345('0x41')](_0x1f1bee);for(const _0x295a62 of this[_0xd345('0x37')])_0x5a249d[_0xd345('0x3')](_0x295a62)||this[_0xd345('0x3d')](_0x295a62);if(this['editor']['ui'][_0xd345('0x12')][_0xd345('0x14')])for(const _0x2be6a5 of _0x5a249d)this[_0xd345('0x47')](_0x2be6a5);this['_selectedAnnotations']=_0x5a249d;}[_0xd345('0x47')](_0x5d49e3,_0x83cb90=!0x1){this['_manuallyClosed'][_0xd345('0x19')](_0x5d49e3)||(this[_0xd345('0x44')][_0xd345('0x19')](_0x5d49e3)||this[_0xd345('0x21')][_0xd345('0x36')](_0x5d49e3[_0xd345('0x40')])||(this['_addedAnnotations'][_0xd345('0x30')](_0x5d49e3),this[_0xd345('0x21')][_0xd345('0x30')]({'stackId':_0x5d49e3[_0xd345('0x40')]['id'],'view':_0x5d49e3[_0xd345('0x40')],'position':{'target':()=>this[_0xd345('0x3b')](_0x5d49e3)}})),_0x83cb90&&this[_0xd345('0x21')][_0xd345('0x11')](_0x5d49e3[_0xd345('0x40')]['id']));}[_0xd345('0x3b')](_0x45b627){const _0x56e280=_0x45b627[_0xd345('0xc')],_0xe23ef4=this[_0xd345('0x2a')][_0xd345('0x1b')][_0xd345('0x40')],_0x58f339=_0xe23ef4['document'][_0xd345('0x42')][_0xd345('0x33')](),_0x5bf4a6=_0xe23ef4[_0xd345('0xe')][_0xd345('0x1f')](_0x58f339);if(_0x5bf4a6[_0xd345('0x1c')](!0x0),_0x56e280){if(_0x56e280 instanceof _0x40040d)return _0x56e280;let _0x1ffd9e=[];for(const _0x2e3fdf of _0x56e280)_0x1ffd9e[_0xd345('0x32')](...(_0x456239=_0x2e3fdf[_0xd345('0x48')](),Array['from'](_0x456239)[_0xd345('0xa')](DOMRect[_0xd345('0x2')])));_0x1ffd9e=function(_0x48cca0){const _0x497c4f=[];let _0x39701c=_0x48cca0[0x0];for(let _0x27a6b7=0x1;_0x27a6b7<_0x48cca0['length'];_0x27a6b7++)F(_0x39701c,_0x48cca0[_0x27a6b7])?_0x39701c[_0xd345('0x2c')]+=_0x48cca0[_0x27a6b7]['width']:(_0x497c4f[_0xd345('0x32')](_0x39701c),_0x39701c=_0x48cca0[_0x27a6b7]);return _0x497c4f[_0xd345('0x32')](_0x39701c),_0x497c4f;}(_0x1ffd9e);const _0x57200a=_0x5bf4a6['getBoundingClientRect']();return _0x1ffd9e[_0xd345('0x3a')](_0x4b3612=>_0x4b3612['top']<=_0x57200a['top']&&_0x4b3612[_0xd345('0x17')]>=_0x57200a['bottom']&&_0x4b3612['left']<=_0x57200a['left']&&_0x4b3612[_0xd345('0xd')]>=_0x57200a[_0xd345('0xd')])||_0x1ffd9e[0x0];}var _0x456239;return _0x45b627['targetRect']||_0x5bf4a6;}[_0xd345('0x3d')](_0x36fd16){this[_0xd345('0x44')][_0xd345('0x19')](_0x36fd16)&&this['_balloon'][_0xd345('0x36')](_0x36fd16[_0xd345('0x40')])&&(this['_addedAnnotations'][_0xd345('0x41')](_0x36fd16),this[_0xd345('0x21')][_0xd345('0xb')](_0x36fd16[_0xd345('0x40')]));}[_0xd345('0x45')](_0x12dff2){this[_0xd345('0x6')][_0xd345('0x30')](_0x12dff2),this['_removeAnnotationFromBalloon'](_0x12dff2);}}function F(_0x2d3750,_0x32abcb){return _0x2d3750['top']===_0x32abcb['top']&&_0x2d3750[_0xd345('0x17')]===_0x32abcb[_0xd345('0x17')]&&_0x2d3750[_0xd345('0xd')]===_0x32abcb['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5744=['content','clear','locale','southArrowNorth','delete','_attachListeners','change:height','register','from','detachFromDom','northArrowSouth','focus','requires','mousedown','_detachListeners','_integrateWithEditorAnnotations','contains','unpin','preventClosingBalloon','has','stopListening','context','plugins','isDirty','pluginName','Esc','_hideBalloon','_showBalloon','low','length','init','detach','high','_refreshPositioning','annotations','_detachFromContainer','_destroyEditorAnnotationsIntegration','destroy','execute','first','target','stop','get','addEventListener','EditorAnnotations','cancel','listenTo','setActiveAnnotation','refresh','stopPropagation','NarrowSidebar','hasDomSelection','off','_refreshPositioningDebounced','_annotationToNarrowView','bind','narrowsidebar-detach-not-attached','removeEventListener','blur','_selectedAnnotations','_updateBalloonPosition','pin','_editorAnnotations','editors','_attachToContainer','isVisible','isAttached','_domEmitter','add','esc','attachToDom','resize','uiUpdate','activeAnnotation','southArrowNorthWest','attach','view','_manuallyClosedAnnotationViews','values','remove','getOrderedSelectedAnnotations','northArrowSouthWest','set','element','_setSelectedAnnotations','_annotations','balloonPanelView','bodyCollection','rearrange'];(function(_0x54ff40,_0x57443d){const _0x2f1d90=function(_0x59f1af){while(--_0x59f1af){_0x54ff40['push'](_0x54ff40['shift']());}};_0x2f1d90(++_0x57443d);}(_0x5744,0x1c9));const _0x2f1d=function(_0x54ff40,_0x57443d){_0x54ff40=_0x54ff40-0x0;let _0x2f1d90=_0x5744[_0x54ff40];return _0x2f1d90;};import{ContextPlugin as _0x5909f7,Context as _0x51d3b5}from'ckeditor5/src/core';import _0x4e2c64 from'./annotationsuis';import _0x27184f from'./sidebar';import _0x2f641a from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x15979e,BodyCollection as _0x1556b6}from'ckeditor5/src/ui';import{CKEditorError as _0x2102b8,DomEmitterMixin as _0x214f0b,keyCodes as _0x3dd241,Collection as _0x582851}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1f7d37}from'lodash-es';import _0x4c6b86 from'./editorannotations';export default class s extends _0x5909f7{static get[_0x2f1d('0x0')](){return[_0x27184f,_0x4e2c64];}static get[_0x2f1d('0xc')](){return _0x2f1d('0x26');}constructor(_0x26e652){super(_0x26e652),this['isAttached']=!0x1,this[_0x2f1d('0x41')]=new Set(),this[_0x2f1d('0x37')]=Object['create'](_0x214f0b),this[_0x2f1d('0x2a')]=new Map(),this[_0x2f1d('0x46')]('activeAnnotation',null),this['annotations']=null,this[_0x2f1d('0x2f')]=[],this['_editorAnnotations']=new _0x582851(),this[_0x2f1d('0x29')]=_0x1f7d37(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2f1d('0x12')](){this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x4e2c64)[_0x2f1d('0x54')]('narrowSidebar',this),this[_0x2f1d('0x4b')]=new _0x1556b6(this[_0x2f1d('0x9')]['locale']),this[_0x2f1d('0x4a')]=new _0x15979e(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]),this[_0x2f1d('0x4b')][_0x2f1d('0x3a')](),this[_0x2f1d('0x4b')]['add'](this[_0x2f1d('0x4a')]);}['attach'](_0x5a17d6){this[_0x2f1d('0x16')]=_0x5a17d6;const _0x511826=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0x320430=this[_0x2f1d('0x4a')];if(_0x511826[_0x2f1d('0x49')]=_0x5a17d6,this[_0x2f1d('0x36')])throw new _0x2102b8('narrowsidebar-attach-already-attached',this);this[_0x2f1d('0x36')]=!0x0,this[_0x2f1d('0x22')](_0x511826,'set:container',()=>{this['detach'](),this['listenTo'](_0x511826,'change:container',_0x575f18=>{_0x575f18[_0x2f1d('0x28')](),this[_0x2f1d('0x3f')](_0x5a17d6);});}),_0x511826[_0x2f1d('0x34')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x22c91a=_0x2f2c2e=>{const _0x3d0ec8=new _0x2f641a(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]);_0x511826['addAnnotation'](_0x2f2c2e,_0x3d0ec8),this['_annotationToNarrowView'][_0x2f1d('0x46')](_0x2f2c2e,_0x3d0ec8),_0x3d0ec8[_0x2f1d('0x2b')](_0x2f1d('0xb'),'annotationType','number')['to'](_0x2f2c2e['view'],'isDirty','type',_0x2f1d('0x11')),_0x3d0ec8['on'](_0x2f1d('0x1a'),()=>{this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),_0x320430[_0x2f1d('0x4d')]['first']!==_0x2f2c2e[_0x2f1d('0x40')]?(this[_0x2f1d('0xf')](_0x2f2c2e),_0x2f2c2e[_0x2f1d('0x40')]['element'][_0x2f1d('0x58')](),this[_0x2f1d('0x23')](_0x2f2c2e)):this[_0x2f1d('0x23')](null);});};for(const _0x138f3b of _0x5a17d6)_0x22c91a(_0x138f3b);this['listenTo'](_0x5a17d6,_0x2f1d('0x38'),(_0x293b9a,_0x2766bf)=>{_0x22c91a(_0x2766bf);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x43'),(_0x502aa5,_0x464fd4,_0x41eb81)=>{this['_annotationToNarrowView']['get'](_0x464fd4)['destroy'](),this[_0x2f1d('0x2a')][_0x2f1d('0x51')](_0x464fd4),_0x511826[_0x2f1d('0x4c')]({'removedAnnotation':_0x464fd4,'previousAnnotation':_0x5a17d6['get'](_0x41eb81-0x1),'nextAnnotation':_0x5a17d6[_0x2f1d('0x1e')](_0x41eb81+0x1)}),_0x464fd4===this[_0x2f1d('0x3d')]&&this[_0x2f1d('0x23')](null);},{'priority':_0x2f1d('0x10')}),this['listenTo'](_0x5a17d6,_0x2f1d('0x58'),(_0x2f5c18,_0x52e10a)=>{this['setActiveAnnotation'](_0x52e10a);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x2e'),()=>{this[_0x2f1d('0x23')](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5ef3a,_0x4b3aaa)=>{_0x4b3aaa['keyCode']===_0x3dd241[_0x2f1d('0x39')]&&_0x320430[_0x2f1d('0x35')]&&(this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x320430[_0x2f1d('0x4d')][_0x2f1d('0x1b')]),this[_0x2f1d('0xe')](),_0x4b3aaa[_0x2f1d('0x25')](),_0x4b3aaa['preventDefault']());}),this['_domEmitter'][_0x2f1d('0x22')](document,_0x2f1d('0x1'),(_0x51a5d9,_0x63d0d4)=>{const _0x4a1570=_0x63d0d4['target'];_0x320430['isVisible']&&_0x320430[_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x511826[_0x2f1d('0x40')][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x51a5d9[_0x2f1d('0x6')]||(this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),this[_0x2f1d('0xe')](),this[_0x2f1d('0x23')](null));});const _0x415ff9=this[_0x2f1d('0x9')]instanceof _0x51d3b5?this['context'][_0x2f1d('0x33')]:new _0x582851([this[_0x2f1d('0x9')]]);for(const _0x532e11 of _0x415ff9)this[_0x2f1d('0x3')](_0x532e11);this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x38'),(_0x45125d,_0x379a93)=>{this[_0x2f1d('0x22')](_0x379a93,'ready',()=>{this[_0x2f1d('0x3')](_0x379a93);});}),this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x43'),(_0x3a167f,_0x306b08)=>{_0x306b08[_0x2f1d('0xa')][_0x2f1d('0x7')](_0x2f1d('0x20'))&&this[_0x2f1d('0x18')](_0x306b08['plugins']['get'](_0x2f1d('0x20')));}),window[_0x2f1d('0x1f')](_0x2f1d('0x3b'),this[_0x2f1d('0x29')]),this[_0x2f1d('0x15')]();}['setActiveAnnotation'](_0x92a78d){if(_0x92a78d===this['activeAnnotation'])return;const _0x56ec17=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f);if(_0x56ec17[_0x2f1d('0x24')]({'blurredAnnotation':this[_0x2f1d('0x3d')],'activatedAnnotation':_0x92a78d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x92a78d)_0x56ec17['getSidebarItemView'](_0x92a78d)?this[_0x2f1d('0xf')](_0x92a78d):this['_hideBalloon']();else this[_0x2f1d('0xe')]();this[_0x2f1d('0x3d')]=_0x92a78d;}[_0x2f1d('0x13')](){if(!this['isAttached'])throw new _0x2102b8(_0x2f1d('0x2c'),this);this[_0x2f1d('0x23')](null);const _0x34ae8f=this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x27184f);this[_0x2f1d('0xe')](),Array[_0x2f1d('0x55')](this[_0x2f1d('0x2a')][_0x2f1d('0x42')](),_0x49f87e=>_0x49f87e[_0x2f1d('0x19')]()),this[_0x2f1d('0x2a')][_0x2f1d('0x4e')](),_0x34ae8f[_0x2f1d('0x17')](this[_0x2f1d('0x16')]),this[_0x2f1d('0x8')](),this[_0x2f1d('0x37')][_0x2f1d('0x8')](),this[_0x2f1d('0x9')]instanceof _0x51d3b5&&this[_0x2f1d('0x8')](this[_0x2f1d('0x9')][_0x2f1d('0x33')]);for(const _0x7b7c91 of Array[_0x2f1d('0x55')](this[_0x2f1d('0x32')]))this[_0x2f1d('0x18')](_0x7b7c91);window[_0x2f1d('0x2d')](_0x2f1d('0x3b'),this['_refreshPositioningDebounced']),this[_0x2f1d('0x29')][_0x2f1d('0x21')](),this['_selectedAnnotations']=[],this[_0x2f1d('0x36')]=!0x1,this['annotations']=null;}[_0x2f1d('0x19')](){this[_0x2f1d('0x36')]&&this[_0x2f1d('0x13')](),this[_0x2f1d('0x4b')][_0x2f1d('0x56')]();}[_0x2f1d('0x3')](_0x224504){const _0x3af356=_0x224504[_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x4c6b86),_0x220fda=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0xb0c61b=this[_0x2f1d('0x16')],_0x5c5b52=this['balloonPanelView'],_0x24b15b=()=>{const _0x111c87=_0x3af356[_0x2f1d('0x44')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2f1d('0x3d')]});this[_0x2f1d('0x48')](_0x111c87),this[_0x2f1d('0x23')](_0x111c87[0x0]||null);};this['listenTo'](_0x3af356,_0x2f1d('0x24'),_0x24b15b),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x2e'),(_0x33c4d5,{isAnnotationTracked:_0x315359})=>{this[_0x2f1d('0x3d')]&&_0x315359(this[_0x2f1d('0x3d')])&&(this[_0x2f1d('0x48')]([]),this[_0x2f1d('0x23')](null));}),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x3c'),()=>{this[_0x2f1d('0x29')]();}),this['listenTo'](_0xb0c61b,_0x2f1d('0x2e'),_0x5ebf1e=>{_0x3af356[_0x2f1d('0x27')]()&&_0x5ebf1e[_0x2f1d('0x1d')]();},{'priority':'high'}),this[_0x2f1d('0x22')](this['_domEmitter'],_0x2f1d('0x1'),(_0x29cdcd,_0x18c4ff)=>{const _0x29ed3f=_0x18c4ff[_0x2f1d('0x1c')];_0x5c5b52[_0x2f1d('0x35')]&&_0x5c5b52[_0x2f1d('0x47')]['contains'](_0x29ed3f)||_0x220fda['view'][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x29ed3f)||this['activeAnnotation']&&_0x3af356[_0x2f1d('0x27')]()&&(_0x24b15b(),_0x29cdcd[_0x2f1d('0x6')]=!0x0);},{'priority':_0x2f1d('0x14')}),this['_editorAnnotations']['add'](_0x3af356);}[_0x2f1d('0x18')](_0x4658a6){_0x4658a6&&(this[_0x2f1d('0x8')](_0x4658a6),this[_0x2f1d('0x32')][_0x2f1d('0x43')](_0x4658a6));}['_setSelectedAnnotations'](_0x423cc5){for(const _0x101bd6 of this['_selectedAnnotations'])_0x423cc5['includes'](_0x101bd6)||this[_0x2f1d('0x41')]['delete'](_0x101bd6[_0x2f1d('0x40')]);this['_selectedAnnotations']=_0x423cc5;}['_refreshPositioning'](){const _0x4d25ed=this[_0x2f1d('0x4a')];this[_0x2f1d('0x16')]['refreshPositioning'](),_0x4d25ed['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3c2bc7){if(this['_manuallyClosedAnnotationViews'][_0x2f1d('0x7')](_0x3c2bc7[_0x2f1d('0x40')]))return;const _0x1f690e=this[_0x2f1d('0x4a')][_0x2f1d('0x4d')][_0x2f1d('0x1b')];_0x1f690e!==_0x3c2bc7[_0x2f1d('0x40')]?(_0x1f690e&&this[_0x2f1d('0x2')](_0x1f690e),this[_0x2f1d('0x52')](_0x3c2bc7[_0x2f1d('0x40')]),this[_0x2f1d('0x4a')]['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3c2bc7[_0x2f1d('0x40')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x2f1d('0x30')](){const _0x154e71=this['balloonPanelView'][_0x2f1d('0x4d')]['first'],_0x34cdc2=_0x154e71&&this['annotations']['getByView'](_0x154e71);if(!_0x34cdc2||!this[_0x2f1d('0x2a')]['has'](_0x34cdc2))return;const _0x1e19be=this[_0x2f1d('0x2a')][_0x2f1d('0x1e')](_0x34cdc2)['element'],_0x5d3339=function(){const _0x3d6945=_0x15979e['defaultPositions'];return[_0x3d6945['southArrowNorthEast'],_0x3d6945['northArrowSouthEast'],_0x3d6945[_0x2f1d('0x50')],_0x3d6945[_0x2f1d('0x57')],_0x3d6945[_0x2f1d('0x3e')],_0x3d6945[_0x2f1d('0x45')]];}();this[_0x2f1d('0x4a')][_0x2f1d('0x31')]({'target':_0x1e19be,'positions':_0x5d3339});}[_0x2f1d('0xe')](){const _0x4d39ee=this[_0x2f1d('0x4a')],_0x264a4f=_0x4d39ee[_0x2f1d('0x4d')]['first'];_0x264a4f&&(this['_detachListeners'](_0x264a4f),_0x4d39ee[_0x2f1d('0x5')](),_0x4d39ee[_0x2f1d('0x4d')][_0x2f1d('0x4e')]());}['_attachListeners'](_0x2f6d82){this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0x53'),()=>this[_0x2f1d('0x30')]()),this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0xd'),(_0x3bc829,_0x521bec)=>{this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x2f6d82),this[_0x2f1d('0xe')](),_0x521bec();});}[_0x2f1d('0x2')](_0x50aa79){this['stopListening'](_0x50aa79);}}
23
+ const _0x2137=['from','detach','init','isVisible','add','_detachFromContainer','register','_showBalloon','delete','Esc','esc','includes','first','get','stop','defaultPositions','_updateBalloonPosition','execute','_refreshPositioning','isDirty','narrowsidebar-attach-already-attached','set','has','setActiveAnnotation','balloonPanelView','_destroyEditorAnnotationsIntegration','preventClosingBalloon','focus','clear','annotations','stopListening','content','context','northArrowSouthEast','attach','plugins','_refreshPositioningDebounced','_hideBalloon','view','getSidebarItemView','create','values','addAnnotation','high','bodyCollection','_editorAnnotations','isAttached','element','contains','preventDefault','locale','uiUpdate','remove','blur','_detachListeners','length','number','NarrowSidebar','stopPropagation','getOrderedSelectedAnnotations','_attachListeners','editors','addEventListener','_setSelectedAnnotations','attachToDom','rearrange','_domEmitter','target','resize','_manuallyClosedAnnotationViews','cancel','pluginName','activeAnnotation','_integrateWithEditorAnnotations','keyCode','change:height','bind','hasDomSelection','mousedown','ck-sidebar--narrow','southArrowNorthEast','refresh','southArrowNorthWest','_selectedAnnotations','EditorAnnotations','_annotationToNarrowView','_annotations','northArrowSouthWest','listenTo','off','destroy'];(function(_0x2ac46f,_0x21377c){const _0x2c59aa=function(_0x3dbc4a){while(--_0x3dbc4a){_0x2ac46f['push'](_0x2ac46f['shift']());}};_0x2c59aa(++_0x21377c);}(_0x2137,0x117));const _0x2c59=function(_0x2ac46f,_0x21377c){_0x2ac46f=_0x2ac46f-0x0;let _0x2c59aa=_0x2137[_0x2ac46f];return _0x2c59aa;};import{ContextPlugin as _0x44df72,Context as _0x56429d}from'ckeditor5/src/core';import _0x2b6015 from'./annotationsuis';import _0x3742f5 from'./sidebar';import _0x1d27c0 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x27c844,BodyCollection as _0x6d18b2}from'ckeditor5/src/ui';import{CKEditorError as _0x400160,DomEmitterMixin as _0x350194,keyCodes as _0x4ff0b7,Collection as _0x4bbacb}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0xf867ea}from'lodash-es';import _0x2da07c from'./editorannotations';export default class s extends _0x44df72{static get['requires'](){return[_0x3742f5,_0x2b6015];}static get[_0x2c59('0x41')](){return _0x2c59('0x33');}constructor(_0x59e4f4){super(_0x59e4f4),this[_0x2c59('0x28')]=!0x1,this[_0x2c59('0x3f')]=new Set(),this[_0x2c59('0x3c')]=Object[_0x2c59('0x22')](_0x350194),this['_annotationToNarrowView']=new Map(),this[_0x2c59('0xf')](_0x2c59('0x42'),null),this[_0x2c59('0x17')]=null,this[_0x2c59('0x4d')]=[],this[_0x2c59('0x27')]=new _0x4bbacb(),this[_0x2c59('0x1e')]=_0xf867ea(()=>{this[_0x2c59('0xc')]();},0xfa,{'leading':!0x1});}[_0x2c59('0x57')](){this[_0x2c59('0x1a')][_0x2c59('0x1d')]['get'](_0x2b6015)[_0x2c59('0x0')]('narrowSidebar',this),this[_0x2c59('0x26')]=new _0x6d18b2(this['context']['locale']),this['balloonPanelView']=new _0x27c844(this[_0x2c59('0x1a')][_0x2c59('0x2c')]),this[_0x2c59('0x26')][_0x2c59('0x3a')](),this[_0x2c59('0x26')][_0x2c59('0x59')](this[_0x2c59('0x12')]);}['attach'](_0x5aadd8){this['annotations']=_0x5aadd8;const _0x28f103=this[_0x2c59('0x1a')]['plugins'][_0x2c59('0x7')](_0x3742f5),_0x453ff5=this[_0x2c59('0x12')];if(_0x28f103[_0x2c59('0x50')]=_0x5aadd8,this[_0x2c59('0x28')])throw new _0x400160(_0x2c59('0xe'),this);this[_0x2c59('0x28')]=!0x0,this[_0x2c59('0x52')](_0x28f103,'set:container',()=>{this[_0x2c59('0x56')](),this['listenTo'](_0x28f103,'change:container',_0x25c380=>{_0x25c380[_0x2c59('0x53')](),this[_0x2c59('0x1c')](_0x5aadd8);});}),_0x28f103['_attachToContainer']({'viewClass':_0x2c59('0x49'),'spaceBetweenItems':0x5});const _0xf310f5=_0x4b8526=>{const _0x1c243e=new _0x1d27c0(this['context'][_0x2c59('0x2c')]);_0x28f103[_0x2c59('0x24')](_0x4b8526,_0x1c243e),this['_annotationToNarrowView'][_0x2c59('0xf')](_0x4b8526,_0x1c243e),_0x1c243e[_0x2c59('0x46')](_0x2c59('0xd'),'annotationType',_0x2c59('0x32'))['to'](_0x4b8526[_0x2c59('0x20')],_0x2c59('0xd'),'type',_0x2c59('0x31')),_0x1c243e['on'](_0x2c59('0xb'),()=>{this[_0x2c59('0x3f')][_0x2c59('0x16')](),_0x453ff5['content'][_0x2c59('0x6')]!==_0x4b8526[_0x2c59('0x20')]?(this[_0x2c59('0x1')](_0x4b8526),_0x4b8526[_0x2c59('0x20')][_0x2c59('0x29')][_0x2c59('0x15')](),this[_0x2c59('0x11')](_0x4b8526)):this[_0x2c59('0x11')](null);});};for(const _0x52e471 of _0x5aadd8)_0xf310f5(_0x52e471);this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x59'),(_0x4f5878,_0x1a0bd0)=>{_0xf310f5(_0x1a0bd0);}),this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x2e'),(_0xfdb0bb,_0x31ffd9,_0x4f37e0)=>{this['_annotationToNarrowView'][_0x2c59('0x7')](_0x31ffd9)['destroy'](),this['_annotationToNarrowView']['delete'](_0x31ffd9),_0x28f103[_0x2c59('0x3b')]({'removedAnnotation':_0x31ffd9,'previousAnnotation':_0x5aadd8[_0x2c59('0x7')](_0x4f37e0-0x1),'nextAnnotation':_0x5aadd8[_0x2c59('0x7')](_0x4f37e0+0x1)}),_0x31ffd9===this[_0x2c59('0x42')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x15'),(_0x16b16b,_0x3c405f)=>{this[_0x2c59('0x11')](_0x3c405f);}),this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x2f'),()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x2c59('0x52')](document,'keydown',(_0x4b174e,_0x2c3c91)=>{_0x2c3c91[_0x2c59('0x44')]===_0x4ff0b7[_0x2c59('0x4')]&&_0x453ff5[_0x2c59('0x58')]&&(this['_manuallyClosedAnnotationViews'][_0x2c59('0x59')](_0x453ff5['content'][_0x2c59('0x6')]),this['_hideBalloon'](),_0x2c3c91[_0x2c59('0x34')](),_0x2c3c91[_0x2c59('0x2b')]());}),this[_0x2c59('0x3c')]['listenTo'](document,_0x2c59('0x48'),(_0x1461a4,_0x2374a7)=>{const _0x41ffcb=_0x2374a7['target'];_0x453ff5['isVisible']&&_0x453ff5['element']['contains'](_0x41ffcb)||_0x28f103['view']['element'][_0x2c59('0x2a')](_0x41ffcb)||_0x1461a4[_0x2c59('0x14')]||(this[_0x2c59('0x3f')][_0x2c59('0x16')](),this[_0x2c59('0x1f')](),this[_0x2c59('0x11')](null));});const _0x5c0237=this[_0x2c59('0x1a')]instanceof _0x56429d?this[_0x2c59('0x1a')][_0x2c59('0x37')]:new _0x4bbacb([this[_0x2c59('0x1a')]]);for(const _0x45093c of _0x5c0237)this[_0x2c59('0x43')](_0x45093c);this['listenTo'](_0x5c0237,'add',(_0x1a2358,_0x2a8e4a)=>{this[_0x2c59('0x52')](_0x2a8e4a,'ready',()=>{this[_0x2c59('0x43')](_0x2a8e4a);});}),this[_0x2c59('0x52')](_0x5c0237,'remove',(_0x51890d,_0x44a783)=>{_0x44a783['plugins']['has'](_0x2c59('0x4e'))&&this[_0x2c59('0x13')](_0x44a783[_0x2c59('0x1d')]['get'](_0x2c59('0x4e')));}),window[_0x2c59('0x38')](_0x2c59('0x3e'),this[_0x2c59('0x1e')]),this['_refreshPositioning']();}[_0x2c59('0x11')](_0x4259e8){if(_0x4259e8===this[_0x2c59('0x42')])return;const _0x5d4f00=this[_0x2c59('0x1a')][_0x2c59('0x1d')][_0x2c59('0x7')](_0x3742f5);if(_0x5d4f00[_0x2c59('0x4b')]({'blurredAnnotation':this[_0x2c59('0x42')],'activatedAnnotation':_0x4259e8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4259e8)_0x5d4f00[_0x2c59('0x21')](_0x4259e8)?this[_0x2c59('0x1')](_0x4259e8):this[_0x2c59('0x1f')]();else this[_0x2c59('0x1f')]();this[_0x2c59('0x42')]=_0x4259e8;}[_0x2c59('0x56')](){if(!this[_0x2c59('0x28')])throw new _0x400160('narrowsidebar-detach-not-attached',this);this[_0x2c59('0x11')](null);const _0x480eed=this[_0x2c59('0x1a')]['plugins'][_0x2c59('0x7')](_0x3742f5);this['_hideBalloon'](),Array[_0x2c59('0x55')](this[_0x2c59('0x4f')][_0x2c59('0x23')](),_0x95d0b5=>_0x95d0b5[_0x2c59('0x54')]()),this['_annotationToNarrowView'][_0x2c59('0x16')](),_0x480eed[_0x2c59('0x5a')](this[_0x2c59('0x17')]),this[_0x2c59('0x18')](),this[_0x2c59('0x3c')][_0x2c59('0x18')](),this[_0x2c59('0x1a')]instanceof _0x56429d&&this['stopListening'](this['context'][_0x2c59('0x37')]);for(const _0x463769 of Array[_0x2c59('0x55')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x463769);window['removeEventListener'](_0x2c59('0x3e'),this[_0x2c59('0x1e')]),this[_0x2c59('0x1e')][_0x2c59('0x40')](),this[_0x2c59('0x4d')]=[],this[_0x2c59('0x28')]=!0x1,this['annotations']=null;}[_0x2c59('0x54')](){this[_0x2c59('0x28')]&&this[_0x2c59('0x56')](),this[_0x2c59('0x26')]['detachFromDom']();}[_0x2c59('0x43')](_0x280a21){const _0x4946dd=_0x280a21[_0x2c59('0x1d')][_0x2c59('0x7')](_0x2da07c),_0x1f59ab=this[_0x2c59('0x1a')][_0x2c59('0x1d')][_0x2c59('0x7')](_0x3742f5),_0x4a4254=this[_0x2c59('0x17')],_0x172ad3=this[_0x2c59('0x12')],_0x35a9e9=()=>{const _0x5d9600=_0x4946dd[_0x2c59('0x35')]({'annotations':this[_0x2c59('0x17')],'activeAnnotation':this[_0x2c59('0x42')]});this[_0x2c59('0x39')](_0x5d9600),this['setActiveAnnotation'](_0x5d9600[0x0]||null);};this[_0x2c59('0x52')](_0x4946dd,'refresh',_0x35a9e9),this[_0x2c59('0x52')](_0x4946dd,_0x2c59('0x2f'),(_0x2e78b5,{isAnnotationTracked:_0x1c7ca5})=>{this[_0x2c59('0x42')]&&_0x1c7ca5(this[_0x2c59('0x42')])&&(this['_setSelectedAnnotations']([]),this[_0x2c59('0x11')](null));}),this[_0x2c59('0x52')](_0x4946dd,_0x2c59('0x2d'),()=>{this['_refreshPositioningDebounced']();}),this[_0x2c59('0x52')](_0x4a4254,_0x2c59('0x2f'),_0x5e4b61=>{_0x4946dd[_0x2c59('0x47')]()&&_0x5e4b61[_0x2c59('0x8')]();},{'priority':_0x2c59('0x25')}),this[_0x2c59('0x52')](this['_domEmitter'],_0x2c59('0x48'),(_0x4b1c0a,_0x1786a0)=>{const _0x14dd6=_0x1786a0[_0x2c59('0x3d')];_0x172ad3['isVisible']&&_0x172ad3[_0x2c59('0x29')][_0x2c59('0x2a')](_0x14dd6)||_0x1f59ab[_0x2c59('0x20')][_0x2c59('0x29')][_0x2c59('0x2a')](_0x14dd6)||this[_0x2c59('0x42')]&&_0x4946dd[_0x2c59('0x47')]()&&(_0x35a9e9(),_0x4b1c0a['preventClosingBalloon']=!0x0);},{'priority':_0x2c59('0x25')}),this[_0x2c59('0x27')][_0x2c59('0x59')](_0x4946dd);}[_0x2c59('0x13')](_0x137e4b){_0x137e4b&&(this[_0x2c59('0x18')](_0x137e4b),this[_0x2c59('0x27')][_0x2c59('0x2e')](_0x137e4b));}['_setSelectedAnnotations'](_0x3039f7){for(const _0x4ae349 of this['_selectedAnnotations'])_0x3039f7[_0x2c59('0x5')](_0x4ae349)||this[_0x2c59('0x3f')][_0x2c59('0x2')](_0x4ae349[_0x2c59('0x20')]);this['_selectedAnnotations']=_0x3039f7;}[_0x2c59('0xc')](){const _0x53ef82=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x53ef82[_0x2c59('0x58')]&&this[_0x2c59('0xa')]();}[_0x2c59('0x1')](_0x7b27d5){if(this[_0x2c59('0x3f')]['has'](_0x7b27d5[_0x2c59('0x20')]))return;const _0x4979e2=this[_0x2c59('0x12')]['content'][_0x2c59('0x6')];_0x4979e2!==_0x7b27d5[_0x2c59('0x20')]?(_0x4979e2&&this[_0x2c59('0x30')](_0x4979e2),this[_0x2c59('0x36')](_0x7b27d5[_0x2c59('0x20')]),this[_0x2c59('0x12')][_0x2c59('0x19')][_0x2c59('0x16')](),this[_0x2c59('0x12')]['content'][_0x2c59('0x59')](_0x7b27d5[_0x2c59('0x20')]),this[_0x2c59('0xa')]()):this[_0x2c59('0xa')]();}[_0x2c59('0xa')](){const _0x54d922=this[_0x2c59('0x12')][_0x2c59('0x19')]['first'],_0x339e2f=_0x54d922&&this[_0x2c59('0x17')]['getByView'](_0x54d922);if(!_0x339e2f||!this[_0x2c59('0x4f')][_0x2c59('0x10')](_0x339e2f))return;const _0x41e83b=this[_0x2c59('0x4f')][_0x2c59('0x7')](_0x339e2f)[_0x2c59('0x29')],_0x4513d4=function(){const _0x23d780=_0x27c844[_0x2c59('0x9')];return[_0x23d780[_0x2c59('0x4a')],_0x23d780[_0x2c59('0x1b')],_0x23d780['southArrowNorth'],_0x23d780['northArrowSouth'],_0x23d780[_0x2c59('0x4c')],_0x23d780[_0x2c59('0x51')]];}();this['balloonPanelView']['pin']({'target':_0x41e83b,'positions':_0x4513d4});}[_0x2c59('0x1f')](){const _0x3296e4=this[_0x2c59('0x12')],_0x32112d=_0x3296e4[_0x2c59('0x19')][_0x2c59('0x6')];_0x32112d&&(this[_0x2c59('0x30')](_0x32112d),_0x3296e4['unpin'](),_0x3296e4['content'][_0x2c59('0x16')]());}[_0x2c59('0x36')](_0x37461e){this[_0x2c59('0x52')](_0x37461e,_0x2c59('0x45'),()=>this[_0x2c59('0xa')]()),this[_0x2c59('0x52')](_0x37461e,_0x2c59('0x3'),(_0x3557d4,_0x1bfa44)=>{this[_0x2c59('0x3f')]['add'](_0x37461e),this[_0x2c59('0x1f')](),_0x1bfa44();});}[_0x2c59('0x30')](_0x2f222b){this['stopListening'](_0x2f222b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406d=['_annotations','Sidebar','_getMaxAvailableTop','_alignForBottomChange','_detachFromContainer','change:targetRect','destroy','sidebar.container','height','delete','list','change:bottom','_setItemTop','sidebar.preventScrollOutOfView','_attachToContainer','push','nodeType','change:_lastItem','change:top','content','render','container','config','stopListening','isActive','remove','getIndex','_annotationToSidebarItemView','_getTargetTop','top','sidebar-attachtocontainer-missing-container','bottom','_alignToTargetRect','_alignBeforeItem','define','_spaceBetweenItems','setContainer','_getItemAfter','bind','_sidebarItemViewToAnnotation','context','_lastItem','clear','_recalculateBuffer','listenTo','updateHeight','appendChild','class','targetRect','_alignAfterItem','init','max','_updateLastItem','target','object','_targetTop','refresh','addAnnotation','sidebar-setcontainer-invalid-element','minHeight','length','view','set','_getItemBefore','getSidebarItemView','_destroySidebarItemView','_createSidebarView','isAnimationDisabled','element','_recalculate','_activeAnnotation','add','last','get'];(function(_0x24c901,_0x406d96){const _0x3fe832=function(_0x1de6cc){while(--_0x1de6cc){_0x24c901['push'](_0x24c901['shift']());}};_0x3fe832(++_0x406d96);}(_0x406d,0xfe));const _0x3fe8=function(_0x24c901,_0x406d96){_0x24c901=_0x24c901-0x0;let _0x3fe832=_0x406d[_0x24c901];return _0x3fe832;};import{ContextPlugin as _0x5f1b67}from'ckeditor5/src/core';import{Rect as _0x5aaf2c,CKEditorError as _0x192a37}from'ckeditor5/src/utils';import _0x48f658 from'./view/sidebarview';import _0x3dc90f from'./view/sidebaritemview';export default class z extends _0x5f1b67{static get['pluginName'](){return _0x3fe8('0x2b');}constructor(_0x2a0575){super(_0x2a0575),this['set'](_0x3fe8('0x9'),void 0x0),this[_0x3fe8('0x1d')]=this[_0x3fe8('0x22')](),this['set'](_0x3fe8('0x3f'),null),this[_0x3fe8('0x3')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3fe8('0x45')]=new Map(),this['context'][_0x3fe8('0x40')][_0x3fe8('0x2')](_0x3fe8('0x37'),!0x1),this[_0x3fe8('0x2a')]=null,this[_0x3fe8('0x26')]=null,this[_0x3fe8('0xb')]=[];}[_0x3fe8('0x12')](){const _0x30ecaf=this[_0x3fe8('0x8')]['config'][_0x3fe8('0x29')](_0x3fe8('0x31'));_0x30ecaf&&this[_0x3fe8('0x4')](_0x30ecaf);}[_0x3fe8('0x4')](_0x18fbfa){if(!y(_0x18fbfa))throw new _0x192a37(_0x3fe8('0x1a'));this[_0x3fe8('0x3f')]=_0x18fbfa;}[_0x3fe8('0x38')]({viewClass:_0x514969='',spaceBetweenItems:_0x14dda2=0x19}={}){if(!y(this[_0x3fe8('0x3f')]))throw new _0x192a37(_0x3fe8('0x48'),this);this[_0x3fe8('0x3f')][_0x3fe8('0xe')](this[_0x3fe8('0x1d')][_0x3fe8('0x24')]),this['view'][_0x3fe8('0xf')]=_0x514969,this['_spaceBetweenItems']=_0x14dda2;}['rearrange']({removedAnnotation:_0x3f15a8,previousAnnotation:_0x4bbc6b,nextAnnotation:_0x1cfd48}){const _0x25f571=this[_0x3fe8('0x20')](_0x3f15a8);this['view'][_0x3fe8('0x34')][_0x3fe8('0x43')](_0x25f571),this['_destroySidebarItemView'](_0x3f15a8),_0x4bbc6b&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x4bbc6b)),_0x1cfd48&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x1cfd48)),this[_0x3fe8('0x14')]();}[_0x3fe8('0x18')]({blurredAnnotation:_0x183548,activatedAnnotation:_0x424a52,disableAnimationOnActivatedAnnotation:_0x2f0900}){if(this[_0x3fe8('0x26')]=_0x424a52,_0x183548){_0x183548[_0x3fe8('0x42')]=!0x1;const _0x4e36b3=this[_0x3fe8('0x20')](_0x183548);_0x4e36b3&&_0x2f0900&&(_0x4e36b3['isAnimationDisabled']=!0x1);}if(_0x424a52){const _0x179bd4=this[_0x3fe8('0x20')](_0x424a52);_0x179bd4&&(_0x424a52[_0x3fe8('0x42')]=!0x0,_0x2f0900&&(_0x179bd4[_0x3fe8('0x23')]=!0x0,_0x179bd4['top']+=0x1),this['_alignToTargetRect'](_0x179bd4));}}[_0x3fe8('0x2e')](_0x5daa7d){if(this[_0x3fe8('0x41')](),this[_0x3fe8('0x1d')]['element'][_0x3fe8('0x43')](),_0x5daa7d)for(const _0x451d37 of _0x5daa7d)this[_0x3fe8('0x21')](_0x451d37);this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0xa')](),this[_0x3fe8('0x1d')][_0x3fe8('0xf')]='',this['_lastItem']=null;}[_0x3fe8('0x19')](_0x531c8e,_0x24fa4c){_0x24fa4c||(_0x24fa4c=_0x531c8e[_0x3fe8('0x1d')]);const _0x787ec2=new _0x3dc90f(this['context']['locale']);this[_0x3fe8('0x7')]['set'](_0x787ec2,_0x531c8e),this[_0x3fe8('0x45')][_0x3fe8('0x1e')](_0x531c8e,_0x787ec2),_0x787ec2[_0x3fe8('0x3d')][_0x3fe8('0x27')](_0x24fa4c),this[_0x3fe8('0xc')](_0x531c8e[_0x3fe8('0x1d')],_0x3fe8('0x2f'),(_0x46fedc,_0x57f25e,_0x2a24ae)=>{const _0x2f576e=this[_0x3fe8('0x46')](_0x531c8e,_0x2a24ae);_0x787ec2[_0x3fe8('0x17')]!=_0x2f576e&&(_0x787ec2[_0x3fe8('0x17')]=_0x2f576e,this[_0x3fe8('0x36')](_0x787ec2,_0x2f576e));}),this[_0x3fe8('0xc')](_0x787ec2,_0x3fe8('0x3c'),()=>{this[_0x3fe8('0x25')](_0x787ec2,_0x3fe8('0x47'));}),this['listenTo'](_0x787ec2,_0x3fe8('0x35'),()=>{this['_recalculate'](_0x787ec2,_0x3fe8('0x49'));}),this[_0x3fe8('0x0')](_0x787ec2);const _0x24346a=this[_0x3fe8('0x1f')](_0x787ec2);if(_0x24346a)this[_0x3fe8('0x11')](_0x24346a,_0x787ec2)||this['_alignToTargetRect'](_0x787ec2);else this[_0x3fe8('0x0')](_0x787ec2);return this['_updateLastItem'](),this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0x27')](_0x787ec2),_0x787ec2;}['_alignForTopChange'](_0x4ca901){if(!_0x4ca901[_0x3fe8('0x3d')]['length'])return;const _0x59c1a8=this[_0x3fe8('0x1f')](_0x4ca901);if(!_0x59c1a8)return;const _0x2c291d=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x59c1a8),_0x1bee63=this[_0x3fe8('0x26')];_0x1bee63&&_0x1bee63===_0x2c291d?this[_0x3fe8('0x11')](_0x59c1a8,_0x4ca901):this[_0x3fe8('0x1')](_0x4ca901,_0x59c1a8);}[_0x3fe8('0x2d')](_0x58beeb){if(!_0x58beeb[_0x3fe8('0x3d')][_0x3fe8('0x1c')])return;const _0x3d5721=this['_getItemAfter'](_0x58beeb);if(!_0x3d5721)return;const _0x145da8=this['_sidebarItemViewToAnnotation'][_0x3fe8('0x29')](_0x3d5721),_0x2ffb30=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37')),_0x27c41c=this[_0x3fe8('0x26')];_0x27c41c&&_0x27c41c===_0x145da8&&_0x2ffb30?(this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb),this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721)):_0x27c41c&&_0x27c41c===_0x145da8?this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb):this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721);}[_0x3fe8('0x25')](_0x1d3400,_0x1f9078){0x0===this['_recalculateBuffer'][_0x3fe8('0x1c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3d77d3,changedProp:_0x414ca2}of this[_0x3fe8('0xb')])_0x3fe8('0x47')===_0x414ca2?this['_alignForTopChange'](_0x3d77d3):this[_0x3fe8('0x2d')](_0x3d77d3);this[_0x3fe8('0xb')]=[];},0xa),this['_recalculateBuffer'][_0x3fe8('0x39')]({'sidebarItemView':_0x1d3400,'changedProp':_0x1f9078});}[_0x3fe8('0x20')](_0x462085){return this['_annotationToSidebarItemView']['get'](_0x462085);}['destroy'](){this[_0x3fe8('0x1d')][_0x3fe8('0x30')]();}[_0x3fe8('0x21')](_0x40ec82){const _0x110869=this[_0x3fe8('0x20')](_0x40ec82);this[_0x3fe8('0x41')](_0x110869),this[_0x3fe8('0x41')](_0x40ec82[_0x3fe8('0x1d')]),_0x110869[_0x3fe8('0x30')](),this[_0x3fe8('0x45')]['delete'](_0x40ec82),this[_0x3fe8('0x7')][_0x3fe8('0x33')](_0x110869);}['_createSidebarView'](){const _0x275f59=new _0x48f658(this['context']['locale']);return _0x275f59[_0x3fe8('0x3e')](),this['on'](_0x3fe8('0x3b'),(_0x3a3231,_0x176003,_0x204d42,_0x194169)=>{_0x194169&&_0x275f59['unbind'](_0x3fe8('0x1b')),_0x204d42?_0x275f59[_0x3fe8('0x6')](_0x3fe8('0x1b'))['to'](_0x204d42,_0x3fe8('0x49')):_0x275f59['minHeight']=null;}),_0x275f59;}[_0x3fe8('0x14')](){var _0x3dcf8a;this['_lastItem']=(null===(_0x3dcf8a=this[_0x3fe8('0x2a')])||void 0x0===_0x3dcf8a?void 0x0:_0x3dcf8a[_0x3fe8('0x28')])?this['getSidebarItemView'](this[_0x3fe8('0x2a')][_0x3fe8('0x28')]):null;}[_0x3fe8('0x1f')](_0x2e5064){var _0x12c337;const _0x320549=this[_0x3fe8('0x7')]['get'](_0x2e5064),_0x53cafc=_0x320549&&(null===(_0x12c337=this[_0x3fe8('0x2a')])||void 0x0===_0x12c337?void 0x0:_0x12c337[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x320549)-0x1));return _0x53cafc&&this[_0x3fe8('0x20')](_0x53cafc)||null;}[_0x3fe8('0x5')](_0x22176e){var _0xdc3132;const _0x33aa2c=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x22176e),_0x5cd3ec=_0x33aa2c&&(null===(_0xdc3132=this[_0x3fe8('0x2a')])||void 0x0===_0xdc3132?void 0x0:_0xdc3132[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x33aa2c)+0x1));return _0x5cd3ec&&this[_0x3fe8('0x20')](_0x5cd3ec)||null;}[_0x3fe8('0x1')](_0xecb69e,_0x34f522){_0xecb69e[_0x3fe8('0xd')]();const _0x28b600=H(_0x34f522[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xecb69e[_0x3fe8('0x47')]);return!!_0x28b600&&(this[_0x3fe8('0x36')](_0x34f522,_0x34f522['top']-_0x28b600),!0x0);}[_0x3fe8('0x11')](_0x20b4dc,_0xcc27d7){_0x20b4dc[_0x3fe8('0xd')]();const _0x551cd8=H(_0x20b4dc[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xcc27d7[_0x3fe8('0x47')]);return!!_0x551cd8&&(this[_0x3fe8('0x36')](_0xcc27d7,_0xcc27d7[_0x3fe8('0x47')]+_0x551cd8,!0x1),!0x0);}[_0x3fe8('0x0')](_0x13771d){const _0x46efde=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x13771d);if(!_0x46efde||!_0x46efde[_0x3fe8('0x15')]||!_0x46efde[_0x3fe8('0x10')])return;const _0x2ec002=this[_0x3fe8('0x46')](_0x46efde,_0x46efde['targetRect']);this[_0x3fe8('0x36')](_0x13771d,_0x2ec002);}[_0x3fe8('0x46')](_0x58c726,_0x4d2e9b){if(null===_0x4d2e9b)return 0x0;if(_0x58c726[_0x3fe8('0x15')]instanceof _0x5aaf2c)return _0x4d2e9b[_0x3fe8('0x47')];{const _0x1a710f=new _0x5aaf2c(this[_0x3fe8('0x1d')]['element'])[_0x3fe8('0x47')];return _0x4d2e9b[_0x3fe8('0x47')]-_0x1a710f;}}[_0x3fe8('0x36')](_0x3d5912,_0x119d8d,_0x1c5525=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37'))){_0x1c5525&&(_0x119d8d=Math[_0x3fe8('0x13')](_0x119d8d,this[_0x3fe8('0x2c')](_0x3d5912))),_0x3d5912[_0x3fe8('0x47')]=_0x119d8d;}[_0x3fe8('0x2c')](_0x5b5697){let _0x2466a6=this[_0x3fe8('0x1f')](_0x5b5697),_0x8c7b0b=0x0;for(;_0x2466a6;)_0x2466a6['updateHeight'](),_0x8c7b0b+=this['_spaceBetweenItems']+_0x2466a6[_0x3fe8('0x32')],_0x2466a6=this[_0x3fe8('0x1f')](_0x2466a6);return _0x8c7b0b;}}function H(_0x4f01bd,_0x3095cb){return Math[_0x3fe8('0x13')](_0x4f01bd-_0x3095cb,0x0);}function y(_0x5bdb46){return null!==_0x5bdb46&&_0x3fe8('0x16')==typeof _0x5bdb46&&0x1===_0x5bdb46[_0x3fe8('0x3a')];}
23
+ const _0x55cd=['_annotationToSidebarItemView','change:bottom','context','last','length','appendChild','_destroySidebarItemView','Sidebar','_getItemAfter','remove','_recalculateBuffer','change:targetRect','unbind','getSidebarItemView','_alignAfterItem','_setItemTop','listenTo','_annotations','config','element','clear','_updateLastItem','init','updateHeight','destroy','_alignForTopChange','refresh','isAnimationDisabled','bottom','render','bind','sidebar-attachtocontainer-missing-container','_getTargetTop','rearrange','content','_createSidebarView','set','_alignToTargetRect','sidebar.preventScrollOutOfView','change:_lastItem','pluginName','define','locale','delete','_lastItem','minHeight','_recalculate','max','add','top','list','_activeAnnotation','getIndex','_attachToContainer','targetRect','_alignBeforeItem','_alignForBottomChange','target','nodeType','sidebar.container','_getItemBefore','_sidebarItemViewToAnnotation','_spaceBetweenItems','setContainer','_targetTop','container','get','view'];(function(_0x2c35e4,_0x55cd52){const _0x1e0b0d=function(_0x34711f){while(--_0x34711f){_0x2c35e4['push'](_0x2c35e4['shift']());}};_0x1e0b0d(++_0x55cd52);}(_0x55cd,0x11d));const _0x1e0b=function(_0x2c35e4,_0x55cd52){_0x2c35e4=_0x2c35e4-0x0;let _0x1e0b0d=_0x55cd[_0x2c35e4];return _0x1e0b0d;};import{ContextPlugin as _0x4174bf}from'ckeditor5/src/core';import{Rect as _0x303c57,CKEditorError as _0x13cbb9}from'ckeditor5/src/utils';import _0x436c5d from'./view/sidebarview';import _0x793b47 from'./view/sidebaritemview';export default class z extends _0x4174bf{static get[_0x1e0b('0x1b')](){return _0x1e0b('0x3e');}constructor(_0x7b6b8e){super(_0x7b6b8e),this['set']('_lastItem',void 0x0),this[_0x1e0b('0x36')]=this['_createSidebarView'](),this[_0x1e0b('0x17')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x1e0b('0x30')]=new Map(),this[_0x1e0b('0x37')]=new Map(),this[_0x1e0b('0x39')]['config'][_0x1e0b('0x1c')]('sidebar.preventScrollOutOfView',!0x1),this[_0x1e0b('0x4')]=null,this['_activeAnnotation']=null,this[_0x1e0b('0x41')]=[];}[_0x1e0b('0x9')](){const _0x34873e=this[_0x1e0b('0x39')]['config']['get'](_0x1e0b('0x2e'));_0x34873e&&this[_0x1e0b('0x32')](_0x34873e);}[_0x1e0b('0x32')](_0x5abfb0){if(!y(_0x5abfb0))throw new _0x13cbb9('sidebar-setcontainer-invalid-element');this['container']=_0x5abfb0;}[_0x1e0b('0x28')]({viewClass:_0x7ffebb='',spaceBetweenItems:_0x3ea3d1=0x19}={}){if(!y(this[_0x1e0b('0x34')]))throw new _0x13cbb9(_0x1e0b('0x12'),this);this[_0x1e0b('0x34')][_0x1e0b('0x3c')](this[_0x1e0b('0x36')][_0x1e0b('0x6')]),this[_0x1e0b('0x36')]['class']=_0x7ffebb,this[_0x1e0b('0x31')]=_0x3ea3d1;}[_0x1e0b('0x14')]({removedAnnotation:_0x1c69d1,previousAnnotation:_0x451ea3,nextAnnotation:_0x5c088c}){const _0x479d4f=this[_0x1e0b('0x0')](_0x1c69d1);this[_0x1e0b('0x36')][_0x1e0b('0x25')][_0x1e0b('0x40')](_0x479d4f),this[_0x1e0b('0x3d')](_0x1c69d1),_0x451ea3&&this[_0x1e0b('0x18')](this[_0x1e0b('0x0')](_0x451ea3)),_0x5c088c&&this[_0x1e0b('0x18')](this[_0x1e0b('0x0')](_0x5c088c)),this[_0x1e0b('0x8')]();}[_0x1e0b('0xd')]({blurredAnnotation:_0x3a815c,activatedAnnotation:_0x49f544,disableAnimationOnActivatedAnnotation:_0x292980}){if(this['_activeAnnotation']=_0x49f544,_0x3a815c){_0x3a815c['isActive']=!0x1;const _0xcc6d39=this['getSidebarItemView'](_0x3a815c);_0xcc6d39&&_0x292980&&(_0xcc6d39[_0x1e0b('0xe')]=!0x1);}if(_0x49f544){const _0x26f8d0=this[_0x1e0b('0x0')](_0x49f544);_0x26f8d0&&(_0x49f544['isActive']=!0x0,_0x292980&&(_0x26f8d0[_0x1e0b('0xe')]=!0x0,_0x26f8d0[_0x1e0b('0x24')]+=0x1),this[_0x1e0b('0x18')](_0x26f8d0));}}['_detachFromContainer'](_0x144bae){if(this['stopListening'](),this[_0x1e0b('0x36')]['element'][_0x1e0b('0x40')](),_0x144bae)for(const _0x4a8287 of _0x144bae)this['_destroySidebarItemView'](_0x4a8287);this[_0x1e0b('0x36')][_0x1e0b('0x25')][_0x1e0b('0x7')](),this[_0x1e0b('0x36')]['class']='',this[_0x1e0b('0x1f')]=null;}['addAnnotation'](_0x27a9e0,_0x59f5d7){_0x59f5d7||(_0x59f5d7=_0x27a9e0[_0x1e0b('0x36')]);const _0x40815b=new _0x793b47(this[_0x1e0b('0x39')][_0x1e0b('0x1d')]);this[_0x1e0b('0x30')][_0x1e0b('0x17')](_0x40815b,_0x27a9e0),this[_0x1e0b('0x37')][_0x1e0b('0x17')](_0x27a9e0,_0x40815b),_0x40815b[_0x1e0b('0x15')][_0x1e0b('0x23')](_0x59f5d7),this[_0x1e0b('0x3')](_0x27a9e0[_0x1e0b('0x36')],_0x1e0b('0x42'),(_0x14e23f,_0x365ac9,_0x3b2264)=>{const _0x4e9755=this[_0x1e0b('0x13')](_0x27a9e0,_0x3b2264);_0x40815b['_targetTop']!=_0x4e9755&&(_0x40815b[_0x1e0b('0x33')]=_0x4e9755,this[_0x1e0b('0x2')](_0x40815b,_0x4e9755));}),this[_0x1e0b('0x3')](_0x40815b,'change:top',()=>{this[_0x1e0b('0x21')](_0x40815b,_0x1e0b('0x24'));}),this[_0x1e0b('0x3')](_0x40815b,_0x1e0b('0x38'),()=>{this[_0x1e0b('0x21')](_0x40815b,'bottom');}),this['_alignToTargetRect'](_0x40815b);const _0x48f86f=this['_getItemBefore'](_0x40815b);if(_0x48f86f)this[_0x1e0b('0x1')](_0x48f86f,_0x40815b)||this[_0x1e0b('0x18')](_0x40815b);else this[_0x1e0b('0x18')](_0x40815b);return this['_updateLastItem'](),this[_0x1e0b('0x36')]['list'][_0x1e0b('0x23')](_0x40815b),_0x40815b;}[_0x1e0b('0xc')](_0x5a140b){if(!_0x5a140b[_0x1e0b('0x15')]['length'])return;const _0x592523=this['_getItemBefore'](_0x5a140b);if(!_0x592523)return;const _0x44a53e=this['_sidebarItemViewToAnnotation']['get'](_0x592523),_0x352c61=this[_0x1e0b('0x26')];_0x352c61&&_0x352c61===_0x44a53e?this['_alignAfterItem'](_0x592523,_0x5a140b):this[_0x1e0b('0x2a')](_0x5a140b,_0x592523);}[_0x1e0b('0x2b')](_0x58ba61){if(!_0x58ba61[_0x1e0b('0x15')][_0x1e0b('0x3b')])return;const _0x688f79=this[_0x1e0b('0x3f')](_0x58ba61);if(!_0x688f79)return;const _0x31385c=this['_sidebarItemViewToAnnotation'][_0x1e0b('0x35')](_0x688f79),_0x3f0194=this[_0x1e0b('0x39')][_0x1e0b('0x5')][_0x1e0b('0x35')](_0x1e0b('0x19')),_0x20c67d=this['_activeAnnotation'];_0x20c67d&&_0x20c67d===_0x31385c&&_0x3f0194?(this[_0x1e0b('0x2a')](_0x688f79,_0x58ba61),this[_0x1e0b('0x1')](_0x58ba61,_0x688f79)):_0x20c67d&&_0x20c67d===_0x31385c?this[_0x1e0b('0x2a')](_0x688f79,_0x58ba61):this[_0x1e0b('0x1')](_0x58ba61,_0x688f79);}[_0x1e0b('0x21')](_0x19b9b9,_0x4242ee){0x0===this['_recalculateBuffer'][_0x1e0b('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4ba7d9,changedProp:_0xd675b6}of this[_0x1e0b('0x41')])_0x1e0b('0x24')===_0xd675b6?this[_0x1e0b('0xc')](_0x4ba7d9):this[_0x1e0b('0x2b')](_0x4ba7d9);this[_0x1e0b('0x41')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x19b9b9,'changedProp':_0x4242ee});}[_0x1e0b('0x0')](_0x4059c9){return this[_0x1e0b('0x37')][_0x1e0b('0x35')](_0x4059c9);}[_0x1e0b('0xb')](){this[_0x1e0b('0x36')][_0x1e0b('0xb')]();}[_0x1e0b('0x3d')](_0x275288){const _0x3940c5=this[_0x1e0b('0x0')](_0x275288);this['stopListening'](_0x3940c5),this['stopListening'](_0x275288[_0x1e0b('0x36')]),_0x3940c5[_0x1e0b('0xb')](),this[_0x1e0b('0x37')][_0x1e0b('0x1e')](_0x275288),this[_0x1e0b('0x30')][_0x1e0b('0x1e')](_0x3940c5);}[_0x1e0b('0x16')](){const _0x3354d7=new _0x436c5d(this[_0x1e0b('0x39')]['locale']);return _0x3354d7[_0x1e0b('0x10')](),this['on'](_0x1e0b('0x1a'),(_0x55a90c,_0x1889b1,_0x3ac0d9,_0x83720c)=>{_0x83720c&&_0x3354d7[_0x1e0b('0x43')](_0x1e0b('0x20')),_0x3ac0d9?_0x3354d7[_0x1e0b('0x11')]('minHeight')['to'](_0x3ac0d9,'bottom'):_0x3354d7[_0x1e0b('0x20')]=null;}),_0x3354d7;}[_0x1e0b('0x8')](){var _0x356729;this[_0x1e0b('0x1f')]=(null===(_0x356729=this['_annotations'])||void 0x0===_0x356729?void 0x0:_0x356729[_0x1e0b('0x3a')])?this[_0x1e0b('0x0')](this[_0x1e0b('0x4')][_0x1e0b('0x3a')]):null;}[_0x1e0b('0x2f')](_0x3ee4b0){var _0x2a6d4f;const _0x3624b9=this[_0x1e0b('0x30')][_0x1e0b('0x35')](_0x3ee4b0),_0x2bde3e=_0x3624b9&&(null===(_0x2a6d4f=this[_0x1e0b('0x4')])||void 0x0===_0x2a6d4f?void 0x0:_0x2a6d4f['get'](this['_annotations'][_0x1e0b('0x27')](_0x3624b9)-0x1));return _0x2bde3e&&this[_0x1e0b('0x0')](_0x2bde3e)||null;}['_getItemAfter'](_0x3192ee){var _0x14f832;const _0x2eea8c=this[_0x1e0b('0x30')][_0x1e0b('0x35')](_0x3192ee),_0x2c8a4c=_0x2eea8c&&(null===(_0x14f832=this[_0x1e0b('0x4')])||void 0x0===_0x14f832?void 0x0:_0x14f832['get'](this[_0x1e0b('0x4')][_0x1e0b('0x27')](_0x2eea8c)+0x1));return _0x2c8a4c&&this['getSidebarItemView'](_0x2c8a4c)||null;}[_0x1e0b('0x2a')](_0x46ea7e,_0x3232b7){_0x46ea7e[_0x1e0b('0xa')]();const _0x31e880=H(_0x3232b7[_0x1e0b('0xf')]+this[_0x1e0b('0x31')],_0x46ea7e[_0x1e0b('0x24')]);return!!_0x31e880&&(this['_setItemTop'](_0x3232b7,_0x3232b7[_0x1e0b('0x24')]-_0x31e880),!0x0);}[_0x1e0b('0x1')](_0x5e5499,_0x26ea06){_0x5e5499[_0x1e0b('0xa')]();const _0x1472a4=H(_0x5e5499[_0x1e0b('0xf')]+this['_spaceBetweenItems'],_0x26ea06['top']);return!!_0x1472a4&&(this['_setItemTop'](_0x26ea06,_0x26ea06[_0x1e0b('0x24')]+_0x1472a4,!0x1),!0x0);}[_0x1e0b('0x18')](_0x4dfa87){const _0xdf9000=this[_0x1e0b('0x30')][_0x1e0b('0x35')](_0x4dfa87);if(!_0xdf9000||!_0xdf9000[_0x1e0b('0x2c')]||!_0xdf9000[_0x1e0b('0x29')])return;const _0x31caee=this[_0x1e0b('0x13')](_0xdf9000,_0xdf9000[_0x1e0b('0x29')]);this[_0x1e0b('0x2')](_0x4dfa87,_0x31caee);}[_0x1e0b('0x13')](_0x212df2,_0xee3196){if(null===_0xee3196)return 0x0;if(_0x212df2['target']instanceof _0x303c57)return _0xee3196[_0x1e0b('0x24')];{const _0x1505f5=new _0x303c57(this[_0x1e0b('0x36')][_0x1e0b('0x6')])[_0x1e0b('0x24')];return _0xee3196['top']-_0x1505f5;}}[_0x1e0b('0x2')](_0xd0adeb,_0x288507,_0x4948b6=this[_0x1e0b('0x39')][_0x1e0b('0x5')][_0x1e0b('0x35')]('sidebar.preventScrollOutOfView')){_0x4948b6&&(_0x288507=Math[_0x1e0b('0x22')](_0x288507,this['_getMaxAvailableTop'](_0xd0adeb))),_0xd0adeb[_0x1e0b('0x24')]=_0x288507;}['_getMaxAvailableTop'](_0x30714a){let _0x286ae3=this[_0x1e0b('0x2f')](_0x30714a),_0xd99a5d=0x0;for(;_0x286ae3;)_0x286ae3['updateHeight'](),_0xd99a5d+=this[_0x1e0b('0x31')]+_0x286ae3['height'],_0x286ae3=this[_0x1e0b('0x2f')](_0x286ae3);return _0xd99a5d;}}function H(_0x53191f,_0x4ed433){return Math[_0x1e0b('0x22')](_0x53191f-_0x4ed433,0x0);}function y(_0x2ea7a0){return null!==_0x2ea7a0&&'object'==typeof _0x2ea7a0&&0x1===_0x2ea7a0[_0x1e0b('0x2d')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe155=['set','ck-annotation-counter','counterView','add','ck-annotation-counter__badge','toString','isDirty','_badge','bindTemplate','icon','annotationType','number','extendTemplate','ck-annotation-counter__badge--','children'];(function(_0x293ecc,_0xe15550){const _0x38f78c=function(_0x59cde2){while(--_0x59cde2){_0x293ecc['push'](_0x293ecc['shift']());}};_0x38f78c(++_0xe15550);}(_0xe155,0x111));const _0x38f7=function(_0x293ecc,_0xe15550){_0x293ecc=_0x293ecc-0x0;let _0x38f78c=_0xe155[_0x293ecc];return _0x38f78c;};import{ButtonView as _0xd8420d,View as _0xc69b16}from'ckeditor5/src/ui';import _0x20f889 from'../../../theme/icons/add-comment.svg';export default class D extends _0xd8420d{constructor(_0x50b06e){super(_0x50b06e);const _0x1de201=this[_0x38f7('0x5')];this[_0x38f7('0xc')](_0x38f7('0x3'),!0x1),this[_0x38f7('0xc')](_0x38f7('0x8'),0x0),this['bind']('_badge')['to'](this,_0x38f7('0x3'),this,_0x38f7('0x8'),(_0x266e44,_0x5c4f00)=>_0x266e44?'...':_0x5c4f00[_0x38f7('0x2')]()),this[_0x38f7('0xc')]('annotationType',''),this[_0x38f7('0x6')]=_0x20f889,this[_0x38f7('0x9')]({'attributes':{'class':[_0x38f7('0xd')]}}),this[_0x38f7('0xe')]=new _0xc69b16(),this[_0x38f7('0xe')]['setTemplate']({'tag':'span','attributes':{'class':[_0x38f7('0x1'),_0x1de201['to'](_0x38f7('0x7'),_0x5246c8=>_0x38f7('0xa')+_0x5246c8),_0x1de201['if'](_0x38f7('0x3'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1de201['to'](_0x38f7('0x4'))}]}),this[_0x38f7('0xb')][_0x38f7('0x0')](this['counterView']);}}
23
+ const _0x4918=['ck-annotation-counter','number','ck-annotation-counter__badge--edit-mode','setTemplate','isDirty','...','extendTemplate','add','set','counterView','bind','ck-annotation-counter__badge','icon','span','annotationType','_badge'];(function(_0x1b52c5,_0x49187a){const _0x44ef78=function(_0x25d185){while(--_0x25d185){_0x1b52c5['push'](_0x1b52c5['shift']());}};_0x44ef78(++_0x49187a);}(_0x4918,0xd6));const _0x44ef=function(_0x1b52c5,_0x49187a){_0x1b52c5=_0x1b52c5-0x0;let _0x44ef78=_0x4918[_0x1b52c5];return _0x44ef78;};import{ButtonView as _0x12a90e,View as _0x1419a8}from'ckeditor5/src/ui';import _0x3551d6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x12a90e{constructor(_0x4f36d0){super(_0x4f36d0);const _0x24532e=this['bindTemplate'];this[_0x44ef('0x2')](_0x44ef('0xe'),!0x1),this['set'](_0x44ef('0xb'),0x0),this[_0x44ef('0x4')](_0x44ef('0x9'))['to'](this,_0x44ef('0xe'),this,_0x44ef('0xb'),(_0x15b6d7,_0x4b5e9a)=>_0x15b6d7?_0x44ef('0xf'):_0x4b5e9a['toString']()),this['set']('annotationType',''),this[_0x44ef('0x6')]=_0x3551d6,this[_0x44ef('0x0')]({'attributes':{'class':[_0x44ef('0xa')]}}),this[_0x44ef('0x3')]=new _0x1419a8(),this[_0x44ef('0x3')][_0x44ef('0xd')]({'tag':_0x44ef('0x7'),'attributes':{'class':[_0x44ef('0x5'),_0x24532e['to'](_0x44ef('0x8'),_0x360aec=>'ck-annotation-counter__badge--'+_0x360aec),_0x24532e['if']('isDirty',_0x44ef('0xc'))]},'children':[{'text':_0x24532e['to'](_0x44ef('0x9'))}]}),this['children'][_0x44ef('0x1')](this[_0x44ef('0x3')]);}}