@ckeditor/ckeditor5-comments 0.0.0-nightly-20231102.0 → 0.0.0-nightly-20231104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/comments.js +1 -1
  3. package/package.json +3 -3
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsarchive.js +1 -1
  19. package/src/comments/commentsarchiveui.js +1 -1
  20. package/src/comments/commentsediting.js +1 -1
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. 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": "0.0.0-nightly-20231102.0",
3
+ "version": "0.0.0-nightly-20231104.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20231102.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20231102.0",
46
+ "ckeditor5": "0.0.0-nightly-20231104.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20231104.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4412=['target','stopListening','_getNormalizedTarget','set','annotation-invalid-target','nodeType','isActive','destroy','_id','view','offsetParent','every','focusableElements','innerView','clear','type','element','filter','_type','focusTracker','function','_target','remove','isArray','_assertCorrectTarget','add','mainView','object','getClientRects','item','isVisible','updateTargetRect','targetRect'];(function(_0x2aa21e,_0x4412f5){const _0x114306=function(_0x3e6f7c){while(--_0x3e6f7c){_0x2aa21e['push'](_0x2aa21e['shift']());}};_0x114306(++_0x4412f5);}(_0x4412,0x117));const _0x1143=function(_0x2aa21e,_0x4412f5){_0x2aa21e=_0x2aa21e-0x0;let _0x114306=_0x4412[_0x2aa21e];return _0x114306;};import{CKEditorError as _0x48ac36,Rect as _0x1b1c4a,Collection as _0x55f657,ObservableMixin as _0xbe1e6b}from'ckeditor5/src/utils';export default class d extends _0xbe1e6b(){constructor({view:_0x1b5bb3,target:_0x2a3f91,type:_0x10cbb1,isVisible:_0xca5874=!0x0}){super(),this['view']=_0x1b5bb3,this[_0x1143('0x1b')][_0x1143('0x1')]||this[_0x1143('0x1b')]['render'](),this[_0x1143('0x3')]=_0x10cbb1,this['_target']=_0x2a3f91,d[_0x1143('0x9')](this[_0x1143('0x14')]()),this[_0x1143('0x1e')]=new _0x55f657([this[_0x1143('0x1b')][_0x1143('0x1')]],{'idProperty':_0x1143('0x1a')}),this[_0x1143('0x1e')]['on'](_0x1143('0xa'),(_0x22ee57,_0x2befec)=>{this[_0x1143('0x1b')][_0x1143('0x4')][_0x1143('0xa')](_0x2befec);}),this[_0x1143('0x1e')]['on']('remove',(_0x45d7b7,_0x15ef5a)=>{this[_0x1143('0x1b')][_0x1143('0x4')][_0x1143('0x7')](_0x15ef5a);}),this[_0x1143('0x15')](_0x1143('0xf'),_0xca5874);}get[_0x1143('0x0')](){return'function'==typeof this[_0x1143('0x3')]?this[_0x1143('0x3')]():this[_0x1143('0x3')];}get[_0x1143('0x1f')](){return this[_0x1143('0x1b')][_0x1143('0xb')];}get['target'](){const _0x4ed9a7=this[_0x1143('0x14')]();return d[_0x1143('0x9')](_0x4ed9a7),_0x4ed9a7;}get[_0x1143('0x11')](){const _0x2b4066=this[_0x1143('0x12')];if(null===_0x2b4066)return null;if(_0x2b4066 instanceof _0x1b1c4a)return _0x2b4066;const _0x1ff389=_0x2b4066[_0x1143('0x2')](_0xeea6ba=>function(_0x2ba8e9){const _0x17864d=_0x2ba8e9[_0x1143('0x1c')];if(_0x17864d)return!0x0;const _0xd51815=_0x2ba8e9[_0x1143('0xd')]()[_0x1143('0xe')](0x0);return!!_0xd51815;}(_0xeea6ba));return 0x0===_0x1ff389['length']?null:new _0x1b1c4a(_0x1ff389[0x0][_0x1143('0xd')]()[_0x1143('0xe')](0x0));}get['isActive'](){return this[_0x1143('0x1b')]['isActive'];}set[_0x1143('0x18')](_0x56a862){this[_0x1143('0x1b')][_0x1143('0x18')]=_0x56a862,this['view'][_0x1143('0xb')][_0x1143('0x18')]=_0x56a862;}[_0x1143('0x10')](){this[_0x1143('0x1b')][_0x1143('0x11')]=this['targetRect'];}[_0x1143('0x19')](){this[_0x1143('0x1e')][_0x1143('0x13')](),this[_0x1143('0x1e')][_0x1143('0x20')](),this[_0x1143('0x13')]();}['refreshVisibility'](){this[_0x1143('0xf')]=!!this[_0x1143('0x11')];}static[_0x1143('0x9')](_0x196b85){if(!(null===_0x196b85||_0x196b85 instanceof _0x1b1c4a||Array[_0x1143('0x8')](_0x196b85)&&_0x196b85[_0x1143('0x1d')](_0x13150c=>y(_0x13150c))))throw new _0x48ac36(_0x1143('0x16'),null,{'target':_0x196b85});}[_0x1143('0x14')](){const _0x1975d9=_0x1143('0x5')==typeof this[_0x1143('0x6')]?this[_0x1143('0x6')]():this[_0x1143('0x6')];return y(_0x1975d9)?[_0x1975d9]:_0x1975d9;}}function y(_0x1224be){return null!==_0x1224be&&_0x1143('0xc')==typeof _0x1224be&&_0x1143('0x17')in _0x1224be&&0x1===_0x1224be[_0x1143('0x17')];}
23
+ const _0x6e83=['getClientRects','focusableElements','_id','item','target','_assertCorrectTarget','add','element','function','_getNormalizedTarget','destroy','view','filter','remove','isActive','_type','targetRect','_target','updateTargetRect','every','focusTracker','refreshVisibility','type','isVisible','innerView','mainView','offsetParent','stopListening','annotation-invalid-target','length','render','set','object'];(function(_0x90038f,_0x6e83ed){const _0x4961e1=function(_0x9313c7){while(--_0x9313c7){_0x90038f['push'](_0x90038f['shift']());}};_0x4961e1(++_0x6e83ed);}(_0x6e83,0x89));const _0x4961=function(_0x90038f,_0x6e83ed){_0x90038f=_0x90038f-0x0;let _0x4961e1=_0x6e83[_0x90038f];return _0x4961e1;};import{CKEditorError as _0x48fc3c,Rect as _0x1ff0cb,Collection as _0x506a5a,ObservableMixin as _0x5ba69c}from'ckeditor5/src/utils';export default class d extends _0x5ba69c(){constructor({view:_0x599ef2,target:_0x4e3001,type:_0x290184,isVisible:_0x1a7f20=!0x0}){super(),this[_0x4961('0x6')]=_0x599ef2,this[_0x4961('0x6')][_0x4961('0x2')]||this['view'][_0x4961('0x19')](),this[_0x4961('0xa')]=_0x290184,this[_0x4961('0xc')]=_0x4e3001,d[_0x4961('0x0')](this[_0x4961('0x4')]()),this[_0x4961('0x1d')]=new _0x506a5a([this['view'][_0x4961('0x2')]],{'idProperty':_0x4961('0x1e')}),this[_0x4961('0x1d')]['on']('add',(_0x5d2b4a,_0x3188eb)=>{this[_0x4961('0x6')][_0x4961('0xf')][_0x4961('0x1')](_0x3188eb);}),this[_0x4961('0x1d')]['on'](_0x4961('0x8'),(_0x12ec04,_0x1ca2b8)=>{this['view'][_0x4961('0xf')]['remove'](_0x1ca2b8);}),this[_0x4961('0x1a')](_0x4961('0x12'),_0x1a7f20);}get[_0x4961('0x11')](){return'function'==typeof this[_0x4961('0xa')]?this[_0x4961('0xa')]():this[_0x4961('0xa')];}get[_0x4961('0x13')](){return this[_0x4961('0x6')][_0x4961('0x14')];}get['target'](){const _0x44c2fd=this['_getNormalizedTarget']();return d[_0x4961('0x0')](_0x44c2fd),_0x44c2fd;}get[_0x4961('0xb')](){const _0x1cf225=this[_0x4961('0x20')];if(null===_0x1cf225)return null;if(_0x1cf225 instanceof _0x1ff0cb)return _0x1cf225;const _0x5ce459=_0x1cf225[_0x4961('0x7')](_0xef5bc9=>function(_0x1f2b6d){const _0x108bd3=_0x1f2b6d[_0x4961('0x15')];if(_0x108bd3)return!0x0;const _0xba4493=_0x1f2b6d[_0x4961('0x1c')]()[_0x4961('0x1f')](0x0);return!!_0xba4493;}(_0xef5bc9));return 0x0===_0x5ce459[_0x4961('0x18')]?null:new _0x1ff0cb(_0x5ce459[0x0][_0x4961('0x1c')]()['item'](0x0));}get[_0x4961('0x9')](){return this[_0x4961('0x6')][_0x4961('0x9')];}set[_0x4961('0x9')](_0x5a05ce){this[_0x4961('0x6')][_0x4961('0x9')]=_0x5a05ce,this[_0x4961('0x6')][_0x4961('0x14')][_0x4961('0x9')]=_0x5a05ce;}[_0x4961('0xd')](){this['view'][_0x4961('0xb')]=this[_0x4961('0xb')];}[_0x4961('0x5')](){this[_0x4961('0x1d')][_0x4961('0x16')](),this[_0x4961('0x1d')]['clear'](),this[_0x4961('0x16')]();}[_0x4961('0x10')](){this[_0x4961('0x12')]=!!this[_0x4961('0xb')];}static['_assertCorrectTarget'](_0x2779ad){if(!(null===_0x2779ad||_0x2779ad instanceof _0x1ff0cb||Array['isArray'](_0x2779ad)&&_0x2779ad[_0x4961('0xe')](_0x43338b=>y(_0x43338b))))throw new _0x48fc3c(_0x4961('0x17'),null,{'target':_0x2779ad});}['_getNormalizedTarget'](){const _0x151c92=_0x4961('0x3')==typeof this[_0x4961('0xc')]?this[_0x4961('0xc')]():this['_target'];return y(_0x151c92)?[_0x151c92]:_0x151c92;}}function y(_0x186ddc){return null!==_0x186ddc&&_0x4961('0x1b')==typeof _0x186ddc&&'nodeType'in _0x186ddc&&0x1===_0x186ddc['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13d4=['updateTargetRect','targetRect','add','_sort','view','top','has','_getOrderInContent','isFocused','getIndex','focus','change:isFocused','refreshPositioning','sort','remove','_focusTracker','annotationcollection-duplicated-item','innerView','from','focusTracker','_viewToAnnotation','destroy','getByInnerView','delete','set','length','_innerViewToAnnotation','stopListening','fire','getByView','blur','clear','get','listenTo','left','focusableElements'];(function(_0x87bab7,_0x13d4f8){const _0x133b6f=function(_0x191563){while(--_0x191563){_0x87bab7['push'](_0x87bab7['shift']());}};_0x133b6f(++_0x13d4f8);}(_0x13d4,0x87));const _0x133b=function(_0x87bab7,_0x13d4f8){_0x87bab7=_0x87bab7-0x0;let _0x133b6f=_0x13d4[_0x87bab7];return _0x133b6f;};import{CKEditorError as _0x3893c8,Collection as _0x1dceeb,FocusTracker as _0x1e2868}from'ckeditor5/src/utils';export default class x extends _0x1dceeb{constructor(_0xb155c1=[]){super(),this[_0x133b('0x23')]=new Map(),this[_0x133b('0x1d')]=new Map(),this[_0x133b('0x18')]=new _0x1e2868(),this[_0x133b('0x18')]['on']('change:isFocused',(_0x309695,_0x5305e1,_0xbf618c)=>{_0xbf618c||this['fire'](_0x133b('0x3'));});for(const _0x7d06aa of _0xb155c1)this['add'](_0x7d06aa);}get[_0x133b('0x11')](){return this['_focusTracker']['isFocused'];}[_0x133b('0xb')](_0x33b7fe){if(this['has'](_0x33b7fe))throw new _0x3893c8(_0x133b('0x19'),null);this['_innerViewToAnnotation'][_0x133b('0x21')](_0x33b7fe[_0x133b('0x1a')],_0x33b7fe),this[_0x133b('0x1d')][_0x133b('0x21')](_0x33b7fe[_0x133b('0xd')],_0x33b7fe);for(const _0x1fb79d of _0x33b7fe[_0x133b('0x8')])this[_0x133b('0x18')][_0x133b('0xb')](_0x1fb79d);this['listenTo'](_0x33b7fe[_0x133b('0x8')],_0x133b('0xb'),(_0x222a51,_0x472a9c)=>{this['_focusTracker'][_0x133b('0xb')](_0x472a9c);}),this['listenTo'](_0x33b7fe[_0x133b('0x8')],'remove',(_0x17ba2d,_0x6bf528)=>{this[_0x133b('0x18')][_0x133b('0x17')](_0x6bf528);}),this[_0x133b('0x6')](_0x33b7fe[_0x133b('0xd')][_0x133b('0x1c')],_0x133b('0x14'),(_0x44b840,_0x348949,_0x13074c)=>{_0x13074c&&this[_0x133b('0x1')](_0x133b('0x13'),_0x33b7fe);}),_0x33b7fe['updateTargetRect']();const _0x323049=this[_0x133b('0x10')](_0x33b7fe[_0x133b('0xd')][_0x133b('0xa')]);return super['add'](_0x33b7fe,_0x323049);}['remove'](_0x49bf3c){if(!this[_0x133b('0xf')](_0x49bf3c))throw new _0x3893c8('annotationcollection-not-existing-item',null);this[_0x133b('0x0')](_0x49bf3c['view'][_0x133b('0x1c')]),this[_0x133b('0x0')](_0x49bf3c['focusableElements']);for(const _0x55b984 of _0x49bf3c[_0x133b('0x8')])this[_0x133b('0x18')][_0x133b('0x17')](_0x55b984);return this[_0x133b('0x1d')][_0x133b('0x20')](_0x49bf3c[_0x133b('0xd')]),this['_innerViewToAnnotation'][_0x133b('0x20')](_0x49bf3c['innerView']),super[_0x133b('0x17')](_0x49bf3c);}[_0x133b('0x1f')](_0xe8be26){return this[_0x133b('0x23')][_0x133b('0x5')](_0xe8be26);}[_0x133b('0x2')](_0x4484c8){return this['_viewToAnnotation']['get'](_0x4484c8);}[_0x133b('0x1e')](){super['clear'](),this[_0x133b('0x0')](),this['_innerViewToAnnotation'][_0x133b('0x4')](),this[_0x133b('0x1d')]['clear'](),this[_0x133b('0x18')][_0x133b('0x1e')]();}[_0x133b('0x15')](){for(const _0xc312cb of this)_0xc312cb[_0x133b('0x9')]();this[_0x133b('0xc')]();}['_sort'](){const _0x176716=Array[_0x133b('0x1b')](this)[_0x133b('0x16')]((_0x3d6066,_0x11e9f7)=>v(_0x3d6066[_0x133b('0xd')]['targetRect'],_0x11e9f7[_0x133b('0xd')][_0x133b('0xa')]));for(let _0x264a5c=_0x176716[_0x133b('0x22')]-0x1;_0x264a5c>0x0;_0x264a5c--){const _0x58e60c=_0x176716[_0x264a5c];_0x264a5c!==this[_0x133b('0x12')](_0x58e60c)&&(this['remove'](_0x58e60c),this[_0x133b('0xb')](_0x58e60c));}}[_0x133b('0x10')](_0x82bb8){let _0x2fe45b=0x0;if(!_0x82bb8)return this[_0x133b('0x22')];for(const _0x184758 of this){const _0x52747f=_0x184758['view']['targetRect'];if(_0x52747f){if(v(_0x82bb8,_0x52747f)<0x0)return _0x2fe45b;_0x2fe45b++;}}return _0x2fe45b;}}export function bindAnnotationCollections({source:_0x2fe6e8,target:_0x38e233,filter:_0x4f2aa8}){for(const _0x237b05 of _0x2fe6e8)_0x4f2aa8(_0x237b05)&&_0x38e233[_0x133b('0xb')](_0x237b05);_0x38e233[_0x133b('0x6')](_0x2fe6e8,'add',(_0x4e640a,_0x3f4402)=>{_0x4f2aa8(_0x3f4402)&&_0x38e233[_0x133b('0xb')](_0x3f4402);}),_0x38e233['listenTo'](_0x2fe6e8,_0x133b('0x17'),(_0x10dceb,_0x191dcb)=>{_0x38e233[_0x133b('0xf')](_0x191dcb)&&_0x38e233[_0x133b('0x17')](_0x191dcb);});}function v(_0x286070,_0x1791dd){if(null===_0x286070&&null===_0x1791dd)return 0x0;if(null===_0x286070)return-0x1;if(null===_0x1791dd)return 0x1;const _0x110d9d=_0x286070[_0x133b('0xe')]-_0x1791dd['top'];return 0x0==_0x110d9d?_0x286070[_0x133b('0x7')]-_0x1791dd[_0x133b('0x7')]:_0x110d9d;}
23
+ const _0x5586=['length','focusableElements','targetRect','annotationcollection-not-existing-item','_getOrderInContent','blur','add','has','annotationcollection-duplicated-item','innerView','set','listenTo','sort','clear','getByView','change:isFocused','delete','fire','focus','_sort','_viewToAnnotation','left','updateTargetRect','get','_focusTracker','from','view','isFocused','top','_innerViewToAnnotation','stopListening','remove','focusTracker'];(function(_0xe40f6d,_0x558699){const _0x461c01=function(_0x129aad){while(--_0x129aad){_0xe40f6d['push'](_0xe40f6d['shift']());}};_0x461c01(++_0x558699);}(_0x5586,0x9f));const _0x461c=function(_0xe40f6d,_0x558699){_0xe40f6d=_0xe40f6d-0x0;let _0x461c01=_0x5586[_0xe40f6d];return _0x461c01;};import{CKEditorError as _0x36c164,Collection as _0x3ebb8b,FocusTracker as _0x35ee43}from'ckeditor5/src/utils';export default class x extends _0x3ebb8b{constructor(_0x322380=[]){super(),this[_0x461c('0x2')]=new Map(),this[_0x461c('0x1a')]=new Map(),this[_0x461c('0x1e')]=new _0x35ee43(),this[_0x461c('0x1e')]['on']('change:isFocused',(_0x31a1ef,_0x4d203f,_0x4781db)=>{_0x4781db||this['fire'](_0x461c('0xb'));});for(const _0x43e862 of _0x322380)this['add'](_0x43e862);}get[_0x461c('0x0')](){return this['_focusTracker'][_0x461c('0x0')];}[_0x461c('0xc')](_0x5ab013){if(this[_0x461c('0xd')](_0x5ab013))throw new _0x36c164(_0x461c('0xe'),null);this['_innerViewToAnnotation']['set'](_0x5ab013[_0x461c('0xf')],_0x5ab013),this[_0x461c('0x1a')][_0x461c('0x10')](_0x5ab013[_0x461c('0x20')],_0x5ab013);for(const _0x5170b7 of _0x5ab013['focusableElements'])this[_0x461c('0x1e')][_0x461c('0xc')](_0x5170b7);this[_0x461c('0x11')](_0x5ab013[_0x461c('0x7')],'add',(_0x4ce69f,_0x1f67f2)=>{this[_0x461c('0x1e')][_0x461c('0xc')](_0x1f67f2);}),this[_0x461c('0x11')](_0x5ab013['focusableElements'],'remove',(_0x472b54,_0x5354a7)=>{this[_0x461c('0x1e')][_0x461c('0x4')](_0x5354a7);}),this[_0x461c('0x11')](_0x5ab013['view']['focusTracker'],_0x461c('0x15'),(_0x240837,_0x532f8a,_0x585634)=>{_0x585634&&this[_0x461c('0x17')](_0x461c('0x18'),_0x5ab013);}),_0x5ab013['updateTargetRect']();const _0x10e811=this[_0x461c('0xa')](_0x5ab013[_0x461c('0x20')][_0x461c('0x8')]);return super['add'](_0x5ab013,_0x10e811);}['remove'](_0xcad97c){if(!this['has'](_0xcad97c))throw new _0x36c164(_0x461c('0x9'),null);this[_0x461c('0x3')](_0xcad97c[_0x461c('0x20')][_0x461c('0x5')]),this[_0x461c('0x3')](_0xcad97c[_0x461c('0x7')]);for(const _0x1853f0 of _0xcad97c[_0x461c('0x7')])this[_0x461c('0x1e')]['remove'](_0x1853f0);return this['_viewToAnnotation']['delete'](_0xcad97c[_0x461c('0x20')]),this[_0x461c('0x2')][_0x461c('0x16')](_0xcad97c[_0x461c('0xf')]),super[_0x461c('0x4')](_0xcad97c);}['getByInnerView'](_0x31b1e2){return this[_0x461c('0x2')][_0x461c('0x1d')](_0x31b1e2);}[_0x461c('0x14')](_0x486930){return this['_viewToAnnotation'][_0x461c('0x1d')](_0x486930);}['destroy'](){super['clear'](),this[_0x461c('0x3')](),this[_0x461c('0x2')]['clear'](),this[_0x461c('0x1a')][_0x461c('0x13')](),this[_0x461c('0x1e')]['destroy']();}['refreshPositioning'](){for(const _0x19566b of this)_0x19566b[_0x461c('0x1c')]();this[_0x461c('0x19')]();}['_sort'](){const _0x7060df=Array[_0x461c('0x1f')](this)[_0x461c('0x12')]((_0x333244,_0x17b8c8)=>v(_0x333244[_0x461c('0x20')][_0x461c('0x8')],_0x17b8c8[_0x461c('0x20')][_0x461c('0x8')]));for(let _0x295b9d=_0x7060df[_0x461c('0x6')]-0x1;_0x295b9d>0x0;_0x295b9d--){const _0x4576e6=_0x7060df[_0x295b9d];_0x295b9d!==this['getIndex'](_0x4576e6)&&(this[_0x461c('0x4')](_0x4576e6),this[_0x461c('0xc')](_0x4576e6));}}[_0x461c('0xa')](_0x2a40f2){let _0x19c32c=0x0;if(!_0x2a40f2)return this[_0x461c('0x6')];for(const _0x205885 of this){const _0x2ddea7=_0x205885['view'][_0x461c('0x8')];if(_0x2ddea7){if(v(_0x2a40f2,_0x2ddea7)<0x0)return _0x19c32c;_0x19c32c++;}}return _0x19c32c;}}export function bindAnnotationCollections({source:_0x1f2873,target:_0x32076e,filter:_0x3206e0}){for(const _0xb26031 of _0x1f2873)_0x3206e0(_0xb26031)&&_0x32076e[_0x461c('0xc')](_0xb26031);_0x32076e[_0x461c('0x11')](_0x1f2873,_0x461c('0xc'),(_0x18debb,_0xf685b4)=>{_0x3206e0(_0xf685b4)&&_0x32076e[_0x461c('0xc')](_0xf685b4);}),_0x32076e[_0x461c('0x11')](_0x1f2873,'remove',(_0x2178a0,_0x2188b2)=>{_0x32076e['has'](_0x2188b2)&&_0x32076e['remove'](_0x2188b2);});}function v(_0x588aac,_0x5d6419){if(null===_0x588aac&&null===_0x5d6419)return 0x0;if(null===_0x588aac)return-0x1;if(null===_0x5d6419)return 0x1;const _0x45cc60=_0x588aac[_0x461c('0x1')]-_0x5d6419[_0x461c('0x1')];return 0x0==_0x45cc60?_0x588aac[_0x461c('0x1b')]-_0x5d6419[_0x461c('0x1b')]:_0x45cc60;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4da8=['_deactivateAllAnnotations','createAnnotation','createAnnotationView','activeAnnotations','change:isVisible','_visibleAnnotations','getByInnerView','focusTracker','add','_bindAnnotationsToVisibleAnnotations','delete','set','element','stopListening','deactivateAll','refreshVisibility','listenTo','refreshPositioning','has','collection','remove','Annotations','_addActiveAnnotation','isVisible','fire','view','destroy'];(function(_0x83a606,_0x4da871){const _0x4c3f96=function(_0x99e7b1){while(--_0x99e7b1){_0x83a606['push'](_0x83a606['shift']());}};_0x4c3f96(++_0x4da871);}(_0x4da8,0x86));const _0x4c3f=function(_0x83a606,_0x4da871){_0x83a606=_0x83a606-0x0;let _0x4c3f96=_0x4da8[_0x83a606];return _0x4c3f96;};import{ContextPlugin as _0x40749b}from'ckeditor5/src/core';import _0xa448ef from'./annotation';import _0x54f38f from'./annotationcollection';import _0x585fa3 from'./view/annotationview';export default class b extends _0x40749b{static get['pluginName'](){return _0x4c3f('0x16');}constructor(_0x41e607){super(_0x41e607),this[_0x4c3f('0x14')]=new _0x54f38f(),this[_0x4c3f('0x6')]=new _0x54f38f(),this[_0x4c3f('0xc')](_0x4c3f('0x4'),new Set()),this[_0x4c3f('0xa')]();}[_0x4c3f('0x9')](_0x324c6b){this[_0x4c3f('0x14')]['add'](_0x324c6b);}[_0x4c3f('0x15')](_0x108d52){this[_0x4c3f('0x14')][_0x4c3f('0x15')](_0x108d52),_0x108d52[_0x4c3f('0x0')]();}[_0x4c3f('0x10')](){for(const _0x37fc61 of this[_0x4c3f('0x14')])_0x37fc61[_0x4c3f('0x10')]();}[_0x4c3f('0x12')](){this[_0x4c3f('0x6')]['refreshPositioning']();}[_0x4c3f('0x7')](_0x479838){return this['collection']['getByInnerView'](_0x479838);}[_0x4c3f('0xf')](){this['fire'](_0x4c3f('0x1'));}[_0x4c3f('0x0')](){for(const _0x2dd6c6 of this[_0x4c3f('0x14')])_0x2dd6c6[_0x4c3f('0x0')]();this[_0x4c3f('0x6')][_0x4c3f('0x0')](),this[_0x4c3f('0x14')][_0x4c3f('0x0')](),super[_0x4c3f('0x0')]();}['activate'](_0x30ae9d){this[_0x4c3f('0x19')]('_activateAnnotation',_0x30ae9d);}[_0x4c3f('0x2')](_0xb99c44){return new _0xa448ef(_0xb99c44);}[_0x4c3f('0x3')](_0x33d095,_0x2c2f73){return new _0x585fa3(_0x33d095,_0x2c2f73);}[_0x4c3f('0x17')](_0x21868b){const _0x499653=new Set(this[_0x4c3f('0x4')]);_0x499653[_0x4c3f('0x9')](_0x21868b),this[_0x4c3f('0x4')]=_0x499653;}['_removeActiveAnnotation'](_0x4309b0){const _0x22794d=new Set(this[_0x4c3f('0x4')]);_0x22794d[_0x4c3f('0xb')](_0x4309b0),this['activeAnnotations']=_0x22794d;}[_0x4c3f('0xa')](){const _0x311b93=this[_0x4c3f('0x14')],_0x4e493a=this[_0x4c3f('0x6')];function _0x2a7189(_0x47f675){const _0x34ca8f=_0x47f675['source'];_0x34ca8f[_0x4c3f('0x18')]&&!_0x4e493a[_0x4c3f('0x13')](_0x34ca8f)?_0x4e493a[_0x4c3f('0x9')](_0x34ca8f):!_0x34ca8f[_0x4c3f('0x18')]&&_0x4e493a[_0x4c3f('0x13')](_0x34ca8f)&&_0x4e493a['remove'](_0x34ca8f),_0x34ca8f['view']['focusTracker'][_0x4c3f('0x15')](_0x34ca8f[_0x4c3f('0x1a')]['element']),_0x34ca8f['view'][_0x4c3f('0x8')][_0x4c3f('0x9')](_0x34ca8f[_0x4c3f('0x1a')][_0x4c3f('0xd')]);}this[_0x4c3f('0x11')](_0x311b93,_0x4c3f('0x9'),(_0x39141c,_0x249ae1)=>{_0x249ae1['isVisible']&&_0x4e493a[_0x4c3f('0x9')](_0x249ae1),this[_0x4c3f('0x11')](_0x249ae1,_0x4c3f('0x5'),_0x2a7189);}),this[_0x4c3f('0x11')](_0x311b93,'remove',(_0x292038,_0x346a44)=>{_0x4e493a[_0x4c3f('0x13')](_0x346a44)&&_0x4e493a[_0x4c3f('0x15')](_0x346a44),this[_0x4c3f('0xe')](_0x346a44,_0x4c3f('0x5'),_0x2a7189);});}}
23
+ const _0x1a79=['isVisible','_deactivateAllAnnotations','source','change:isVisible','getByInnerView','add','focusTracker','delete','listenTo','has','stopListening','activeAnnotations','refreshPositioning','activate','Annotations','refreshVisibility','remove','collection','pluginName','deactivateAll','_addActiveAnnotation','createAnnotationView','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','destroy','fire','_activateAnnotation','_removeActiveAnnotation','view','element','createAnnotation'];(function(_0x566e1b,_0x1a797b){const _0x3eae89=function(_0x50fab9){while(--_0x50fab9){_0x566e1b['push'](_0x566e1b['shift']());}};_0x3eae89(++_0x1a797b);}(_0x1a79,0x1cf));const _0x3eae=function(_0x566e1b,_0x1a797b){_0x566e1b=_0x566e1b-0x0;let _0x3eae89=_0x1a79[_0x566e1b];return _0x3eae89;};import{ContextPlugin as _0x40eb9a}from'ckeditor5/src/core';import _0x2a20bb from'./annotation';import _0x1efeef from'./annotationcollection';import _0x2383cd from'./view/annotationview';export default class b extends _0x40eb9a{static get[_0x3eae('0x14')](){return _0x3eae('0x10');}constructor(_0xdab8e2){super(_0xdab8e2),this[_0x3eae('0x13')]=new _0x1efeef(),this[_0x3eae('0x19')]=new _0x1efeef(),this['set'](_0x3eae('0xd'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x3eae('0x7')](_0x284b69){this[_0x3eae('0x13')]['add'](_0x284b69);}[_0x3eae('0x12')](_0x910121){this['collection'][_0x3eae('0x12')](_0x910121),_0x910121[_0x3eae('0x1a')]();}[_0x3eae('0x11')](){for(const _0x21dc0f of this[_0x3eae('0x13')])_0x21dc0f[_0x3eae('0x11')]();}[_0x3eae('0xe')](){this['_visibleAnnotations'][_0x3eae('0xe')]();}[_0x3eae('0x6')](_0x1c68a9){return this[_0x3eae('0x13')]['getByInnerView'](_0x1c68a9);}[_0x3eae('0x15')](){this[_0x3eae('0x1b')](_0x3eae('0x3'));}[_0x3eae('0x1a')](){for(const _0x54d8bf of this[_0x3eae('0x13')])_0x54d8bf[_0x3eae('0x1a')]();this[_0x3eae('0x19')]['destroy'](),this[_0x3eae('0x13')][_0x3eae('0x1a')](),super[_0x3eae('0x1a')]();}[_0x3eae('0xf')](_0x3c5353){this[_0x3eae('0x1b')](_0x3eae('0x1c'),_0x3c5353);}[_0x3eae('0x1')](_0x4b2436){return new _0x2a20bb(_0x4b2436);}[_0x3eae('0x17')](_0x2462d3,_0x7b18ff){return new _0x2383cd(_0x2462d3,_0x7b18ff);}[_0x3eae('0x16')](_0x35ef64){const _0x522577=new Set(this[_0x3eae('0xd')]);_0x522577[_0x3eae('0x7')](_0x35ef64),this[_0x3eae('0xd')]=_0x522577;}[_0x3eae('0x1d')](_0x105be7){const _0x14daa3=new Set(this[_0x3eae('0xd')]);_0x14daa3[_0x3eae('0x9')](_0x105be7),this[_0x3eae('0xd')]=_0x14daa3;}[_0x3eae('0x18')](){const _0x1f73a1=this['collection'],_0x594290=this[_0x3eae('0x19')];function _0xc11f71(_0x2d791){const _0x37aa09=_0x2d791[_0x3eae('0x4')];_0x37aa09['isVisible']&&!_0x594290[_0x3eae('0xb')](_0x37aa09)?_0x594290[_0x3eae('0x7')](_0x37aa09):!_0x37aa09[_0x3eae('0x2')]&&_0x594290['has'](_0x37aa09)&&_0x594290['remove'](_0x37aa09),_0x37aa09[_0x3eae('0x1e')][_0x3eae('0x8')][_0x3eae('0x12')](_0x37aa09[_0x3eae('0x1e')][_0x3eae('0x0')]),_0x37aa09[_0x3eae('0x1e')][_0x3eae('0x8')][_0x3eae('0x7')](_0x37aa09[_0x3eae('0x1e')]['element']);}this['listenTo'](_0x1f73a1,_0x3eae('0x7'),(_0x13744e,_0x383a26)=>{_0x383a26[_0x3eae('0x2')]&&_0x594290['add'](_0x383a26),this[_0x3eae('0xa')](_0x383a26,_0x3eae('0x5'),_0xc11f71);}),this['listenTo'](_0x1f73a1,_0x3eae('0x12'),(_0x38b80d,_0x2a4a7a)=>{_0x594290[_0x3eae('0xb')](_0x2a4a7a)&&_0x594290[_0x3eae('0x12')](_0x2a4a7a),this[_0x3eae('0xc')](_0x2a4a7a,_0x3eae('0x5'),_0xc11f71);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48c5=['listenTo','AnnotationsUIs','add','_uis','refilterAnnotations','_activateAnnotation','_visibleAnnotations','activeUIs','activate','annotationsuis-annotation-mismatch','register','switchTo','_uisData','find','has','length','context','deactivateAll','setActiveAnnotation','filter','set','attach','_deactivateAllAnnotations','from','collection','_addActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-register-invalid-interface','detach','function','deactivate','hasActive','isActive','requires','plugins','remove','stopListening','get','annotationsuis-missing-ui','init','destroy','pluginName','type','delete','_setSelectedAnnotations','annotationsuis-register-already-registered'];(function(_0x2fae2f,_0x48c5ce){const _0x49282f=function(_0x407d55){while(--_0x407d55){_0x2fae2f['push'](_0x2fae2f['shift']());}};_0x49282f(++_0x48c5ce);}(_0x48c5,0x12c));const _0x4928=function(_0x2fae2f,_0x48c5ce){_0x2fae2f=_0x2fae2f-0x0;let _0x49282f=_0x48c5[_0x2fae2f];return _0x49282f;};import{ContextPlugin as _0x16ec08}from'ckeditor5/src/core';import{CKEditorError as _0xf9a28}from'ckeditor5/src/utils';import _0x444a8b,{bindAnnotationCollections as _0x2c4217}from'./annotationcollection';import _0x560677 from'./annotations';export default class M extends _0x16ec08{static get[_0x4928('0x9')](){return[_0x560677];}static get[_0x4928('0x11')](){return _0x4928('0x17');}constructor(_0x55a0ae){super(_0x55a0ae),this['activeUIs']=new Set(),this[_0x4928('0x19')]=new Map(),this[_0x4928('0x22')]=new Map();}[_0x4928('0xf')](){const _0x235be5=this[_0x4928('0x26')][_0x4928('0xa')][_0x4928('0xd')](_0x560677);this[_0x4928('0x16')](_0x235be5,_0x4928('0x1b'),(_0x22227a,_0x2b27d4)=>{for(const _0x82766c of this['activeUIs']){const _0x3970a3=this[_0x4928('0x19')][_0x4928('0xd')](_0x82766c);(0x0,this[_0x4928('0x22')]['get'](_0x82766c)[_0x4928('0x29')])(_0x2b27d4)&&_0x3970a3['setActiveAnnotation'](_0x2b27d4);}}),this[_0x4928('0x16')](_0x235be5,_0x4928('0x2c'),()=>{for(const _0x31cf47 of this[_0x4928('0x1d')]){this['_uis'][_0x4928('0xd')](_0x31cf47)[_0x4928('0x28')](null);}}),this[_0x4928('0x16')](_0x235be5[_0x4928('0x1c')],_0x4928('0x18'),(_0x38abc5,_0x38acb0)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x38acb0);});}[_0x4928('0x7')](){return this[_0x4928('0x1d')]['size']>0x0;}[_0x4928('0x8')](_0x590203){return this['activeUIs'][_0x4928('0x24')](_0x590203);}[_0x4928('0x1e')](_0x1864d3,_0x356ab2=()=>!0x0){const _0x49efba=this[_0x4928('0x26')][_0x4928('0xa')][_0x4928('0xd')](_0x560677);if(!this['_uis']['has'](_0x1864d3))throw new _0xf9a28(_0x4928('0xe'),this,{'uiName':_0x1864d3});this[_0x4928('0x8')](_0x1864d3)&&this[_0x4928('0x6')](_0x1864d3),this['activeUIs'][_0x4928('0x18')](_0x1864d3);const _0xb7159a=new _0x444a8b(),_0x5b676b=_0x49efba[_0x4928('0x1c')];_0x2c4217({'source':_0x5b676b,'target':_0xb7159a,'filter':_0x356ab2}),this['_uisData'][_0x4928('0x2a')](_0x1864d3,{'collection':_0xb7159a,'filter':_0x356ab2});const _0x53f523=this[_0x4928('0x19')][_0x4928('0xd')](_0x1864d3);_0x53f523[_0x4928('0x2b')](_0xb7159a),this[_0x4928('0x16')](_0x53f523,'change:activeAnnotation',(_0x215e99,_0x2c4e18,_0x134ab9,_0x46e2bf)=>{_0x46e2bf&&_0x49efba['_removeActiveAnnotation'](_0x46e2bf),_0x134ab9&&_0x49efba[_0x4928('0x1')](_0x134ab9);});}[_0x4928('0x6')](_0x457143){if(this[_0x4928('0x1d')][_0x4928('0x13')](_0x457143),!this[_0x4928('0x19')]['has'](_0x457143))throw new _0xf9a28(_0x4928('0xe'),this,{'uiName':_0x457143});const _0x14cf53=this[_0x4928('0x19')][_0x4928('0xd')](_0x457143);_0x14cf53[_0x4928('0x4')](),this[_0x4928('0xc')](_0x14cf53),this['_uisData'][_0x4928('0xd')](_0x457143)['collection'][_0x4928('0x10')](),this[_0x4928('0x22')][_0x4928('0x13')](_0x457143);}[_0x4928('0x21')](_0x46c873){if(!this[_0x4928('0x19')][_0x4928('0x24')](_0x46c873))throw new _0xf9a28('annotationsuis-missing-ui',this,{'uiName':_0x46c873});const _0x26b304=this[_0x4928('0x26')][_0x4928('0xa')][_0x4928('0xd')](_0x560677),_0x2673cb=Array['from'](_0x26b304['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this[_0x4928('0x1e')](_0x46c873);const _0x3936e4=this[_0x4928('0x19')][_0x4928('0xd')](_0x46c873);_0x3936e4[_0x4928('0x28')](_0x2673cb),_0x3936e4['_setSelectedAnnotations']&&_0x2673cb&&_0x3936e4[_0x4928('0x14')]([_0x2673cb]);}[_0x4928('0x27')](){for(const _0x59ab38 of this[_0x4928('0x1d')])this['deactivate'](_0x59ab38);}[_0x4928('0x20')](_0x3e04db,_0x31c6ea){if(this[_0x4928('0x19')][_0x4928('0x24')](_0x3e04db))throw new _0xf9a28(_0x4928('0x15'));if(_0x4928('0x5')!=typeof _0x31c6ea[_0x4928('0x2b')]||'function'!=typeof _0x31c6ea[_0x4928('0x4')]||_0x4928('0x5')!=typeof _0x31c6ea[_0x4928('0x28')])throw new _0xf9a28(_0x4928('0x3'),null);this['_uis'][_0x4928('0x2a')](_0x3e04db,_0x31c6ea);}[_0x4928('0x1a')](){const _0x265091=this[_0x4928('0x26')]['plugins']['get'](_0x560677)[_0x4928('0x0')],_0x2da993=new Map(),_0x473b8c=Array[_0x4928('0x2d')](this[_0x4928('0x1d')]);for(const _0x137897 of this['activeUIs']){const _0x38bc4b=this['_uisData'][_0x4928('0xd')](_0x137897)[_0x4928('0x0')];for(const _0x313cd9 of _0x38bc4b)_0x2da993[_0x4928('0x2a')](_0x313cd9,_0x137897);}for(const _0x5d8d1c of _0x265091){const _0x5a2e60=_0x2da993[_0x4928('0xd')](_0x5d8d1c);this[_0x4928('0x2')](_0x5d8d1c);const _0x410913=_0x473b8c[_0x4928('0x23')](_0x233ee2=>this['_uisData']['get'](_0x233ee2)[_0x4928('0x29')](_0x5d8d1c));_0x5a2e60!==_0x410913&&(_0x5a2e60&&this[_0x4928('0x22')][_0x4928('0xd')](_0x5a2e60)[_0x4928('0x0')][_0x4928('0xb')](_0x5d8d1c),_0x410913&&this[_0x4928('0x22')][_0x4928('0xd')](_0x410913)[_0x4928('0x0')][_0x4928('0x18')](_0x5d8d1c));}}[_0x4928('0x10')](){this[_0x4928('0x27')](),super[_0x4928('0x10')]();}[_0x4928('0x2')](_0x2baf73){const _0x5ac3ef=[];for(const _0x1b121c of this[_0x4928('0x1d')]){(0x0,this[_0x4928('0x22')][_0x4928('0xd')](_0x1b121c)['filter'])(_0x2baf73)&&_0x5ac3ef['push'](_0x1b121c);}if(_0x5ac3ef[_0x4928('0x25')]>0x1)throw new _0xf9a28(_0x4928('0x1f'),null,{'matchedUIs':_0x5ac3ef,'annotationType':_0x2baf73[_0x4928('0x12')]});}}
23
+ const _0x3be6=['has','annotationsuis-register-already-registered','requires','switchTo','set','annotationsuis-register-invalid-interface','collection','plugins','_activateAnnotation','activeAnnotations','_addActiveAnnotation','remove','find','_visibleAnnotations','function','activeUIs','listenTo','isActive','setActiveAnnotation','add','context','push','_uis','attach','delete','deactivate','refilterAnnotations','destroy','register','detach','_assertAnnotationDoesNotBelongToMultipleUIs','size','_uisData','change:activeAnnotation','deactivateAll','_setSelectedAnnotations','get','_removeActiveAnnotation','activate','annotationsuis-annotation-mismatch','annotationsuis-missing-ui','from','filter'];(function(_0xa7b445,_0x3be6a5){const _0x4961cb=function(_0x5d2ba6){while(--_0x5d2ba6){_0xa7b445['push'](_0xa7b445['shift']());}};_0x4961cb(++_0x3be6a5);}(_0x3be6,0x90));const _0x4961=function(_0xa7b445,_0x3be6a5){_0xa7b445=_0xa7b445-0x0;let _0x4961cb=_0x3be6[_0xa7b445];return _0x4961cb;};import{ContextPlugin as _0xdc7f5e}from'ckeditor5/src/core';import{CKEditorError as _0x513aea}from'ckeditor5/src/utils';import _0x1904a5,{bindAnnotationCollections as _0x2251fa}from'./annotationcollection';import _0x5a7478 from'./annotations';export default class M extends _0xdc7f5e{static get[_0x4961('0x1e')](){return[_0x5a7478];}static get['pluginName'](){return'AnnotationsUIs';}constructor(_0x2fb1d1){super(_0x2fb1d1),this[_0x4961('0x0')]=new Set(),this['_uis']=new Map(),this[_0x4961('0x11')]=new Map();}['init'](){const _0x2d9913=this[_0x4961('0x5')][_0x4961('0x23')][_0x4961('0x15')](_0x5a7478);this['listenTo'](_0x2d9913,_0x4961('0x24'),(_0x30c9a9,_0x251741)=>{for(const _0x4d9650 of this[_0x4961('0x0')]){const _0x15c442=this[_0x4961('0x7')][_0x4961('0x15')](_0x4d9650);(0x0,this[_0x4961('0x11')][_0x4961('0x15')](_0x4d9650)[_0x4961('0x1b')])(_0x251741)&&_0x15c442[_0x4961('0x3')](_0x251741);}}),this[_0x4961('0x1')](_0x2d9913,'_deactivateAllAnnotations',()=>{for(const _0xeb8f01 of this[_0x4961('0x0')]){this['_uis'][_0x4961('0x15')](_0xeb8f01)[_0x4961('0x3')](null);}}),this[_0x4961('0x1')](_0x2d9913['_visibleAnnotations'],'add',(_0x1b0f7f,_0x4a7fb7)=>{this[_0x4961('0xf')](_0x4a7fb7);});}['hasActive'](){return this[_0x4961('0x0')][_0x4961('0x10')]>0x0;}[_0x4961('0x2')](_0x1d2f44){return this['activeUIs']['has'](_0x1d2f44);}[_0x4961('0x17')](_0x1c6590,_0x590f3b=()=>!0x0){const _0x3ffa67=this['context'][_0x4961('0x23')][_0x4961('0x15')](_0x5a7478);if(!this[_0x4961('0x7')]['has'](_0x1c6590))throw new _0x513aea('annotationsuis-missing-ui',this,{'uiName':_0x1c6590});this[_0x4961('0x2')](_0x1c6590)&&this[_0x4961('0xa')](_0x1c6590),this[_0x4961('0x0')][_0x4961('0x4')](_0x1c6590);const _0x448e8d=new _0x1904a5(),_0x23f570=_0x3ffa67[_0x4961('0x29')];_0x2251fa({'source':_0x23f570,'target':_0x448e8d,'filter':_0x590f3b}),this[_0x4961('0x11')][_0x4961('0x20')](_0x1c6590,{'collection':_0x448e8d,'filter':_0x590f3b});const _0x5780bc=this[_0x4961('0x7')][_0x4961('0x15')](_0x1c6590);_0x5780bc[_0x4961('0x8')](_0x448e8d),this[_0x4961('0x1')](_0x5780bc,_0x4961('0x12'),(_0x41985b,_0x8bf379,_0x142194,_0x40c1d5)=>{_0x40c1d5&&_0x3ffa67[_0x4961('0x16')](_0x40c1d5),_0x142194&&_0x3ffa67[_0x4961('0x26')](_0x142194);});}['deactivate'](_0x9664e6){if(this[_0x4961('0x0')][_0x4961('0x9')](_0x9664e6),!this[_0x4961('0x7')]['has'](_0x9664e6))throw new _0x513aea(_0x4961('0x19'),this,{'uiName':_0x9664e6});const _0x2d8f5a=this['_uis'][_0x4961('0x15')](_0x9664e6);_0x2d8f5a[_0x4961('0xe')](),this['stopListening'](_0x2d8f5a),this[_0x4961('0x11')][_0x4961('0x15')](_0x9664e6)[_0x4961('0x22')][_0x4961('0xc')](),this['_uisData'][_0x4961('0x9')](_0x9664e6);}[_0x4961('0x1f')](_0x5c293f){if(!this[_0x4961('0x7')][_0x4961('0x1c')](_0x5c293f))throw new _0x513aea(_0x4961('0x19'),this,{'uiName':_0x5c293f});const _0x497c22=this[_0x4961('0x5')][_0x4961('0x23')][_0x4961('0x15')](_0x5a7478),_0xa85e8d=Array[_0x4961('0x1a')](_0x497c22[_0x4961('0x25')])[0x0]||null;this[_0x4961('0x13')](),this[_0x4961('0x17')](_0x5c293f);const _0x27b6d8=this[_0x4961('0x7')]['get'](_0x5c293f);_0x27b6d8[_0x4961('0x3')](_0xa85e8d),_0x27b6d8[_0x4961('0x14')]&&_0xa85e8d&&_0x27b6d8[_0x4961('0x14')]([_0xa85e8d]);}[_0x4961('0x13')](){for(const _0x17c48d of this[_0x4961('0x0')])this['deactivate'](_0x17c48d);}[_0x4961('0xd')](_0x26f9b9,_0x1d60b8){if(this[_0x4961('0x7')][_0x4961('0x1c')](_0x26f9b9))throw new _0x513aea(_0x4961('0x1d'));if(_0x4961('0x2a')!=typeof _0x1d60b8[_0x4961('0x8')]||'function'!=typeof _0x1d60b8[_0x4961('0xe')]||_0x4961('0x2a')!=typeof _0x1d60b8[_0x4961('0x3')])throw new _0x513aea(_0x4961('0x21'),null);this[_0x4961('0x7')][_0x4961('0x20')](_0x26f9b9,_0x1d60b8);}[_0x4961('0xb')](){const _0x5a45c9=this[_0x4961('0x5')]['plugins'][_0x4961('0x15')](_0x5a7478)[_0x4961('0x22')],_0x33a422=new Map(),_0x399267=Array['from'](this['activeUIs']);for(const _0x37017a of this[_0x4961('0x0')]){const _0x2e26a5=this[_0x4961('0x11')][_0x4961('0x15')](_0x37017a)[_0x4961('0x22')];for(const _0x188615 of _0x2e26a5)_0x33a422[_0x4961('0x20')](_0x188615,_0x37017a);}for(const _0x42c4ff of _0x5a45c9){const _0x24edc0=_0x33a422[_0x4961('0x15')](_0x42c4ff);this[_0x4961('0xf')](_0x42c4ff);const _0x106ab3=_0x399267[_0x4961('0x28')](_0x17102e=>this[_0x4961('0x11')][_0x4961('0x15')](_0x17102e)['filter'](_0x42c4ff));_0x24edc0!==_0x106ab3&&(_0x24edc0&&this['_uisData'][_0x4961('0x15')](_0x24edc0)[_0x4961('0x22')][_0x4961('0x27')](_0x42c4ff),_0x106ab3&&this[_0x4961('0x11')][_0x4961('0x15')](_0x106ab3)[_0x4961('0x22')][_0x4961('0x4')](_0x42c4ff));}}[_0x4961('0xc')](){this[_0x4961('0x13')](),super['destroy']();}[_0x4961('0xf')](_0xc6bda1){const _0x12483a=[];for(const _0x5432e6 of this[_0x4961('0x0')]){(0x0,this[_0x4961('0x11')][_0x4961('0x15')](_0x5432e6)[_0x4961('0x1b')])(_0xc6bda1)&&_0x12483a[_0x4961('0x6')](_0x5432e6);}if(_0x12483a['length']>0x1)throw new _0x513aea(_0x4961('0x18'),null,{'matchedUIs':_0x12483a,'annotationType':_0xc6bda1['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf43b=['isCollapsed','get','from','innerView','listenTo','range','view','hasDomSelection','cancel','has','containsRange','sort','registerAnnotation','getRanges','element','_dataCollectors','document','focusTracker','getByInnerView','annotation','remove','push','init','refreshSelectedViews','add','editor','selection','map','collection','editing','uiUpdate','getOrderedSelectedAnnotations','pluginName','fire','delete','_editorAnnotationsData','isReadOnly','plugins','_editorAnnotations','directChange','addSourceCollector','function','update','isEqual'];(function(_0x4f2f27,_0xf43bbe){const _0x5b3be8=function(_0x2c7d88){while(--_0x2c7d88){_0x4f2f27['push'](_0x4f2f27['shift']());}};_0x5b3be8(++_0xf43bbe);}(_0xf43b,0x1b0));const _0x5b3b=function(_0x4f2f27,_0xf43bbe){_0x4f2f27=_0x4f2f27-0x0;let _0x5b3be8=_0xf43b[_0x4f2f27];return _0x5b3be8;};import{Plugin as _0x54b22c}from'ckeditor5/src/core';import{CKEditorError as _0x19dd0f}from'ckeditor5/src/utils';import{debounce as _0x1157f3}from'lodash-es';import _0x1b9f7b from'./annotations';export default class k extends _0x54b22c{static get['requires'](){return[_0x1b9f7b];}static get[_0x5b3b('0x28')](){return'EditorAnnotations';}constructor(_0x2f2443){super(_0x2f2443),this[_0x5b3b('0x17')]=new Set(),this['_editorAnnotations']=new Set();}[_0x5b3b('0x1e')](){const _0x56bcbb=this[_0x5b3b('0x21')],_0x4e37d1=_0x56bcbb['model'][_0x5b3b('0x18')][_0x5b3b('0x22')],_0x519c76=_0x1157f3(()=>this[_0x5b3b('0x1f')](),0xa);_0x4e37d1['on']('change:range',(_0xfb6934,_0x12116f)=>{_0x12116f[_0x5b3b('0x3')]&&(_0x519c76[_0x5b3b('0x10')](),this[_0x5b3b('0x1f')]());}),this[_0x5b3b('0xc')](_0x56bcbb[_0x5b3b('0x25')][_0x5b3b('0xe')][_0x5b3b('0x18')],'change:isFocused',(_0x31071e,_0x446fce,_0x240a43)=>{_0x240a43&&_0x519c76();}),this['listenTo'](_0x56bcbb['ui'][_0x5b3b('0x19')],'change:isFocused',(_0x1c7c26,_0x59ab5f,_0x27fa94)=>{_0x27fa94||_0x56bcbb[_0x5b3b('0x0')]||this['fire']('blur',{'isAnnotationTracked':_0x43c674=>this['_editorAnnotationsData'][_0x5b3b('0x11')](_0x43c674[_0x5b3b('0xb')])});}),this['listenTo'](this['editor']['ui'],_0x5b3b('0x6'),()=>this[_0x5b3b('0x29')](_0x5b3b('0x26')));}[_0x5b3b('0x14')](_0x5d835e){if(this[_0x5b3b('0x2')][_0x5b3b('0x11')](_0x5d835e[_0x5b3b('0xe')]))return;this[_0x5b3b('0x2')]['add'](_0x5d835e[_0x5b3b('0xe')]),this[_0x5b3b('0x21')]['ui']['focusTracker'][_0x5b3b('0x20')](_0x5d835e['view'][_0x5b3b('0x16')]);const _0x39baf3=this['editor'][_0x5b3b('0x1')][_0x5b3b('0x9')](_0x1b9f7b);this[_0x5b3b('0xc')](_0x39baf3[_0x5b3b('0x24')],_0x5b3b('0x1c'),(_0x18e000,_0x5eae73)=>{this[_0x5b3b('0x21')]['ui'][_0x5b3b('0x19')][_0x5b3b('0x1c')](_0x5eae73[_0x5b3b('0xe')]['element']),this[_0x5b3b('0x2')][_0x5b3b('0x2a')](_0x5eae73['view']);});}[_0x5b3b('0xf')](){return this[_0x5b3b('0x21')][_0x5b3b('0x25')]['view'][_0x5b3b('0xf')];}[_0x5b3b('0x4')](_0x54df29){if(_0x5b3b('0x5')!=typeof _0x54df29)throw new _0x19dd0f('editorannotations-invalid-source-callback');this[_0x5b3b('0x17')][_0x5b3b('0x20')](_0x54df29);}[_0x5b3b('0x1f')](){this[_0x5b3b('0x29')]('refresh');}[_0x5b3b('0x27')]({activeAnnotation:_0x4367e5,annotations:_0x23587b}){const _0x4554fd=[],_0x328064=this['editor']['model'][_0x5b3b('0x18')][_0x5b3b('0x22')],_0xd1b7ad=Array[_0x5b3b('0xa')](_0x328064[_0x5b3b('0x15')]());for(const [_0x3c01f9,_0x3c3c1f]of this[_0x5b3b('0x2b')]){const _0x247cfe=_0x3c2b9e(_0x3c3c1f),_0x40e755=_0x23587b[_0x5b3b('0x1a')](_0x3c01f9);_0x247cfe&&_0x40e755&&_0x4554fd[_0x5b3b('0x1d')]({'annotation':_0x40e755,'range':_0x247cfe});}function _0x3c2b9e(_0x630559){for(const _0x22bfb2 of _0x630559)for(const _0x1cd8e4 of _0xd1b7ad)if(_0x22bfb2[_0x5b3b('0x12')](_0x1cd8e4,!_0x328064[_0x5b3b('0x8')]))return _0x22bfb2;return null;}return _0x4554fd[_0x5b3b('0x13')]((_0x3679e2,_0x15c289)=>{const _0x518bbd=_0x3679e2['range'],_0x1dea6a=_0x15c289[_0x5b3b('0xd')];if(!_0x518bbd[_0x5b3b('0x7')](_0x1dea6a)){if(_0x518bbd[_0x5b3b('0x12')](_0x1dea6a,!0x0))return 0x1;if(_0x1dea6a[_0x5b3b('0x12')](_0x518bbd,!0x0))return-0x1;}return _0x3679e2[_0x5b3b('0x1b')]==_0x4367e5?-0x1:_0x15c289['annotation']==_0x4367e5?0x1:0x0;})[_0x5b3b('0x23')](_0x55c9fd=>_0x55c9fd['annotation']);}get['_editorAnnotationsData'](){const _0x38ee7c=new Map();for(const _0x22e745 of Array[_0x5b3b('0xa')](this['_dataCollectors']))for(const [_0x406ae5,_0x3d5006]of _0x22e745())_0x38ee7c['set'](_0x406ae5,_0x3d5006);return _0x38ee7c;}}
23
+ const _0xc770=['editor','hasDomSelection','sort','from','get','delete','document','isCollapsed','selection','view','annotation','refreshSelectedViews','model','add','cancel','remove','function','push','innerView','containsRange','_editorAnnotations','requires','has','init','listenTo','update','EditorAnnotations','_editorAnnotationsData','change:range','change:isFocused','set','focusTracker','isReadOnly','plugins','editing','fire','getOrderedSelectedAnnotations','range','element'];(function(_0x2f8bd2,_0xc77071){const _0x3f4333=function(_0x31d3e1){while(--_0x31d3e1){_0x2f8bd2['push'](_0x2f8bd2['shift']());}};_0x3f4333(++_0xc77071);}(_0xc770,0x12b));const _0x3f43=function(_0x2f8bd2,_0xc77071){_0x2f8bd2=_0x2f8bd2-0x0;let _0x3f4333=_0xc770[_0x2f8bd2];return _0x3f4333;};import{Plugin as _0x44d0f4}from'ckeditor5/src/core';import{CKEditorError as _0x5286fc}from'ckeditor5/src/utils';import{debounce as _0x1bb5ce}from'lodash-es';import _0x3d6f48 from'./annotations';export default class k extends _0x44d0f4{static get[_0x3f43('0x22')](){return[_0x3d6f48];}static get['pluginName'](){return _0x3f43('0x0');}constructor(_0x403246){super(_0x403246),this['_dataCollectors']=new Set(),this[_0x3f43('0x21')]=new Set();}[_0x3f43('0x24')](){const _0x2b9f0c=this[_0x3f43('0xd')],_0x1f716b=_0x2b9f0c['model'][_0x3f43('0x13')][_0x3f43('0x15')],_0x3e94f6=_0x1bb5ce(()=>this[_0x3f43('0x18')](),0xa);_0x1f716b['on'](_0x3f43('0x2'),(_0x58ac33,_0x2a1520)=>{_0x2a1520['directChange']&&(_0x3e94f6[_0x3f43('0x1b')](),this[_0x3f43('0x18')]());}),this[_0x3f43('0x25')](_0x2b9f0c[_0x3f43('0x8')][_0x3f43('0x16')][_0x3f43('0x13')],_0x3f43('0x3'),(_0x113d17,_0x43b7f2,_0x227715)=>{_0x227715&&_0x3e94f6();}),this['listenTo'](_0x2b9f0c['ui'][_0x3f43('0x5')],_0x3f43('0x3'),(_0x54d7e5,_0xc69d4f,_0x1f1e04)=>{_0x1f1e04||_0x2b9f0c[_0x3f43('0x6')]||this[_0x3f43('0x9')]('blur',{'isAnnotationTracked':_0x3b4330=>this[_0x3f43('0x1')]['has'](_0x3b4330[_0x3f43('0x1f')])});}),this[_0x3f43('0x25')](this['editor']['ui'],_0x3f43('0x26'),()=>this[_0x3f43('0x9')]('uiUpdate'));}['registerAnnotation'](_0x5e896c){if(this[_0x3f43('0x21')][_0x3f43('0x23')](_0x5e896c[_0x3f43('0x16')]))return;this['_editorAnnotations'][_0x3f43('0x1a')](_0x5e896c['view']),this['editor']['ui'][_0x3f43('0x5')][_0x3f43('0x1a')](_0x5e896c[_0x3f43('0x16')][_0x3f43('0xc')]);const _0x4d8c16=this[_0x3f43('0xd')][_0x3f43('0x7')][_0x3f43('0x11')](_0x3d6f48);this['listenTo'](_0x4d8c16['collection'],_0x3f43('0x1c'),(_0x408107,_0x25839d)=>{this[_0x3f43('0xd')]['ui'][_0x3f43('0x5')][_0x3f43('0x1c')](_0x25839d['view'][_0x3f43('0xc')]),this[_0x3f43('0x21')][_0x3f43('0x12')](_0x25839d[_0x3f43('0x16')]);});}[_0x3f43('0xe')](){return this[_0x3f43('0xd')]['editing']['view'][_0x3f43('0xe')];}['addSourceCollector'](_0xb96fef){if(_0x3f43('0x1d')!=typeof _0xb96fef)throw new _0x5286fc('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x3f43('0x1a')](_0xb96fef);}['refreshSelectedViews'](){this[_0x3f43('0x9')]('refresh');}[_0x3f43('0xa')]({activeAnnotation:_0x241e5b,annotations:_0x3062b8}){const _0x3337c2=[],_0x28fdcc=this[_0x3f43('0xd')][_0x3f43('0x19')]['document'][_0x3f43('0x15')],_0x3d256a=Array[_0x3f43('0x10')](_0x28fdcc['getRanges']());for(const [_0x1cc280,_0x49273b]of this['_editorAnnotationsData']){const _0x42094a=_0x1f82a5(_0x49273b),_0x5e990c=_0x3062b8['getByInnerView'](_0x1cc280);_0x42094a&&_0x5e990c&&_0x3337c2[_0x3f43('0x1e')]({'annotation':_0x5e990c,'range':_0x42094a});}function _0x1f82a5(_0x210b76){for(const _0x39cc50 of _0x210b76)for(const _0x5b507a of _0x3d256a)if(_0x39cc50[_0x3f43('0x20')](_0x5b507a,!_0x28fdcc[_0x3f43('0x14')]))return _0x39cc50;return null;}return _0x3337c2[_0x3f43('0xf')]((_0x3069b7,_0x4a6e12)=>{const _0x462728=_0x3069b7[_0x3f43('0xb')],_0x49054d=_0x4a6e12[_0x3f43('0xb')];if(!_0x462728['isEqual'](_0x49054d)){if(_0x462728['containsRange'](_0x49054d,!0x0))return 0x1;if(_0x49054d[_0x3f43('0x20')](_0x462728,!0x0))return-0x1;}return _0x3069b7[_0x3f43('0x17')]==_0x241e5b?-0x1:_0x4a6e12[_0x3f43('0x17')]==_0x241e5b?0x1:0x0;})['map'](_0x5ea7a6=>_0x5ea7a6['annotation']);}get[_0x3f43('0x1')](){const _0x325a82=new Map();for(const _0x3b0b79 of Array['from'](this['_dataCollectors']))for(const [_0x1dfcd1,_0x16e46f]of _0x3b0b79())_0x325a82[_0x3f43('0x4')](_0x1dfcd1,_0x16e46f);return _0x325a82;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x149f=['annotations','editor','set','change:visibleView','destroy','_forceRefresh','_setSelectedAnnotations','pluginName','top','add','viewRangeToDom','getBoundingClientRect','left','inlineannotations-not-allowed-with-context','visibleView','getOrderedSelectedAnnotations','context','editableElement','addObserver','change:isFocused','_selectedAnnotations','document','_getBalloonTargetForAnnotation','InlineAnnotations','activeAnnotation','_manuallyClosed','_addAnnotationToBalloon','fromRect','change:height','_addedAnnotations','attach','find','register','isActive','has','isFocused','hasView','switchTo','updatePosition','focus','selection','view','target','_removeAnnotationFromBalloon','setActiveAnnotation','inlineannotations-attach-already-attached','push','getFirstRange','get','focusTracker','getClientRects','map','targetRect','width','listenTo','inline','init','Esc','blur','length','keystrokes','domConverter','remove','_closeAnnotation','bottom','every','editing','clear','delete','plugins','includes','_balloon','mousedown','isAttached','from','update','right','collapse'];(function(_0x22570e,_0x149f6b){const _0x5cf8da=function(_0x5d0f5d){while(--_0x5d0f5d){_0x22570e['push'](_0x22570e['shift']());}};_0x5cf8da(++_0x149f6b);}(_0x149f,0xf4));const _0x5cf8=function(_0x22570e,_0x149f6b){_0x22570e=_0x22570e-0x0;let _0x5cf8da=_0x149f[_0x22570e];return _0x5cf8da;};import{Plugin as _0x13f7fd}from'ckeditor5/src/core';import _0x3c5756 from'./annotationsuis';import _0x1b23c3 from'./editorannotations';import{ContextualBalloon as _0x2fd483}from'ckeditor5/src/ui';import{MouseObserver as _0x333222}from'ckeditor5/src/engine';import{CKEditorError as _0x1a646f,Rect as _0x39829f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x13f7fd{static get['requires'](){return[_0x1b23c3,_0x2fd483,_0x3c5756];}static get[_0x5cf8('0x4b')](){return _0x5cf8('0xd');}constructor(_0x4812b1){super(_0x4812b1),_0x4812b1[_0x5cf8('0x38')]['view'][_0x5cf8('0x8')](_0x333222),this['isAttached']=!0x1,this['set'](_0x5cf8('0xe'),null),this[_0x5cf8('0x44')]=null,this[_0x5cf8('0xf')]=new Set(),this[_0x5cf8('0x3d')]=_0x4812b1[_0x5cf8('0x3b')][_0x5cf8('0x26')](_0x2fd483),this[_0x5cf8('0x13')]=new Set(),this[_0x5cf8('0xa')]=[],this['_forceRefresh']=!0x1;}[_0x5cf8('0x2e')](){const _0x6cfafb=this[_0x5cf8('0x45')][_0x5cf8('0x3b')]['get'](_0x3c5756);_0x6cfafb[_0x5cf8('0x6')]===this[_0x5cf8('0x45')]&&(_0x6cfafb[_0x5cf8('0x16')](_0x5cf8('0x2d'),this),this[_0x5cf8('0x45')][_0x5cf8('0x32')][_0x5cf8('0x46')](_0x5cf8('0x2f'),(_0x54b6ad,_0x5f1c49)=>{const _0x952ca4=this[_0x5cf8('0x3d')];if(this['isAttached']&&_0x952ca4[_0x5cf8('0x4')]){const _0x8c1fe5=this['annotations']['getByView'](_0x952ca4[_0x5cf8('0x4')]);_0x8c1fe5&&this['_closeAnnotation'](_0x8c1fe5),_0x5f1c49();}}));}['afterInit'](){const _0x4939d6=this[_0x5cf8('0x45')]['plugins'][_0x5cf8('0x26')](_0x3c5756);_0x4939d6[_0x5cf8('0x6')]===this[_0x5cf8('0x45')]&&(_0x4939d6['hasActive']()||_0x4939d6[_0x5cf8('0x1b')](_0x5cf8('0x2d')));}[_0x5cf8('0x22')](_0x536512){_0x536512!==this[_0x5cf8('0xe')]&&(this['activeAnnotation']&&(this[_0x5cf8('0xe')][_0x5cf8('0x17')]=!0x1),_0x536512&&this[_0x5cf8('0x45')]['ui'][_0x5cf8('0x27')][_0x5cf8('0x19')]&&(this['annotations'][_0x5cf8('0x18')](_0x536512)&&this['_addAnnotationToBalloon'](_0x536512,!0x0),_0x536512[_0x5cf8('0x17')]=!0x0),_0x536512||this[_0x5cf8('0x4a')]([]),this[_0x5cf8('0xe')]=_0x536512);}[_0x5cf8('0x14')](_0x35f8aa){this[_0x5cf8('0x44')]=_0x35f8aa;const _0x8f6927=this['editor'][_0x5cf8('0x3b')][_0x5cf8('0x26')](_0x3c5756),_0x422e56=this[_0x5cf8('0x3d')];if(this[_0x5cf8('0x3f')])throw new _0x1a646f(_0x5cf8('0x23'),this);if(_0x8f6927[_0x5cf8('0x6')]!==this[_0x5cf8('0x45')])throw new _0x1a646f(_0x5cf8('0x3'),this);const _0x42701f=this[_0x5cf8('0x45')]['plugins'][_0x5cf8('0x26')](_0x1b23c3);this['listenTo'](_0x42701f,'refresh',()=>{const _0xafa51c=_0x42701f[_0x5cf8('0x5')]({'annotations':this['annotations'],'activeAnnotation':this[_0x5cf8('0xe')]});var _0xfc856,_0x185cd4;!this['_forceRefresh']&&(_0xfc856=_0xafa51c,_0x185cd4=this[_0x5cf8('0xa')],_0xfc856[_0x5cf8('0x31')]===_0x185cd4[_0x5cf8('0x31')]&&_0xfc856[_0x5cf8('0x37')](_0x506676=>_0x185cd4['includes'](_0x506676)))||(this[_0x5cf8('0x49')]=!0x1,this[_0x5cf8('0x4a')](_0xafa51c),this['setActiveAnnotation'](_0xafa51c[0x0]||null));}),this[_0x5cf8('0x2c')](_0x42701f,_0x5cf8('0x30'),(_0x46a560,{isAnnotationTracked:_0x490865})=>{this['activeAnnotation']&&_0x490865(this[_0x5cf8('0xe')])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x5cf8('0x2c')](this['editor']['ui'][_0x5cf8('0x27')],_0x5cf8('0x9'),(_0x174709,_0x26a80,_0xb6f0e4)=>{_0xb6f0e4||this[_0x5cf8('0x22')](null);}),this[_0x5cf8('0x2c')](_0x35f8aa,_0x5cf8('0x34'),(_0x210a97,_0x1e7da6)=>{this[_0x5cf8('0x21')](_0x1e7da6),_0x1e7da6===this[_0x5cf8('0xe')]&&this[_0x5cf8('0x22')](null);}),this[_0x5cf8('0x2c')](_0x422e56,_0x5cf8('0x47'),(_0x106a32,_0x270532,_0x3fbc46,_0x48b59d)=>{_0x48b59d&&this['stopListening'](_0x48b59d);const _0x55c794=_0x35f8aa['getByView'](_0x3fbc46);_0x3fbc46&&_0x55c794&&(this[_0x5cf8('0x2c')](_0x3fbc46,_0x5cf8('0x12'),()=>{_0x422e56[_0x5cf8('0x1c')]();}),this['listenTo'](_0x3fbc46,'Esc',()=>{this[_0x5cf8('0x35')](_0x55c794),this[_0x5cf8('0x45')][_0x5cf8('0x38')]['view'][_0x5cf8('0x1d')]();}),this[_0x5cf8('0xe')]!==_0x55c794&&this[_0x5cf8('0x22')](_0x55c794));}),this[_0x5cf8('0x2c')](this[_0x5cf8('0x45')]['ui'],_0x5cf8('0x41'),()=>{_0x422e56['visibleView']&&(_0x35f8aa['getByView'](_0x422e56['visibleView'])&&_0x422e56[_0x5cf8('0x1c')]());}),this['listenTo'](this[_0x5cf8('0x45')][_0x5cf8('0x38')][_0x5cf8('0x1f')]['document'],_0x5cf8('0x3e'),()=>{this[_0x5cf8('0x49')]=!0x0,this[_0x5cf8('0xf')][_0x5cf8('0x39')]();}),this[_0x5cf8('0x45')]['editing'][_0x5cf8('0x1f')][_0x5cf8('0xb')][_0x5cf8('0x1e')][_0x5cf8('0x7')]&&this[_0x5cf8('0x45')][_0x5cf8('0x38')]['view']['focus'](),this[_0x5cf8('0x3f')]=!0x0;}['detach'](){if(!this[_0x5cf8('0x3f')])throw new _0x1a646f('inlineannotations-detach-not-attached',this);this[_0x5cf8('0x22')](null);for(const _0x1270b6 of this[_0x5cf8('0x13')])this['_removeAnnotationFromBalloon'](_0x1270b6);this['stopListening'](),this[_0x5cf8('0x3f')]=!0x1,this[_0x5cf8('0x44')]=null;}[_0x5cf8('0x48')](){this[_0x5cf8('0x3f')]&&this['detach']();}[_0x5cf8('0x4a')](_0x5de4aa){for(const _0x34a466 of this[_0x5cf8('0xa')])_0x5de4aa[_0x5cf8('0x3c')](_0x34a466)||this[_0x5cf8('0xf')][_0x5cf8('0x3a')](_0x34a466);for(const _0x5188c0 of this[_0x5cf8('0x44')])_0x5de4aa[_0x5cf8('0x3c')](_0x5188c0)||this[_0x5cf8('0x21')](_0x5188c0);if(this[_0x5cf8('0x45')]['ui'][_0x5cf8('0x27')][_0x5cf8('0x19')])for(const _0x5d8722 of _0x5de4aa)this['_addAnnotationToBalloon'](_0x5d8722);this[_0x5cf8('0xa')]=_0x5de4aa;}[_0x5cf8('0x10')](_0x29e756,_0x21f381=!0x1){this[_0x5cf8('0xf')][_0x5cf8('0x18')](_0x29e756)||(this[_0x5cf8('0x13')]['has'](_0x29e756)||this[_0x5cf8('0x3d')][_0x5cf8('0x1a')](_0x29e756[_0x5cf8('0x1f')])||(this[_0x5cf8('0x13')][_0x5cf8('0x4d')](_0x29e756),this[_0x5cf8('0x3d')]['add']({'stackId':_0x29e756['view']['id'],'view':_0x29e756[_0x5cf8('0x1f')],'position':{'target':()=>this[_0x5cf8('0xc')](_0x29e756)}})),_0x21f381&&this[_0x5cf8('0x3d')]['showStack'](_0x29e756[_0x5cf8('0x1f')]['id']));}['_getBalloonTargetForAnnotation'](_0xbd625c){const _0x22a04a=_0xbd625c[_0x5cf8('0x20')],_0x55ec7c=this['editor'][_0x5cf8('0x38')]['view'],_0x10221c=_0x55ec7c[_0x5cf8('0xb')]['selection'][_0x5cf8('0x25')](),_0x1fff57=_0x55ec7c[_0x5cf8('0x33')][_0x5cf8('0x0')](_0x10221c);if(_0x1fff57[_0x5cf8('0x43')](!0x0),_0x22a04a){if(_0x22a04a instanceof _0x39829f)return _0x22a04a;let _0x5ecc67=[];for(const _0x251803 of _0x22a04a)_0x5ecc67[_0x5cf8('0x24')](...(_0x201a87=_0x251803[_0x5cf8('0x28')](),Array[_0x5cf8('0x40')](_0x201a87)[_0x5cf8('0x29')](DOMRect[_0x5cf8('0x11')])));_0x5ecc67=function(_0x30d6b9){const _0x66b6d4=[];let _0x258edf=_0x30d6b9[0x0];for(let _0x3dbf99=0x1;_0x3dbf99<_0x30d6b9[_0x5cf8('0x31')];_0x3dbf99++)F(_0x258edf,_0x30d6b9[_0x3dbf99])?_0x258edf[_0x5cf8('0x2b')]+=_0x30d6b9[_0x3dbf99]['width']:(_0x66b6d4[_0x5cf8('0x24')](_0x258edf),_0x258edf=_0x30d6b9[_0x3dbf99]);return _0x66b6d4[_0x5cf8('0x24')](_0x258edf),_0x66b6d4;}(_0x5ecc67);const _0xa1b101=_0x1fff57[_0x5cf8('0x1')]();return _0x5ecc67[_0x5cf8('0x15')](_0x1a0e77=>_0x1a0e77[_0x5cf8('0x4c')]<=_0xa1b101['top']&&_0x1a0e77[_0x5cf8('0x36')]>=_0xa1b101[_0x5cf8('0x36')]&&_0x1a0e77[_0x5cf8('0x2')]<=_0xa1b101[_0x5cf8('0x2')]&&_0x1a0e77[_0x5cf8('0x42')]>=_0xa1b101[_0x5cf8('0x42')])||_0x5ecc67[0x0];}var _0x201a87;return _0xbd625c[_0x5cf8('0x2a')]||_0x1fff57;}[_0x5cf8('0x21')](_0x2f8df7){this[_0x5cf8('0x13')]['has'](_0x2f8df7)&&this[_0x5cf8('0x3d')][_0x5cf8('0x1a')](_0x2f8df7['view'])&&(this[_0x5cf8('0x13')][_0x5cf8('0x3a')](_0x2f8df7),this[_0x5cf8('0x3d')][_0x5cf8('0x34')](_0x2f8df7[_0x5cf8('0x1f')]));}[_0x5cf8('0x35')](_0x2aefa0){this[_0x5cf8('0xf')][_0x5cf8('0x4d')](_0x2aefa0),this['_removeAnnotationFromBalloon'](_0x2aefa0);}}function F(_0xb7a12c,_0x278b90){return _0xb7a12c[_0x5cf8('0x4c')]===_0x278b90[_0x5cf8('0x4c')]&&_0xb7a12c[_0x5cf8('0x36')]===_0x278b90[_0x5cf8('0x36')]&&_0xb7a12c['right']===_0x278b90[_0x5cf8('0x2')];}
23
+ const _0x5ad3=['_closeAnnotation','set','selection','_addedAnnotations','init','left','requires','plugins','editor','mousedown','clear','width','annotations','isActive','keystrokes','setActiveAnnotation','add','inlineannotations-not-allowed-with-context','_balloon','_forceRefresh','collapse','delete','showStack','listenTo','_getBalloonTargetForAnnotation','editing','destroy','document','isAttached','push','detach','every','top','domConverter','remove','getFirstRange','context','pluginName','updatePosition','length','change:isFocused','attach','inline','Esc','getByView','getClientRects','switchTo','editableElement','fromRect','includes','has','focusTracker','change:visibleView','_manuallyClosed','getOrderedSelectedAnnotations','from','change:height','focus','hasActive','hasView','_selectedAnnotations','target','right','bottom','activeAnnotation','get','_addAnnotationToBalloon','visibleView','_removeAnnotationFromBalloon','refresh','InlineAnnotations','stopListening','_setSelectedAnnotations','map','view'];(function(_0x238f85,_0x5ad300){const _0x1e3fc4=function(_0x2a1491){while(--_0x2a1491){_0x238f85['push'](_0x238f85['shift']());}};_0x1e3fc4(++_0x5ad300);}(_0x5ad3,0xf9));const _0x1e3f=function(_0x238f85,_0x5ad300){_0x238f85=_0x238f85-0x0;let _0x1e3fc4=_0x5ad3[_0x238f85];return _0x1e3fc4;};import{Plugin as _0x22411c}from'ckeditor5/src/core';import _0x103d75 from'./annotationsuis';import _0xf26dee from'./editorannotations';import{ContextualBalloon as _0x27f338}from'ckeditor5/src/ui';import{MouseObserver as _0x475509}from'ckeditor5/src/engine';import{CKEditorError as _0x56cb0e,Rect as _0x569445}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x22411c{static get[_0x1e3f('0x39')](){return[_0xf26dee,_0x27f338,_0x103d75];}static get[_0x1e3f('0xd')](){return _0x1e3f('0x2e');}constructor(_0x3c30b7){super(_0x3c30b7),_0x3c30b7[_0x1e3f('0x1')]['view']['addObserver'](_0x475509),this[_0x1e3f('0x4')]=!0x1,this[_0x1e3f('0x34')](_0x1e3f('0x28'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x1e3f('0x45')]=_0x3c30b7[_0x1e3f('0x3a')]['get'](_0x27f338),this[_0x1e3f('0x36')]=new Set(),this[_0x1e3f('0x24')]=[],this[_0x1e3f('0x46')]=!0x1;}[_0x1e3f('0x37')](){const _0x497803=this[_0x1e3f('0x3b')]['plugins']['get'](_0x103d75);_0x497803[_0x1e3f('0xc')]===this[_0x1e3f('0x3b')]&&(_0x497803['register'](_0x1e3f('0x12'),this),this['editor'][_0x1e3f('0x41')][_0x1e3f('0x34')]('Esc',(_0x66bd57,_0x1e512a)=>{const _0x3c176f=this[_0x1e3f('0x45')];if(this[_0x1e3f('0x4')]&&_0x3c176f[_0x1e3f('0x2b')]){const _0x2fc7e6=this[_0x1e3f('0x3f')][_0x1e3f('0x14')](_0x3c176f['visibleView']);_0x2fc7e6&&this[_0x1e3f('0x33')](_0x2fc7e6),_0x1e512a();}}));}['afterInit'](){const _0x45536b=this[_0x1e3f('0x3b')]['plugins'][_0x1e3f('0x29')](_0x103d75);_0x45536b['context']===this[_0x1e3f('0x3b')]&&(_0x45536b[_0x1e3f('0x22')]()||_0x45536b[_0x1e3f('0x16')](_0x1e3f('0x12')));}[_0x1e3f('0x42')](_0x396071){_0x396071!==this[_0x1e3f('0x28')]&&(this[_0x1e3f('0x28')]&&(this[_0x1e3f('0x28')][_0x1e3f('0x40')]=!0x1),_0x396071&&this[_0x1e3f('0x3b')]['ui'][_0x1e3f('0x1b')]['isFocused']&&(this[_0x1e3f('0x3f')][_0x1e3f('0x1a')](_0x396071)&&this[_0x1e3f('0x2a')](_0x396071,!0x0),_0x396071[_0x1e3f('0x40')]=!0x0),_0x396071||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x396071);}[_0x1e3f('0x11')](_0x5d49f9){this[_0x1e3f('0x3f')]=_0x5d49f9;const _0x57a282=this[_0x1e3f('0x3b')][_0x1e3f('0x3a')][_0x1e3f('0x29')](_0x103d75),_0x5992e4=this[_0x1e3f('0x45')];if(this['isAttached'])throw new _0x56cb0e('inlineannotations-attach-already-attached',this);if(_0x57a282['context']!==this[_0x1e3f('0x3b')])throw new _0x56cb0e(_0x1e3f('0x44'),this);const _0x25f420=this[_0x1e3f('0x3b')][_0x1e3f('0x3a')]['get'](_0xf26dee);this[_0x1e3f('0x4a')](_0x25f420,_0x1e3f('0x2d'),()=>{const _0x1c2ee3=_0x25f420[_0x1e3f('0x1e')]({'annotations':this[_0x1e3f('0x3f')],'activeAnnotation':this[_0x1e3f('0x28')]});var _0x3db4e9,_0x26653c;!this[_0x1e3f('0x46')]&&(_0x3db4e9=_0x1c2ee3,_0x26653c=this[_0x1e3f('0x24')],_0x3db4e9['length']===_0x26653c[_0x1e3f('0xf')]&&_0x3db4e9[_0x1e3f('0x7')](_0x4b3801=>_0x26653c[_0x1e3f('0x19')](_0x4b3801)))||(this[_0x1e3f('0x46')]=!0x1,this[_0x1e3f('0x30')](_0x1c2ee3),this[_0x1e3f('0x42')](_0x1c2ee3[0x0]||null));}),this['listenTo'](_0x25f420,'blur',(_0x211666,{isAnnotationTracked:_0x17f0c0})=>{this[_0x1e3f('0x28')]&&_0x17f0c0(this[_0x1e3f('0x28')])&&(this[_0x1e3f('0x30')]([]),this['setActiveAnnotation'](null));}),this[_0x1e3f('0x4a')](this[_0x1e3f('0x3b')]['ui'][_0x1e3f('0x1b')],_0x1e3f('0x10'),(_0x4e61a4,_0x47615f,_0x42bded)=>{_0x42bded||this[_0x1e3f('0x42')](null);}),this[_0x1e3f('0x4a')](_0x5d49f9,'remove',(_0x1eeae5,_0x4cb61d)=>{this['_removeAnnotationFromBalloon'](_0x4cb61d),_0x4cb61d===this[_0x1e3f('0x28')]&&this[_0x1e3f('0x42')](null);}),this['listenTo'](_0x5992e4,_0x1e3f('0x1c'),(_0x331f26,_0x1f2241,_0x2263ca,_0x22ea46)=>{_0x22ea46&&this[_0x1e3f('0x2f')](_0x22ea46);const _0x102e09=_0x5d49f9[_0x1e3f('0x14')](_0x2263ca);_0x2263ca&&_0x102e09&&(this[_0x1e3f('0x4a')](_0x2263ca,_0x1e3f('0x20'),()=>{_0x5992e4[_0x1e3f('0xe')]();}),this[_0x1e3f('0x4a')](_0x2263ca,_0x1e3f('0x13'),()=>{this[_0x1e3f('0x33')](_0x102e09),this['editor'][_0x1e3f('0x1')][_0x1e3f('0x32')]['focus']();}),this[_0x1e3f('0x28')]!==_0x102e09&&this[_0x1e3f('0x42')](_0x102e09));}),this[_0x1e3f('0x4a')](this[_0x1e3f('0x3b')]['ui'],'update',()=>{_0x5992e4[_0x1e3f('0x2b')]&&(_0x5d49f9['getByView'](_0x5992e4[_0x1e3f('0x2b')])&&_0x5992e4[_0x1e3f('0xe')]());}),this[_0x1e3f('0x4a')](this[_0x1e3f('0x3b')][_0x1e3f('0x1')][_0x1e3f('0x32')][_0x1e3f('0x3')],_0x1e3f('0x3c'),()=>{this[_0x1e3f('0x46')]=!0x0,this['_manuallyClosed'][_0x1e3f('0x3d')]();}),this[_0x1e3f('0x3b')][_0x1e3f('0x1')][_0x1e3f('0x32')][_0x1e3f('0x3')][_0x1e3f('0x35')][_0x1e3f('0x17')]&&this[_0x1e3f('0x3b')]['editing'][_0x1e3f('0x32')][_0x1e3f('0x21')](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x56cb0e('inlineannotations-detach-not-attached',this);this[_0x1e3f('0x42')](null);for(const _0x4e8745 of this[_0x1e3f('0x36')])this['_removeAnnotationFromBalloon'](_0x4e8745);this[_0x1e3f('0x2f')](),this[_0x1e3f('0x4')]=!0x1,this[_0x1e3f('0x3f')]=null;}[_0x1e3f('0x2')](){this[_0x1e3f('0x4')]&&this[_0x1e3f('0x6')]();}['_setSelectedAnnotations'](_0xc25b32){for(const _0x4cb60a of this[_0x1e3f('0x24')])_0xc25b32['includes'](_0x4cb60a)||this['_manuallyClosed'][_0x1e3f('0x48')](_0x4cb60a);for(const _0x1075ac of this[_0x1e3f('0x3f')])_0xc25b32[_0x1e3f('0x19')](_0x1075ac)||this[_0x1e3f('0x2c')](_0x1075ac);if(this[_0x1e3f('0x3b')]['ui'][_0x1e3f('0x1b')]['isFocused'])for(const _0x2d1733 of _0xc25b32)this[_0x1e3f('0x2a')](_0x2d1733);this['_selectedAnnotations']=_0xc25b32;}[_0x1e3f('0x2a')](_0x411125,_0x1092e7=!0x1){this[_0x1e3f('0x1d')][_0x1e3f('0x1a')](_0x411125)||(this[_0x1e3f('0x36')]['has'](_0x411125)||this[_0x1e3f('0x45')][_0x1e3f('0x23')](_0x411125['view'])||(this[_0x1e3f('0x36')]['add'](_0x411125),this[_0x1e3f('0x45')][_0x1e3f('0x43')]({'stackId':_0x411125['view']['id'],'view':_0x411125[_0x1e3f('0x32')],'position':{'target':()=>this[_0x1e3f('0x0')](_0x411125)}})),_0x1092e7&&this[_0x1e3f('0x45')][_0x1e3f('0x49')](_0x411125[_0x1e3f('0x32')]['id']));}[_0x1e3f('0x0')](_0x39df4a){const _0x1739f6=_0x39df4a[_0x1e3f('0x25')],_0x331326=this[_0x1e3f('0x3b')][_0x1e3f('0x1')][_0x1e3f('0x32')],_0x420122=_0x331326[_0x1e3f('0x3')][_0x1e3f('0x35')][_0x1e3f('0xb')](),_0x310658=_0x331326[_0x1e3f('0x9')]['viewRangeToDom'](_0x420122);if(_0x310658[_0x1e3f('0x47')](!0x0),_0x1739f6){if(_0x1739f6 instanceof _0x569445)return _0x1739f6;let _0x1c3b0f=[];for(const _0x26d661 of _0x1739f6)_0x1c3b0f[_0x1e3f('0x5')](...(_0x4eee8a=_0x26d661[_0x1e3f('0x15')](),Array[_0x1e3f('0x1f')](_0x4eee8a)[_0x1e3f('0x31')](DOMRect[_0x1e3f('0x18')])));_0x1c3b0f=function(_0xb9df1d){const _0x311726=[];let _0x281bd3=_0xb9df1d[0x0];for(let _0x3930fb=0x1;_0x3930fb<_0xb9df1d['length'];_0x3930fb++)F(_0x281bd3,_0xb9df1d[_0x3930fb])?_0x281bd3['width']+=_0xb9df1d[_0x3930fb][_0x1e3f('0x3e')]:(_0x311726[_0x1e3f('0x5')](_0x281bd3),_0x281bd3=_0xb9df1d[_0x3930fb]);return _0x311726[_0x1e3f('0x5')](_0x281bd3),_0x311726;}(_0x1c3b0f);const _0x4603b6=_0x310658['getBoundingClientRect']();return _0x1c3b0f['find'](_0x6c001e=>_0x6c001e['top']<=_0x4603b6[_0x1e3f('0x8')]&&_0x6c001e[_0x1e3f('0x27')]>=_0x4603b6[_0x1e3f('0x27')]&&_0x6c001e[_0x1e3f('0x38')]<=_0x4603b6[_0x1e3f('0x38')]&&_0x6c001e[_0x1e3f('0x26')]>=_0x4603b6[_0x1e3f('0x26')])||_0x1c3b0f[0x0];}var _0x4eee8a;return _0x39df4a['targetRect']||_0x310658;}[_0x1e3f('0x2c')](_0x2067c2){this[_0x1e3f('0x36')][_0x1e3f('0x1a')](_0x2067c2)&&this[_0x1e3f('0x45')][_0x1e3f('0x23')](_0x2067c2[_0x1e3f('0x32')])&&(this[_0x1e3f('0x36')]['delete'](_0x2067c2),this['_balloon'][_0x1e3f('0xa')](_0x2067c2['view']));}[_0x1e3f('0x33')](_0x1f6588){this[_0x1e3f('0x1d')]['add'](_0x1f6588),this[_0x1e3f('0x2c')](_0x1f6588);}}function F(_0x473023,_0x289149){return _0x473023[_0x1e3f('0x8')]===_0x289149[_0x1e3f('0x8')]&&_0x473023[_0x1e3f('0x27')]===_0x289149['bottom']&&_0x473023['right']===_0x289149[_0x1e3f('0x38')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd92d=['_setSelectedAnnotations','content','resize','addAnnotation','southArrowNorth','uiUpdate','narrowsidebar-detach-not-attached','destroy','preventDefault','getSidebarItemView','delete','clear','target','northArrowSouthEast','ready','northArrowSouthWest','Esc','contains','_updateBalloonPosition','_domEmitter','setActiveAnnotation','_annotationToNarrowView','requires','length','activeAnnotation','has','isDirty','balloonPanelView','bind','attach','plugins','refreshPositioning','editors','narrowsidebar-attach-already-attached','rearrange','getOrderedSelectedAnnotations','_attachListeners','create','register','unpin','esc','pin','set','EditorAnnotations','bodyCollection','values','_manuallyClosedAnnotationViews','preventClosingBalloon','mousedown','listenTo','focusableElements','blur','context','remove','first','isAttached','find','off','southArrowNorthEast','addEventListener','_editorAnnotations','add','getByView','keydown','annotations','_integrateWithEditorAnnotations','annotationType','_destroyEditorAnnotationsIntegration','_showBalloon','_selectedAnnotations','northArrowSouth','get','pluginName','from','ck-sidebar--narrow','refresh','element','locale','_refreshPositioningDebounced','isVisible','execute','_detachListeners','detachFromDom','focus','_hideBalloon','view','narrowSidebar','_annotations','stopListening','NarrowSidebar','detach','_attachToContainer','cancel','high','removeEventListener','hasDomSelection','type','includes'];(function(_0x3ee9e2,_0xd92da7){const _0x2f8763=function(_0x534fee){while(--_0x534fee){_0x3ee9e2['push'](_0x3ee9e2['shift']());}};_0x2f8763(++_0xd92da7);}(_0xd92d,0x74));const _0x2f87=function(_0x3ee9e2,_0xd92da7){_0x3ee9e2=_0x3ee9e2-0x0;let _0x2f8763=_0xd92d[_0x3ee9e2];return _0x2f8763;};import{ContextPlugin as _0x12b1c1,Context as _0x34fc50}from'ckeditor5/src/core';import _0x268ae2 from'./annotationsuis';import _0x4e44ca from'./sidebar';import _0xe38e18 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x44209d,BodyCollection as _0x1733ca}from'ckeditor5/src/ui';import{CKEditorError as _0x16988f,DomEmitterMixin as _0x21a16a,keyCodes as _0x47d36a,Collection as _0x2784e4}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5bfa24}from'lodash-es';import _0x3fbc64 from'./editorannotations';export default class s extends _0x12b1c1{static get[_0x2f87('0x4')](){return[_0x4e44ca,_0x268ae2];}static get[_0x2f87('0x36')](){return _0x2f87('0x47');}constructor(_0x23fdd3){super(_0x23fdd3),this[_0x2f87('0x25')]=!0x1,this[_0x2f87('0x1c')]=new Set(),this[_0x2f87('0x1')]=Object[_0x2f87('0x13')](_0x21a16a),this[_0x2f87('0x3')]=new Map(),this[_0x2f87('0x18')](_0x2f87('0x6'),null),this[_0x2f87('0x2e')]=null,this['_selectedAnnotations']=[],this[_0x2f87('0x2a')]=new _0x2784e4(),this['_refreshPositioningDebounced']=_0x5bfa24(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this[_0x2f87('0x22')]['plugins'][_0x2f87('0x35')](_0x268ae2)[_0x2f87('0x14')](_0x2f87('0x44'),this),this['bodyCollection']=new _0x1733ca(this['context'][_0x2f87('0x3b')]),this[_0x2f87('0x9')]=new _0x44209d(this[_0x2f87('0x22')][_0x2f87('0x3b')]),this[_0x2f87('0x1a')]['attachToDom'](),this[_0x2f87('0x1a')][_0x2f87('0x2b')](this[_0x2f87('0x9')]);}[_0x2f87('0xb')](_0x576db6){this['annotations']=_0x576db6;const _0x37474d=this[_0x2f87('0x22')][_0x2f87('0xc')]['get'](_0x4e44ca),_0x467279=this['balloonPanelView'];if(_0x37474d[_0x2f87('0x45')]=_0x576db6,this[_0x2f87('0x25')])throw new _0x16988f(_0x2f87('0xf'),this);this[_0x2f87('0x25')]=!0x0,this[_0x2f87('0x1f')](_0x37474d,'set:container',()=>{this['detach'](),this[_0x2f87('0x1f')](_0x37474d,'change:container',_0x2351cc=>{_0x2351cc[_0x2f87('0x27')](),this['attach'](_0x576db6);});}),_0x37474d[_0x2f87('0x49')]({'viewClass':_0x2f87('0x38'),'spaceBetweenItems':0x5});const _0x1ce81b=_0x146cea=>{const _0x4e9845=new _0xe38e18(this[_0x2f87('0x22')][_0x2f87('0x3b')]);_0x37474d[_0x2f87('0x53')](_0x146cea,_0x4e9845),this[_0x2f87('0x3')]['set'](_0x146cea,_0x4e9845),_0x4e9845[_0x2f87('0xa')](_0x2f87('0x8'),_0x2f87('0x30'),'number')['to'](_0x146cea[_0x2f87('0x43')],_0x2f87('0x8'),_0x2f87('0x4e'),_0x2f87('0x5')),_0x4e9845['on'](_0x2f87('0x3e'),()=>{this[_0x2f87('0x1c')][_0x2f87('0x5b')](),_0x467279[_0x2f87('0x51')]['first']!==_0x146cea[_0x2f87('0x43')]?(this[_0x2f87('0x32')](_0x146cea),_0x146cea[_0x2f87('0x43')][_0x2f87('0x3a')][_0x2f87('0x41')](),this[_0x2f87('0x2')](_0x146cea)):this[_0x2f87('0x2')](null);});};for(const _0x469b02 of _0x576db6)_0x1ce81b(_0x469b02);this['listenTo'](_0x576db6,_0x2f87('0x2b'),(_0x205840,_0xdaba57)=>{_0x1ce81b(_0xdaba57);}),this[_0x2f87('0x1f')](_0x576db6,_0x2f87('0x23'),(_0x4de049,_0x5409d5,_0x4fe616)=>{this[_0x2f87('0x3')][_0x2f87('0x35')](_0x5409d5)['destroy'](),this['_annotationToNarrowView'][_0x2f87('0x5a')](_0x5409d5),_0x37474d[_0x2f87('0x10')]({'removedAnnotation':_0x5409d5,'previousAnnotation':_0x576db6[_0x2f87('0x35')](_0x4fe616-0x1),'nextAnnotation':_0x576db6['get'](_0x4fe616+0x1)}),_0x5409d5===this[_0x2f87('0x6')]&&this[_0x2f87('0x2')](null);},{'priority':'low'}),this['listenTo'](_0x576db6,_0x2f87('0x41'),(_0x5ed628,_0x48c2ed)=>{this[_0x2f87('0x2')](_0x48c2ed);}),this[_0x2f87('0x1f')](_0x576db6,_0x2f87('0x21'),()=>{this[_0x2f87('0x2')](null);}),this[_0x2f87('0x1')]['listenTo'](document,_0x2f87('0x2d'),(_0x8b122b,_0xa8be9a)=>{_0xa8be9a['keyCode']===_0x47d36a[_0x2f87('0x16')]&&_0x467279[_0x2f87('0x3d')]&&(this[_0x2f87('0x1c')][_0x2f87('0x2b')](_0x467279[_0x2f87('0x51')][_0x2f87('0x24')]),this['_hideBalloon'](),_0xa8be9a['stopPropagation'](),_0xa8be9a[_0x2f87('0x58')]());}),this['_domEmitter']['listenTo'](document,_0x2f87('0x1e'),(_0x29c56c,_0x354ab4)=>{const _0x5f2e04=_0x354ab4[_0x2f87('0x5c')];_0x467279[_0x2f87('0x3d')]&&_0x467279[_0x2f87('0x3a')]['contains'](_0x5f2e04)||_0x37474d[_0x2f87('0x43')][_0x2f87('0x3a')][_0x2f87('0x61')](_0x5f2e04)||_0x29c56c[_0x2f87('0x1d')]||this[_0x2f87('0x6')]&&this[_0x2f87('0x6')][_0x2f87('0x20')][_0x2f87('0x26')](_0x1483e1=>_0x1483e1[_0x2f87('0x61')](_0x5f2e04))||(this[_0x2f87('0x1c')][_0x2f87('0x5b')](),this[_0x2f87('0x42')](),this['setActiveAnnotation'](null));});const _0x34187c=this[_0x2f87('0x22')]instanceof _0x34fc50?this[_0x2f87('0x22')][_0x2f87('0xe')]:new _0x2784e4([this[_0x2f87('0x22')]]);for(const _0x470bbc of _0x34187c)this[_0x2f87('0x2f')](_0x470bbc);this[_0x2f87('0x1f')](_0x34187c,_0x2f87('0x2b'),(_0x28d570,_0x43d370)=>{this[_0x2f87('0x1f')](_0x43d370,_0x2f87('0x5e'),()=>{this[_0x2f87('0x2f')](_0x43d370);});}),this[_0x2f87('0x1f')](_0x34187c,'remove',(_0x313b60,_0x400942)=>{_0x400942[_0x2f87('0xc')][_0x2f87('0x7')](_0x2f87('0x19'))&&this[_0x2f87('0x31')](_0x400942['plugins'][_0x2f87('0x35')]('EditorAnnotations'));}),window[_0x2f87('0x29')]('resize',this[_0x2f87('0x3c')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1ea790){if(_0x1ea790===this['activeAnnotation'])return;const _0x3e0530=this['context'][_0x2f87('0xc')][_0x2f87('0x35')](_0x4e44ca);if(_0x3e0530[_0x2f87('0x39')]({'blurredAnnotation':this[_0x2f87('0x6')],'activatedAnnotation':_0x1ea790,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1ea790)_0x3e0530[_0x2f87('0x59')](_0x1ea790)?this[_0x2f87('0x32')](_0x1ea790):this[_0x2f87('0x42')]();else this[_0x2f87('0x42')]();this[_0x2f87('0x6')]=_0x1ea790;}[_0x2f87('0x48')](){if(!this[_0x2f87('0x25')])throw new _0x16988f(_0x2f87('0x56'),this);this[_0x2f87('0x2')](null);const _0x418019=this['context'][_0x2f87('0xc')][_0x2f87('0x35')](_0x4e44ca);this[_0x2f87('0x42')](),Array[_0x2f87('0x37')](this['_annotationToNarrowView'][_0x2f87('0x1b')](),_0x293748=>_0x293748[_0x2f87('0x57')]()),this['_annotationToNarrowView']['clear'](),_0x418019['_detachFromContainer'](this[_0x2f87('0x2e')]),this[_0x2f87('0x46')](),this[_0x2f87('0x1')]['stopListening'](),this[_0x2f87('0x22')]instanceof _0x34fc50&&this[_0x2f87('0x46')](this['context'][_0x2f87('0xe')]);for(const _0x205718 of Array['from'](this['_editorAnnotations']))this[_0x2f87('0x31')](_0x205718);window[_0x2f87('0x4c')](_0x2f87('0x52'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x2f87('0x4a')](),this[_0x2f87('0x33')]=[],this[_0x2f87('0x25')]=!0x1,this[_0x2f87('0x2e')]=null;}['destroy'](){this[_0x2f87('0x25')]&&this['detach'](),this[_0x2f87('0x1a')][_0x2f87('0x40')]();}[_0x2f87('0x2f')](_0x223ec1){const _0x4c4f9d=_0x223ec1[_0x2f87('0xc')][_0x2f87('0x35')](_0x3fbc64),_0x1ffd2a=this[_0x2f87('0x22')][_0x2f87('0xc')][_0x2f87('0x35')](_0x4e44ca),_0x28178c=this[_0x2f87('0x2e')],_0x2578a7=this[_0x2f87('0x9')],_0x46cf24=()=>{const _0x14fa82=_0x4c4f9d[_0x2f87('0x11')]({'annotations':this[_0x2f87('0x2e')],'activeAnnotation':this['activeAnnotation']});this[_0x2f87('0x50')](_0x14fa82),this[_0x2f87('0x2')](_0x14fa82[0x0]||null);};this['listenTo'](_0x4c4f9d,_0x2f87('0x39'),_0x46cf24),this['listenTo'](_0x4c4f9d,_0x2f87('0x21'),(_0x526946,{isAnnotationTracked:_0x3920ea})=>{this[_0x2f87('0x6')]&&_0x3920ea(this[_0x2f87('0x6')])&&(this['_setSelectedAnnotations']([]),this[_0x2f87('0x2')](null));}),this[_0x2f87('0x1f')](_0x4c4f9d,_0x2f87('0x55'),()=>{this['_refreshPositioningDebounced']();}),this[_0x2f87('0x1f')](_0x28178c,_0x2f87('0x21'),_0x1f7f02=>{_0x4c4f9d[_0x2f87('0x4d')]()&&_0x1f7f02['stop']();},{'priority':_0x2f87('0x4b')}),this[_0x2f87('0x1f')](this[_0x2f87('0x1')],_0x2f87('0x1e'),(_0x22db20,_0x64db00)=>{const _0xbc0607=_0x64db00[_0x2f87('0x5c')];_0x2578a7['isVisible']&&_0x2578a7[_0x2f87('0x3a')][_0x2f87('0x61')](_0xbc0607)||_0x1ffd2a[_0x2f87('0x43')][_0x2f87('0x3a')]['contains'](_0xbc0607)||this[_0x2f87('0x6')]&&_0x4c4f9d[_0x2f87('0x4d')]()&&(_0x46cf24(),_0x22db20[_0x2f87('0x1d')]=!0x0);},{'priority':_0x2f87('0x4b')}),this['_editorAnnotations'][_0x2f87('0x2b')](_0x4c4f9d);}[_0x2f87('0x31')](_0x1b0c36){_0x1b0c36&&(this[_0x2f87('0x46')](_0x1b0c36),this[_0x2f87('0x2a')][_0x2f87('0x23')](_0x1b0c36));}[_0x2f87('0x50')](_0x2fca6e){for(const _0x4204ed of this[_0x2f87('0x33')])_0x2fca6e[_0x2f87('0x4f')](_0x4204ed)||this[_0x2f87('0x1c')][_0x2f87('0x5a')](_0x4204ed[_0x2f87('0x43')]);this[_0x2f87('0x33')]=_0x2fca6e;}['_refreshPositioning'](){const _0x3ce184=this['balloonPanelView'];this[_0x2f87('0x2e')][_0x2f87('0xd')](),_0x3ce184[_0x2f87('0x3d')]&&this[_0x2f87('0x0')]();}[_0x2f87('0x32')](_0xe883c5){if(this[_0x2f87('0x1c')]['has'](_0xe883c5['view']))return;const _0x1bf870=this['balloonPanelView'][_0x2f87('0x51')][_0x2f87('0x24')];_0x1bf870!==_0xe883c5[_0x2f87('0x43')]?(_0x1bf870&&this['_detachListeners'](_0x1bf870),this['_attachListeners'](_0xe883c5[_0x2f87('0x43')]),this[_0x2f87('0x9')][_0x2f87('0x51')][_0x2f87('0x5b')](),this[_0x2f87('0x9')][_0x2f87('0x51')][_0x2f87('0x2b')](_0xe883c5[_0x2f87('0x43')]),this[_0x2f87('0x0')]()):this[_0x2f87('0x0')]();}[_0x2f87('0x0')](){const _0x2f4b6f=this[_0x2f87('0x9')][_0x2f87('0x51')]['first'],_0x4aed68=_0x2f4b6f&&this[_0x2f87('0x2e')][_0x2f87('0x2c')](_0x2f4b6f);if(!_0x4aed68||!this[_0x2f87('0x3')][_0x2f87('0x7')](_0x4aed68))return;const _0x239d99=this['_annotationToNarrowView'][_0x2f87('0x35')](_0x4aed68)['element'],_0x223097=function(){const _0x2c6b84=_0x44209d['defaultPositions'];return[_0x2c6b84[_0x2f87('0x28')],_0x2c6b84[_0x2f87('0x5d')],_0x2c6b84[_0x2f87('0x54')],_0x2c6b84[_0x2f87('0x34')],_0x2c6b84['southArrowNorthWest'],_0x2c6b84[_0x2f87('0x5f')]];}();this[_0x2f87('0x9')][_0x2f87('0x17')]({'target':_0x239d99,'positions':_0x223097});}['_hideBalloon'](){const _0x517221=this['balloonPanelView'],_0x253126=_0x517221[_0x2f87('0x51')][_0x2f87('0x24')];_0x253126&&(this[_0x2f87('0x3f')](_0x253126),_0x517221[_0x2f87('0x15')](),_0x517221['content'][_0x2f87('0x5b')]());}[_0x2f87('0x12')](_0x57d2de){this[_0x2f87('0x1f')](_0x57d2de,'change:height',()=>this[_0x2f87('0x0')]()),this[_0x2f87('0x1f')](_0x57d2de,_0x2f87('0x60'),(_0x2cba9b,_0x5adb9b)=>{this[_0x2f87('0x1c')][_0x2f87('0x2b')](_0x57d2de),this[_0x2f87('0x42')](),_0x5adb9b();});}[_0x2f87('0x3f')](_0x333f20){this[_0x2f87('0x46')](_0x333f20);}}
23
+ const _0x4780=['ck-sidebar--narrow','includes','southArrowNorthWest','annotationType','_updateBalloonPosition','has','getByView','annotations','mousedown','listenTo','set','_attachToContainer','type','_domEmitter','getSidebarItemView','bodyCollection','_refreshPositioningDebounced','get','cancel','_refreshPositioning','preventDefault','northArrowSouthEast','find','uiUpdate','add','southArrowNorthEast','attachToDom','change:container','stopListening','pluginName','hasDomSelection','_editorAnnotations','narrowsidebar-attach-already-attached','set:container','getOrderedSelectedAnnotations','change:height','editors','locale','narrowsidebar-detach-not-attached','_hideBalloon','bind','blur','_setSelectedAnnotations','_destroyEditorAnnotationsIntegration','requires','addAnnotation','Esc','from','contains','narrowSidebar','isAttached','_selectedAnnotations','isVisible','create','delete','activeAnnotation','detach','refreshPositioning','detachFromDom','setActiveAnnotation','element','defaultPositions','refresh','resize','stopPropagation','off','view','EditorAnnotations','_detachListeners','balloonPanelView','clear','removeEventListener','content','number','keyCode','first','addEventListener','_integrateWithEditorAnnotations','northArrowSouth','_showBalloon','plugins','isDirty','esc','remove','_manuallyClosedAnnotationViews','context','unpin','_attachListeners','register','_annotationToNarrowView','focus','keydown'];(function(_0x20900d,_0x47801e){const _0x452135=function(_0x4fc86c){while(--_0x4fc86c){_0x20900d['push'](_0x20900d['shift']());}};_0x452135(++_0x47801e);}(_0x4780,0xec));const _0x4521=function(_0x20900d,_0x47801e){_0x20900d=_0x20900d-0x0;let _0x452135=_0x4780[_0x20900d];return _0x452135;};import{ContextPlugin as _0x141bd4,Context as _0x4c34ea}from'ckeditor5/src/core';import _0x4ebdb2 from'./annotationsuis';import _0x20b5d7 from'./sidebar';import _0x338363 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2d5c09,BodyCollection as _0x537788}from'ckeditor5/src/ui';import{CKEditorError as _0x3868c0,DomEmitterMixin as _0x5d063d,keyCodes as _0x72f1bb,Collection as _0x515cf3}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1f9b70}from'lodash-es';import _0x3eee4f from'./editorannotations';export default class s extends _0x141bd4{static get[_0x4521('0x54')](){return[_0x20b5d7,_0x4ebdb2];}static get[_0x4521('0x45')](){return'NarrowSidebar';}constructor(_0x4e00c1){super(_0x4e00c1),this['isAttached']=!0x1,this[_0x4521('0x20')]=new Set(),this[_0x4521('0x35')]=Object[_0x4521('0x1')](_0x5d063d),this['_annotationToNarrowView']=new Map(),this['set'](_0x4521('0x3'),null),this['annotations']=null,this[_0x4521('0x5b')]=[],this[_0x4521('0x47')]=new _0x515cf3(),this[_0x4521('0x38')]=_0x1f9b70(()=>{this[_0x4521('0x3b')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x4521('0x21')]['plugins'][_0x4521('0x39')](_0x4ebdb2)[_0x4521('0x24')](_0x4521('0x59'),this),this[_0x4521('0x37')]=new _0x537788(this['context'][_0x4521('0x4d')]),this[_0x4521('0x11')]=new _0x2d5c09(this[_0x4521('0x21')][_0x4521('0x4d')]),this['bodyCollection'][_0x4521('0x42')](),this[_0x4521('0x37')][_0x4521('0x40')](this['balloonPanelView']);}['attach'](_0x5cd159){this[_0x4521('0x2f')]=_0x5cd159;const _0x4e1ebb=this[_0x4521('0x21')][_0x4521('0x1c')]['get'](_0x20b5d7),_0xfe843a=this[_0x4521('0x11')];if(_0x4e1ebb['_annotations']=_0x5cd159,this[_0x4521('0x5a')])throw new _0x3868c0(_0x4521('0x48'),this);this[_0x4521('0x5a')]=!0x0,this[_0x4521('0x31')](_0x4e1ebb,_0x4521('0x49'),()=>{this[_0x4521('0x4')](),this[_0x4521('0x31')](_0x4e1ebb,_0x4521('0x43'),_0x41f31e=>{_0x41f31e[_0x4521('0xd')](),this['attach'](_0x5cd159);});}),_0x4e1ebb[_0x4521('0x33')]({'viewClass':_0x4521('0x28'),'spaceBetweenItems':0x5});const _0x7336db=_0x552223=>{const _0x467f5d=new _0x338363(this[_0x4521('0x21')][_0x4521('0x4d')]);_0x4e1ebb[_0x4521('0x55')](_0x552223,_0x467f5d),this[_0x4521('0x25')][_0x4521('0x32')](_0x552223,_0x467f5d),_0x467f5d[_0x4521('0x50')](_0x4521('0x1d'),_0x4521('0x2b'),_0x4521('0x15'))['to'](_0x552223[_0x4521('0xe')],_0x4521('0x1d'),_0x4521('0x34'),'length'),_0x467f5d['on']('execute',()=>{this[_0x4521('0x20')][_0x4521('0x12')](),_0xfe843a[_0x4521('0x14')][_0x4521('0x17')]!==_0x552223[_0x4521('0xe')]?(this[_0x4521('0x1b')](_0x552223),_0x552223['view'][_0x4521('0x8')]['focus'](),this[_0x4521('0x7')](_0x552223)):this['setActiveAnnotation'](null);});};for(const _0x218baa of _0x5cd159)_0x7336db(_0x218baa);this[_0x4521('0x31')](_0x5cd159,'add',(_0x2e5d59,_0x12f742)=>{_0x7336db(_0x12f742);}),this[_0x4521('0x31')](_0x5cd159,'remove',(_0x33892a,_0x3d0a7a,_0x59a2f5)=>{this[_0x4521('0x25')][_0x4521('0x39')](_0x3d0a7a)['destroy'](),this['_annotationToNarrowView'][_0x4521('0x2')](_0x3d0a7a),_0x4e1ebb['rearrange']({'removedAnnotation':_0x3d0a7a,'previousAnnotation':_0x5cd159[_0x4521('0x39')](_0x59a2f5-0x1),'nextAnnotation':_0x5cd159[_0x4521('0x39')](_0x59a2f5+0x1)}),_0x3d0a7a===this[_0x4521('0x3')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5cd159,_0x4521('0x26'),(_0x9a7ae0,_0x4caaba)=>{this[_0x4521('0x7')](_0x4caaba);}),this[_0x4521('0x31')](_0x5cd159,_0x4521('0x51'),()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x4521('0x31')](document,_0x4521('0x27'),(_0x1df390,_0x3716c5)=>{_0x3716c5[_0x4521('0x16')]===_0x72f1bb[_0x4521('0x1e')]&&_0xfe843a[_0x4521('0x0')]&&(this[_0x4521('0x20')]['add'](_0xfe843a[_0x4521('0x14')][_0x4521('0x17')]),this[_0x4521('0x4f')](),_0x3716c5[_0x4521('0xc')](),_0x3716c5[_0x4521('0x3c')]());}),this['_domEmitter'][_0x4521('0x31')](document,'mousedown',(_0x278615,_0x4f2a4d)=>{const _0x3f618c=_0x4f2a4d['target'];_0xfe843a[_0x4521('0x0')]&&_0xfe843a['element']['contains'](_0x3f618c)||_0x4e1ebb[_0x4521('0xe')][_0x4521('0x8')]['contains'](_0x3f618c)||_0x278615['preventClosingBalloon']||this[_0x4521('0x3')]&&this[_0x4521('0x3')]['focusableElements'][_0x4521('0x3e')](_0x43c8b8=>_0x43c8b8['contains'](_0x3f618c))||(this[_0x4521('0x20')][_0x4521('0x12')](),this[_0x4521('0x4f')](),this['setActiveAnnotation'](null));});const _0x2f7a56=this[_0x4521('0x21')]instanceof _0x4c34ea?this[_0x4521('0x21')][_0x4521('0x4c')]:new _0x515cf3([this[_0x4521('0x21')]]);for(const _0x51573c of _0x2f7a56)this['_integrateWithEditorAnnotations'](_0x51573c);this[_0x4521('0x31')](_0x2f7a56,'add',(_0x56d03c,_0x7776ad)=>{this[_0x4521('0x31')](_0x7776ad,'ready',()=>{this[_0x4521('0x19')](_0x7776ad);});}),this[_0x4521('0x31')](_0x2f7a56,_0x4521('0x1f'),(_0x5c54b9,_0x17dc0d)=>{_0x17dc0d['plugins'][_0x4521('0x2d')]('EditorAnnotations')&&this[_0x4521('0x53')](_0x17dc0d[_0x4521('0x1c')][_0x4521('0x39')](_0x4521('0xf')));}),window[_0x4521('0x18')](_0x4521('0xb'),this[_0x4521('0x38')]),this[_0x4521('0x3b')]();}[_0x4521('0x7')](_0x190449){if(_0x190449===this['activeAnnotation'])return;const _0x2569af=this['context']['plugins'][_0x4521('0x39')](_0x20b5d7);if(_0x2569af[_0x4521('0xa')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x190449,'disableAnimationOnActivatedAnnotation':!0x0}),_0x190449)_0x2569af[_0x4521('0x36')](_0x190449)?this[_0x4521('0x1b')](_0x190449):this[_0x4521('0x4f')]();else this['_hideBalloon']();this[_0x4521('0x3')]=_0x190449;}[_0x4521('0x4')](){if(!this[_0x4521('0x5a')])throw new _0x3868c0(_0x4521('0x4e'),this);this[_0x4521('0x7')](null);const _0x15317e=this[_0x4521('0x21')][_0x4521('0x1c')][_0x4521('0x39')](_0x20b5d7);this[_0x4521('0x4f')](),Array[_0x4521('0x57')](this[_0x4521('0x25')]['values'](),_0x77d364=>_0x77d364['destroy']()),this[_0x4521('0x25')]['clear'](),_0x15317e['_detachFromContainer'](this['annotations']),this[_0x4521('0x44')](),this['_domEmitter']['stopListening'](),this[_0x4521('0x21')]instanceof _0x4c34ea&&this[_0x4521('0x44')](this[_0x4521('0x21')][_0x4521('0x4c')]);for(const _0x2dab90 of Array[_0x4521('0x57')](this[_0x4521('0x47')]))this[_0x4521('0x53')](_0x2dab90);window[_0x4521('0x13')]('resize',this['_refreshPositioningDebounced']),this[_0x4521('0x38')][_0x4521('0x3a')](),this[_0x4521('0x5b')]=[],this[_0x4521('0x5a')]=!0x1,this[_0x4521('0x2f')]=null;}['destroy'](){this[_0x4521('0x5a')]&&this[_0x4521('0x4')](),this[_0x4521('0x37')][_0x4521('0x6')]();}[_0x4521('0x19')](_0x24d33b){const _0x1c60b5=_0x24d33b['plugins'][_0x4521('0x39')](_0x3eee4f),_0x1f5b1b=this[_0x4521('0x21')][_0x4521('0x1c')]['get'](_0x20b5d7),_0x173fff=this[_0x4521('0x2f')],_0x190879=this[_0x4521('0x11')],_0xd75352=()=>{const _0x4beb64=_0x1c60b5[_0x4521('0x4a')]({'annotations':this[_0x4521('0x2f')],'activeAnnotation':this['activeAnnotation']});this[_0x4521('0x52')](_0x4beb64),this[_0x4521('0x7')](_0x4beb64[0x0]||null);};this['listenTo'](_0x1c60b5,_0x4521('0xa'),_0xd75352),this[_0x4521('0x31')](_0x1c60b5,'blur',(_0x33e2a2,{isAnnotationTracked:_0x4099d9})=>{this[_0x4521('0x3')]&&_0x4099d9(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x4521('0x7')](null));}),this['listenTo'](_0x1c60b5,_0x4521('0x3f'),()=>{this[_0x4521('0x38')]();}),this['listenTo'](_0x173fff,_0x4521('0x51'),_0x45edab=>{_0x1c60b5[_0x4521('0x46')]()&&_0x45edab['stop']();},{'priority':'high'}),this[_0x4521('0x31')](this[_0x4521('0x35')],_0x4521('0x30'),(_0x5c8010,_0xfd2714)=>{const _0x5095d1=_0xfd2714['target'];_0x190879[_0x4521('0x0')]&&_0x190879['element'][_0x4521('0x58')](_0x5095d1)||_0x1f5b1b[_0x4521('0xe')][_0x4521('0x8')]['contains'](_0x5095d1)||this['activeAnnotation']&&_0x1c60b5['hasDomSelection']()&&(_0xd75352(),_0x5c8010['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x4521('0x40')](_0x1c60b5);}['_destroyEditorAnnotationsIntegration'](_0x5d331a){_0x5d331a&&(this[_0x4521('0x44')](_0x5d331a),this['_editorAnnotations'][_0x4521('0x1f')](_0x5d331a));}[_0x4521('0x52')](_0x13dddd){for(const _0x39288f of this[_0x4521('0x5b')])_0x13dddd[_0x4521('0x29')](_0x39288f)||this[_0x4521('0x20')][_0x4521('0x2')](_0x39288f[_0x4521('0xe')]);this[_0x4521('0x5b')]=_0x13dddd;}['_refreshPositioning'](){const _0x4be342=this['balloonPanelView'];this[_0x4521('0x2f')][_0x4521('0x5')](),_0x4be342['isVisible']&&this[_0x4521('0x2c')]();}[_0x4521('0x1b')](_0x3c1627){if(this[_0x4521('0x20')][_0x4521('0x2d')](_0x3c1627[_0x4521('0xe')]))return;const _0x202ca0=this['balloonPanelView'][_0x4521('0x14')][_0x4521('0x17')];_0x202ca0!==_0x3c1627[_0x4521('0xe')]?(_0x202ca0&&this[_0x4521('0x10')](_0x202ca0),this['_attachListeners'](_0x3c1627[_0x4521('0xe')]),this['balloonPanelView'][_0x4521('0x14')]['clear'](),this[_0x4521('0x11')][_0x4521('0x14')][_0x4521('0x40')](_0x3c1627[_0x4521('0xe')]),this[_0x4521('0x2c')]()):this['_updateBalloonPosition']();}[_0x4521('0x2c')](){const _0x1e59ed=this[_0x4521('0x11')][_0x4521('0x14')][_0x4521('0x17')],_0x570ee5=_0x1e59ed&&this['annotations'][_0x4521('0x2e')](_0x1e59ed);if(!_0x570ee5||!this[_0x4521('0x25')][_0x4521('0x2d')](_0x570ee5))return;const _0x34dd83=this[_0x4521('0x25')][_0x4521('0x39')](_0x570ee5)[_0x4521('0x8')],_0x2d4c52=function(){const _0x37d026=_0x2d5c09[_0x4521('0x9')];return[_0x37d026[_0x4521('0x41')],_0x37d026[_0x4521('0x3d')],_0x37d026['southArrowNorth'],_0x37d026[_0x4521('0x1a')],_0x37d026[_0x4521('0x2a')],_0x37d026['northArrowSouthWest']];}();this['balloonPanelView']['pin']({'target':_0x34dd83,'positions':_0x2d4c52});}[_0x4521('0x4f')](){const _0x113973=this[_0x4521('0x11')],_0xfd6527=_0x113973[_0x4521('0x14')]['first'];_0xfd6527&&(this[_0x4521('0x10')](_0xfd6527),_0x113973[_0x4521('0x22')](),_0x113973[_0x4521('0x14')][_0x4521('0x12')]());}[_0x4521('0x23')](_0x11af8e){this[_0x4521('0x31')](_0x11af8e,_0x4521('0x4b'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x11af8e,_0x4521('0x56'),(_0x418d3e,_0x479531)=>{this[_0x4521('0x20')]['add'](_0x11af8e),this['_hideBalloon'](),_0x479531();});}[_0x4521('0x10')](_0x276f51){this[_0x4521('0x44')](_0x276f51);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x421a=['sidebar-setcontainer-invalid-element','pluginName','element','change:targetRect','clear','_updateLastItem','_alignToTargetRect','_attachToContainer','sidebar.container','addAnnotation','change:top','top','locale','destroy','define','config','get','_getMaxAvailableTop','setContainer','nodeType','_getTargetTop','set','_annotations','length','height','stopListening','rearrange','_destroySidebarItemView','object','_sidebarItemViewToAnnotation','refresh','isActive','add','_getItemBefore','listenTo','_annotationToSidebarItemView','_alignForTopChange','isAnimationDisabled','sidebar.preventScrollOutOfView','content','context','delete','change:_lastItem','class','_lastItem','targetRect','_createSidebarView','appendChild','sidebar-attachtocontainer-missing-container','_alignAfterItem','_recalculateBuffer','view','getIndex','_targetTop','_alignBeforeItem','_recalculate','_setItemTop','render','bind','getSidebarItemView','last','max','_getItemAfter','Sidebar','target','unbind','_spaceBetweenItems','bottom','_activeAnnotation','container','updateHeight','list','init','minHeight'];(function(_0x5eff2a,_0x421a5e){const _0x3dd12e=function(_0x5db26e){while(--_0x5db26e){_0x5eff2a['push'](_0x5eff2a['shift']());}};_0x3dd12e(++_0x421a5e);}(_0x421a,0x1f3));const _0x3dd1=function(_0x5eff2a,_0x421a5e){_0x5eff2a=_0x5eff2a-0x0;let _0x3dd12e=_0x421a[_0x5eff2a];return _0x3dd12e;};import{ContextPlugin as _0x49b22a}from'ckeditor5/src/core';import{Rect as _0x14cd78,CKEditorError as _0x46f855}from'ckeditor5/src/utils';import _0x47611f from'./view/sidebarview';import _0x44d3d3 from'./view/sidebaritemview';export default class z extends _0x49b22a{static get[_0x3dd1('0x14')](){return _0x3dd1('0x8');}constructor(_0x14effa){super(_0x14effa),this[_0x3dd1('0x28')](_0x3dd1('0x3f'),void 0x0),this[_0x3dd1('0x46')]=this[_0x3dd1('0x41')](),this[_0x3dd1('0x28')](_0x3dd1('0xe'),null),this[_0x3dd1('0xb')]=0x19,this[_0x3dd1('0x30')]=new Map(),this[_0x3dd1('0x36')]=new Map(),this[_0x3dd1('0x3b')][_0x3dd1('0x22')][_0x3dd1('0x21')](_0x3dd1('0x39'),!0x1),this[_0x3dd1('0x29')]=null,this['_activeAnnotation']=null,this[_0x3dd1('0x45')]=[];}[_0x3dd1('0x11')](){const _0x1788cd=this[_0x3dd1('0x3b')][_0x3dd1('0x22')][_0x3dd1('0x23')](_0x3dd1('0x1b'));_0x1788cd&&this[_0x3dd1('0x25')](_0x1788cd);}[_0x3dd1('0x25')](_0x3a9c79){if(!y(_0x3a9c79))throw new _0x46f855(_0x3dd1('0x13'));this[_0x3dd1('0xe')]=_0x3a9c79;}[_0x3dd1('0x1a')]({viewClass:_0x5521c3='',spaceBetweenItems:_0x151321=0x19}={}){if(!y(this[_0x3dd1('0xe')]))throw new _0x46f855(_0x3dd1('0x43'),this);this[_0x3dd1('0xe')][_0x3dd1('0x42')](this[_0x3dd1('0x46')]['element']),this[_0x3dd1('0x46')][_0x3dd1('0x3e')]=_0x5521c3,this['_spaceBetweenItems']=_0x151321;}[_0x3dd1('0x2d')]({removedAnnotation:_0x40d5b7,previousAnnotation:_0x433c12,nextAnnotation:_0x419e82}){const _0x278030=this[_0x3dd1('0x4')](_0x40d5b7);this[_0x3dd1('0x46')][_0x3dd1('0x10')]['remove'](_0x278030),this[_0x3dd1('0x2e')](_0x40d5b7),_0x433c12&&this['_alignToTargetRect'](this[_0x3dd1('0x4')](_0x433c12)),_0x419e82&&this['_alignToTargetRect'](this[_0x3dd1('0x4')](_0x419e82)),this[_0x3dd1('0x18')]();}[_0x3dd1('0x31')]({blurredAnnotation:_0x1aae5a,activatedAnnotation:_0xb8b24c,disableAnimationOnActivatedAnnotation:_0x586e83}){if(this[_0x3dd1('0xd')]=_0xb8b24c,_0x1aae5a){_0x1aae5a[_0x3dd1('0x32')]=!0x1;const _0x32f54c=this[_0x3dd1('0x4')](_0x1aae5a);_0x32f54c&&_0x586e83&&(_0x32f54c[_0x3dd1('0x38')]=!0x1);}if(_0xb8b24c){const _0x50e276=this[_0x3dd1('0x4')](_0xb8b24c);_0x50e276&&(_0xb8b24c[_0x3dd1('0x32')]=!0x0,_0x586e83&&(_0x50e276[_0x3dd1('0x38')]=!0x0,_0x50e276[_0x3dd1('0x1e')]+=0x1),this[_0x3dd1('0x19')](_0x50e276));}}['_detachFromContainer'](_0x575ba6){if(this[_0x3dd1('0x46')][_0x3dd1('0x15')]['remove'](),_0x575ba6)for(const _0x5adb4c of _0x575ba6)this[_0x3dd1('0x2e')](_0x5adb4c);this[_0x3dd1('0x46')]['list'][_0x3dd1('0x17')](),this[_0x3dd1('0x46')]['class']='',this[_0x3dd1('0x3f')]=null;}[_0x3dd1('0x1c')](_0x11ad6c,_0xaaa01c){_0xaaa01c||(_0xaaa01c=_0x11ad6c['view']);const _0x2f8651=new _0x44d3d3(this[_0x3dd1('0x3b')][_0x3dd1('0x1f')]);this[_0x3dd1('0x30')][_0x3dd1('0x28')](_0x2f8651,_0x11ad6c),this[_0x3dd1('0x36')][_0x3dd1('0x28')](_0x11ad6c,_0x2f8651),_0x2f8651[_0x3dd1('0x3a')][_0x3dd1('0x33')](_0xaaa01c),this[_0x3dd1('0x35')](_0x11ad6c[_0x3dd1('0x46')],_0x3dd1('0x16'),(_0x1abbda,_0x5b03ee,_0x2e5504)=>{const _0x300487=this['_getTargetTop'](_0x11ad6c,_0x2e5504);_0x2f8651['_targetTop']!=_0x300487&&(_0x2f8651[_0x3dd1('0x48')]=_0x300487,this['_setItemTop'](_0x2f8651,_0x300487));}),this['listenTo'](_0x2f8651,_0x3dd1('0x1d'),()=>{this[_0x3dd1('0x0')](_0x2f8651,'top');}),this[_0x3dd1('0x35')](_0x2f8651,'change:bottom',()=>{this['_recalculate'](_0x2f8651,_0x3dd1('0xc'));}),this['_alignToTargetRect'](_0x2f8651);const _0x128b8e=this[_0x3dd1('0x34')](_0x2f8651);if(_0x128b8e)this[_0x3dd1('0x44')](_0x128b8e,_0x2f8651)||this['_alignToTargetRect'](_0x2f8651);else this['_alignToTargetRect'](_0x2f8651);return this[_0x3dd1('0x18')](),this[_0x3dd1('0x46')][_0x3dd1('0x10')][_0x3dd1('0x33')](_0x2f8651),_0x2f8651;}[_0x3dd1('0x37')](_0x46b381){if(!_0x46b381[_0x3dd1('0x3a')]['length'])return;const _0x44e385=this[_0x3dd1('0x34')](_0x46b381);if(!_0x44e385)return;const _0x50d556=this['_sidebarItemViewToAnnotation'][_0x3dd1('0x23')](_0x44e385),_0x51babf=this['_activeAnnotation'];_0x51babf&&_0x51babf===_0x50d556?this['_alignAfterItem'](_0x44e385,_0x46b381):this[_0x3dd1('0x49')](_0x46b381,_0x44e385);}['_alignForBottomChange'](_0x4f99d3){if(!_0x4f99d3[_0x3dd1('0x3a')]['length'])return;const _0x2b7157=this[_0x3dd1('0x7')](_0x4f99d3);if(!_0x2b7157)return;const _0x178a81=this[_0x3dd1('0x30')][_0x3dd1('0x23')](_0x2b7157),_0x4ae24d=this['context'][_0x3dd1('0x22')][_0x3dd1('0x23')]('sidebar.preventScrollOutOfView'),_0x4a53d8=this[_0x3dd1('0xd')];_0x4a53d8&&_0x4a53d8===_0x178a81&&_0x4ae24d?(this[_0x3dd1('0x49')](_0x2b7157,_0x4f99d3),this[_0x3dd1('0x44')](_0x4f99d3,_0x2b7157)):_0x4a53d8&&_0x4a53d8===_0x178a81?this[_0x3dd1('0x49')](_0x2b7157,_0x4f99d3):this[_0x3dd1('0x44')](_0x4f99d3,_0x2b7157);}[_0x3dd1('0x0')](_0x1981b7,_0x5b7bc1){0x0===this[_0x3dd1('0x45')][_0x3dd1('0x2a')]&&setTimeout(()=>{for(const {sidebarItemView:_0x237413,changedProp:_0x52ad4e}of this[_0x3dd1('0x45')])_0x3dd1('0x1e')===_0x52ad4e?this[_0x3dd1('0x37')](_0x237413):this['_alignForBottomChange'](_0x237413);this['_recalculateBuffer']=[];},0xa),this[_0x3dd1('0x45')]['push']({'sidebarItemView':_0x1981b7,'changedProp':_0x5b7bc1});}[_0x3dd1('0x4')](_0x27b3e1){return this[_0x3dd1('0x36')]['get'](_0x27b3e1);}[_0x3dd1('0x20')](){this['stopListening'](),this['view'][_0x3dd1('0x20')]();}[_0x3dd1('0x2e')](_0x3f7b40){const _0x2d6937=this[_0x3dd1('0x4')](_0x3f7b40);this[_0x3dd1('0x2c')](_0x2d6937),this['stopListening'](_0x3f7b40[_0x3dd1('0x46')]),_0x2d6937['destroy'](),this['_annotationToSidebarItemView'][_0x3dd1('0x3c')](_0x3f7b40),this[_0x3dd1('0x30')][_0x3dd1('0x3c')](_0x2d6937);}[_0x3dd1('0x41')](){const _0x4599ac=new _0x47611f(this[_0x3dd1('0x3b')]['locale']);return _0x4599ac[_0x3dd1('0x2')](),this['on'](_0x3dd1('0x3d'),(_0x589fec,_0x59029a,_0x409925,_0x1c4c38)=>{_0x1c4c38&&_0x4599ac[_0x3dd1('0xa')](_0x3dd1('0x12')),_0x409925?_0x4599ac[_0x3dd1('0x3')](_0x3dd1('0x12'))['to'](_0x409925,_0x3dd1('0xc')):_0x4599ac[_0x3dd1('0x12')]=null;}),_0x4599ac;}[_0x3dd1('0x18')](){var _0x35077f;this[_0x3dd1('0x3f')]=(null===(_0x35077f=this[_0x3dd1('0x29')])||void 0x0===_0x35077f?void 0x0:_0x35077f[_0x3dd1('0x5')])?this[_0x3dd1('0x4')](this[_0x3dd1('0x29')]['last']):null;}[_0x3dd1('0x34')](_0x29589d){var _0x4f9f44;const _0x396918=this['_sidebarItemViewToAnnotation'][_0x3dd1('0x23')](_0x29589d),_0x1a7945=_0x396918&&(null===(_0x4f9f44=this[_0x3dd1('0x29')])||void 0x0===_0x4f9f44?void 0x0:_0x4f9f44[_0x3dd1('0x23')](this[_0x3dd1('0x29')][_0x3dd1('0x47')](_0x396918)-0x1));return _0x1a7945&&this[_0x3dd1('0x4')](_0x1a7945)||null;}['_getItemAfter'](_0x419133){var _0x51fa8a;const _0x20b6fa=this[_0x3dd1('0x30')]['get'](_0x419133),_0x25a123=_0x20b6fa&&(null===(_0x51fa8a=this['_annotations'])||void 0x0===_0x51fa8a?void 0x0:_0x51fa8a[_0x3dd1('0x23')](this[_0x3dd1('0x29')]['getIndex'](_0x20b6fa)+0x1));return _0x25a123&&this[_0x3dd1('0x4')](_0x25a123)||null;}['_alignBeforeItem'](_0x2c7971,_0x5341b1){_0x2c7971[_0x3dd1('0xf')]();const _0x38c245=H(_0x5341b1[_0x3dd1('0xc')]+this[_0x3dd1('0xb')],_0x2c7971[_0x3dd1('0x1e')]);return!!_0x38c245&&(this[_0x3dd1('0x1')](_0x5341b1,_0x5341b1['top']-_0x38c245),!0x0);}[_0x3dd1('0x44')](_0x3d455a,_0x8156b){_0x3d455a[_0x3dd1('0xf')]();const _0x3d056a=H(_0x3d455a[_0x3dd1('0xc')]+this[_0x3dd1('0xb')],_0x8156b[_0x3dd1('0x1e')]);return!!_0x3d056a&&(this[_0x3dd1('0x1')](_0x8156b,_0x8156b[_0x3dd1('0x1e')]+_0x3d056a,!0x1),!0x0);}[_0x3dd1('0x19')](_0x13af28){const _0x167ba9=this[_0x3dd1('0x30')][_0x3dd1('0x23')](_0x13af28);if(!_0x167ba9||!_0x167ba9[_0x3dd1('0x9')]||!_0x167ba9[_0x3dd1('0x40')])return;const _0x94e911=this[_0x3dd1('0x27')](_0x167ba9,_0x167ba9[_0x3dd1('0x40')]);this[_0x3dd1('0x1')](_0x13af28,_0x94e911);}[_0x3dd1('0x27')](_0x3d4b26,_0x59396e){if(null===_0x59396e)return 0x0;if(_0x3d4b26[_0x3dd1('0x9')]instanceof _0x14cd78)return _0x59396e['top'];{const _0x2939d8=new _0x14cd78(this['view'][_0x3dd1('0x15')])[_0x3dd1('0x1e')];return _0x59396e[_0x3dd1('0x1e')]-_0x2939d8;}}[_0x3dd1('0x1')](_0x4c5959,_0x2ec2d5,_0x319b49=this[_0x3dd1('0x3b')][_0x3dd1('0x22')][_0x3dd1('0x23')](_0x3dd1('0x39'))){_0x319b49&&(_0x2ec2d5=Math[_0x3dd1('0x6')](_0x2ec2d5,this[_0x3dd1('0x24')](_0x4c5959))),_0x4c5959[_0x3dd1('0x1e')]=_0x2ec2d5;}[_0x3dd1('0x24')](_0x3dcdf2){let _0x2cbc33=this[_0x3dd1('0x34')](_0x3dcdf2),_0x19bfd2=0x0;for(;_0x2cbc33;)_0x2cbc33[_0x3dd1('0xf')](),_0x19bfd2+=this[_0x3dd1('0xb')]+_0x2cbc33[_0x3dd1('0x2b')],_0x2cbc33=this['_getItemBefore'](_0x2cbc33);return _0x19bfd2;}}function H(_0x4005c1,_0x1ffc09){return Math[_0x3dd1('0x6')](_0x4005c1-_0x1ffc09,0x0);}function y(_0x477cd7){return null!==_0x477cd7&&_0x3dd1('0x2f')==typeof _0x477cd7&&0x1===_0x477cd7[_0x3dd1('0x26')];}
23
+ const _0x2be7=['define','_alignAfterItem','_spaceBetweenItems','last','element','_alignBeforeItem','getIndex','isAnimationDisabled','_activeAnnotation','_getMaxAvailableTop','length','nodeType','add','locale','sidebar.preventScrollOutOfView','container','delete','max','set','bind','_getItemBefore','remove','clear','_alignForBottomChange','sidebar.container','_destroySidebarItemView','_alignToTargetRect','setContainer','isActive','unbind','_annotationToSidebarItemView','top','height','init','config','context','target','content','targetRect','_annotations','rearrange','listenTo','change:targetRect','_recalculateBuffer','minHeight','_getTargetTop','push','destroy','stopListening','class','change:_lastItem','change:bottom','appendChild','_createSidebarView','_sidebarItemViewToAnnotation','_attachToContainer','get','getSidebarItemView','updateHeight','sidebar-attachtocontainer-missing-container','_setItemTop','list','_targetTop','_lastItem','refresh','_recalculate','Sidebar','render','bottom','_alignForTopChange','view','_updateLastItem'];(function(_0xcf287,_0x2be71a){const _0x1d0af9=function(_0x223a51){while(--_0x223a51){_0xcf287['push'](_0xcf287['shift']());}};_0x1d0af9(++_0x2be71a);}(_0x2be7,0x67));const _0x1d0a=function(_0xcf287,_0x2be71a){_0xcf287=_0xcf287-0x0;let _0x1d0af9=_0x2be7[_0xcf287];return _0x1d0af9;};import{ContextPlugin as _0x370b66}from'ckeditor5/src/core';import{Rect as _0x4f7364,CKEditorError as _0x112d2c}from'ckeditor5/src/utils';import _0x1dbe5b from'./view/sidebarview';import _0x35a9eb from'./view/sidebaritemview';export default class z extends _0x370b66{static get['pluginName'](){return _0x1d0a('0x23');}constructor(_0x5e9479){super(_0x5e9479),this[_0x1d0a('0x3b')](_0x1d0a('0x20'),void 0x0),this['view']=this['_createSidebarView'](),this[_0x1d0a('0x3b')](_0x1d0a('0x38'),null),this[_0x1d0a('0x2b')]=0x19,this[_0x1d0a('0x17')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x1d0a('0x4')][_0x1d0a('0x3')][_0x1d0a('0x29')](_0x1d0a('0x37'),!0x1),this[_0x1d0a('0x8')]=null,this[_0x1d0a('0x31')]=null,this[_0x1d0a('0xc')]=[];}[_0x1d0a('0x2')](){const _0x43b702=this[_0x1d0a('0x4')][_0x1d0a('0x3')][_0x1d0a('0x19')](_0x1d0a('0x41'));_0x43b702&&this[_0x1d0a('0x44')](_0x43b702);}['setContainer'](_0x51f97b){if(!y(_0x51f97b))throw new _0x112d2c('sidebar-setcontainer-invalid-element');this[_0x1d0a('0x38')]=_0x51f97b;}[_0x1d0a('0x18')]({viewClass:_0x2a5d72='',spaceBetweenItems:_0x4b80ee=0x19}={}){if(!y(this[_0x1d0a('0x38')]))throw new _0x112d2c(_0x1d0a('0x1c'),this);this[_0x1d0a('0x38')][_0x1d0a('0x15')](this[_0x1d0a('0x27')][_0x1d0a('0x2d')]),this['view'][_0x1d0a('0x12')]=_0x2a5d72,this[_0x1d0a('0x2b')]=_0x4b80ee;}[_0x1d0a('0x9')]({removedAnnotation:_0x23e19b,previousAnnotation:_0x333247,nextAnnotation:_0x1beb33}){const _0xe0d8b6=this['getSidebarItemView'](_0x23e19b);this[_0x1d0a('0x27')][_0x1d0a('0x1e')][_0x1d0a('0x3e')](_0xe0d8b6),this[_0x1d0a('0x42')](_0x23e19b),_0x333247&&this[_0x1d0a('0x43')](this[_0x1d0a('0x1a')](_0x333247)),_0x1beb33&&this[_0x1d0a('0x43')](this[_0x1d0a('0x1a')](_0x1beb33)),this[_0x1d0a('0x28')]();}[_0x1d0a('0x21')]({blurredAnnotation:_0x38b0b0,activatedAnnotation:_0x279b39,disableAnimationOnActivatedAnnotation:_0x31b0b9}){if(this[_0x1d0a('0x31')]=_0x279b39,_0x38b0b0){_0x38b0b0[_0x1d0a('0x45')]=!0x1;const _0x4b06e5=this[_0x1d0a('0x1a')](_0x38b0b0);_0x4b06e5&&_0x31b0b9&&(_0x4b06e5[_0x1d0a('0x30')]=!0x1);}if(_0x279b39){const _0x210e84=this['getSidebarItemView'](_0x279b39);_0x210e84&&(_0x279b39[_0x1d0a('0x45')]=!0x0,_0x31b0b9&&(_0x210e84[_0x1d0a('0x30')]=!0x0,_0x210e84['top']+=0x1),this['_alignToTargetRect'](_0x210e84));}}['_detachFromContainer'](_0xdf67da){if(this['view'][_0x1d0a('0x2d')][_0x1d0a('0x3e')](),_0xdf67da)for(const _0x31aaa0 of _0xdf67da)this[_0x1d0a('0x42')](_0x31aaa0);this[_0x1d0a('0x27')][_0x1d0a('0x1e')][_0x1d0a('0x3f')](),this[_0x1d0a('0x27')]['class']='',this['_lastItem']=null;}['addAnnotation'](_0x184e98,_0x5afc18){_0x5afc18||(_0x5afc18=_0x184e98[_0x1d0a('0x27')]);const _0x269029=new _0x35a9eb(this[_0x1d0a('0x4')]['locale']);this[_0x1d0a('0x17')][_0x1d0a('0x3b')](_0x269029,_0x184e98),this[_0x1d0a('0x47')][_0x1d0a('0x3b')](_0x184e98,_0x269029),_0x269029['content'][_0x1d0a('0x35')](_0x5afc18),this[_0x1d0a('0xa')](_0x184e98[_0x1d0a('0x27')],_0x1d0a('0xb'),(_0x219497,_0x4d7afd,_0x488aca)=>{const _0x17712d=this[_0x1d0a('0xe')](_0x184e98,_0x488aca);_0x269029['_targetTop']!=_0x17712d&&(_0x269029[_0x1d0a('0x1f')]=_0x17712d,this[_0x1d0a('0x1d')](_0x269029,_0x17712d));}),this['listenTo'](_0x269029,'change:top',()=>{this[_0x1d0a('0x22')](_0x269029,_0x1d0a('0x0'));}),this['listenTo'](_0x269029,_0x1d0a('0x14'),()=>{this[_0x1d0a('0x22')](_0x269029,_0x1d0a('0x25'));}),this[_0x1d0a('0x43')](_0x269029);const _0x23424c=this['_getItemBefore'](_0x269029);if(_0x23424c)this['_alignAfterItem'](_0x23424c,_0x269029)||this[_0x1d0a('0x43')](_0x269029);else this['_alignToTargetRect'](_0x269029);return this[_0x1d0a('0x28')](),this[_0x1d0a('0x27')][_0x1d0a('0x1e')][_0x1d0a('0x35')](_0x269029),_0x269029;}[_0x1d0a('0x26')](_0x34527f){if(!_0x34527f['content']['length'])return;const _0x374cdf=this['_getItemBefore'](_0x34527f);if(!_0x374cdf)return;const _0xda9835=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x374cdf),_0x21a328=this[_0x1d0a('0x31')];_0x21a328&&_0x21a328===_0xda9835?this['_alignAfterItem'](_0x374cdf,_0x34527f):this[_0x1d0a('0x2e')](_0x34527f,_0x374cdf);}[_0x1d0a('0x40')](_0x2076d1){if(!_0x2076d1[_0x1d0a('0x6')]['length'])return;const _0x4d2cfd=this['_getItemAfter'](_0x2076d1);if(!_0x4d2cfd)return;const _0x47a2cf=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x4d2cfd),_0x4cc640=this['context'][_0x1d0a('0x3')][_0x1d0a('0x19')](_0x1d0a('0x37')),_0x4b73c9=this[_0x1d0a('0x31')];_0x4b73c9&&_0x4b73c9===_0x47a2cf&&_0x4cc640?(this['_alignBeforeItem'](_0x4d2cfd,_0x2076d1),this[_0x1d0a('0x2a')](_0x2076d1,_0x4d2cfd)):_0x4b73c9&&_0x4b73c9===_0x47a2cf?this[_0x1d0a('0x2e')](_0x4d2cfd,_0x2076d1):this['_alignAfterItem'](_0x2076d1,_0x4d2cfd);}[_0x1d0a('0x22')](_0x1ba503,_0x2ec3e3){0x0===this[_0x1d0a('0xc')][_0x1d0a('0x33')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5a5fb0,changedProp:_0x1f8988}of this[_0x1d0a('0xc')])_0x1d0a('0x0')===_0x1f8988?this[_0x1d0a('0x26')](_0x5a5fb0):this[_0x1d0a('0x40')](_0x5a5fb0);this['_recalculateBuffer']=[];},0xa),this[_0x1d0a('0xc')][_0x1d0a('0xf')]({'sidebarItemView':_0x1ba503,'changedProp':_0x2ec3e3});}[_0x1d0a('0x1a')](_0x1693af){return this[_0x1d0a('0x47')][_0x1d0a('0x19')](_0x1693af);}[_0x1d0a('0x10')](){this[_0x1d0a('0x11')](),this[_0x1d0a('0x27')]['destroy']();}['_destroySidebarItemView'](_0x492d8e){const _0x41f5fc=this[_0x1d0a('0x1a')](_0x492d8e);this[_0x1d0a('0x11')](_0x41f5fc),this['stopListening'](_0x492d8e['view']),_0x41f5fc[_0x1d0a('0x10')](),this['_annotationToSidebarItemView'][_0x1d0a('0x39')](_0x492d8e),this[_0x1d0a('0x17')][_0x1d0a('0x39')](_0x41f5fc);}[_0x1d0a('0x16')](){const _0x198554=new _0x1dbe5b(this['context'][_0x1d0a('0x36')]);return _0x198554[_0x1d0a('0x24')](),this['on'](_0x1d0a('0x13'),(_0x381935,_0x56b603,_0x1a4888,_0x4daa4e)=>{_0x4daa4e&&_0x198554[_0x1d0a('0x46')]('minHeight'),_0x1a4888?_0x198554[_0x1d0a('0x3c')]('minHeight')['to'](_0x1a4888,_0x1d0a('0x25')):_0x198554[_0x1d0a('0xd')]=null;}),_0x198554;}[_0x1d0a('0x28')](){var _0x52067f;this['_lastItem']=(null===(_0x52067f=this[_0x1d0a('0x8')])||void 0x0===_0x52067f?void 0x0:_0x52067f[_0x1d0a('0x2c')])?this[_0x1d0a('0x1a')](this['_annotations'][_0x1d0a('0x2c')]):null;}[_0x1d0a('0x3d')](_0x1aad0d){var _0x533470;const _0x31f396=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x1aad0d),_0x3b89c6=_0x31f396&&(null===(_0x533470=this[_0x1d0a('0x8')])||void 0x0===_0x533470?void 0x0:_0x533470[_0x1d0a('0x19')](this[_0x1d0a('0x8')][_0x1d0a('0x2f')](_0x31f396)-0x1));return _0x3b89c6&&this['getSidebarItemView'](_0x3b89c6)||null;}['_getItemAfter'](_0x5881ec){var _0x48bf24;const _0x54b0e0=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x5881ec),_0x4ee888=_0x54b0e0&&(null===(_0x48bf24=this[_0x1d0a('0x8')])||void 0x0===_0x48bf24?void 0x0:_0x48bf24[_0x1d0a('0x19')](this['_annotations'][_0x1d0a('0x2f')](_0x54b0e0)+0x1));return _0x4ee888&&this[_0x1d0a('0x1a')](_0x4ee888)||null;}[_0x1d0a('0x2e')](_0x4aa797,_0xf0d91c){_0x4aa797[_0x1d0a('0x1b')]();const _0x2ab5f2=H(_0xf0d91c['bottom']+this[_0x1d0a('0x2b')],_0x4aa797[_0x1d0a('0x0')]);return!!_0x2ab5f2&&(this[_0x1d0a('0x1d')](_0xf0d91c,_0xf0d91c[_0x1d0a('0x0')]-_0x2ab5f2),!0x0);}[_0x1d0a('0x2a')](_0x1bfe1c,_0x28931a){_0x1bfe1c[_0x1d0a('0x1b')]();const _0x3edfd7=H(_0x1bfe1c[_0x1d0a('0x25')]+this[_0x1d0a('0x2b')],_0x28931a[_0x1d0a('0x0')]);return!!_0x3edfd7&&(this[_0x1d0a('0x1d')](_0x28931a,_0x28931a['top']+_0x3edfd7,!0x1),!0x0);}[_0x1d0a('0x43')](_0x473cfc){const _0x37fc7d=this['_sidebarItemViewToAnnotation'][_0x1d0a('0x19')](_0x473cfc);if(!_0x37fc7d||!_0x37fc7d[_0x1d0a('0x5')]||!_0x37fc7d[_0x1d0a('0x7')])return;const _0x1f61f2=this[_0x1d0a('0xe')](_0x37fc7d,_0x37fc7d['targetRect']);this[_0x1d0a('0x1d')](_0x473cfc,_0x1f61f2);}[_0x1d0a('0xe')](_0x80959e,_0x1aaf9e){if(null===_0x1aaf9e)return 0x0;if(_0x80959e[_0x1d0a('0x5')]instanceof _0x4f7364)return _0x1aaf9e[_0x1d0a('0x0')];{const _0xb5d5b0=new _0x4f7364(this['view'][_0x1d0a('0x2d')])['top'];return _0x1aaf9e[_0x1d0a('0x0')]-_0xb5d5b0;}}[_0x1d0a('0x1d')](_0x159b85,_0x29df0f,_0x7545a=this[_0x1d0a('0x4')][_0x1d0a('0x3')][_0x1d0a('0x19')](_0x1d0a('0x37'))){_0x7545a&&(_0x29df0f=Math[_0x1d0a('0x3a')](_0x29df0f,this[_0x1d0a('0x32')](_0x159b85))),_0x159b85[_0x1d0a('0x0')]=_0x29df0f;}[_0x1d0a('0x32')](_0x5a4f36){let _0x6dd982=this[_0x1d0a('0x3d')](_0x5a4f36),_0x4b3dd5=0x0;for(;_0x6dd982;)_0x6dd982[_0x1d0a('0x1b')](),_0x4b3dd5+=this['_spaceBetweenItems']+_0x6dd982[_0x1d0a('0x1')],_0x6dd982=this['_getItemBefore'](_0x6dd982);return _0x4b3dd5;}}function H(_0x47e4d8,_0x44d9a8){return Math[_0x1d0a('0x3a')](_0x47e4d8-_0x44d9a8,0x0);}function y(_0x398dcd){return null!==_0x398dcd&&'object'==typeof _0x398dcd&&0x1===_0x398dcd[_0x1d0a('0x34')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44ed=['isDirty','ck-annotation-counter','toString','add','number','_badge','set','bind','icon','counterView','span','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode','...','bindTemplate','ck-annotation-counter__badge--','annotationType','extendTemplate'];(function(_0x1c06e5,_0x44ed67){const _0x182181=function(_0x4c8d66){while(--_0x4c8d66){_0x1c06e5['push'](_0x1c06e5['shift']());}};_0x182181(++_0x44ed67);}(_0x44ed,0xd9));const _0x1821=function(_0x1c06e5,_0x44ed67){_0x1c06e5=_0x1c06e5-0x0;let _0x182181=_0x44ed[_0x1c06e5];return _0x182181;};import{ButtonView as _0xff09b,View as _0x3f0f3c}from'ckeditor5/src/ui';import _0x38b283 from'../../../theme/icons/add-comment.svg';export default class D extends _0xff09b{constructor(_0x48a217){super(_0x48a217);const _0x465297=this[_0x1821('0xd')];this[_0x1821('0x5')](_0x1821('0x11'),!0x1),this[_0x1821('0x5')](_0x1821('0x3'),0x0),this[_0x1821('0x6')](_0x1821('0x4'))['to'](this,_0x1821('0x11'),this,_0x1821('0x3'),(_0x44d2e7,_0x2279b3)=>_0x44d2e7?_0x1821('0xc'):_0x2279b3[_0x1821('0x1')]()),this[_0x1821('0x5')](_0x1821('0xf'),''),this[_0x1821('0x7')]=_0x38b283,this[_0x1821('0x10')]({'attributes':{'class':[_0x1821('0x0')]}}),this['counterView']=new _0x3f0f3c(),this['counterView']['setTemplate']({'tag':_0x1821('0x9'),'attributes':{'class':[_0x1821('0xa'),_0x465297['to'](_0x1821('0xf'),_0x3fc379=>_0x1821('0xe')+_0x3fc379),_0x465297['if'](_0x1821('0x11'),_0x1821('0xb'))]},'children':[{'text':_0x465297['to'](_0x1821('0x4'))}]}),this['children'][_0x1821('0x2')](this[_0x1821('0x8')]);}}
23
+ const _0x156c=['set','bindTemplate','annotationType','ck-annotation-counter__badge--','bind','number','counterView','span','ck-annotation-counter','add','_badge','extendTemplate','isDirty'];(function(_0x275f58,_0x156c5d){const _0xc90cad=function(_0x471547){while(--_0x471547){_0x275f58['push'](_0x275f58['shift']());}};_0xc90cad(++_0x156c5d);}(_0x156c,0x6e));const _0xc90c=function(_0x275f58,_0x156c5d){_0x275f58=_0x275f58-0x0;let _0xc90cad=_0x156c[_0x275f58];return _0xc90cad;};import{ButtonView as _0x3d24d4,View as _0x34211b}from'ckeditor5/src/ui';import _0x154a6a from'../../../theme/icons/add-comment.svg';export default class D extends _0x3d24d4{constructor(_0x57dbb1){super(_0x57dbb1);const _0x56a93e=this[_0xc90c('0x8')];this[_0xc90c('0x7')](_0xc90c('0x6'),!0x1),this[_0xc90c('0x7')]('number',0x0),this[_0xc90c('0xb')](_0xc90c('0x4'))['to'](this,_0xc90c('0x6'),this,_0xc90c('0xc'),(_0x37cfb9,_0x277619)=>_0x37cfb9?'...':_0x277619['toString']()),this[_0xc90c('0x7')]('annotationType',''),this['icon']=_0x154a6a,this[_0xc90c('0x5')]({'attributes':{'class':[_0xc90c('0x2')]}}),this[_0xc90c('0x0')]=new _0x34211b(),this[_0xc90c('0x0')]['setTemplate']({'tag':_0xc90c('0x1'),'attributes':{'class':['ck-annotation-counter__badge',_0x56a93e['to'](_0xc90c('0x9'),_0x42400e=>_0xc90c('0xa')+_0x42400e),_0x56a93e['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x56a93e['to'](_0xc90c('0x4'))}]}),this['children'][_0xc90c('0x3')](this[_0xc90c('0x0')]);}}