@ckeditor/ckeditor5-comments 36.0.0 → 36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsediting.js +1 -1
  18. package/src/comments/commentsrepository.js +1 -1
  19. package/src/comments/commentsui.js +1 -1
  20. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  21. package/src/comments/integrations/importword.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. 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": "36.0.0",
3
+ "version": "36.0.1",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "^36.0.0",
35
- "ckeditor5-collaboration": "^36.0.0",
34
+ "ckeditor5": "^36.0.1",
35
+ "ckeditor5-collaboration": "^36.0.1",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x321a=['render','focusTracker','_target','getClientRects','targetRect','isVisible','focusableElements','refreshVisibility','type','annotation-invalid-target','nodeType','isActive','remove','offsetParent','add','object','length','_assertCorrectTarget','view','destroy','target','stopListening','set','_getNormalizedTarget','innerView','item','filter','_type','function'];(function(_0x1850db,_0x321a8b){const _0x34caee=function(_0x196779){while(--_0x196779){_0x1850db['push'](_0x1850db['shift']());}};_0x34caee(++_0x321a8b);}(_0x321a,0xca));const _0x34ca=function(_0x1850db,_0x321a8b){_0x1850db=_0x1850db-0x0;let _0x34caee=_0x321a[_0x1850db];return _0x34caee;};import{CKEditorError as _0x5682de,Rect as _0x29e2ab,Collection as _0x5f5cbd,mix as _0x14f43c,ObservableMixin as _0x4ca73a}from'ckeditor5/src/utils';export default class d{constructor({view:_0x32f7d7,target:_0x398ded,type:_0x106baa,isVisible:_0x108ea8=!0x0}){this['view']=_0x32f7d7,this[_0x34ca('0x13')]['element']||this[_0x34ca('0x13')][_0x34ca('0x1')](),this['_type']=_0x106baa,this[_0x34ca('0x3')]=_0x398ded,d['_assertCorrectTarget'](this[_0x34ca('0x18')]()),this['focusableElements']=new _0x5f5cbd([this[_0x34ca('0x13')]['element']],{'idProperty':'_id'}),this['focusableElements']['on'](_0x34ca('0xf'),(_0x2adcbf,_0x23cf7c)=>{this[_0x34ca('0x13')][_0x34ca('0x2')][_0x34ca('0xf')](_0x23cf7c);}),this[_0x34ca('0x7')]['on'](_0x34ca('0xd'),(_0x3f97ad,_0x320fc4)=>{this['view'][_0x34ca('0x2')]['remove'](_0x320fc4);}),this[_0x34ca('0x17')]('isVisible',_0x108ea8);}get[_0x34ca('0x9')](){return _0x34ca('0x0')==typeof this[_0x34ca('0x1c')]?this[_0x34ca('0x1c')]():this[_0x34ca('0x1c')];}get[_0x34ca('0x19')](){return this[_0x34ca('0x13')]['mainView'];}get[_0x34ca('0x15')](){const _0x5586ed=this[_0x34ca('0x18')]();return d[_0x34ca('0x12')](_0x5586ed),_0x5586ed;}get[_0x34ca('0x5')](){const _0xf6e53c=this['target'];if(null===_0xf6e53c)return null;if(_0xf6e53c instanceof _0x29e2ab)return _0xf6e53c;const _0x3af952=_0xf6e53c[_0x34ca('0x1b')](_0x55e904=>function(_0x13369b){const _0x26bfe8=_0x13369b[_0x34ca('0xe')];if(_0x26bfe8)return!0x0;const _0x3a857e=_0x13369b[_0x34ca('0x4')]()[_0x34ca('0x1a')](0x0);return!!_0x3a857e;}(_0x55e904));return 0x0===_0x3af952[_0x34ca('0x11')]?null:new _0x29e2ab(_0x3af952[0x0][_0x34ca('0x4')]()[_0x34ca('0x1a')](0x0));}get[_0x34ca('0xc')](){return this[_0x34ca('0x13')][_0x34ca('0xc')];}set[_0x34ca('0xc')](_0x1ddfe4){this[_0x34ca('0x13')][_0x34ca('0xc')]=_0x1ddfe4,this[_0x34ca('0x13')]['mainView'][_0x34ca('0xc')]=_0x1ddfe4;}['updateTargetRect'](){this[_0x34ca('0x13')][_0x34ca('0x5')]=this[_0x34ca('0x5')];}[_0x34ca('0x14')](){this[_0x34ca('0x7')]['stopListening'](),this[_0x34ca('0x7')]['clear'](),this[_0x34ca('0x16')]();}[_0x34ca('0x8')](){this[_0x34ca('0x6')]=!!this['targetRect'];}static[_0x34ca('0x12')](_0x4e4cf7){if(!(null===_0x4e4cf7||_0x4e4cf7 instanceof _0x29e2ab||Array['isArray'](_0x4e4cf7)&&_0x4e4cf7['every'](_0x370473=>p(_0x370473))))throw new _0x5682de(_0x34ca('0xa'),null,{'target':_0x4e4cf7});}[_0x34ca('0x18')](){let _0x199f4b=_0x34ca('0x0')==typeof this[_0x34ca('0x3')]?this['_target']():this[_0x34ca('0x3')];return _0x199f4b=p(_0x199f4b)?[_0x199f4b]:_0x199f4b,_0x199f4b;}}function p(_0x3625b5){return null!==_0x3625b5&&_0x34ca('0x10')==typeof _0x3625b5&&0x1===_0x3625b5[_0x34ca('0xb')];}_0x14f43c(d,_0x4ca73a);
23
+ const _0x5cbb=['add','refreshVisibility','view','render','_getNormalizedTarget','remove','destroy','nodeType','mainView','innerView','function','target','focusTracker','_id','_type','every','type','filter','item','targetRect','getClientRects','isVisible','isActive','offsetParent','focusableElements','stopListening','_assertCorrectTarget','updateTargetRect','length','_target','element'];(function(_0x4aa9ea,_0x5cbbcf){const _0x459f19=function(_0x39eb5a){while(--_0x39eb5a){_0x4aa9ea['push'](_0x4aa9ea['shift']());}};_0x459f19(++_0x5cbbcf);}(_0x5cbb,0x19d));const _0x459f=function(_0x4aa9ea,_0x5cbbcf){_0x4aa9ea=_0x4aa9ea-0x0;let _0x459f19=_0x5cbb[_0x4aa9ea];return _0x459f19;};import{CKEditorError as _0x3230cb,Rect as _0x31c47d,Collection as _0x24fb1f,mix as _0x44559c,ObservableMixin as _0x5f44f2}from'ckeditor5/src/utils';export default class d{constructor({view:_0x5619b3,target:_0x5349fa,type:_0x45a2d1,isVisible:_0x240135=!0x0}){this[_0x459f('0x17')]=_0x5619b3,this['view'][_0x459f('0x14')]||this['view'][_0x459f('0x18')](),this[_0x459f('0x4')]=_0x45a2d1,this[_0x459f('0x13')]=_0x5349fa,d[_0x459f('0x10')](this['_getNormalizedTarget']()),this[_0x459f('0xe')]=new _0x24fb1f([this['view'][_0x459f('0x14')]],{'idProperty':_0x459f('0x3')}),this[_0x459f('0xe')]['on'](_0x459f('0x15'),(_0x3a130f,_0xd019c1)=>{this[_0x459f('0x17')][_0x459f('0x2')]['add'](_0xd019c1);}),this['focusableElements']['on'](_0x459f('0x1a'),(_0x2a319c,_0x56eb7c)=>{this[_0x459f('0x17')]['focusTracker'][_0x459f('0x1a')](_0x56eb7c);}),this['set'](_0x459f('0xb'),_0x240135);}get[_0x459f('0x6')](){return'function'==typeof this[_0x459f('0x4')]?this['_type']():this[_0x459f('0x4')];}get[_0x459f('0x1e')](){return this[_0x459f('0x17')][_0x459f('0x1d')];}get[_0x459f('0x1')](){const _0x53362d=this[_0x459f('0x19')]();return d[_0x459f('0x10')](_0x53362d),_0x53362d;}get[_0x459f('0x9')](){const _0x1fed67=this['target'];if(null===_0x1fed67)return null;if(_0x1fed67 instanceof _0x31c47d)return _0x1fed67;const _0x51d11d=_0x1fed67[_0x459f('0x7')](_0x7dfca4=>function(_0x28253c){const _0x2ebd16=_0x28253c[_0x459f('0xd')];if(_0x2ebd16)return!0x0;const _0x41f11a=_0x28253c[_0x459f('0xa')]()[_0x459f('0x8')](0x0);return!!_0x41f11a;}(_0x7dfca4));return 0x0===_0x51d11d[_0x459f('0x12')]?null:new _0x31c47d(_0x51d11d[0x0][_0x459f('0xa')]()['item'](0x0));}get[_0x459f('0xc')](){return this[_0x459f('0x17')][_0x459f('0xc')];}set[_0x459f('0xc')](_0x4382db){this[_0x459f('0x17')][_0x459f('0xc')]=_0x4382db,this['view']['mainView']['isActive']=_0x4382db;}[_0x459f('0x11')](){this[_0x459f('0x17')]['targetRect']=this[_0x459f('0x9')];}[_0x459f('0x1b')](){this[_0x459f('0xe')]['stopListening'](),this[_0x459f('0xe')]['clear'](),this[_0x459f('0xf')]();}[_0x459f('0x16')](){this['isVisible']=!!this[_0x459f('0x9')];}static[_0x459f('0x10')](_0x17d70c){if(!(null===_0x17d70c||_0x17d70c instanceof _0x31c47d||Array['isArray'](_0x17d70c)&&_0x17d70c[_0x459f('0x5')](_0x5d6383=>p(_0x5d6383))))throw new _0x3230cb('annotation-invalid-target',null,{'target':_0x17d70c});}['_getNormalizedTarget'](){let _0x4d3ce7=_0x459f('0x0')==typeof this[_0x459f('0x13')]?this[_0x459f('0x13')]():this[_0x459f('0x13')];return _0x4d3ce7=p(_0x4d3ce7)?[_0x4d3ce7]:_0x4d3ce7,_0x4d3ce7;}}function p(_0x140d8a){return null!==_0x140d8a&&'object'==typeof _0x140d8a&&0x1===_0x140d8a[_0x459f('0x1c')];}_0x44559c(d,_0x5f44f2);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2611=['focusTracker','getByView','from','change:isFocused','updateTargetRect','focus','_viewToAnnotation','getIndex','annotationcollection-not-existing-item','view','destroy','_innerViewToAnnotation','getByInnerView','targetRect','get','add','_focusTracker','_getOrderInContent','fire','top','length','sort','refreshPositioning','delete','focusableElements','stopListening','set','left','isFocused','clear','has','innerView','listenTo','remove'];(function(_0x5da147,_0x261194){const _0x3488e5=function(_0x675327){while(--_0x675327){_0x5da147['push'](_0x5da147['shift']());}};_0x3488e5(++_0x261194);}(_0x2611,0x1ed));const _0x3488=function(_0x5da147,_0x261194){_0x5da147=_0x5da147-0x0;let _0x3488e5=_0x2611[_0x5da147];return _0x3488e5;};import{CKEditorError as _0x419ecb,Collection as _0x226793,FocusTracker as _0x2cf184}from'ckeditor5/src/utils';export default class x extends _0x226793{constructor(_0x24b295=[]){super(),this[_0x3488('0x1c')]=new Map(),this[_0x3488('0x17')]=new Map(),this[_0x3488('0x21')]=new _0x2cf184(),this['_focusTracker']['on'](_0x3488('0x14'),(_0x46d0c5,_0x520e65,_0xad8de5)=>{_0xad8de5||this[_0x3488('0x1')]('blur');});for(const _0x2d4d7e of _0x24b295)this[_0x3488('0x20')](_0x2d4d7e);}get[_0x3488('0xb')](){return this[_0x3488('0x21')]['isFocused'];}[_0x3488('0x20')](_0x35e265){if(this[_0x3488('0xd')](_0x35e265))throw new _0x419ecb('annotationcollection-duplicated-item',null);this[_0x3488('0x1c')][_0x3488('0x9')](_0x35e265[_0x3488('0xe')],_0x35e265),this[_0x3488('0x17')][_0x3488('0x9')](_0x35e265['view'],_0x35e265);for(const _0x1adecb of _0x35e265[_0x3488('0x7')])this[_0x3488('0x21')][_0x3488('0x20')](_0x1adecb);this[_0x3488('0xf')](_0x35e265[_0x3488('0x7')],'add',(_0x4bd646,_0x10fbc7)=>{this[_0x3488('0x21')][_0x3488('0x20')](_0x10fbc7);}),this['listenTo'](_0x35e265['focusableElements'],_0x3488('0x10'),(_0x5668bb,_0x769dca)=>{this[_0x3488('0x21')][_0x3488('0x10')](_0x769dca);}),this[_0x3488('0xf')](_0x35e265[_0x3488('0x1a')]['focusTracker'],_0x3488('0x14'),(_0x1b8dab,_0x59695f,_0xbd595a)=>{_0xbd595a&&this[_0x3488('0x1')](_0x3488('0x16'),_0x35e265);}),_0x35e265[_0x3488('0x15')]();const _0x1ab64d=this[_0x3488('0x0')](_0x35e265[_0x3488('0x1a')][_0x3488('0x1e')]);super[_0x3488('0x20')](_0x35e265,_0x1ab64d);}[_0x3488('0x10')](_0x246b03){if(!this[_0x3488('0xd')](_0x246b03))throw new _0x419ecb(_0x3488('0x19'),null);this[_0x3488('0x8')](_0x246b03[_0x3488('0x1a')][_0x3488('0x11')]),this[_0x3488('0x8')](_0x246b03['focusableElements']);for(const _0x16e9eb of _0x246b03[_0x3488('0x7')])this[_0x3488('0x21')][_0x3488('0x10')](_0x16e9eb);this[_0x3488('0x17')]['delete'](_0x246b03['view']),this[_0x3488('0x1c')][_0x3488('0x6')](_0x246b03[_0x3488('0xe')]),super[_0x3488('0x10')](_0x246b03);}[_0x3488('0x1d')](_0x3872c7){return this[_0x3488('0x1c')][_0x3488('0x1f')](_0x3872c7);}[_0x3488('0x12')](_0x41b485){return this[_0x3488('0x17')][_0x3488('0x1f')](_0x41b485);}[_0x3488('0x1b')](){super[_0x3488('0xc')](),this['stopListening'](),this[_0x3488('0x1c')][_0x3488('0xc')](),this[_0x3488('0x17')][_0x3488('0xc')](),this[_0x3488('0x21')][_0x3488('0x1b')]();}[_0x3488('0x5')](){for(const _0xc87489 of this)_0xc87489['updateTargetRect']();this['_sort']();}['_sort'](){const _0x4a6265=Array[_0x3488('0x13')](this)[_0x3488('0x4')]((_0x2b3786,_0x4fbf21)=>y(_0x2b3786[_0x3488('0x1a')][_0x3488('0x1e')],_0x4fbf21[_0x3488('0x1a')][_0x3488('0x1e')]));for(let _0x5c57f4=_0x4a6265[_0x3488('0x3')]-0x1;_0x5c57f4>0x0;_0x5c57f4--){const _0x4e1b0c=_0x4a6265[_0x5c57f4];_0x5c57f4!==this[_0x3488('0x18')](_0x4e1b0c)&&(this[_0x3488('0x10')](_0x4e1b0c),this[_0x3488('0x20')](_0x4e1b0c,_0x5c57f4));}}[_0x3488('0x0')](_0x37f587){let _0x42d576=0x0;if(!_0x37f587)return this['_items'][_0x3488('0x3')];for(const _0x154246 of this){const _0x1fb0fa=_0x154246[_0x3488('0x1a')][_0x3488('0x1e')];if(_0x1fb0fa){if(y(_0x37f587,_0x1fb0fa)<0x0)return _0x42d576;_0x42d576++;}}return _0x42d576;}}export function bindAnnotationCollections({source:_0xacc18c,target:_0x51f0ba,filter:_0x181bc6}){for(const _0x2df24b of _0xacc18c)_0x181bc6(_0x2df24b)&&_0x51f0ba['add'](_0x2df24b);_0x51f0ba[_0x3488('0xf')](_0xacc18c,_0x3488('0x20'),(_0x354467,_0x2793ce)=>{_0x181bc6(_0x2793ce)&&_0x51f0ba['add'](_0x2793ce);}),_0x51f0ba[_0x3488('0xf')](_0xacc18c,'remove',(_0x5a81df,_0xb9b778)=>{_0x51f0ba[_0x3488('0xd')](_0xb9b778)&&_0x51f0ba[_0x3488('0x10')](_0xb9b778);});}function y(_0x69897,_0x433adb){if(null===_0x69897&&null===_0x433adb)return 0x0;if(null===_0x69897)return-0x1;if(null===_0x433adb)return 0x1;const _0x16477d=_0x69897[_0x3488('0x2')]-_0x433adb[_0x3488('0x2')];return 0x0==_0x16477d?_0x69897[_0x3488('0xa')]-_0x433adb[_0x3488('0xa')]:_0x16477d;}
23
+ const _0x1d75=['delete','get','_sort','innerView','_viewToAnnotation','blur','from','set','_focusTracker','targetRect','add','focusableElements','_items','focus','left','fire','getIndex','clear','_innerViewToAnnotation','stopListening','destroy','isFocused','remove','updateTargetRect','change:isFocused','view','has','listenTo','length','top','annotationcollection-not-existing-item','annotationcollection-duplicated-item','focusTracker','_getOrderInContent'];(function(_0x29065e,_0x1d7561){const _0x5ca990=function(_0x3add6a){while(--_0x3add6a){_0x29065e['push'](_0x29065e['shift']());}};_0x5ca990(++_0x1d7561);}(_0x1d75,0x110));const _0x5ca9=function(_0x29065e,_0x1d7561){_0x29065e=_0x29065e-0x0;let _0x5ca990=_0x1d75[_0x29065e];return _0x5ca990;};import{CKEditorError as _0x168375,Collection as _0x2f760d,FocusTracker as _0x4f0564}from'ckeditor5/src/utils';export default class x extends _0x2f760d{constructor(_0x256044=[]){super(),this[_0x5ca9('0x12')]=new Map(),this[_0x5ca9('0x4')]=new Map(),this[_0x5ca9('0x8')]=new _0x4f0564(),this[_0x5ca9('0x8')]['on'](_0x5ca9('0x18'),(_0x2a558b,_0x1cda4d,_0x31a795)=>{_0x31a795||this[_0x5ca9('0xf')](_0x5ca9('0x5'));});for(const _0x208adb of _0x256044)this[_0x5ca9('0xa')](_0x208adb);}get[_0x5ca9('0x15')](){return this[_0x5ca9('0x8')][_0x5ca9('0x15')];}[_0x5ca9('0xa')](_0x2815b9){if(this[_0x5ca9('0x1a')](_0x2815b9))throw new _0x168375(_0x5ca9('0x1f'),null);this[_0x5ca9('0x12')][_0x5ca9('0x7')](_0x2815b9[_0x5ca9('0x3')],_0x2815b9),this[_0x5ca9('0x4')][_0x5ca9('0x7')](_0x2815b9[_0x5ca9('0x19')],_0x2815b9);for(const _0x87403f of _0x2815b9[_0x5ca9('0xb')])this[_0x5ca9('0x8')][_0x5ca9('0xa')](_0x87403f);this[_0x5ca9('0x1b')](_0x2815b9[_0x5ca9('0xb')],'add',(_0x3b0b8d,_0x20a9e3)=>{this[_0x5ca9('0x8')][_0x5ca9('0xa')](_0x20a9e3);}),this[_0x5ca9('0x1b')](_0x2815b9[_0x5ca9('0xb')],'remove',(_0x1329be,_0x85c974)=>{this[_0x5ca9('0x8')][_0x5ca9('0x16')](_0x85c974);}),this[_0x5ca9('0x1b')](_0x2815b9['view'][_0x5ca9('0x20')],_0x5ca9('0x18'),(_0x5bc089,_0x1bd36b,_0x457b9a)=>{_0x457b9a&&this['fire'](_0x5ca9('0xd'),_0x2815b9);}),_0x2815b9[_0x5ca9('0x17')]();const _0x128b47=this[_0x5ca9('0x21')](_0x2815b9[_0x5ca9('0x19')][_0x5ca9('0x9')]);super[_0x5ca9('0xa')](_0x2815b9,_0x128b47);}['remove'](_0x41c10c){if(!this[_0x5ca9('0x1a')](_0x41c10c))throw new _0x168375(_0x5ca9('0x1e'),null);this[_0x5ca9('0x13')](_0x41c10c[_0x5ca9('0x19')][_0x5ca9('0x20')]),this['stopListening'](_0x41c10c[_0x5ca9('0xb')]);for(const _0x20d953 of _0x41c10c[_0x5ca9('0xb')])this['_focusTracker']['remove'](_0x20d953);this[_0x5ca9('0x4')][_0x5ca9('0x0')](_0x41c10c[_0x5ca9('0x19')]),this[_0x5ca9('0x12')][_0x5ca9('0x0')](_0x41c10c[_0x5ca9('0x3')]),super[_0x5ca9('0x16')](_0x41c10c);}['getByInnerView'](_0x5f28b1){return this[_0x5ca9('0x12')][_0x5ca9('0x1')](_0x5f28b1);}['getByView'](_0x43beff){return this['_viewToAnnotation']['get'](_0x43beff);}[_0x5ca9('0x14')](){super['clear'](),this[_0x5ca9('0x13')](),this['_innerViewToAnnotation'][_0x5ca9('0x11')](),this[_0x5ca9('0x4')][_0x5ca9('0x11')](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5593fd of this)_0x5593fd['updateTargetRect']();this[_0x5ca9('0x2')]();}[_0x5ca9('0x2')](){const _0x411b83=Array[_0x5ca9('0x6')](this)['sort']((_0x5d4998,_0x39a42c)=>y(_0x5d4998[_0x5ca9('0x19')][_0x5ca9('0x9')],_0x39a42c[_0x5ca9('0x19')]['targetRect']));for(let _0x24c7f2=_0x411b83[_0x5ca9('0x1c')]-0x1;_0x24c7f2>0x0;_0x24c7f2--){const _0x506fa6=_0x411b83[_0x24c7f2];_0x24c7f2!==this[_0x5ca9('0x10')](_0x506fa6)&&(this['remove'](_0x506fa6),this[_0x5ca9('0xa')](_0x506fa6,_0x24c7f2));}}[_0x5ca9('0x21')](_0x501b51){let _0x1eed03=0x0;if(!_0x501b51)return this[_0x5ca9('0xc')]['length'];for(const _0x11e978 of this){const _0x5c37e8=_0x11e978[_0x5ca9('0x19')]['targetRect'];if(_0x5c37e8){if(y(_0x501b51,_0x5c37e8)<0x0)return _0x1eed03;_0x1eed03++;}}return _0x1eed03;}}export function bindAnnotationCollections({source:_0x11e2d3,target:_0x131a42,filter:_0x3cc393}){for(const _0x5979c0 of _0x11e2d3)_0x3cc393(_0x5979c0)&&_0x131a42[_0x5ca9('0xa')](_0x5979c0);_0x131a42['listenTo'](_0x11e2d3,_0x5ca9('0xa'),(_0x4a7981,_0x3530b7)=>{_0x3cc393(_0x3530b7)&&_0x131a42['add'](_0x3530b7);}),_0x131a42['listenTo'](_0x11e2d3,_0x5ca9('0x16'),(_0x581f4b,_0x405fca)=>{_0x131a42[_0x5ca9('0x1a')](_0x405fca)&&_0x131a42[_0x5ca9('0x16')](_0x405fca);});}function y(_0x4dac6e,_0x3ce51c){if(null===_0x4dac6e&&null===_0x3ce51c)return 0x0;if(null===_0x4dac6e)return-0x1;if(null===_0x3ce51c)return 0x1;const _0x3235d3=_0x4dac6e[_0x5ca9('0x1d')]-_0x3ce51c[_0x5ca9('0x1d')];return 0x0==_0x3235d3?_0x4dac6e[_0x5ca9('0xe')]-_0x3ce51c[_0x5ca9('0xe')]:_0x3235d3;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5842=['remove','deactivateAll','has','_visibleAnnotations','refreshVisibility','collection','destroy','pluginName','source','getByInnerView','_bindAnnotationsToVisibleAnnotations','delete','stopListening','set','fire','_addActiveAnnotation','activeAnnotations','refreshPositioning','change:isVisible','isVisible','createAnnotationView','_deactivateAllAnnotations','listenTo','add'];(function(_0x5ae431,_0x58422c){const _0x21efb3=function(_0x8073c6){while(--_0x8073c6){_0x5ae431['push'](_0x5ae431['shift']());}};_0x21efb3(++_0x58422c);}(_0x5842,0x1e2));const _0x21ef=function(_0x5ae431,_0x58422c){_0x5ae431=_0x5ae431-0x0;let _0x21efb3=_0x5842[_0x5ae431];return _0x21efb3;};import{ContextPlugin as _0x36be73}from'ckeditor5/src/core';import _0x3698b7 from'./annotation';import _0x34080d from'./annotationcollection';import _0x1ddde2 from'./view/annotationview';export default class V extends _0x36be73{static get[_0x21ef('0x5')](){return'Annotations';}constructor(_0x183dd9){super(_0x183dd9),this[_0x21ef('0x3')]=new _0x34080d(),this[_0x21ef('0x1')]=new _0x34080d(),this[_0x21ef('0xb')](_0x21ef('0xe'),new Set()),this[_0x21ef('0x8')]();}['add'](_0x51af85){this[_0x21ef('0x3')][_0x21ef('0x15')](_0x51af85);}['remove'](_0xb13804){this['collection'][_0x21ef('0x16')](_0xb13804),_0xb13804[_0x21ef('0x4')]();}[_0x21ef('0x2')](){for(const _0x2d834e of this[_0x21ef('0x3')])_0x2d834e['refreshVisibility']();}['refreshPositioning'](){this[_0x21ef('0x1')][_0x21ef('0xf')]();}[_0x21ef('0x7')](_0x1abc05){return this[_0x21ef('0x3')]['getByInnerView'](_0x1abc05);}[_0x21ef('0x17')](){this[_0x21ef('0xc')](_0x21ef('0x13'));}['destroy'](){for(const _0x2e6665 of this[_0x21ef('0x3')])_0x2e6665[_0x21ef('0x4')]();this['_visibleAnnotations']['destroy'](),this[_0x21ef('0x3')][_0x21ef('0x4')](),super[_0x21ef('0x4')]();}['activate'](_0x16d6dd){this[_0x21ef('0xc')]('_activateAnnotation',_0x16d6dd);}['createAnnotation'](_0x52402b){return new _0x3698b7(_0x52402b);}[_0x21ef('0x12')](_0x3e3ce4,_0x1f836a){return new _0x1ddde2(_0x3e3ce4,_0x1f836a);}[_0x21ef('0xd')](_0x54fef6){const _0x34b877=new Set(this[_0x21ef('0xe')]);_0x34b877[_0x21ef('0x15')](_0x54fef6),this['activeAnnotations']=_0x34b877;}['_removeActiveAnnotation'](_0x280d14){const _0x290853=new Set(this['activeAnnotations']);_0x290853[_0x21ef('0x9')](_0x280d14),this[_0x21ef('0xe')]=_0x290853;}[_0x21ef('0x8')](){const _0x3cfd2f=this[_0x21ef('0x3')],_0xd333b4=this[_0x21ef('0x1')];function _0x31c03f(_0x15af72){const _0x1bb0c9=_0x15af72[_0x21ef('0x6')];_0x1bb0c9[_0x21ef('0x11')]&&!_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)?_0xd333b4['add'](_0x1bb0c9):!_0x1bb0c9['isVisible']&&_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)&&_0xd333b4['remove'](_0x1bb0c9);}this['listenTo'](_0x3cfd2f,_0x21ef('0x15'),(_0xcaed09,_0x18b82c)=>{_0x18b82c['isVisible']&&_0xd333b4[_0x21ef('0x15')](_0x18b82c),this[_0x21ef('0x14')](_0x18b82c,_0x21ef('0x10'),_0x31c03f);}),this[_0x21ef('0x14')](_0x3cfd2f,_0x21ef('0x16'),(_0x18018a,_0x224be8)=>{_0xd333b4[_0x21ef('0x0')](_0x224be8)&&_0xd333b4[_0x21ef('0x16')](_0x224be8),this[_0x21ef('0xa')](_0x224be8,_0x21ef('0x10'),_0x31c03f);});}}
23
+ const _0x3adf=['_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','add','getByInnerView','remove','activeAnnotations','_removeActiveAnnotation','_addActiveAnnotation','createAnnotationView','collection','refreshVisibility','fire','activate','destroy','_activateAnnotation','change:isVisible','isVisible','has','createAnnotation','_deactivateAllAnnotations','Annotations','deactivateAll','delete','listenTo','source','stopListening','pluginName','refreshPositioning'];(function(_0x4168a3,_0x3adf9b){const _0x744091=function(_0x39873e){while(--_0x39873e){_0x4168a3['push'](_0x4168a3['shift']());}};_0x744091(++_0x3adf9b);}(_0x3adf,0x75));const _0x7440=function(_0x4168a3,_0x3adf9b){_0x4168a3=_0x4168a3-0x0;let _0x744091=_0x3adf[_0x4168a3];return _0x744091;};import{ContextPlugin as _0x9e3f0a}from'ckeditor5/src/core';import _0x309f3b from'./annotation';import _0x117566 from'./annotationcollection';import _0x3af509 from'./view/annotationview';export default class V extends _0x9e3f0a{static get[_0x7440('0x15')](){return _0x7440('0xf');}constructor(_0x270c31){super(_0x270c31),this[_0x7440('0x4')]=new _0x117566(),this[_0x7440('0x18')]=new _0x117566(),this['set'](_0x7440('0x0'),new Set()),this[_0x7440('0x17')]();}['add'](_0x68a5f3){this[_0x7440('0x4')][_0x7440('0x19')](_0x68a5f3);}['remove'](_0x2e8e78){this['collection']['remove'](_0x2e8e78),_0x2e8e78[_0x7440('0x8')]();}[_0x7440('0x5')](){for(const _0x1adea4 of this['collection'])_0x1adea4[_0x7440('0x5')]();}['refreshPositioning'](){this['_visibleAnnotations'][_0x7440('0x16')]();}[_0x7440('0x1a')](_0x3c0812){return this[_0x7440('0x4')][_0x7440('0x1a')](_0x3c0812);}[_0x7440('0x10')](){this[_0x7440('0x6')](_0x7440('0xe'));}[_0x7440('0x8')](){for(const _0x292b28 of this[_0x7440('0x4')])_0x292b28[_0x7440('0x8')]();this[_0x7440('0x18')][_0x7440('0x8')](),this[_0x7440('0x4')][_0x7440('0x8')](),super[_0x7440('0x8')]();}[_0x7440('0x7')](_0x45178c){this[_0x7440('0x6')](_0x7440('0x9'),_0x45178c);}[_0x7440('0xd')](_0x35dd1e){return new _0x309f3b(_0x35dd1e);}[_0x7440('0x3')](_0x1aa5aa,_0x560848){return new _0x3af509(_0x1aa5aa,_0x560848);}[_0x7440('0x2')](_0x5f2348){const _0xb08fc7=new Set(this[_0x7440('0x0')]);_0xb08fc7[_0x7440('0x19')](_0x5f2348),this['activeAnnotations']=_0xb08fc7;}[_0x7440('0x1')](_0x237cf6){const _0x39c553=new Set(this[_0x7440('0x0')]);_0x39c553[_0x7440('0x11')](_0x237cf6),this['activeAnnotations']=_0x39c553;}[_0x7440('0x17')](){const _0x489d79=this[_0x7440('0x4')],_0x4b5ced=this[_0x7440('0x18')];function _0x1708b5(_0x4b5342){const _0x5dbefb=_0x4b5342[_0x7440('0x13')];_0x5dbefb[_0x7440('0xb')]&&!_0x4b5ced[_0x7440('0xc')](_0x5dbefb)?_0x4b5ced['add'](_0x5dbefb):!_0x5dbefb[_0x7440('0xb')]&&_0x4b5ced['has'](_0x5dbefb)&&_0x4b5ced[_0x7440('0x1b')](_0x5dbefb);}this['listenTo'](_0x489d79,'add',(_0x1be9ac,_0x4b449c)=>{_0x4b449c['isVisible']&&_0x4b5ced['add'](_0x4b449c),this[_0x7440('0x12')](_0x4b449c,_0x7440('0xa'),_0x1708b5);}),this['listenTo'](_0x489d79,_0x7440('0x1b'),(_0x2e0d9c,_0x515146)=>{_0x4b5ced[_0x7440('0xc')](_0x515146)&&_0x4b5ced[_0x7440('0x1b')](_0x515146),this[_0x7440('0x14')](_0x515146,_0x7440('0xa'),_0x1708b5);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dc1=['deactivateAll','detach','context','has','plugins','hasActive','annotationsuis-register-already-registered','activeUIs','stopListening','pluginName','init','remove','_removeActiveAnnotation','function','find','delete','_activateAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','from','length','activate','switchTo','annotationsuis-activate-missing-ui','collection','_deactivateAllAnnotations','_uisData','isActive','deactivate','listenTo','set','requires','push','filter','_uis','setActiveAnnotation','_addActiveAnnotation','add','_visibleAnnotations','register','destroy','_setSelectedAnnotations','attach','get','change:activeAnnotation'];(function(_0x468b57,_0x3dc14f){const _0x3279e2=function(_0xefba30){while(--_0xefba30){_0x468b57['push'](_0x468b57['shift']());}};_0x3279e2(++_0x3dc14f);}(_0x3dc1,0x18c));const _0x3279=function(_0x468b57,_0x3dc14f){_0x468b57=_0x468b57-0x0;let _0x3279e2=_0x3dc1[_0x468b57];return _0x3279e2;};import{ContextPlugin as _0x1f9a68}from'ckeditor5/src/core';import{CKEditorError as _0x562f3a}from'ckeditor5/src/utils';import _0x4b240f,{bindAnnotationCollections as _0x1da3cd}from'./annotationcollection';import _0x4eaeb2 from'./annotations';export default class I extends _0x1f9a68{static get[_0x3279('0x1e')](){return[_0x4eaeb2];}static get[_0x3279('0x9')](){return'AnnotationsUIs';}constructor(_0xd0e870){super(_0xd0e870),this[_0x3279('0x7')]=new Set(),this[_0x3279('0x21')]=new Map(),this[_0x3279('0x19')]=new Map();}[_0x3279('0xa')](){const _0x45cc69=this[_0x3279('0x2')]['plugins'][_0x3279('0x2a')](_0x4eaeb2);this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x10'),(_0x120e8d,_0x481394)=>{for(const _0x2c4d05 of this[_0x3279('0x7')]){const _0x1d8cf1=this['_uis'][_0x3279('0x2a')](_0x2c4d05);(0x0,this['_uisData'][_0x3279('0x2a')](_0x2c4d05)[_0x3279('0x20')])(_0x481394)&&_0x1d8cf1[_0x3279('0x22')](_0x481394);}}),this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x18'),()=>{for(const _0x2b2495 of this[_0x3279('0x7')]){this[_0x3279('0x21')][_0x3279('0x2a')](_0x2b2495)[_0x3279('0x22')](null);}}),this[_0x3279('0x1c')](_0x45cc69['_visibleAnnotations'],_0x3279('0x24'),(_0x445d05,_0x2f1717)=>{this[_0x3279('0x11')](_0x2f1717);});}[_0x3279('0x5')](){return this[_0x3279('0x7')]['size']>0x0;}[_0x3279('0x1a')](_0x3894fb){return this['activeUIs'][_0x3279('0x3')](_0x3894fb);}[_0x3279('0x14')](_0x3e4dbb,_0x3aa44f=()=>!0x0){const _0x1b577a=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2);if(!this['_uis'][_0x3279('0x3')](_0x3e4dbb))throw new _0x562f3a(_0x3279('0x16'),this,{'uiName':_0x3e4dbb});this[_0x3279('0x1a')](_0x3e4dbb)&&this['deactivate'](_0x3e4dbb),this[_0x3279('0x7')][_0x3279('0x24')](_0x3e4dbb);const _0x549d1e=new _0x4b240f(),_0x3edf12=_0x1b577a[_0x3279('0x25')];_0x1da3cd({'source':_0x3edf12,'target':_0x549d1e,'filter':_0x3aa44f}),this[_0x3279('0x19')]['set'](_0x3e4dbb,{'collection':_0x549d1e,'filter':_0x3aa44f});const _0x5ae9c2=this['_uis'][_0x3279('0x2a')](_0x3e4dbb);_0x5ae9c2[_0x3279('0x29')](_0x549d1e),this[_0x3279('0x1c')](_0x5ae9c2,_0x3279('0x2b'),(_0x445ebe,_0x4111be,_0x42d8fa,_0x1a1e01)=>{_0x1a1e01&&_0x1b577a[_0x3279('0xc')](_0x1a1e01),_0x42d8fa&&_0x1b577a[_0x3279('0x23')](_0x42d8fa);});}[_0x3279('0x1b')](_0x1c87cd){this[_0x3279('0x7')][_0x3279('0xf')](_0x1c87cd);const _0x42df47=this[_0x3279('0x21')][_0x3279('0x2a')](_0x1c87cd);_0x42df47[_0x3279('0x1')](),this[_0x3279('0x8')](_0x42df47),this[_0x3279('0x19')][_0x3279('0x2a')](_0x1c87cd)[_0x3279('0x17')][_0x3279('0x27')](),this[_0x3279('0x19')][_0x3279('0xf')](_0x1c87cd);}[_0x3279('0x15')](_0x22bec5){const _0x3a5cab=this['context'][_0x3279('0x4')][_0x3279('0x2a')](_0x4eaeb2),_0x3318b1=Array[_0x3279('0x12')](_0x3a5cab['activeAnnotations'])[0x0]||null;this[_0x3279('0x0')](),this[_0x3279('0x14')](_0x22bec5);const _0x30f5e2=this[_0x3279('0x21')]['get'](_0x22bec5);_0x30f5e2[_0x3279('0x22')](_0x3318b1),_0x30f5e2[_0x3279('0x28')]&&_0x3318b1&&_0x30f5e2[_0x3279('0x28')]([_0x3318b1]);}[_0x3279('0x0')](){for(const _0x4b6e2e of this[_0x3279('0x7')])this[_0x3279('0x1b')](_0x4b6e2e);}[_0x3279('0x26')](_0x1e8d1b,_0x3156c5){if(this[_0x3279('0x21')][_0x3279('0x3')](_0x1e8d1b))throw new _0x562f3a(_0x3279('0x6'));if(_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x29')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x1')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x22')])throw new _0x562f3a('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1e8d1b,_0x3156c5);}['refilterAnnotations'](){const _0x376d6f=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2)[_0x3279('0x17')],_0x457ad1=new Map(),_0x1e9345=Array[_0x3279('0x12')](this[_0x3279('0x7')]);for(const _0x1b249f of this[_0x3279('0x7')]){const _0xb4e296=this[_0x3279('0x19')]['get'](_0x1b249f)[_0x3279('0x17')];for(const _0x6c1b10 of _0xb4e296)_0x457ad1[_0x3279('0x1d')](_0x6c1b10,_0x1b249f);}for(const _0x23aea4 of _0x376d6f){const _0x54ac7a=_0x457ad1[_0x3279('0x2a')](_0x23aea4);this[_0x3279('0x11')](_0x23aea4);const _0x26faf4=_0x1e9345[_0x3279('0xe')](_0x5dd1f8=>this[_0x3279('0x19')][_0x3279('0x2a')](_0x5dd1f8)[_0x3279('0x20')](_0x23aea4));_0x54ac7a!==_0x26faf4&&(_0x54ac7a&&this['_uisData'][_0x3279('0x2a')](_0x54ac7a)[_0x3279('0x17')][_0x3279('0xb')](_0x23aea4),_0x26faf4&&this[_0x3279('0x19')]['get'](_0x26faf4)[_0x3279('0x17')]['add'](_0x23aea4));}}[_0x3279('0x27')](){this[_0x3279('0x0')](),super[_0x3279('0x27')]();}[_0x3279('0x11')](_0x2921a7){const _0x42d493=[];for(const _0x34224a of this[_0x3279('0x7')]){(0x0,this[_0x3279('0x19')][_0x3279('0x2a')](_0x34224a)[_0x3279('0x20')])(_0x2921a7)&&_0x42d493[_0x3279('0x1f')](_0x34224a);}if(_0x42d493[_0x3279('0x13')]>0x1)throw new _0x562f3a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x42d493,'annotationType':_0x2921a7['type']});}}
23
+ const _0x5b78=['register','has','deactivateAll','length','listenTo','get','isActive','attach','requires','push','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','_activateAnnotation','add','context','delete','_addActiveAnnotation','activeUIs','detach','plugins','_removeActiveAnnotation','set','function','annotationsuis-activate-missing-ui','annotationsuis-register-already-registered','AnnotationsUIs','switchTo','_uisData','deactivate','_setSelectedAnnotations','activate','type','destroy','pluginName','change:activeAnnotation','size','init','remove','find','filter','from','activeAnnotations','stopListening','collection','refilterAnnotations','_visibleAnnotations','_uis','_deactivateAllAnnotations'];(function(_0xc0a410,_0x5b7869){const _0x400af0=function(_0xa50125){while(--_0xa50125){_0xc0a410['push'](_0xc0a410['shift']());}};_0x400af0(++_0x5b7869);}(_0x5b78,0x96));const _0x400a=function(_0xc0a410,_0x5b7869){_0xc0a410=_0xc0a410-0x0;let _0x400af0=_0x5b78[_0xc0a410];return _0x400af0;};import{ContextPlugin as _0xd5e16e}from'ckeditor5/src/core';import{CKEditorError as _0x1e737f}from'ckeditor5/src/utils';import _0x26ac75,{bindAnnotationCollections as _0x5a5e12}from'./annotationcollection';import _0x406659 from'./annotations';export default class I extends _0xd5e16e{static get[_0x400a('0x2')](){return[_0x406659];}static get[_0x400a('0x1b')](){return _0x400a('0x13');}constructor(_0x103d5b){super(_0x103d5b),this[_0x400a('0xb')]=new Set(),this[_0x400a('0x28')]=new Map(),this[_0x400a('0x15')]=new Map();}[_0x400a('0x1e')](){const _0x2a3408=this[_0x400a('0x8')]['plugins']['get'](_0x406659);this['listenTo'](_0x2a3408,_0x400a('0x6'),(_0x1c92f7,_0x538f65)=>{for(const _0x3d121b of this['activeUIs']){const _0x15aa49=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3d121b);(0x0,this[_0x400a('0x15')][_0x400a('0x2f')](_0x3d121b)[_0x400a('0x21')])(_0x538f65)&&_0x15aa49['setActiveAnnotation'](_0x538f65);}}),this[_0x400a('0x2e')](_0x2a3408,_0x400a('0x29'),()=>{for(const _0x3ffb63 of this['activeUIs']){this['_uis'][_0x400a('0x2f')](_0x3ffb63)[_0x400a('0x5')](null);}}),this[_0x400a('0x2e')](_0x2a3408[_0x400a('0x27')],_0x400a('0x7'),(_0x1d2dc9,_0x5e2e66)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5e2e66);});}['hasActive'](){return this[_0x400a('0xb')][_0x400a('0x1d')]>0x0;}[_0x400a('0x0')](_0x3acbc1){return this['activeUIs'][_0x400a('0x2b')](_0x3acbc1);}[_0x400a('0x18')](_0x3806a2,_0x5e9d00=()=>!0x0){const _0x513841=this[_0x400a('0x8')]['plugins']['get'](_0x406659);if(!this[_0x400a('0x28')][_0x400a('0x2b')](_0x3806a2))throw new _0x1e737f(_0x400a('0x11'),this,{'uiName':_0x3806a2});this[_0x400a('0x0')](_0x3806a2)&&this[_0x400a('0x16')](_0x3806a2),this[_0x400a('0xb')][_0x400a('0x7')](_0x3806a2);const _0xdbeebd=new _0x26ac75(),_0x349cd6=_0x513841['_visibleAnnotations'];_0x5a5e12({'source':_0x349cd6,'target':_0xdbeebd,'filter':_0x5e9d00}),this[_0x400a('0x15')]['set'](_0x3806a2,{'collection':_0xdbeebd,'filter':_0x5e9d00});const _0x16077c=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3806a2);_0x16077c['attach'](_0xdbeebd),this[_0x400a('0x2e')](_0x16077c,_0x400a('0x1c'),(_0x767fb4,_0x235c7e,_0x4e7dbe,_0x2ee220)=>{_0x2ee220&&_0x513841[_0x400a('0xe')](_0x2ee220),_0x4e7dbe&&_0x513841[_0x400a('0xa')](_0x4e7dbe);});}[_0x400a('0x16')](_0x137afd){this[_0x400a('0xb')][_0x400a('0x9')](_0x137afd);const _0xb8f7c8=this[_0x400a('0x28')][_0x400a('0x2f')](_0x137afd);_0xb8f7c8[_0x400a('0xc')](),this[_0x400a('0x24')](_0xb8f7c8),this[_0x400a('0x15')][_0x400a('0x2f')](_0x137afd)[_0x400a('0x25')][_0x400a('0x1a')](),this[_0x400a('0x15')]['delete'](_0x137afd);}[_0x400a('0x14')](_0x3af3b5){const _0x95e586=this[_0x400a('0x8')][_0x400a('0xd')][_0x400a('0x2f')](_0x406659),_0xa6f2c2=Array['from'](_0x95e586[_0x400a('0x23')])[0x0]||null;this[_0x400a('0x2c')](),this[_0x400a('0x18')](_0x3af3b5);const _0x3cd7e4=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3af3b5);_0x3cd7e4['setActiveAnnotation'](_0xa6f2c2),_0x3cd7e4[_0x400a('0x17')]&&_0xa6f2c2&&_0x3cd7e4[_0x400a('0x17')]([_0xa6f2c2]);}['deactivateAll'](){for(const _0x36a712 of this[_0x400a('0xb')])this[_0x400a('0x16')](_0x36a712);}[_0x400a('0x2a')](_0x1c2ca9,_0x31901f){if(this[_0x400a('0x28')]['has'](_0x1c2ca9))throw new _0x1e737f(_0x400a('0x12'));if(_0x400a('0x10')!=typeof _0x31901f[_0x400a('0x1')]||_0x400a('0x10')!=typeof _0x31901f[_0x400a('0xc')]||'function'!=typeof _0x31901f[_0x400a('0x5')])throw new _0x1e737f('annotationsuis-register-invalid-interface',null);this[_0x400a('0x28')][_0x400a('0xf')](_0x1c2ca9,_0x31901f);}[_0x400a('0x26')](){const _0x34b1d0=this[_0x400a('0x8')][_0x400a('0xd')][_0x400a('0x2f')](_0x406659)[_0x400a('0x25')],_0x208903=new Map(),_0x39b9ce=Array[_0x400a('0x22')](this[_0x400a('0xb')]);for(const _0x43c1a6 of this['activeUIs']){const _0x394db2=this[_0x400a('0x15')]['get'](_0x43c1a6)['collection'];for(const _0x28298a of _0x394db2)_0x208903[_0x400a('0xf')](_0x28298a,_0x43c1a6);}for(const _0x528585 of _0x34b1d0){const _0x516f50=_0x208903[_0x400a('0x2f')](_0x528585);this[_0x400a('0x4')](_0x528585);const _0x3e5531=_0x39b9ce[_0x400a('0x20')](_0x3290b2=>this[_0x400a('0x15')]['get'](_0x3290b2)[_0x400a('0x21')](_0x528585));_0x516f50!==_0x3e5531&&(_0x516f50&&this[_0x400a('0x15')][_0x400a('0x2f')](_0x516f50)['collection'][_0x400a('0x1f')](_0x528585),_0x3e5531&&this[_0x400a('0x15')]['get'](_0x3e5531)[_0x400a('0x25')][_0x400a('0x7')](_0x528585));}}[_0x400a('0x1a')](){this['deactivateAll'](),super[_0x400a('0x1a')]();}[_0x400a('0x4')](_0xfcb97d){const _0x142cff=[];for(const _0x15e543 of this[_0x400a('0xb')]){(0x0,this[_0x400a('0x15')][_0x400a('0x2f')](_0x15e543)[_0x400a('0x21')])(_0xfcb97d)&&_0x142cff[_0x400a('0x3')](_0x15e543);}if(_0x142cff[_0x400a('0x2d')]>0x1)throw new _0x1e737f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x142cff,'annotationType':_0xfcb97d[_0x400a('0x19')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11ac=['update','refreshSelectedViews','registerAnnotation','listenTo','_editorAnnotations','refresh','view','editing','selection','add','_dataCollectors','getByInnerView','element','getRanges','editorannotations-invalid-source-callback','innerView','requires','has','getOrderedSelectedAnnotations','function','remove','push','_editorAnnotationsData','fire','isCollapsed','set','editor','range','model','document','get','blur','hasDomSelection','annotation','focusTracker','EditorAnnotations','isReadOnly','collection','delete','from','change:isFocused','pluginName'];(function(_0x5cadf7,_0x11ac2b){const _0x1a532b=function(_0x3d7f06){while(--_0x3d7f06){_0x5cadf7['push'](_0x5cadf7['shift']());}};_0x1a532b(++_0x11ac2b);}(_0x11ac,0x1e9));const _0x1a53=function(_0x5cadf7,_0x11ac2b){_0x5cadf7=_0x5cadf7-0x0;let _0x1a532b=_0x11ac[_0x5cadf7];return _0x1a532b;};import{Plugin as _0x360b8c}from'ckeditor5/src/core';import{CKEditorError as _0x519dd1}from'ckeditor5/src/utils';import{debounce as _0x58cb69}from'lodash-es';import _0x27a99c from'./annotations';export default class k extends _0x360b8c{static get[_0x1a53('0x1f')](){return[_0x27a99c];}static get[_0x1a53('0xe')](){return _0x1a53('0x8');}constructor(_0x51a8b0){super(_0x51a8b0),this[_0x1a53('0x19')]=new Set(),this[_0x1a53('0x13')]=new Set();}['init'](){const _0x2bf161=this[_0x1a53('0x29')],_0x349887=_0x2bf161[_0x1a53('0x1')][_0x1a53('0x2')][_0x1a53('0x17')],_0x588b60=_0x58cb69(()=>this['refreshSelectedViews'](),0xa);_0x349887['on']('change:range',(_0x41e279,_0x5bddde)=>{_0x5bddde['directChange']&&(_0x588b60['cancel'](),this[_0x1a53('0x10')]());}),this[_0x1a53('0x12')](_0x2bf161[_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x2')],_0x1a53('0xd'),(_0x2ec7b7,_0x46544b,_0x3e35c0)=>{_0x3e35c0&&_0x588b60();}),this[_0x1a53('0x12')](_0x2bf161['ui'][_0x1a53('0x7')],_0x1a53('0xd'),(_0x5eb8f0,_0x4b5fcf,_0x37f955)=>{_0x37f955||_0x2bf161[_0x1a53('0x9')]||this[_0x1a53('0x26')](_0x1a53('0x4'),{'isAnnotationTracked':_0x1476b4=>this[_0x1a53('0x25')][_0x1a53('0x20')](_0x1476b4[_0x1a53('0x1e')])});}),this[_0x1a53('0x12')](this[_0x1a53('0x29')]['ui'],_0x1a53('0xf'),()=>this[_0x1a53('0x26')]('uiUpdate'));}[_0x1a53('0x11')](_0x14b7bd){if(this[_0x1a53('0x13')][_0x1a53('0x20')](_0x14b7bd))return;this[_0x1a53('0x13')]['add'](_0x14b7bd['view']),this[_0x1a53('0x29')]['ui']['focusTracker']['add'](_0x14b7bd[_0x1a53('0x15')][_0x1a53('0x1b')]);const _0x46022d=this[_0x1a53('0x29')]['plugins'][_0x1a53('0x3')](_0x27a99c);this['listenTo'](_0x46022d[_0x1a53('0xa')],_0x1a53('0x23'),(_0x4f1c01,_0x139296)=>{this['editor']['ui']['focusTracker'][_0x1a53('0x23')](_0x139296[_0x1a53('0x15')][_0x1a53('0x1b')]),this[_0x1a53('0x13')][_0x1a53('0xb')](_0x139296[_0x1a53('0x15')]);});}[_0x1a53('0x5')](){return this[_0x1a53('0x29')][_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x5')];}['addSourceCollector'](_0x260b9e){if(_0x1a53('0x22')!=typeof _0x260b9e)throw new _0x519dd1(_0x1a53('0x1d'));this[_0x1a53('0x19')][_0x1a53('0x18')](_0x260b9e);}['refreshSelectedViews'](){this[_0x1a53('0x26')](_0x1a53('0x14'));}[_0x1a53('0x21')]({activeAnnotation:_0x53ed40,annotations:_0x507042}){const _0x2b2819=[],_0x178077=this['editor'][_0x1a53('0x1')]['document']['selection'],_0xae70df=Array[_0x1a53('0xc')](_0x178077[_0x1a53('0x1c')]());for(const [_0x10ffc7,_0x21723d]of this[_0x1a53('0x25')]){const _0x4ab986=_0x3c6f73(_0x21723d),_0x5223e7=_0x507042[_0x1a53('0x1a')](_0x10ffc7);_0x4ab986&&_0x5223e7&&_0x2b2819[_0x1a53('0x24')]({'annotation':_0x5223e7,'range':_0x4ab986});}function _0x3c6f73(_0x1016a1){for(const _0x2d36a6 of _0x1016a1)for(const _0x57ec67 of _0xae70df)if(_0x2d36a6['containsRange'](_0x57ec67,!_0x178077[_0x1a53('0x27')]))return _0x2d36a6;return null;}return _0x2b2819['sort']((_0x203315,_0x4530b6)=>{const _0x49416d=_0x203315[_0x1a53('0x0')],_0x444836=_0x4530b6[_0x1a53('0x0')];if(!_0x49416d['isEqual'](_0x444836)){if(_0x49416d['containsRange'](_0x444836,!0x0))return 0x1;if(_0x444836['containsRange'](_0x49416d,!0x0))return-0x1;}return _0x203315['annotation']==_0x53ed40?-0x1:_0x4530b6['annotation']==_0x53ed40?0x1:0x0;})['map'](_0x2010cc=>_0x2010cc[_0x1a53('0x6')]);}get[_0x1a53('0x25')](){const _0x15d1fc=new Map();for(const _0xeb00c5 of Array[_0x1a53('0xc')](this['_dataCollectors']))for(const [_0x2771aa,_0x447ac2]of _0xeb00c5())_0x15d1fc[_0x1a53('0x28')](_0x2771aa,_0x447ac2);return _0x15d1fc;}}
23
+ const _0x4e1d=['editorannotations-invalid-source-callback','element','init','_dataCollectors','selection','change:isFocused','isCollapsed','listenTo','isReadOnly','delete','plugins','annotation','getRanges','editing','from','getByInnerView','focusTracker','directChange','model','document','hasDomSelection','uiUpdate','cancel','view','set','range','update','_editorAnnotationsData','editor','add','fire','has','addSourceCollector','isEqual','push','refresh','_editorAnnotations','getOrderedSelectedAnnotations','containsRange','innerView','sort'];(function(_0x43ca6b,_0x4e1d5b){const _0x5c79a7=function(_0xa31a7b){while(--_0xa31a7b){_0x43ca6b['push'](_0x43ca6b['shift']());}};_0x5c79a7(++_0x4e1d5b);}(_0x4e1d,0x181));const _0x5c79=function(_0x43ca6b,_0x4e1d5b){_0x43ca6b=_0x43ca6b-0x0;let _0x5c79a7=_0x4e1d[_0x43ca6b];return _0x5c79a7;};import{Plugin as _0x278680}from'ckeditor5/src/core';import{CKEditorError as _0x472294}from'ckeditor5/src/utils';import{debounce as _0x5d444a}from'lodash-es';import _0xbc40e5 from'./annotations';export default class k extends _0x278680{static get['requires'](){return[_0xbc40e5];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x3a5217){super(_0x3a5217),this[_0x5c79('0x1c')]=new Set(),this[_0x5c79('0x14')]=new Set();}[_0x5c79('0x1b')](){const _0x2aeadf=this[_0x5c79('0xc')],_0xf1d4e8=_0x2aeadf[_0x5c79('0x2')][_0x5c79('0x3')][_0x5c79('0x1d')],_0x2c9bd4=_0x5d444a(()=>this['refreshSelectedViews'](),0xa);_0xf1d4e8['on']('change:range',(_0xa37be5,_0x409c67)=>{_0x409c67[_0x5c79('0x1')]&&(_0x2c9bd4[_0x5c79('0x6')](),this['refreshSelectedViews']());}),this[_0x5c79('0x20')](_0x2aeadf[_0x5c79('0x26')]['view'][_0x5c79('0x3')],_0x5c79('0x1e'),(_0x449060,_0x53ea19,_0x48e8ec)=>{_0x48e8ec&&_0x2c9bd4();}),this[_0x5c79('0x20')](_0x2aeadf['ui']['focusTracker'],_0x5c79('0x1e'),(_0x3a5339,_0x3658a3,_0x40731c)=>{_0x40731c||_0x2aeadf[_0x5c79('0x21')]||this[_0x5c79('0xe')]('blur',{'isAnnotationTracked':_0x30630e=>this['_editorAnnotationsData'][_0x5c79('0xf')](_0x30630e[_0x5c79('0x17')])});}),this[_0x5c79('0x20')](this[_0x5c79('0xc')]['ui'],_0x5c79('0xa'),()=>this[_0x5c79('0xe')](_0x5c79('0x5')));}['registerAnnotation'](_0x41d767){if(this[_0x5c79('0x14')][_0x5c79('0xf')](_0x41d767))return;this['_editorAnnotations'][_0x5c79('0xd')](_0x41d767[_0x5c79('0x7')]),this[_0x5c79('0xc')]['ui'][_0x5c79('0x0')][_0x5c79('0xd')](_0x41d767[_0x5c79('0x7')][_0x5c79('0x1a')]);const _0x6ec069=this[_0x5c79('0xc')][_0x5c79('0x23')]['get'](_0xbc40e5);this['listenTo'](_0x6ec069['collection'],'remove',(_0x4c82c6,_0x14a565)=>{this[_0x5c79('0xc')]['ui'][_0x5c79('0x0')]['remove'](_0x14a565[_0x5c79('0x7')][_0x5c79('0x1a')]),this[_0x5c79('0x14')][_0x5c79('0x22')](_0x14a565['view']);});}['hasDomSelection'](){return this[_0x5c79('0xc')][_0x5c79('0x26')][_0x5c79('0x7')][_0x5c79('0x4')];}[_0x5c79('0x10')](_0x54e2af){if('function'!=typeof _0x54e2af)throw new _0x472294(_0x5c79('0x19'));this[_0x5c79('0x1c')][_0x5c79('0xd')](_0x54e2af);}['refreshSelectedViews'](){this[_0x5c79('0xe')](_0x5c79('0x13'));}[_0x5c79('0x15')]({activeAnnotation:_0x337a89,annotations:_0x110093}){const _0x2822d1=[],_0x57d36e=this[_0x5c79('0xc')][_0x5c79('0x2')]['document']['selection'],_0x3c01ec=Array[_0x5c79('0x27')](_0x57d36e[_0x5c79('0x25')]());for(const [_0xe17208,_0x4d8261]of this['_editorAnnotationsData']){const _0x576c1c=_0xbd5876(_0x4d8261),_0x2d8f4d=_0x110093[_0x5c79('0x28')](_0xe17208);_0x576c1c&&_0x2d8f4d&&_0x2822d1[_0x5c79('0x12')]({'annotation':_0x2d8f4d,'range':_0x576c1c});}function _0xbd5876(_0x5663d0){for(const _0x26c4ab of _0x5663d0)for(const _0x59050d of _0x3c01ec)if(_0x26c4ab[_0x5c79('0x16')](_0x59050d,!_0x57d36e[_0x5c79('0x1f')]))return _0x26c4ab;return null;}return _0x2822d1[_0x5c79('0x18')]((_0x4686b1,_0x4ff8a0)=>{const _0x22f224=_0x4686b1[_0x5c79('0x9')],_0x519a00=_0x4ff8a0[_0x5c79('0x9')];if(!_0x22f224[_0x5c79('0x11')](_0x519a00)){if(_0x22f224[_0x5c79('0x16')](_0x519a00,!0x0))return 0x1;if(_0x519a00[_0x5c79('0x16')](_0x22f224,!0x0))return-0x1;}return _0x4686b1[_0x5c79('0x24')]==_0x337a89?-0x1:_0x4ff8a0['annotation']==_0x337a89?0x1:0x0;})['map'](_0x2406ab=>_0x2406ab[_0x5c79('0x24')]);}get[_0x5c79('0xb')](){const _0x375cb7=new Map();for(const _0x1fdcfe of Array[_0x5c79('0x27')](this[_0x5c79('0x1c')]))for(const [_0x2930f7,_0xd24a53]of _0x1fdcfe())_0x375cb7[_0x5c79('0x8')](_0x2930f7,_0xd24a53);return _0x375cb7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2236=['hasActive','left','has','_forceRefresh','_manuallyClosed','pluginName','editableElement','Esc','attach','get','width','hasView','getBoundingClientRect','editor','afterInit','focus','switchTo','_addAnnotationToBalloon','top','requires','inlineannotations-detach-not-attached','isFocused','focusTracker','updatePosition','context','change:height','_closeAnnotation','every','plugins','inlineannotations-not-allowed-with-context','_balloon','init','_getBalloonTargetForAnnotation','update','refresh','includes','_removeAnnotationFromBalloon','selection','getFirstRange','view','change:visibleView','_addedAnnotations','find','getClientRects','setActiveAnnotation','register','map','mousedown','inline','annotations','isAttached','editing','length','clear','domConverter','fromRect','showStack','_selectedAnnotations','viewRangeToDom','activeAnnotation','bottom','_setSelectedAnnotations','push','targetRect','remove','getByView','isActive','from','document','getOrderedSelectedAnnotations','add','detach','destroy','visibleView','right','inlineannotations-attach-already-attached','change:isFocused','target','keystrokes','listenTo'];(function(_0x488c71,_0x223642){const _0x49a428=function(_0x20f5f3){while(--_0x20f5f3){_0x488c71['push'](_0x488c71['shift']());}};_0x49a428(++_0x223642);}(_0x2236,0x195));const _0x49a4=function(_0x488c71,_0x223642){_0x488c71=_0x488c71-0x0;let _0x49a428=_0x2236[_0x488c71];return _0x49a428;};import{Plugin as _0x570b26}from'ckeditor5/src/core';import _0x4c0da4 from'./annotationsuis';import _0x4e6973 from'./editorannotations';import{ContextualBalloon as _0x3375ef}from'ckeditor5/src/ui';import{MouseObserver as _0x3aede7}from'ckeditor5/src/engine';import{CKEditorError as _0x54a435,Rect as _0x16318c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x570b26{static get[_0x49a4('0xe')](){return[_0x4e6973,_0x3375ef,_0x4c0da4];}static get[_0x49a4('0x0')](){return'InlineAnnotations';}constructor(_0x396865){super(_0x396865),_0x396865[_0x49a4('0x2e')][_0x49a4('0x22')]['addObserver'](_0x3aede7),this['isAttached']=!0x1,this['set'](_0x49a4('0x36'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x49a4('0x19')]=_0x396865['plugins'][_0x49a4('0x4')](_0x3375ef),this[_0x49a4('0x24')]=new Set(),this['_selectedAnnotations']=[],this[_0x49a4('0x4e')]=!0x1;}[_0x49a4('0x1a')](){const _0x49fdad=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4);_0x49fdad[_0x49a4('0x13')]===this[_0x49a4('0x8')]&&(_0x49fdad[_0x49a4('0x28')](_0x49a4('0x2b'),this),this[_0x49a4('0x8')][_0x49a4('0x49')]['set']('Esc',(_0x52a247,_0x216b1d)=>{const _0x596f3=this[_0x49a4('0x19')];if(this[_0x49a4('0x2d')]&&_0x596f3[_0x49a4('0x44')]){const _0x57fe3a=this[_0x49a4('0x2c')][_0x49a4('0x3c')](_0x596f3['visibleView']);this[_0x49a4('0x15')](_0x57fe3a),_0x216b1d();}}));}[_0x49a4('0x9')](){const _0x5a1312=this[_0x49a4('0x8')][_0x49a4('0x17')]['get'](_0x4c0da4);_0x5a1312[_0x49a4('0x13')]===this['editor']&&(_0x5a1312[_0x49a4('0x4b')]()||_0x5a1312[_0x49a4('0xb')]('inline'));}[_0x49a4('0x27')](_0x477990){_0x477990!==this[_0x49a4('0x36')]&&(this[_0x49a4('0x36')]&&(this['activeAnnotation'][_0x49a4('0x3d')]=!0x1),_0x477990&&this[_0x49a4('0x8')]['ui'][_0x49a4('0x11')][_0x49a4('0x10')]&&(this[_0x49a4('0xc')](_0x477990,!0x0),_0x477990['isActive']=!0x0),_0x477990||this['_setSelectedAnnotations']([]),this[_0x49a4('0x36')]=_0x477990);}[_0x49a4('0x3')](_0x3f770b){this['annotations']=_0x3f770b;const _0x236bd7=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4),_0x544378=this['_balloon'];if(this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0x46'),this);if(_0x236bd7['context']!==this[_0x49a4('0x8')])throw new _0x54a435(_0x49a4('0x18'),this);const _0x5871c9=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')]('EditorAnnotations');this[_0x49a4('0x4a')](_0x5871c9,_0x49a4('0x1d'),function(){const _0x4837e8=_0x5871c9[_0x49a4('0x40')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x49a4('0x2c')]});if(!this['_forceRefresh']&&(_0x3e9396=_0x4837e8,_0x425a4f=this[_0x49a4('0x34')],_0x3e9396[_0x49a4('0x2f')]===_0x425a4f[_0x49a4('0x2f')]&&_0x3e9396[_0x49a4('0x16')](_0x2d87be=>_0x425a4f[_0x49a4('0x1e')](_0x2d87be))))return;var _0x3e9396,_0x425a4f;this[_0x49a4('0x4e')]=!0x1,this[_0x49a4('0x38')](_0x4837e8),this[_0x49a4('0x27')](_0x4837e8[0x0]||null);}['bind'](this)),this[_0x49a4('0x4a')](_0x5871c9,'blur',(_0x2ae2cd,{isAnnotationTracked:_0x400f5d})=>{this[_0x49a4('0x36')]&&_0x400f5d(this['activeAnnotation'])&&(this[_0x49a4('0x38')]([]),this[_0x49a4('0x27')](null));}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')]['ui']['focusTracker'],_0x49a4('0x47'),(_0x21f021,_0xd623c2,_0x5a3f7a)=>{_0x5a3f7a||this['setActiveAnnotation'](null);}),this[_0x49a4('0x4a')](_0x3f770b,_0x49a4('0x3b'),(_0x3a609c,_0x68813e)=>{this[_0x49a4('0x1f')](_0x68813e),_0x68813e===this[_0x49a4('0x36')]&&this[_0x49a4('0x27')](null);}),this['listenTo'](_0x544378,_0x49a4('0x23'),(_0x8b9687,_0x51e5d5,_0x30d708,_0x5a2f7f)=>{if(_0x5a2f7f&&this['stopListening'](_0x5a2f7f),!_0x30d708||!_0x3f770b['getByView'](_0x30d708))return;const _0x5c8f24=_0x3f770b[_0x49a4('0x3c')](_0x30d708);this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x14'),()=>{_0x544378[_0x49a4('0x12')]();}),this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x2'),()=>{this[_0x49a4('0x15')](_0x5c8f24),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')]();}),this['activeAnnotation']!==_0x5c8f24&&this[_0x49a4('0x27')](_0x5c8f24);}),this['listenTo'](this[_0x49a4('0x8')]['ui'],_0x49a4('0x1c'),()=>{_0x544378['visibleView']&&(_0x3f770b[_0x49a4('0x3c')](_0x544378[_0x49a4('0x44')])&&_0x544378[_0x49a4('0x12')]());}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')][_0x49a4('0x2e')]['view'][_0x49a4('0x3f')],_0x49a4('0x2a'),()=>{this[_0x49a4('0x4e')]=!0x0,this[_0x49a4('0x4f')][_0x49a4('0x30')]();}),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')]['document'][_0x49a4('0x20')][_0x49a4('0x1')]&&this[_0x49a4('0x8')][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')](),this[_0x49a4('0x2d')]=!0x0;}[_0x49a4('0x42')](){if(!this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0xf'),this);this[_0x49a4('0x27')](null);for(const _0x48813f of this['_addedAnnotations'])this[_0x49a4('0x1f')](_0x48813f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x49a4('0x43')](){this['isAttached']&&this[_0x49a4('0x42')]();}[_0x49a4('0x38')](_0x90d7a7){for(const _0x526d30 of this[_0x49a4('0x34')])_0x90d7a7[_0x49a4('0x1e')](_0x526d30)||this['_manuallyClosed']['delete'](_0x526d30);for(const _0x4ef536 of this[_0x49a4('0x2c')])_0x90d7a7[_0x49a4('0x1e')](_0x4ef536)||this[_0x49a4('0x1f')](_0x4ef536);if(this['editor']['ui']['focusTracker'][_0x49a4('0x10')])for(const _0x34664f of _0x90d7a7)this[_0x49a4('0xc')](_0x34664f);this[_0x49a4('0x34')]=_0x90d7a7;}[_0x49a4('0xc')](_0x5d4f78,_0x3668be){this[_0x49a4('0x4f')][_0x49a4('0x4d')](_0x5d4f78)||(this['_addedAnnotations'][_0x49a4('0x4d')](_0x5d4f78)||this[_0x49a4('0x19')][_0x49a4('0x6')](_0x5d4f78[_0x49a4('0x22')])||(this[_0x49a4('0x24')]['add'](_0x5d4f78),this[_0x49a4('0x19')]['add']({'stackId':_0x5d4f78[_0x49a4('0x22')]['id'],'view':_0x5d4f78['view'],'position':{'target':()=>this[_0x49a4('0x1b')](_0x5d4f78)}})),_0x3668be&&this[_0x49a4('0x19')][_0x49a4('0x33')](_0x5d4f78[_0x49a4('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x34b6b9){const _0xac1413=_0x34b6b9[_0x49a4('0x48')],_0xfc5c31=this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')],_0x31781c=_0xfc5c31['document'][_0x49a4('0x20')][_0x49a4('0x21')](),_0x2fe2c8=_0xfc5c31[_0x49a4('0x31')][_0x49a4('0x35')](_0x31781c);if(_0x2fe2c8['collapse'](!0x0),_0xac1413){if(_0xac1413 instanceof _0x16318c)return _0xac1413;let _0x577d1b=[];for(const _0x3af685 of _0xac1413)_0x577d1b['push'](...(_0x2298e4=_0x3af685[_0x49a4('0x26')](),Array[_0x49a4('0x3e')](_0x2298e4)[_0x49a4('0x29')](DOMRect[_0x49a4('0x32')])));_0x577d1b=function(_0x2a2694){const _0x6a7886=[];let _0x361402=_0x2a2694[0x0];for(let _0x4b68fd=0x1;_0x4b68fd<_0x2a2694[_0x49a4('0x2f')];_0x4b68fd++)E(_0x361402,_0x2a2694[_0x4b68fd])?_0x361402['width']+=_0x2a2694[_0x4b68fd][_0x49a4('0x5')]:(_0x6a7886[_0x49a4('0x39')](_0x361402),_0x361402=_0x2a2694[_0x4b68fd]);return _0x6a7886['push'](_0x361402),_0x6a7886;}(_0x577d1b);const _0x180488=_0x2fe2c8[_0x49a4('0x7')]();return _0x577d1b[_0x49a4('0x25')](_0x46894b=>_0x46894b[_0x49a4('0xd')]<=_0x180488[_0x49a4('0xd')]&&_0x46894b[_0x49a4('0x37')]>=_0x180488[_0x49a4('0x37')]&&_0x46894b['left']<=_0x180488[_0x49a4('0x4c')]&&_0x46894b[_0x49a4('0x45')]>=_0x180488['right'])||_0x577d1b[0x0];}var _0x2298e4;return _0x34b6b9[_0x49a4('0x3a')]||_0x2fe2c8;}['_removeAnnotationFromBalloon'](_0x480532){this[_0x49a4('0x24')][_0x49a4('0x4d')](_0x480532)&&this[_0x49a4('0x19')][_0x49a4('0x6')](_0x480532[_0x49a4('0x22')])&&(this[_0x49a4('0x24')]['delete'](_0x480532),this[_0x49a4('0x19')][_0x49a4('0x3b')](_0x480532['view']));}[_0x49a4('0x15')](_0x5d3286){this[_0x49a4('0x4f')][_0x49a4('0x41')](_0x5d3286),this[_0x49a4('0x1f')](_0x5d3286);}}function E(_0x57755b,_0x152910){return _0x57755b[_0x49a4('0xd')]===_0x152910['top']&&_0x57755b[_0x49a4('0x37')]===_0x152910[_0x49a4('0x37')]&&_0x57755b[_0x49a4('0x45')]===_0x152910[_0x49a4('0x4c')];}
23
+ const _0x40b7=['_getBalloonTargetForAnnotation','from','view','_removeAnnotationFromBalloon','editing','EditorAnnotations','left','_balloon','width','_addAnnotationToBalloon','right','clear','init','editor','switchTo','update','activeAnnotation','fromRect','getByView','push','inline','focusTracker','bind','destroy','InlineAnnotations','_addedAnnotations','_manuallyClosed','plugins','register','getClientRects','change:isFocused','setActiveAnnotation','hasActive','context','detach','stopListening','_selectedAnnotations','targetRect','getBoundingClientRect','inlineannotations-detach-not-attached','delete','_setSelectedAnnotations','hasView','_forceRefresh','isActive','change:height','isFocused','add','refresh','collapse','domConverter','isAttached','target','_closeAnnotation','focus','top','viewRangeToDom','map','inlineannotations-not-allowed-with-context','document','getOrderedSelectedAnnotations','blur','get','includes','editableElement','remove','length','getFirstRange','addObserver','has','bottom','updatePosition','Esc','annotations','mousedown','set','listenTo','change:visibleView','visibleView','requires'];(function(_0x54c76e,_0x40b76e){const _0x38ef2d=function(_0x424850){while(--_0x424850){_0x54c76e['push'](_0x54c76e['shift']());}};_0x38ef2d(++_0x40b76e);}(_0x40b7,0x1c8));const _0x38ef=function(_0x54c76e,_0x40b76e){_0x54c76e=_0x54c76e-0x0;let _0x38ef2d=_0x40b7[_0x54c76e];return _0x38ef2d;};import{Plugin as _0x18bedf}from'ckeditor5/src/core';import _0x2f6758 from'./annotationsuis';import _0xe0051d from'./editorannotations';import{ContextualBalloon as _0x398762}from'ckeditor5/src/ui';import{MouseObserver as _0x3ba011}from'ckeditor5/src/engine';import{CKEditorError as _0x411c6e,Rect as _0x5361ff}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x18bedf{static get[_0x38ef('0x17')](){return[_0xe0051d,_0x398762,_0x2f6758];}static get['pluginName'](){return _0x38ef('0x30');}constructor(_0x1dabc5){super(_0x1dabc5),_0x1dabc5[_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0xc')](_0x3ba011),this[_0x38ef('0x4b')]=!0x1,this[_0x38ef('0x13')](_0x38ef('0x28'),null),this[_0x38ef('0x11')]=null,this[_0x38ef('0x32')]=new Set(),this[_0x38ef('0x1f')]=_0x1dabc5[_0x38ef('0x33')]['get'](_0x398762),this[_0x38ef('0x31')]=new Set(),this['_selectedAnnotations']=[],this[_0x38ef('0x43')]=!0x1;}[_0x38ef('0x24')](){const _0xd93ce5=this[_0x38ef('0x25')]['plugins'][_0x38ef('0x6')](_0x2f6758);_0xd93ce5[_0x38ef('0x39')]===this[_0x38ef('0x25')]&&(_0xd93ce5[_0x38ef('0x34')]('inline',this),this[_0x38ef('0x25')]['keystrokes'][_0x38ef('0x13')](_0x38ef('0x10'),(_0x1f32b4,_0x4fd8dc)=>{const _0x1e5f44=this[_0x38ef('0x1f')];if(this[_0x38ef('0x4b')]&&_0x1e5f44[_0x38ef('0x16')]){const _0x3f9441=this[_0x38ef('0x11')][_0x38ef('0x2a')](_0x1e5f44[_0x38ef('0x16')]);this[_0x38ef('0x4d')](_0x3f9441),_0x4fd8dc();}}));}['afterInit'](){const _0xa74c34=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x2f6758);_0xa74c34['context']===this[_0x38ef('0x25')]&&(_0xa74c34[_0x38ef('0x38')]()||_0xa74c34[_0x38ef('0x26')](_0x38ef('0x2c')));}[_0x38ef('0x37')](_0x436e02){_0x436e02!==this[_0x38ef('0x28')]&&(this[_0x38ef('0x28')]&&(this['activeAnnotation']['isActive']=!0x1),_0x436e02&&this['editor']['ui'][_0x38ef('0x2d')][_0x38ef('0x46')]&&(this['_addAnnotationToBalloon'](_0x436e02,!0x0),_0x436e02[_0x38ef('0x44')]=!0x0),_0x436e02||this[_0x38ef('0x41')]([]),this[_0x38ef('0x28')]=_0x436e02);}['attach'](_0x5b18f1){this['annotations']=_0x5b18f1;const _0x73c722=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x2f6758),_0x1a9c99=this['_balloon'];if(this[_0x38ef('0x4b')])throw new _0x411c6e('inlineannotations-attach-already-attached',this);if(_0x73c722['context']!==this[_0x38ef('0x25')])throw new _0x411c6e(_0x38ef('0x2'),this);const _0x5cda68=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x38ef('0x1d'));this[_0x38ef('0x14')](_0x5cda68,_0x38ef('0x48'),function(){const _0x115afe=_0x5cda68[_0x38ef('0x4')]({'activeAnnotation':this[_0x38ef('0x28')],'annotations':this[_0x38ef('0x11')]});if(!this[_0x38ef('0x43')]&&(_0x33ced5=_0x115afe,_0x6f6dc0=this[_0x38ef('0x3c')],_0x33ced5[_0x38ef('0xa')]===_0x6f6dc0[_0x38ef('0xa')]&&_0x33ced5['every'](_0x5d038e=>_0x6f6dc0[_0x38ef('0x7')](_0x5d038e))))return;var _0x33ced5,_0x6f6dc0;this[_0x38ef('0x43')]=!0x1,this[_0x38ef('0x41')](_0x115afe),this['setActiveAnnotation'](_0x115afe[0x0]||null);}[_0x38ef('0x2e')](this)),this['listenTo'](_0x5cda68,_0x38ef('0x5'),(_0x368d26,{isAnnotationTracked:_0x20c005})=>{this[_0x38ef('0x28')]&&_0x20c005(this[_0x38ef('0x28')])&&(this[_0x38ef('0x41')]([]),this['setActiveAnnotation'](null));}),this[_0x38ef('0x14')](this['editor']['ui'][_0x38ef('0x2d')],_0x38ef('0x36'),(_0x341bf5,_0x3679b7,_0x50af51)=>{_0x50af51||this['setActiveAnnotation'](null);}),this[_0x38ef('0x14')](_0x5b18f1,_0x38ef('0x9'),(_0xf19305,_0x3e1674)=>{this[_0x38ef('0x1b')](_0x3e1674),_0x3e1674===this[_0x38ef('0x28')]&&this[_0x38ef('0x37')](null);}),this[_0x38ef('0x14')](_0x1a9c99,_0x38ef('0x15'),(_0x9c8f88,_0xc2aaaf,_0x29a3e6,_0x665785)=>{if(_0x665785&&this[_0x38ef('0x3b')](_0x665785),!_0x29a3e6||!_0x5b18f1[_0x38ef('0x2a')](_0x29a3e6))return;const _0x265384=_0x5b18f1[_0x38ef('0x2a')](_0x29a3e6);this['listenTo'](_0x29a3e6,_0x38ef('0x45'),()=>{_0x1a9c99['updatePosition']();}),this[_0x38ef('0x14')](_0x29a3e6,'Esc',()=>{this[_0x38ef('0x4d')](_0x265384),this['editor'][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x4e')]();}),this[_0x38ef('0x28')]!==_0x265384&&this['setActiveAnnotation'](_0x265384);}),this[_0x38ef('0x14')](this['editor']['ui'],_0x38ef('0x27'),()=>{_0x1a9c99['visibleView']&&(_0x5b18f1[_0x38ef('0x2a')](_0x1a9c99[_0x38ef('0x16')])&&_0x1a9c99[_0x38ef('0xf')]());}),this[_0x38ef('0x14')](this[_0x38ef('0x25')]['editing'][_0x38ef('0x1a')][_0x38ef('0x3')],_0x38ef('0x12'),()=>{this[_0x38ef('0x43')]=!0x0,this[_0x38ef('0x32')][_0x38ef('0x23')]();}),this[_0x38ef('0x25')][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x3')]['selection'][_0x38ef('0x8')]&&this[_0x38ef('0x25')][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x4e')](),this[_0x38ef('0x4b')]=!0x0;}[_0x38ef('0x3a')](){if(!this['isAttached'])throw new _0x411c6e(_0x38ef('0x3f'),this);this['setActiveAnnotation'](null);for(const _0x360fae of this[_0x38ef('0x31')])this[_0x38ef('0x1b')](_0x360fae);this[_0x38ef('0x3b')](),this['isAttached']=!0x1,this[_0x38ef('0x11')]=null;}[_0x38ef('0x2f')](){this[_0x38ef('0x4b')]&&this[_0x38ef('0x3a')]();}[_0x38ef('0x41')](_0x31568b){for(const _0x817894 of this[_0x38ef('0x3c')])_0x31568b[_0x38ef('0x7')](_0x817894)||this['_manuallyClosed']['delete'](_0x817894);for(const _0x3be14f of this[_0x38ef('0x11')])_0x31568b[_0x38ef('0x7')](_0x3be14f)||this[_0x38ef('0x1b')](_0x3be14f);if(this[_0x38ef('0x25')]['ui'][_0x38ef('0x2d')][_0x38ef('0x46')])for(const _0x4aa4dd of _0x31568b)this[_0x38ef('0x21')](_0x4aa4dd);this['_selectedAnnotations']=_0x31568b;}[_0x38ef('0x21')](_0x3cdc31,_0x19359b){this['_manuallyClosed'][_0x38ef('0xd')](_0x3cdc31)||(this[_0x38ef('0x31')][_0x38ef('0xd')](_0x3cdc31)||this[_0x38ef('0x1f')][_0x38ef('0x42')](_0x3cdc31[_0x38ef('0x1a')])||(this[_0x38ef('0x31')][_0x38ef('0x47')](_0x3cdc31),this[_0x38ef('0x1f')][_0x38ef('0x47')]({'stackId':_0x3cdc31[_0x38ef('0x1a')]['id'],'view':_0x3cdc31[_0x38ef('0x1a')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3cdc31)}})),_0x19359b&&this[_0x38ef('0x1f')]['showStack'](_0x3cdc31[_0x38ef('0x1a')]['id']));}[_0x38ef('0x18')](_0x3b1c4d){const _0xa38207=_0x3b1c4d[_0x38ef('0x4c')],_0x3ecb4e=this[_0x38ef('0x25')]['editing']['view'],_0x42549a=_0x3ecb4e[_0x38ef('0x3')]['selection'][_0x38ef('0xb')](),_0x13c74f=_0x3ecb4e[_0x38ef('0x4a')][_0x38ef('0x0')](_0x42549a);if(_0x13c74f[_0x38ef('0x49')](!0x0),_0xa38207){if(_0xa38207 instanceof _0x5361ff)return _0xa38207;let _0x117bd1=[];for(const _0x3e8d9c of _0xa38207)_0x117bd1[_0x38ef('0x2b')](...(_0x12476c=_0x3e8d9c[_0x38ef('0x35')](),Array[_0x38ef('0x19')](_0x12476c)[_0x38ef('0x1')](DOMRect[_0x38ef('0x29')])));_0x117bd1=function(_0x4606e2){const _0x8c0c4=[];let _0x42b478=_0x4606e2[0x0];for(let _0x180e25=0x1;_0x180e25<_0x4606e2[_0x38ef('0xa')];_0x180e25++)E(_0x42b478,_0x4606e2[_0x180e25])?_0x42b478['width']+=_0x4606e2[_0x180e25][_0x38ef('0x20')]:(_0x8c0c4['push'](_0x42b478),_0x42b478=_0x4606e2[_0x180e25]);return _0x8c0c4['push'](_0x42b478),_0x8c0c4;}(_0x117bd1);const _0x5f0da0=_0x13c74f[_0x38ef('0x3e')]();return _0x117bd1['find'](_0x37d6ab=>_0x37d6ab[_0x38ef('0x4f')]<=_0x5f0da0[_0x38ef('0x4f')]&&_0x37d6ab['bottom']>=_0x5f0da0[_0x38ef('0xe')]&&_0x37d6ab[_0x38ef('0x1e')]<=_0x5f0da0[_0x38ef('0x1e')]&&_0x37d6ab[_0x38ef('0x22')]>=_0x5f0da0[_0x38ef('0x22')])||_0x117bd1[0x0];}var _0x12476c;return _0x3b1c4d[_0x38ef('0x3d')]||_0x13c74f;}[_0x38ef('0x1b')](_0x36d5d1){this['_addedAnnotations'][_0x38ef('0xd')](_0x36d5d1)&&this[_0x38ef('0x1f')][_0x38ef('0x42')](_0x36d5d1[_0x38ef('0x1a')])&&(this[_0x38ef('0x31')][_0x38ef('0x40')](_0x36d5d1),this[_0x38ef('0x1f')]['remove'](_0x36d5d1[_0x38ef('0x1a')]));}[_0x38ef('0x4d')](_0x3043a3){this[_0x38ef('0x32')][_0x38ef('0x47')](_0x3043a3),this['_removeAnnotationFromBalloon'](_0x3043a3);}}function E(_0x8fd043,_0x1cab75){return _0x8fd043[_0x38ef('0x4f')]===_0x1cab75[_0x38ef('0x4f')]&&_0x8fd043['bottom']===_0x1cab75[_0x38ef('0xe')]&&_0x8fd043[_0x38ef('0x22')]===_0x1cab75[_0x38ef('0x1e')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ee8=['context','change:height','activeAnnotation','contains','EditorAnnotations','first','keydown','uiUpdate','_editorAnnotations','content','_refreshPositioningDebounced','unpin','delete','keyCode','_detachListeners','narrowSidebar','editors','listenTo','annotations','off','element','ck-sidebar--narrow','type','narrowsidebar-attach-already-attached','set','init','annotationType','_hideBalloon','_refreshPositioning','rearrange','detachFromDom','getSidebarItemView','isAttached','get','preventClosingBalloon','getOrderedSelectedAnnotations','stopPropagation','southArrowNorthEast','_attachListeners','_destroyEditorAnnotationsIntegration','defaultPositions','NarrowSidebar','resize','_integrateWithEditorAnnotations','bind','addAnnotation','_annotationToNarrowView','balloonPanelView','has','length','stop','_setSelectedAnnotations','view','narrowsidebar-detach-not-attached','high','getByView','_detachFromContainer','plugins','attach','Esc','_showBalloon','bodyCollection','add','removeEventListener','focus','isDirty','execute','low','preventDefault','_selectedAnnotations','ready','change:container','stopListening','target','detach','pin','_manuallyClosedAnnotationViews','requires','cancel','number','includes','remove','Sidebar','_updateBalloonPosition','hasDomSelection','locale','destroy','clear','blur','create','isVisible','setActiveAnnotation','_domEmitter','refresh'];(function(_0x21b1d9,_0x2ee85d){const _0x9ea00=function(_0x365859){while(--_0x365859){_0x21b1d9['push'](_0x21b1d9['shift']());}};_0x9ea00(++_0x2ee85d);}(_0x2ee8,0xf1));const _0x9ea0=function(_0x21b1d9,_0x2ee85d){_0x21b1d9=_0x21b1d9-0x0;let _0x9ea00=_0x2ee8[_0x21b1d9];return _0x9ea00;};import{ContextPlugin as _0x3a5597}from'ckeditor5/src/core';import _0x465548 from'./annotationsuis';import _0x250618 from'./sidebar';import _0x43d1ed from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2b59da,BodyCollection as _0x41bf5e}from'ckeditor5/src/ui';import{CKEditorError as _0x2dffc6,DomEmitterMixin as _0x1b0d2d,keyCodes as _0x38f2e4,Collection as _0x24df3d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3cbe4e}from'lodash-es';export default class s extends _0x3a5597{static get[_0x9ea0('0x18')](){return[_0x250618,_0x465548];}static get['pluginName'](){return _0x9ea0('0x52');}constructor(_0x3794b1){super(_0x3794b1),this[_0x9ea0('0x49')]=!0x1,this[_0x9ea0('0x17')]=new Set(),this['_domEmitter']=Object[_0x9ea0('0x24')](_0x1b0d2d),this[_0x9ea0('0x57')]=new Map(),this[_0x9ea0('0x41')](_0x9ea0('0x2b'),null),this[_0x9ea0('0x3b')]=null,this['_selectedAnnotations']=[],this[_0x9ea0('0x31')]=new _0x24df3d(),this[_0x9ea0('0x33')]=_0x3cbe4e(()=>{this[_0x9ea0('0x45')]();},0xfa,{'leading':!0x1});}[_0x9ea0('0x42')](){this['context'][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x465548)['register'](_0x9ea0('0x38'),this),this[_0x9ea0('0x8')]=new _0x41bf5e(this[_0x9ea0('0x29')][_0x9ea0('0x20')]),this['balloonPanelView']=new _0x2b59da(this['context'][_0x9ea0('0x20')]),this[_0x9ea0('0x8')]['attachToDom'](),this[_0x9ea0('0x8')][_0x9ea0('0x9')](this[_0x9ea0('0x58')]);}[_0x9ea0('0x5')](_0x243078){this[_0x9ea0('0x3b')]=_0x243078;const _0x2b0d8b=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x250618),_0x31c1f0=this[_0x9ea0('0x58')];if(_0x2b0d8b['_annotations']=_0x243078,this[_0x9ea0('0x49')])throw new _0x2dffc6(_0x9ea0('0x40'),this);this[_0x9ea0('0x49')]=!0x0,this[_0x9ea0('0x3a')](_0x2b0d8b,'set:container',()=>{this[_0x9ea0('0x15')](),this[_0x9ea0('0x3a')](_0x2b0d8b,_0x9ea0('0x12'),_0x36b1b0=>{_0x36b1b0[_0x9ea0('0x3c')](),this[_0x9ea0('0x5')](_0x243078);});}),_0x2b0d8b['_attachToContainer']({'viewClass':_0x9ea0('0x3e'),'spaceBetweenItems':0x5});const _0x506f73=_0x640431=>{const _0x52027f=new _0x43d1ed(this[_0x9ea0('0x29')][_0x9ea0('0x20')]);_0x2b0d8b[_0x9ea0('0x56')](_0x640431,_0x52027f),this[_0x9ea0('0x57')]['set'](_0x640431,_0x52027f),_0x52027f[_0x9ea0('0x55')]('isDirty',_0x9ea0('0x43'),_0x9ea0('0x1a'))['to'](_0x640431[_0x9ea0('0x5d')],_0x9ea0('0xc'),_0x9ea0('0x3f'),_0x9ea0('0x5a')),_0x52027f['on'](_0x9ea0('0xd'),()=>{this[_0x9ea0('0x17')]['clear'](),_0x31c1f0[_0x9ea0('0x32')][_0x9ea0('0x2e')]!==_0x640431[_0x9ea0('0x5d')]?(this['_showBalloon'](_0x640431),_0x640431[_0x9ea0('0x5d')][_0x9ea0('0x3d')][_0x9ea0('0xb')](),this[_0x9ea0('0x26')](_0x640431)):this[_0x9ea0('0x26')](null);});};for(const _0x1249c7 of _0x243078)_0x506f73(_0x1249c7);this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0x9'),(_0x4910ad,_0x1f0387)=>{_0x506f73(_0x1f0387);}),this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0x1c'),(_0x247168,_0x2fbf00,_0x411162)=>{this[_0x9ea0('0x57')][_0x9ea0('0x4a')](_0x2fbf00)[_0x9ea0('0x21')](),this[_0x9ea0('0x57')][_0x9ea0('0x35')](_0x2fbf00),_0x2b0d8b[_0x9ea0('0x46')]({'removedAnnotation':_0x2fbf00,'previousAnnotation':_0x243078[_0x9ea0('0x4a')](_0x411162-0x1),'nextAnnotation':_0x243078[_0x9ea0('0x4a')](_0x411162+0x1)}),_0x2fbf00===this[_0x9ea0('0x2b')]&&this[_0x9ea0('0x26')](null);},{'priority':_0x9ea0('0xe')}),this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0xb'),(_0x34f13b,_0x1233f9)=>{this[_0x9ea0('0x26')](_0x1233f9);}),this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0x23'),()=>{this[_0x9ea0('0x26')](null);}),this[_0x9ea0('0x27')][_0x9ea0('0x3a')](document,_0x9ea0('0x2f'),(_0x2d01f4,_0x6c7e87)=>{_0x6c7e87[_0x9ea0('0x36')]===_0x38f2e4['esc']&&_0x31c1f0[_0x9ea0('0x25')]&&(this[_0x9ea0('0x17')]['add'](_0x31c1f0['content'][_0x9ea0('0x2e')]),this['_hideBalloon'](),_0x6c7e87[_0x9ea0('0x4d')](),_0x6c7e87[_0x9ea0('0xf')]());}),this[_0x9ea0('0x27')]['listenTo'](document,'mousedown',(_0x5d717c,_0x5f0fcd)=>{const _0x2d9379=_0x5f0fcd[_0x9ea0('0x14')];_0x31c1f0[_0x9ea0('0x25')]&&_0x31c1f0[_0x9ea0('0x3d')][_0x9ea0('0x2c')](_0x2d9379)||_0x2b0d8b[_0x9ea0('0x5d')][_0x9ea0('0x3d')][_0x9ea0('0x2c')](_0x2d9379)||_0x5d717c[_0x9ea0('0x4b')]||(this[_0x9ea0('0x17')][_0x9ea0('0x22')](),this[_0x9ea0('0x44')](),this[_0x9ea0('0x26')](null));});const _0x423a99=this[_0x9ea0('0x29')][_0x9ea0('0x39')]?this[_0x9ea0('0x29')][_0x9ea0('0x39')]:new _0x24df3d([this['context']]);for(const _0x6e373b of _0x423a99)this[_0x9ea0('0x54')](_0x6e373b);this[_0x9ea0('0x3a')](_0x423a99,_0x9ea0('0x9'),(_0x4a390a,_0x56f32b)=>{this[_0x9ea0('0x3a')](_0x56f32b,_0x9ea0('0x11'),()=>{this['_integrateWithEditorAnnotations'](_0x56f32b);});}),this[_0x9ea0('0x3a')](_0x423a99,_0x9ea0('0x1c'),(_0x41c080,_0x32f7cb)=>{_0x32f7cb['plugins'][_0x9ea0('0x59')](_0x9ea0('0x2d'))&&this[_0x9ea0('0x50')](_0x32f7cb[_0x9ea0('0x4')][_0x9ea0('0x4a')]('EditorAnnotations'));}),window['addEventListener'](_0x9ea0('0x53'),this[_0x9ea0('0x33')]),this['_refreshPositioning']();}[_0x9ea0('0x26')](_0x43015b){if(_0x43015b===this[_0x9ea0('0x2b')])return;const _0x2b7d4f=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x9ea0('0x1d'));if(_0x2b7d4f[_0x9ea0('0x28')]({'blurredAnnotation':this[_0x9ea0('0x2b')],'activatedAnnotation':_0x43015b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x43015b)_0x2b7d4f[_0x9ea0('0x48')](_0x43015b)?this[_0x9ea0('0x7')](_0x43015b):this['_hideBalloon']();else this['_hideBalloon']();this[_0x9ea0('0x2b')]=_0x43015b;}[_0x9ea0('0x15')](){if(!this[_0x9ea0('0x49')])throw new _0x2dffc6(_0x9ea0('0x0'),this);this['setActiveAnnotation'](null);const _0x5d2f80=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x9ea0('0x1d'));this[_0x9ea0('0x44')](),Array['from'](this[_0x9ea0('0x57')]['values'](),_0x6829c3=>_0x6829c3[_0x9ea0('0x21')]()),this[_0x9ea0('0x57')][_0x9ea0('0x22')](),_0x5d2f80[_0x9ea0('0x3')](this[_0x9ea0('0x3b')]),this[_0x9ea0('0x13')](),this[_0x9ea0('0x27')][_0x9ea0('0x13')](),this['stopListening'](this[_0x9ea0('0x29')][_0x9ea0('0x39')]);for(const _0x5ee777 of Array['from'](this[_0x9ea0('0x31')]))this[_0x9ea0('0x50')](_0x5ee777);window[_0x9ea0('0xa')]('resize',this['_refreshPositioningDebounced']),this[_0x9ea0('0x33')][_0x9ea0('0x19')](),this['_selectedAnnotations']=[],this[_0x9ea0('0x49')]=!0x1,this[_0x9ea0('0x3b')]=null;}[_0x9ea0('0x21')](){this['isAttached']&&this[_0x9ea0('0x15')](),this[_0x9ea0('0x8')][_0x9ea0('0x47')]();}[_0x9ea0('0x54')](_0xf2af5c){const _0x581ec2=_0xf2af5c[_0x9ea0('0x4')][_0x9ea0('0x4a')]('EditorAnnotations'),_0x527c3d=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x250618),_0x5382fc=this[_0x9ea0('0x3b')],_0x33da23=this[_0x9ea0('0x58')],_0x2bc451=()=>{const _0x26c964=_0x581ec2[_0x9ea0('0x4c')]({'activeAnnotation':this[_0x9ea0('0x2b')],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x26c964),this[_0x9ea0('0x26')](_0x26c964[0x0]||null);};this[_0x9ea0('0x3a')](_0x581ec2,_0x9ea0('0x28'),_0x2bc451),this['listenTo'](_0x581ec2,'blur',(_0x1d5391,{isAnnotationTracked:_0x5b5015})=>{this[_0x9ea0('0x2b')]&&_0x5b5015(this[_0x9ea0('0x2b')])&&(this['_setSelectedAnnotations']([]),this[_0x9ea0('0x26')](null));}),this[_0x9ea0('0x3a')](_0x581ec2,_0x9ea0('0x30'),()=>{this['_refreshPositioningDebounced']();}),this[_0x9ea0('0x3a')](_0x5382fc,'blur',_0x266833=>{_0x581ec2[_0x9ea0('0x1f')]()&&_0x266833[_0x9ea0('0x5b')]();},{'priority':_0x9ea0('0x1')}),this['_domEmitter'][_0x9ea0('0x3a')](document,'mousedown',(_0x760d7c,_0x28fbb8)=>{const _0x1c82a1=_0x28fbb8[_0x9ea0('0x14')];_0x33da23[_0x9ea0('0x25')]&&_0x33da23['element'][_0x9ea0('0x2c')](_0x1c82a1)||_0x527c3d[_0x9ea0('0x5d')]['element'][_0x9ea0('0x2c')](_0x1c82a1)||this[_0x9ea0('0x2b')]&&_0x581ec2['hasDomSelection']()&&(_0x2bc451(),_0x760d7c[_0x9ea0('0x4b')]=!0x0);},{'priority':_0x9ea0('0x1')}),this['_editorAnnotations'][_0x9ea0('0x9')](_0x581ec2);}[_0x9ea0('0x50')](_0x2168f5){_0x2168f5&&(this['stopListening'](_0x2168f5),this[_0x9ea0('0x31')]['remove'](_0x2168f5));}[_0x9ea0('0x5c')](_0x4f662e){for(const _0x4d08ed of this[_0x9ea0('0x10')])_0x4f662e[_0x9ea0('0x1b')](_0x4d08ed)||this[_0x9ea0('0x17')]['delete'](_0x4d08ed[_0x9ea0('0x5d')]);this['_selectedAnnotations']=_0x4f662e;}[_0x9ea0('0x45')](){const _0x1f8a94=this[_0x9ea0('0x58')];this[_0x9ea0('0x3b')]['refreshPositioning'](),_0x1f8a94[_0x9ea0('0x25')]&&this['_updateBalloonPosition']();}[_0x9ea0('0x7')](_0x1736d4){if(this[_0x9ea0('0x17')]['has'](_0x1736d4[_0x9ea0('0x5d')]))return;const _0x255dba=this['balloonPanelView'][_0x9ea0('0x32')][_0x9ea0('0x2e')];_0x255dba!==_0x1736d4[_0x9ea0('0x5d')]?(_0x255dba&&this['_detachListeners'](_0x255dba),this[_0x9ea0('0x4f')](_0x1736d4['view']),this[_0x9ea0('0x58')]['content'][_0x9ea0('0x22')](),this['balloonPanelView'][_0x9ea0('0x32')]['add'](_0x1736d4['view']),this['_updateBalloonPosition']()):this[_0x9ea0('0x1e')]();}[_0x9ea0('0x1e')](){const _0x27d429=this[_0x9ea0('0x58')][_0x9ea0('0x32')]['first'],_0x425a54=this[_0x9ea0('0x3b')][_0x9ea0('0x2')](_0x27d429);if(!this[_0x9ea0('0x57')][_0x9ea0('0x59')](_0x425a54))return;const _0x5d9b1f=this['_annotationToNarrowView']['get'](_0x425a54)[_0x9ea0('0x3d')],_0x1ae11a=function(){const _0x119a13=_0x2b59da[_0x9ea0('0x51')];return[_0x119a13[_0x9ea0('0x4e')],_0x119a13['northArrowSouthEast'],_0x119a13['southArrowNorth'],_0x119a13['northArrowSouth'],_0x119a13['southArrowNorthWest'],_0x119a13['northArrowSouthWest']];}();this[_0x9ea0('0x58')][_0x9ea0('0x16')]({'target':_0x5d9b1f,'positions':_0x1ae11a});}[_0x9ea0('0x44')](){const _0x4b9328=this[_0x9ea0('0x58')],_0x543802=_0x4b9328[_0x9ea0('0x32')]['first'];_0x543802&&(this[_0x9ea0('0x37')](_0x543802),_0x4b9328[_0x9ea0('0x34')](),_0x4b9328[_0x9ea0('0x32')][_0x9ea0('0x22')]());}[_0x9ea0('0x4f')](_0x115fa1){this[_0x9ea0('0x3a')](_0x115fa1,_0x9ea0('0x2a'),()=>this[_0x9ea0('0x1e')]()),this[_0x9ea0('0x3a')](_0x115fa1,_0x9ea0('0x6'),(_0x4bdd01,_0x74a259)=>{this['_manuallyClosedAnnotationViews'][_0x9ea0('0x9')](_0x115fa1),this[_0x9ea0('0x44')](),_0x74a259();});}[_0x9ea0('0x37')](_0x3f2650){this[_0x9ea0('0x13')](_0x3f2650);}}
23
+ const _0x2101=['activeAnnotation','keyCode','rearrange','destroy','_detachListeners','balloonPanelView','_attachToContainer','setActiveAnnotation','detachFromDom','refresh','_integrateWithEditorAnnotations','isAttached','NarrowSidebar','_refreshPositioningDebounced','hasDomSelection','attach','_domEmitter','high','refreshPositioning','focus','change:container','attachToDom','pin','ready','_destroyEditorAnnotationsIntegration','uiUpdate','plugins','_updateBalloonPosition','_annotations','resize','editors','from','register','annotationType','number','southArrowNorth','detach','execute','add','_editorAnnotations','Sidebar','type','_setSelectedAnnotations','_showBalloon','delete','clear','preventDefault','isDirty','narrowSidebar','narrowsidebar-attach-already-attached','_selectedAnnotations','content','change:height','keydown','stop','context','northArrowSouthWest','preventClosingBalloon','northArrowSouthEast','bodyCollection','length','view','init','EditorAnnotations','isVisible','has','getSidebarItemView','stopListening','set:container','remove','first','getByView','locale','requires','values','_refreshPositioning','mousedown','blur','get','getOrderedSelectedAnnotations','_attachListeners','unpin','contains','annotations','set','_manuallyClosedAnnotationViews','element','southArrowNorthEast','_hideBalloon','defaultPositions','create','removeEventListener','_annotationToNarrowView','listenTo','stopPropagation','low','target'];(function(_0x4ff4d2,_0x210150){const _0x50a65f=function(_0x2455a8){while(--_0x2455a8){_0x4ff4d2['push'](_0x4ff4d2['shift']());}};_0x50a65f(++_0x210150);}(_0x2101,0x1b4));const _0x50a6=function(_0x4ff4d2,_0x210150){_0x4ff4d2=_0x4ff4d2-0x0;let _0x50a65f=_0x2101[_0x4ff4d2];return _0x50a65f;};import{ContextPlugin as _0x26f94f}from'ckeditor5/src/core';import _0x3118b2 from'./annotationsuis';import _0xbd81b9 from'./sidebar';import _0x29d404 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4d1e5d,BodyCollection as _0x3c37fa}from'ckeditor5/src/ui';import{CKEditorError as _0x1af5dc,DomEmitterMixin as _0x390e02,keyCodes as _0x26718d,Collection as _0x58ba3a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x114b9b}from'lodash-es';export default class s extends _0x26f94f{static get[_0x50a6('0x19')](){return[_0xbd81b9,_0x3118b2];}static get['pluginName'](){return _0x50a6('0x3d');}constructor(_0x5729bc){super(_0x5729bc),this[_0x50a6('0x3c')]=!0x1,this[_0x50a6('0x25')]=new Set(),this[_0x50a6('0x41')]=Object[_0x50a6('0x2a')](_0x390e02),this[_0x50a6('0x2c')]=new Map(),this[_0x50a6('0x24')]('activeAnnotation',null),this[_0x50a6('0x23')]=null,this[_0x50a6('0x2')]=[],this[_0x50a6('0x58')]=new _0x58ba3a(),this[_0x50a6('0x3e')]=_0x114b9b(()=>{this[_0x50a6('0x1b')]();},0xfa,{'leading':!0x1});}[_0x50a6('0xe')](){this['context'][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x3118b2)[_0x50a6('0x51')](_0x50a6('0x0'),this),this[_0x50a6('0xb')]=new _0x3c37fa(this[_0x50a6('0x7')][_0x50a6('0x18')]),this[_0x50a6('0x36')]=new _0x4d1e5d(this[_0x50a6('0x7')][_0x50a6('0x18')]),this[_0x50a6('0xb')][_0x50a6('0x46')](),this[_0x50a6('0xb')][_0x50a6('0x57')](this['balloonPanelView']);}[_0x50a6('0x40')](_0x59b2a4){this[_0x50a6('0x23')]=_0x59b2a4;const _0x4efd05=this['context'][_0x50a6('0x4b')][_0x50a6('0x1e')](_0xbd81b9),_0x4d3527=this[_0x50a6('0x36')];if(_0x4efd05[_0x50a6('0x4d')]=_0x59b2a4,this[_0x50a6('0x3c')])throw new _0x1af5dc(_0x50a6('0x1'),this);this[_0x50a6('0x3c')]=!0x0,this[_0x50a6('0x2d')](_0x4efd05,_0x50a6('0x14'),()=>{this['detach'](),this[_0x50a6('0x2d')](_0x4efd05,_0x50a6('0x45'),_0x53d39a=>{_0x53d39a['off'](),this[_0x50a6('0x40')](_0x59b2a4);});}),_0x4efd05[_0x50a6('0x37')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x29fc69=_0x40ec96=>{const _0x4c2f24=new _0x29d404(this[_0x50a6('0x7')][_0x50a6('0x18')]);_0x4efd05['addAnnotation'](_0x40ec96,_0x4c2f24),this[_0x50a6('0x2c')]['set'](_0x40ec96,_0x4c2f24),_0x4c2f24['bind'](_0x50a6('0x60'),_0x50a6('0x52'),_0x50a6('0x53'))['to'](_0x40ec96[_0x50a6('0xd')],_0x50a6('0x60'),_0x50a6('0x5a'),_0x50a6('0xc')),_0x4c2f24['on'](_0x50a6('0x56'),()=>{this['_manuallyClosedAnnotationViews'][_0x50a6('0x5e')](),_0x4d3527[_0x50a6('0x3')]['first']!==_0x40ec96['view']?(this[_0x50a6('0x5c')](_0x40ec96),_0x40ec96[_0x50a6('0xd')][_0x50a6('0x26')][_0x50a6('0x44')](),this[_0x50a6('0x38')](_0x40ec96)):this[_0x50a6('0x38')](null);});};for(const _0x2b0174 of _0x59b2a4)_0x29fc69(_0x2b0174);this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x57'),(_0x52a7ea,_0xf12b08)=>{_0x29fc69(_0xf12b08);}),this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x15'),(_0xb026f8,_0xa1fac0,_0x4f4b5e)=>{this[_0x50a6('0x2c')]['get'](_0xa1fac0)['destroy'](),this[_0x50a6('0x2c')]['delete'](_0xa1fac0),_0x4efd05[_0x50a6('0x33')]({'removedAnnotation':_0xa1fac0,'previousAnnotation':_0x59b2a4['get'](_0x4f4b5e-0x1),'nextAnnotation':_0x59b2a4[_0x50a6('0x1e')](_0x4f4b5e+0x1)}),_0xa1fac0===this['activeAnnotation']&&this[_0x50a6('0x38')](null);},{'priority':_0x50a6('0x2f')}),this[_0x50a6('0x2d')](_0x59b2a4,'focus',(_0x2e7afe,_0x50b377)=>{this[_0x50a6('0x38')](_0x50b377);}),this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x1d'),()=>{this[_0x50a6('0x38')](null);}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x5'),(_0x418143,_0xad62ee)=>{_0xad62ee[_0x50a6('0x32')]===_0x26718d['esc']&&_0x4d3527[_0x50a6('0x10')]&&(this['_manuallyClosedAnnotationViews'][_0x50a6('0x57')](_0x4d3527['content']['first']),this[_0x50a6('0x28')](),_0xad62ee[_0x50a6('0x2e')](),_0xad62ee[_0x50a6('0x5f')]());}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x1c'),(_0x4e3e81,_0x230db8)=>{const _0x360481=_0x230db8['target'];_0x4d3527['isVisible']&&_0x4d3527[_0x50a6('0x26')][_0x50a6('0x22')](_0x360481)||_0x4efd05[_0x50a6('0xd')][_0x50a6('0x26')][_0x50a6('0x22')](_0x360481)||_0x4e3e81[_0x50a6('0x9')]||(this[_0x50a6('0x25')][_0x50a6('0x5e')](),this['_hideBalloon'](),this[_0x50a6('0x38')](null));});const _0x2638d3=this[_0x50a6('0x7')][_0x50a6('0x4f')]?this[_0x50a6('0x7')][_0x50a6('0x4f')]:new _0x58ba3a([this['context']]);for(const _0x133317 of _0x2638d3)this[_0x50a6('0x3b')](_0x133317);this[_0x50a6('0x2d')](_0x2638d3,'add',(_0x3c51be,_0x3286a4)=>{this['listenTo'](_0x3286a4,_0x50a6('0x48'),()=>{this['_integrateWithEditorAnnotations'](_0x3286a4);});}),this[_0x50a6('0x2d')](_0x2638d3,_0x50a6('0x15'),(_0x260d78,_0x30897c)=>{_0x30897c[_0x50a6('0x4b')]['has'](_0x50a6('0xf'))&&this['_destroyEditorAnnotationsIntegration'](_0x30897c[_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0xf')));}),window['addEventListener'](_0x50a6('0x4e'),this[_0x50a6('0x3e')]),this[_0x50a6('0x1b')]();}[_0x50a6('0x38')](_0x491c48){if(_0x491c48===this[_0x50a6('0x31')])return;const _0x1c5b1b=this[_0x50a6('0x7')][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0x59'));if(_0x1c5b1b[_0x50a6('0x3a')]({'blurredAnnotation':this[_0x50a6('0x31')],'activatedAnnotation':_0x491c48,'disableAnimationOnActivatedAnnotation':!0x0}),_0x491c48)_0x1c5b1b[_0x50a6('0x12')](_0x491c48)?this[_0x50a6('0x5c')](_0x491c48):this[_0x50a6('0x28')]();else this['_hideBalloon']();this[_0x50a6('0x31')]=_0x491c48;}[_0x50a6('0x55')](){if(!this[_0x50a6('0x3c')])throw new _0x1af5dc('narrowsidebar-detach-not-attached',this);this[_0x50a6('0x38')](null);const _0x1e56cb=this[_0x50a6('0x7')][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0x59'));this[_0x50a6('0x28')](),Array[_0x50a6('0x50')](this['_annotationToNarrowView'][_0x50a6('0x1a')](),_0x31405d=>_0x31405d[_0x50a6('0x34')]()),this[_0x50a6('0x2c')][_0x50a6('0x5e')](),_0x1e56cb['_detachFromContainer'](this[_0x50a6('0x23')]),this[_0x50a6('0x13')](),this[_0x50a6('0x41')][_0x50a6('0x13')](),this[_0x50a6('0x13')](this['context'][_0x50a6('0x4f')]);for(const _0x209d0d of Array['from'](this[_0x50a6('0x58')]))this[_0x50a6('0x49')](_0x209d0d);window[_0x50a6('0x2b')]('resize',this[_0x50a6('0x3e')]),this[_0x50a6('0x3e')]['cancel'](),this[_0x50a6('0x2')]=[],this[_0x50a6('0x3c')]=!0x1,this[_0x50a6('0x23')]=null;}[_0x50a6('0x34')](){this['isAttached']&&this[_0x50a6('0x55')](),this['bodyCollection'][_0x50a6('0x39')]();}[_0x50a6('0x3b')](_0x5b52a1){const _0x47fc59=_0x5b52a1[_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0xf')),_0x377211=this[_0x50a6('0x7')]['plugins'][_0x50a6('0x1e')](_0xbd81b9),_0x43d428=this[_0x50a6('0x23')],_0x2e9fa4=this[_0x50a6('0x36')],_0x274473=()=>{const _0x521c97=_0x47fc59[_0x50a6('0x1f')]({'activeAnnotation':this[_0x50a6('0x31')],'annotations':this[_0x50a6('0x23')]});this[_0x50a6('0x5b')](_0x521c97),this[_0x50a6('0x38')](_0x521c97[0x0]||null);};this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x3a'),_0x274473),this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x1d'),(_0x572926,{isAnnotationTracked:_0x2ae38c})=>{this[_0x50a6('0x31')]&&_0x2ae38c(this[_0x50a6('0x31')])&&(this['_setSelectedAnnotations']([]),this[_0x50a6('0x38')](null));}),this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x4a'),()=>{this[_0x50a6('0x3e')]();}),this[_0x50a6('0x2d')](_0x43d428,_0x50a6('0x1d'),_0x30883f=>{_0x47fc59[_0x50a6('0x3f')]()&&_0x30883f[_0x50a6('0x6')]();},{'priority':_0x50a6('0x42')}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x1c'),(_0x5cc423,_0x3b7e9a)=>{const _0x23b673=_0x3b7e9a[_0x50a6('0x30')];_0x2e9fa4[_0x50a6('0x10')]&&_0x2e9fa4['element'][_0x50a6('0x22')](_0x23b673)||_0x377211[_0x50a6('0xd')][_0x50a6('0x26')]['contains'](_0x23b673)||this[_0x50a6('0x31')]&&_0x47fc59[_0x50a6('0x3f')]()&&(_0x274473(),_0x5cc423[_0x50a6('0x9')]=!0x0);},{'priority':_0x50a6('0x42')}),this[_0x50a6('0x58')][_0x50a6('0x57')](_0x47fc59);}[_0x50a6('0x49')](_0x5ce8b6){_0x5ce8b6&&(this[_0x50a6('0x13')](_0x5ce8b6),this[_0x50a6('0x58')][_0x50a6('0x15')](_0x5ce8b6));}[_0x50a6('0x5b')](_0x59719d){for(const _0x546030 of this[_0x50a6('0x2')])_0x59719d['includes'](_0x546030)||this['_manuallyClosedAnnotationViews'][_0x50a6('0x5d')](_0x546030[_0x50a6('0xd')]);this[_0x50a6('0x2')]=_0x59719d;}[_0x50a6('0x1b')](){const _0x21ea93=this[_0x50a6('0x36')];this[_0x50a6('0x23')][_0x50a6('0x43')](),_0x21ea93['isVisible']&&this['_updateBalloonPosition']();}[_0x50a6('0x5c')](_0x51482f){if(this['_manuallyClosedAnnotationViews'][_0x50a6('0x11')](_0x51482f[_0x50a6('0xd')]))return;const _0x26527b=this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x16')];_0x26527b!==_0x51482f[_0x50a6('0xd')]?(_0x26527b&&this['_detachListeners'](_0x26527b),this[_0x50a6('0x20')](_0x51482f[_0x50a6('0xd')]),this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x5e')](),this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x57')](_0x51482f[_0x50a6('0xd')]),this[_0x50a6('0x4c')]()):this[_0x50a6('0x4c')]();}[_0x50a6('0x4c')](){const _0x535990=this[_0x50a6('0x36')][_0x50a6('0x3')]['first'],_0x1efc9a=this['annotations'][_0x50a6('0x17')](_0x535990);if(!this[_0x50a6('0x2c')][_0x50a6('0x11')](_0x1efc9a))return;const _0x40880b=this[_0x50a6('0x2c')][_0x50a6('0x1e')](_0x1efc9a)[_0x50a6('0x26')],_0x401108=function(){const _0x2c812f=_0x4d1e5d[_0x50a6('0x29')];return[_0x2c812f[_0x50a6('0x27')],_0x2c812f[_0x50a6('0xa')],_0x2c812f[_0x50a6('0x54')],_0x2c812f['northArrowSouth'],_0x2c812f['southArrowNorthWest'],_0x2c812f[_0x50a6('0x8')]];}();this[_0x50a6('0x36')][_0x50a6('0x47')]({'target':_0x40880b,'positions':_0x401108});}[_0x50a6('0x28')](){const _0x54636c=this[_0x50a6('0x36')],_0x5935a7=_0x54636c['content']['first'];_0x5935a7&&(this[_0x50a6('0x35')](_0x5935a7),_0x54636c[_0x50a6('0x21')](),_0x54636c[_0x50a6('0x3')]['clear']());}[_0x50a6('0x20')](_0x57d617){this[_0x50a6('0x2d')](_0x57d617,_0x50a6('0x4'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57d617,'Esc',(_0xb1f39,_0x5e3dec)=>{this[_0x50a6('0x25')][_0x50a6('0x57')](_0x57d617),this[_0x50a6('0x28')](),_0x5e3dec();});}[_0x50a6('0x35')](_0x10f8c7){this[_0x50a6('0x13')](_0x10f8c7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8ada=['_activeAnnotation','view','_updateLastItem','listenTo','bind','last','_recalculate','target','container','_getTargetTop','_targetTop','remove','locale','nodeType','_alignToTargetRect','set','destroy','rearrange','_destroySidebarItemView','_setItemTop','delete','sidebar-setcontainer-invalid-element','_alignAfterItem','init','minHeight','class','stopListening','sidebar.preventScrollOutOfView','_attachToContainer','max','render','getIndex','height','getSidebarItemView','element','isAnimationDisabled','_getItemBefore','_lastItem','updateHeight','change:targetRect','length','config','sidebar-attachtocontainer-missing-container','context','add','_getMaxAvailableTop','_alignForTopChange','_createSidebarView','list','top','change:_lastItem','get','_alignBeforeItem','isActive','_sidebarItemViewToAnnotation','push','bottom','_spaceBetweenItems','appendChild','_annotations','_alignForBottomChange','_recalculateBuffer','refresh','sidebar.container','object','targetRect','change:bottom','content','_annotationToSidebarItemView'];(function(_0x3e1bd4,_0x8adaf4){const _0x146dea=function(_0x562de5){while(--_0x562de5){_0x3e1bd4['push'](_0x3e1bd4['shift']());}};_0x146dea(++_0x8adaf4);}(_0x8ada,0x169));const _0x146d=function(_0x3e1bd4,_0x8adaf4){_0x3e1bd4=_0x3e1bd4-0x0;let _0x146dea=_0x8ada[_0x3e1bd4];return _0x146dea;};import{ContextPlugin as _0x1de050}from'ckeditor5/src/core';import _0x25539f from'./view/sidebarview';import _0x238755 from'./view/sidebaritemview';import{Rect as _0x4ed153,CKEditorError as _0x5b7eb3}from'ckeditor5/src/utils';export default class b extends _0x1de050{static get['pluginName'](){return'Sidebar';}constructor(_0x25ba7d){super(_0x25ba7d),this[_0x146d('0x44')](_0x146d('0x15')),this[_0x146d('0x36')]=this[_0x146d('0x1f')](),this[_0x146d('0x44')]('container',null),this[_0x146d('0x29')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x146d('0x1b')][_0x146d('0x19')]['define'](_0x146d('0xb'),!0x1),this[_0x146d('0x2b')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x146d('0x7')](){const _0x5e8079=this[_0x146d('0x1b')]['config'][_0x146d('0x23')](_0x146d('0x2f'));_0x5e8079&&this['setContainer'](_0x5e8079);}['setContainer'](_0x46de98){if(!p(_0x46de98))throw new _0x5b7eb3(_0x146d('0x5'));this[_0x146d('0x3d')]=_0x46de98;}[_0x146d('0xc')]({viewClass:_0x2fee63='',spaceBetweenItems:_0x2acdb0=0x19}={}){if(!p(this[_0x146d('0x3d')]))throw new _0x5b7eb3(_0x146d('0x1a'),this);this[_0x146d('0x3d')][_0x146d('0x2a')](this[_0x146d('0x36')][_0x146d('0x12')]),this[_0x146d('0x36')][_0x146d('0x9')]=_0x2fee63,this['_spaceBetweenItems']=_0x2acdb0;}[_0x146d('0x1')]({removedAnnotation:_0x1ea6f8,previousAnnotation:_0x410208,nextAnnotation:_0x1440f7}){const _0xcec52b=this[_0x146d('0x11')](_0x1ea6f8);this[_0x146d('0x36')][_0x146d('0x20')][_0x146d('0x40')](_0xcec52b),this[_0x146d('0x2')](_0x1ea6f8),_0x410208&&this[_0x146d('0x43')](this['getSidebarItemView'](_0x410208)),_0x1440f7&&this[_0x146d('0x43')](this[_0x146d('0x11')](_0x1440f7)),this[_0x146d('0x37')]();}[_0x146d('0x2e')]({blurredAnnotation:_0x3cca87,activatedAnnotation:_0x68ae86,disableAnimationOnActivatedAnnotation:_0xfd01ea}){if(this[_0x146d('0x35')]=_0x68ae86,_0x3cca87){_0x3cca87[_0x146d('0x25')]=!0x1;const _0x5ca0e5=this['getSidebarItemView'](_0x3cca87);_0x5ca0e5&&_0xfd01ea&&(_0x5ca0e5[_0x146d('0x13')]=!0x1);}if(_0x68ae86){const _0x4835cd=this[_0x146d('0x11')](_0x68ae86);_0x4835cd&&(_0x68ae86[_0x146d('0x25')]=!0x0,_0xfd01ea&&(_0x4835cd[_0x146d('0x13')]=!0x0,_0x4835cd[_0x146d('0x21')]+=0x1),this[_0x146d('0x43')](_0x4835cd));}}['_detachFromContainer'](_0x2f0b52){this[_0x146d('0xa')](),this[_0x146d('0x36')][_0x146d('0x12')][_0x146d('0x40')]();for(const _0x3f2ced of _0x2f0b52)this[_0x146d('0x2')](_0x3f2ced);this[_0x146d('0x36')][_0x146d('0x20')]['clear'](),this[_0x146d('0x36')][_0x146d('0x9')]='',this[_0x146d('0x15')]=null;}['addAnnotation'](_0x32ee34,_0xe00f6e){_0xe00f6e||(_0xe00f6e=_0x32ee34[_0x146d('0x36')]);const _0x19564b=new _0x238755(this[_0x146d('0x1b')][_0x146d('0x41')]);this[_0x146d('0x26')]['set'](_0x19564b,_0x32ee34),this[_0x146d('0x34')][_0x146d('0x44')](_0x32ee34,_0x19564b),_0x19564b[_0x146d('0x33')][_0x146d('0x1c')](_0xe00f6e),this[_0x146d('0x38')](_0x32ee34['view'],_0x146d('0x17'),(_0x1ab4b8,_0x1b2b5e,_0x4fc90c)=>{const _0x5d3c35=this[_0x146d('0x3e')](_0x32ee34,_0x4fc90c);_0x19564b[_0x146d('0x3f')]!=_0x5d3c35&&(_0x19564b[_0x146d('0x3f')]=_0x5d3c35,this[_0x146d('0x3')](_0x19564b,_0x5d3c35));}),this[_0x146d('0x38')](_0x19564b,'change:top',()=>{this[_0x146d('0x3b')](_0x19564b,'top');}),this['listenTo'](_0x19564b,_0x146d('0x32'),()=>{this[_0x146d('0x3b')](_0x19564b,'bottom');}),this['_alignToTargetRect'](_0x19564b);const _0x1e7ee3=this[_0x146d('0x14')](_0x19564b);if(_0x1e7ee3)this[_0x146d('0x6')](_0x1e7ee3,_0x19564b)||this['_alignToTargetRect'](_0x19564b);else this[_0x146d('0x43')](_0x19564b);return this[_0x146d('0x37')](),this[_0x146d('0x36')][_0x146d('0x20')]['add'](_0x19564b),_0x19564b;}[_0x146d('0x1e')](_0x42a3c5){if(!_0x42a3c5[_0x146d('0x33')][_0x146d('0x18')])return;const _0x3150d9=this[_0x146d('0x14')](_0x42a3c5);if(!_0x3150d9)return;const _0x2eaf8b=this['_sidebarItemViewToAnnotation'][_0x146d('0x23')](_0x3150d9),_0x3a9c94=this[_0x146d('0x35')];_0x3a9c94&&_0x3a9c94===_0x2eaf8b?this['_alignAfterItem'](_0x3150d9,_0x42a3c5):this[_0x146d('0x24')](_0x42a3c5,_0x3150d9);}[_0x146d('0x2c')](_0x3fa1f6){if(!_0x3fa1f6[_0x146d('0x33')]['length'])return;const _0x30db27=this['_getItemAfter'](_0x3fa1f6);if(!_0x30db27)return;const _0x14db2f=this[_0x146d('0x26')]['get'](_0x30db27),_0x45a067=this['context'][_0x146d('0x19')][_0x146d('0x23')]('sidebar.preventScrollOutOfView'),_0x54dfa1=this['_activeAnnotation'];_0x54dfa1&&_0x54dfa1===_0x14db2f&&_0x45a067?(this[_0x146d('0x24')](_0x30db27,_0x3fa1f6),this[_0x146d('0x6')](_0x3fa1f6,_0x30db27)):_0x54dfa1&&_0x54dfa1===_0x14db2f?this[_0x146d('0x24')](_0x30db27,_0x3fa1f6):this[_0x146d('0x6')](_0x3fa1f6,_0x30db27);}['_recalculate'](_0x5e2ef6,_0x182e54){0x0===this[_0x146d('0x2d')][_0x146d('0x18')]&&setTimeout(()=>{for(const {sidebarItemView:_0x24e96f,changedProp:_0x29c2ef}of this[_0x146d('0x2d')])_0x146d('0x21')===_0x29c2ef?this['_alignForTopChange'](_0x24e96f):this['_alignForBottomChange'](_0x24e96f);this[_0x146d('0x2d')]=[];},0xa),this[_0x146d('0x2d')][_0x146d('0x27')]({'sidebarItemView':_0x5e2ef6,'changedProp':_0x182e54});}['getSidebarItemView'](_0x2ce442){return this['_annotationToSidebarItemView'][_0x146d('0x23')](_0x2ce442);}['destroy'](){this['view'][_0x146d('0x0')]();}[_0x146d('0x2')](_0x36edb1){const _0x2857c5=this[_0x146d('0x11')](_0x36edb1);this['stopListening'](_0x2857c5),this['stopListening'](_0x36edb1[_0x146d('0x36')]),_0x2857c5[_0x146d('0x0')](),this['_annotationToSidebarItemView'][_0x146d('0x4')](_0x36edb1),this['_sidebarItemViewToAnnotation'][_0x146d('0x4')](_0x2857c5);}[_0x146d('0x1f')](){const _0x1b9f3c=new _0x25539f(this[_0x146d('0x1b')][_0x146d('0x41')]);return _0x1b9f3c[_0x146d('0xe')](),this['on'](_0x146d('0x22'),(_0x30dc67,_0x2410fc,_0x58af5a,_0x436b2d)=>{_0x436b2d&&_0x1b9f3c['unbind'](_0x146d('0x8')),_0x58af5a?_0x1b9f3c[_0x146d('0x39')](_0x146d('0x8'))['to'](_0x58af5a,_0x146d('0x28')):_0x1b9f3c['minHeight']=null;}),_0x1b9f3c;}[_0x146d('0x37')](){this[_0x146d('0x15')]=this[_0x146d('0x11')](this[_0x146d('0x2b')][_0x146d('0x3a')]);}['_getItemBefore'](_0x135a1d){const _0x59553f=this[_0x146d('0x26')][_0x146d('0x23')](_0x135a1d),_0x12cf73=this[_0x146d('0x2b')][_0x146d('0x23')](this[_0x146d('0x2b')][_0x146d('0xf')](_0x59553f)-0x1);return _0x12cf73&&this['getSidebarItemView'](_0x12cf73);}['_getItemAfter'](_0xf0041e){const _0x5391d0=this[_0x146d('0x26')][_0x146d('0x23')](_0xf0041e),_0x1ebad6=this[_0x146d('0x2b')][_0x146d('0x23')](this[_0x146d('0x2b')][_0x146d('0xf')](_0x5391d0)+0x1);return _0x1ebad6&&this[_0x146d('0x11')](_0x1ebad6);}[_0x146d('0x24')](_0x3f42ef,_0x829fc6){_0x3f42ef[_0x146d('0x16')]();const _0x5ef425=F(_0x829fc6[_0x146d('0x28')]+this['_spaceBetweenItems'],_0x3f42ef[_0x146d('0x21')]);return!!_0x5ef425&&(this[_0x146d('0x3')](_0x829fc6,_0x829fc6[_0x146d('0x21')]-_0x5ef425),!0x0);}['_alignAfterItem'](_0x479734,_0x104e51){_0x479734['updateHeight']();const _0x2f3720=F(_0x479734[_0x146d('0x28')]+this[_0x146d('0x29')],_0x104e51['top']);return!!_0x2f3720&&(this[_0x146d('0x3')](_0x104e51,_0x104e51[_0x146d('0x21')]+_0x2f3720,!0x1),!0x0);}[_0x146d('0x43')](_0x300360){const _0x51bd7c=this['_sidebarItemViewToAnnotation'][_0x146d('0x23')](_0x300360);if(!_0x51bd7c||!_0x51bd7c[_0x146d('0x3c')])return;const _0x51000a=this[_0x146d('0x3e')](_0x51bd7c,_0x51bd7c[_0x146d('0x31')]);this[_0x146d('0x3')](_0x300360,_0x51000a);}['_getTargetTop'](_0x677795,_0x25784a){if(null===_0x25784a)return 0x0;if(_0x677795[_0x146d('0x3c')]instanceof _0x4ed153)return _0x25784a['top'];{const _0xb984f3=new _0x4ed153(this[_0x146d('0x36')][_0x146d('0x12')])['top'];return _0x25784a[_0x146d('0x21')]-_0xb984f3;}}[_0x146d('0x3')](_0x1cd37b,_0x2a40c3,_0x514bbc=this['context'][_0x146d('0x19')][_0x146d('0x23')](_0x146d('0xb'))){_0x514bbc&&(_0x2a40c3=Math['max'](_0x2a40c3,this[_0x146d('0x1d')](_0x1cd37b))),_0x1cd37b[_0x146d('0x21')]=_0x2a40c3;}['_getMaxAvailableTop'](_0x4d3588){let _0x4e0b81=this['_getItemBefore'](_0x4d3588),_0x6ef36e=0x0;for(;_0x4e0b81;)_0x4e0b81[_0x146d('0x16')](),_0x6ef36e+=this[_0x146d('0x29')]+_0x4e0b81[_0x146d('0x10')],_0x4e0b81=this[_0x146d('0x14')](_0x4e0b81);return _0x6ef36e;}}function F(_0x32e4eb,_0x12a842){return Math[_0x146d('0xd')](_0x32e4eb-_0x12a842,0x0);}function p(_0x2ccf4f){return null!==_0x2ccf4f&&_0x146d('0x30')==typeof _0x2ccf4f&&0x1===_0x2ccf4f[_0x146d('0x42')];}
23
+ const _0x2201=['push','getSidebarItemView','add','addAnnotation','appendChild','refresh','_getMaxAvailableTop','_alignForBottomChange','target','destroy','change:top','_detachFromContainer','setContainer','unbind','length','isAnimationDisabled','top','_getItemBefore','minHeight','sidebar.container','get','_lastItem','_createSidebarView','rearrange','last','_attachToContainer','_targetTop','set','updateHeight','remove','_activeAnnotation','sidebar-attachtocontainer-missing-container','_annotationToSidebarItemView','_spaceBetweenItems','_alignBeforeItem','_destroySidebarItemView','delete','isActive','max','pluginName','list','_getTargetTop','_recalculate','sidebar.preventScrollOutOfView','_recalculateBuffer','render','context','_getItemAfter','object','change:bottom','container','_alignToTargetRect','class','listenTo','_setItemTop','content','view','stopListening','targetRect','getIndex','locale','_alignAfterItem','Sidebar','sidebar-setcontainer-invalid-element','bottom','_updateLastItem','nodeType','_sidebarItemViewToAnnotation','_alignForTopChange','_annotations','init','element','config'];(function(_0x1edbc1,_0x2201dd){const _0xfcb7b6=function(_0x1601e0){while(--_0x1601e0){_0x1edbc1['push'](_0x1edbc1['shift']());}};_0xfcb7b6(++_0x2201dd);}(_0x2201,0xe5));const _0xfcb7=function(_0x1edbc1,_0x2201dd){_0x1edbc1=_0x1edbc1-0x0;let _0xfcb7b6=_0x2201[_0x1edbc1];return _0xfcb7b6;};import{ContextPlugin as _0x3a14b2}from'ckeditor5/src/core';import _0x224b0d from'./view/sidebarview';import _0xe1e09 from'./view/sidebaritemview';import{Rect as _0x314f8d,CKEditorError as _0x169940}from'ckeditor5/src/utils';export default class b extends _0x3a14b2{static get[_0xfcb7('0x1d')](){return _0xfcb7('0x34');}constructor(_0x2f3b93){super(_0x2f3b93),this[_0xfcb7('0x11')](_0xfcb7('0xb')),this['view']=this[_0xfcb7('0xc')](),this[_0xfcb7('0x11')]('container',null),this[_0xfcb7('0x17')]=0x19,this[_0xfcb7('0x39')]=new Map(),this[_0xfcb7('0x16')]=new Map(),this[_0xfcb7('0x24')][_0xfcb7('0x3e')]['define']('sidebar.preventScrollOutOfView',!0x1),this[_0xfcb7('0x3b')]=null,this[_0xfcb7('0x14')]=null,this['_recalculateBuffer']=[];}[_0xfcb7('0x3c')](){const _0xb95e76=this[_0xfcb7('0x24')][_0xfcb7('0x3e')][_0xfcb7('0xa')](_0xfcb7('0x9'));_0xb95e76&&this[_0xfcb7('0x2')](_0xb95e76);}[_0xfcb7('0x2')](_0x28fc59){if(!p(_0x28fc59))throw new _0x169940(_0xfcb7('0x35'));this[_0xfcb7('0x28')]=_0x28fc59;}[_0xfcb7('0xf')]({viewClass:_0x2cb716='',spaceBetweenItems:_0x178b19=0x19}={}){if(!p(this[_0xfcb7('0x28')]))throw new _0x169940(_0xfcb7('0x15'),this);this[_0xfcb7('0x28')][_0xfcb7('0x43')](this[_0xfcb7('0x2e')][_0xfcb7('0x3d')]),this[_0xfcb7('0x2e')][_0xfcb7('0x2a')]=_0x2cb716,this[_0xfcb7('0x17')]=_0x178b19;}[_0xfcb7('0xd')]({removedAnnotation:_0x4cc79c,previousAnnotation:_0x212c0d,nextAnnotation:_0x4e3a1b}){const _0x38dc49=this[_0xfcb7('0x40')](_0x4cc79c);this[_0xfcb7('0x2e')]['list']['remove'](_0x38dc49),this['_destroySidebarItemView'](_0x4cc79c),_0x212c0d&&this[_0xfcb7('0x29')](this[_0xfcb7('0x40')](_0x212c0d)),_0x4e3a1b&&this[_0xfcb7('0x29')](this[_0xfcb7('0x40')](_0x4e3a1b)),this['_updateLastItem']();}[_0xfcb7('0x44')]({blurredAnnotation:_0x4c3bd1,activatedAnnotation:_0x110614,disableAnimationOnActivatedAnnotation:_0x506237}){if(this[_0xfcb7('0x14')]=_0x110614,_0x4c3bd1){_0x4c3bd1['isActive']=!0x1;const _0x2847c3=this['getSidebarItemView'](_0x4c3bd1);_0x2847c3&&_0x506237&&(_0x2847c3[_0xfcb7('0x5')]=!0x1);}if(_0x110614){const _0x363476=this[_0xfcb7('0x40')](_0x110614);_0x363476&&(_0x110614[_0xfcb7('0x1b')]=!0x0,_0x506237&&(_0x363476['isAnimationDisabled']=!0x0,_0x363476[_0xfcb7('0x6')]+=0x1),this[_0xfcb7('0x29')](_0x363476));}}[_0xfcb7('0x1')](_0x32534e){this[_0xfcb7('0x2f')](),this[_0xfcb7('0x2e')]['element'][_0xfcb7('0x13')]();for(const _0x252342 of _0x32534e)this[_0xfcb7('0x19')](_0x252342);this[_0xfcb7('0x2e')][_0xfcb7('0x1e')]['clear'](),this[_0xfcb7('0x2e')][_0xfcb7('0x2a')]='',this[_0xfcb7('0xb')]=null;}[_0xfcb7('0x42')](_0x59b3f5,_0x59f4f3){_0x59f4f3||(_0x59f4f3=_0x59b3f5['view']);const _0x83c881=new _0xe1e09(this['context']['locale']);this['_sidebarItemViewToAnnotation'][_0xfcb7('0x11')](_0x83c881,_0x59b3f5),this[_0xfcb7('0x16')][_0xfcb7('0x11')](_0x59b3f5,_0x83c881),_0x83c881[_0xfcb7('0x2d')][_0xfcb7('0x41')](_0x59f4f3),this[_0xfcb7('0x2b')](_0x59b3f5[_0xfcb7('0x2e')],'change:targetRect',(_0x254266,_0x5eb3ef,_0xc61e1b)=>{const _0x5ea4a5=this[_0xfcb7('0x1f')](_0x59b3f5,_0xc61e1b);_0x83c881[_0xfcb7('0x10')]!=_0x5ea4a5&&(_0x83c881[_0xfcb7('0x10')]=_0x5ea4a5,this[_0xfcb7('0x2c')](_0x83c881,_0x5ea4a5));}),this[_0xfcb7('0x2b')](_0x83c881,_0xfcb7('0x0'),()=>{this[_0xfcb7('0x20')](_0x83c881,'top');}),this[_0xfcb7('0x2b')](_0x83c881,_0xfcb7('0x27'),()=>{this[_0xfcb7('0x20')](_0x83c881,_0xfcb7('0x36'));}),this[_0xfcb7('0x29')](_0x83c881);const _0x307b39=this[_0xfcb7('0x7')](_0x83c881);if(_0x307b39)this[_0xfcb7('0x33')](_0x307b39,_0x83c881)||this['_alignToTargetRect'](_0x83c881);else this[_0xfcb7('0x29')](_0x83c881);return this[_0xfcb7('0x37')](),this['view'][_0xfcb7('0x1e')][_0xfcb7('0x41')](_0x83c881),_0x83c881;}[_0xfcb7('0x3a')](_0x3c17c5){if(!_0x3c17c5[_0xfcb7('0x2d')]['length'])return;const _0x162011=this[_0xfcb7('0x7')](_0x3c17c5);if(!_0x162011)return;const _0x148d37=this[_0xfcb7('0x39')][_0xfcb7('0xa')](_0x162011),_0x413eb2=this[_0xfcb7('0x14')];_0x413eb2&&_0x413eb2===_0x148d37?this['_alignAfterItem'](_0x162011,_0x3c17c5):this[_0xfcb7('0x18')](_0x3c17c5,_0x162011);}['_alignForBottomChange'](_0x5614b8){if(!_0x5614b8[_0xfcb7('0x2d')][_0xfcb7('0x4')])return;const _0x2b8549=this[_0xfcb7('0x25')](_0x5614b8);if(!_0x2b8549)return;const _0x1742a4=this[_0xfcb7('0x39')][_0xfcb7('0xa')](_0x2b8549),_0x31118e=this[_0xfcb7('0x24')][_0xfcb7('0x3e')][_0xfcb7('0xa')](_0xfcb7('0x21')),_0x4d31ea=this[_0xfcb7('0x14')];_0x4d31ea&&_0x4d31ea===_0x1742a4&&_0x31118e?(this[_0xfcb7('0x18')](_0x2b8549,_0x5614b8),this[_0xfcb7('0x33')](_0x5614b8,_0x2b8549)):_0x4d31ea&&_0x4d31ea===_0x1742a4?this[_0xfcb7('0x18')](_0x2b8549,_0x5614b8):this[_0xfcb7('0x33')](_0x5614b8,_0x2b8549);}[_0xfcb7('0x20')](_0x496c3d,_0x1c59c8){0x0===this['_recalculateBuffer'][_0xfcb7('0x4')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5017ea,changedProp:_0x12c9e3}of this['_recalculateBuffer'])_0xfcb7('0x6')===_0x12c9e3?this[_0xfcb7('0x3a')](_0x5017ea):this[_0xfcb7('0x46')](_0x5017ea);this[_0xfcb7('0x22')]=[];},0xa),this[_0xfcb7('0x22')][_0xfcb7('0x3f')]({'sidebarItemView':_0x496c3d,'changedProp':_0x1c59c8});}[_0xfcb7('0x40')](_0x3513fc){return this['_annotationToSidebarItemView'][_0xfcb7('0xa')](_0x3513fc);}[_0xfcb7('0x48')](){this[_0xfcb7('0x2e')]['destroy']();}[_0xfcb7('0x19')](_0x2109ed){const _0x226415=this['getSidebarItemView'](_0x2109ed);this[_0xfcb7('0x2f')](_0x226415),this['stopListening'](_0x2109ed['view']),_0x226415['destroy'](),this[_0xfcb7('0x16')][_0xfcb7('0x1a')](_0x2109ed),this[_0xfcb7('0x39')]['delete'](_0x226415);}[_0xfcb7('0xc')](){const _0x1f6cea=new _0x224b0d(this[_0xfcb7('0x24')][_0xfcb7('0x32')]);return _0x1f6cea[_0xfcb7('0x23')](),this['on']('change:_lastItem',(_0x1a3105,_0x4b81a4,_0x387fd8,_0x57a4b4)=>{_0x57a4b4&&_0x1f6cea[_0xfcb7('0x3')](_0xfcb7('0x8')),_0x387fd8?_0x1f6cea['bind'](_0xfcb7('0x8'))['to'](_0x387fd8,_0xfcb7('0x36')):_0x1f6cea[_0xfcb7('0x8')]=null;}),_0x1f6cea;}[_0xfcb7('0x37')](){this['_lastItem']=this['getSidebarItemView'](this['_annotations'][_0xfcb7('0xe')]);}[_0xfcb7('0x7')](_0x5cf43c){const _0x333e89=this['_sidebarItemViewToAnnotation'][_0xfcb7('0xa')](_0x5cf43c),_0x18ecd1=this[_0xfcb7('0x3b')]['get'](this[_0xfcb7('0x3b')][_0xfcb7('0x31')](_0x333e89)-0x1);return _0x18ecd1&&this[_0xfcb7('0x40')](_0x18ecd1);}[_0xfcb7('0x25')](_0x5f4f1b){const _0x157f8d=this['_sidebarItemViewToAnnotation']['get'](_0x5f4f1b),_0x33b07a=this[_0xfcb7('0x3b')]['get'](this[_0xfcb7('0x3b')][_0xfcb7('0x31')](_0x157f8d)+0x1);return _0x33b07a&&this[_0xfcb7('0x40')](_0x33b07a);}[_0xfcb7('0x18')](_0x4d5897,_0x2c3bf6){_0x4d5897[_0xfcb7('0x12')]();const _0x2553bf=F(_0x2c3bf6[_0xfcb7('0x36')]+this[_0xfcb7('0x17')],_0x4d5897[_0xfcb7('0x6')]);return!!_0x2553bf&&(this['_setItemTop'](_0x2c3bf6,_0x2c3bf6[_0xfcb7('0x6')]-_0x2553bf),!0x0);}['_alignAfterItem'](_0x59f79e,_0x432067){_0x59f79e[_0xfcb7('0x12')]();const _0x40cced=F(_0x59f79e[_0xfcb7('0x36')]+this[_0xfcb7('0x17')],_0x432067[_0xfcb7('0x6')]);return!!_0x40cced&&(this[_0xfcb7('0x2c')](_0x432067,_0x432067['top']+_0x40cced,!0x1),!0x0);}[_0xfcb7('0x29')](_0x265f2c){const _0x41c5dd=this[_0xfcb7('0x39')]['get'](_0x265f2c);if(!_0x41c5dd||!_0x41c5dd[_0xfcb7('0x47')])return;const _0x1e7711=this[_0xfcb7('0x1f')](_0x41c5dd,_0x41c5dd[_0xfcb7('0x30')]);this[_0xfcb7('0x2c')](_0x265f2c,_0x1e7711);}[_0xfcb7('0x1f')](_0x5c0b13,_0x232204){if(null===_0x232204)return 0x0;if(_0x5c0b13[_0xfcb7('0x47')]instanceof _0x314f8d)return _0x232204[_0xfcb7('0x6')];{const _0x450590=new _0x314f8d(this[_0xfcb7('0x2e')]['element'])[_0xfcb7('0x6')];return _0x232204[_0xfcb7('0x6')]-_0x450590;}}[_0xfcb7('0x2c')](_0x41890a,_0x5c81f1,_0x34181d=this['context'][_0xfcb7('0x3e')]['get'](_0xfcb7('0x21'))){_0x34181d&&(_0x5c81f1=Math[_0xfcb7('0x1c')](_0x5c81f1,this[_0xfcb7('0x45')](_0x41890a))),_0x41890a[_0xfcb7('0x6')]=_0x5c81f1;}[_0xfcb7('0x45')](_0xfdd6da){let _0xc03256=this['_getItemBefore'](_0xfdd6da),_0x1b6ac=0x0;for(;_0xc03256;)_0xc03256[_0xfcb7('0x12')](),_0x1b6ac+=this[_0xfcb7('0x17')]+_0xc03256['height'],_0xc03256=this[_0xfcb7('0x7')](_0xc03256);return _0x1b6ac;}}function F(_0x3b9a04,_0x1040e4){return Math['max'](_0x3b9a04-_0x1040e4,0x0);}function p(_0x2559e0){return null!==_0x2559e0&&_0xfcb7('0x26')==typeof _0x2559e0&&0x1===_0x2559e0[_0xfcb7('0x38')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x351e=['ck-annotation-counter__badge--edit-mode','...','add','counterView','children','ck-annotation-counter__badge--','_badge','annotationType','icon','number','isDirty','extendTemplate','ck-annotation-counter','bind','set'];(function(_0x37a05f,_0x351ed2){const _0x5d35b3=function(_0x2a9091){while(--_0x2a9091){_0x37a05f['push'](_0x37a05f['shift']());}};_0x5d35b3(++_0x351ed2);}(_0x351e,0x14d));const _0x5d35=function(_0x37a05f,_0x351ed2){_0x37a05f=_0x37a05f-0x0;let _0x5d35b3=_0x351e[_0x37a05f];return _0x5d35b3;};import{ButtonView as _0x4f288f,View as _0x1a58b2}from'ckeditor5/src/ui';import _0x2cb0a1 from'../../../theme/icons/add-comment.svg';export default class z extends _0x4f288f{constructor(_0x3b3cfe){super(_0x3b3cfe);const _0x4f8efa=this['bindTemplate'];this[_0x5d35('0xb')](_0x5d35('0x7'),!0x1),this['set'](_0x5d35('0x6'),0x0),this[_0x5d35('0xa')](_0x5d35('0x3'))['to'](this,_0x5d35('0x7'),this,_0x5d35('0x6'),(_0x46cf07,_0x1b5039)=>_0x46cf07?_0x5d35('0xd'):_0x1b5039),this[_0x5d35('0xb')](_0x5d35('0x4'),''),this[_0x5d35('0x5')]=_0x2cb0a1,this[_0x5d35('0x8')]({'attributes':{'class':[_0x5d35('0x9')]}}),this[_0x5d35('0x0')]=new _0x1a58b2(),this[_0x5d35('0x0')]['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4f8efa['to'](_0x5d35('0x4'),_0x56d804=>_0x5d35('0x2')+_0x56d804),_0x4f8efa['if'](_0x5d35('0x7'),_0x5d35('0xc'))]},'children':[{'text':_0x4f8efa['to']('_badge')}]}),this[_0x5d35('0x1')][_0x5d35('0xe')](this[_0x5d35('0x0')]);}}
23
+ const _0x1cb8=['annotationType','number','span','bind','isDirty','_badge','bindTemplate','children','set','...','ck-annotation-counter__badge--','counterView','ck-annotation-counter__badge'];(function(_0x1de759,_0x1cb811){const _0x4302dc=function(_0x405e33){while(--_0x405e33){_0x1de759['push'](_0x1de759['shift']());}};_0x4302dc(++_0x1cb811);}(_0x1cb8,0xe1));const _0x4302=function(_0x1de759,_0x1cb811){_0x1de759=_0x1de759-0x0;let _0x4302dc=_0x1cb8[_0x1de759];return _0x4302dc;};import{ButtonView as _0x484eef,View as _0x19cd86}from'ckeditor5/src/ui';import _0x18981a from'../../../theme/icons/add-comment.svg';export default class z extends _0x484eef{constructor(_0x4a354e){super(_0x4a354e);const _0x4de59d=this[_0x4302('0x2')];this[_0x4302('0x4')](_0x4302('0x0'),!0x1),this[_0x4302('0x4')]('number',0x0),this[_0x4302('0xc')](_0x4302('0x1'))['to'](this,_0x4302('0x0'),this,_0x4302('0xa'),(_0x49abe4,_0x45368f)=>_0x49abe4?_0x4302('0x5'):_0x45368f),this[_0x4302('0x4')](_0x4302('0x9'),''),this['icon']=_0x18981a,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4302('0x7')]=new _0x19cd86(),this[_0x4302('0x7')]['setTemplate']({'tag':_0x4302('0xb'),'attributes':{'class':[_0x4302('0x8'),_0x4de59d['to'](_0x4302('0x9'),_0x518363=>_0x4302('0x6')+_0x518363),_0x4de59d['if'](_0x4302('0x0'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4de59d['to'](_0x4302('0x1'))}]}),this[_0x4302('0x3')]['add'](this[_0x4302('0x7')]);}}