@ckeditor/ckeditor5-comments 30.0.0 → 31.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/package.json +8 -8
  2. package/src/annotations/annotation.js +1 -1
  3. package/src/annotations/annotationcollection.js +1 -1
  4. package/src/annotations/annotations.js +1 -1
  5. package/src/annotations/annotationsuis.js +1 -1
  6. package/src/annotations/editorannotations.js +1 -1
  7. package/src/annotations/inlineannotations.js +1 -1
  8. package/src/annotations/narrowsidebar.js +1 -1
  9. package/src/annotations/sidebar.js +1 -1
  10. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  11. package/src/annotations/view/annotationview.js +1 -1
  12. package/src/annotations/view/sidebaritemview.js +1 -1
  13. package/src/annotations/view/sidebarview.js +1 -1
  14. package/src/annotations/widesidebar.js +1 -1
  15. package/src/comments/addcommentthreadcommand.js +1 -1
  16. package/src/comments/commentsediting.js +1 -1
  17. package/src/comments/commentsrepository.js +1 -1
  18. package/src/comments/commentsui.js +1 -1
  19. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  20. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  21. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  23. package/src/comments/ui/commentthreadcontroller.js +1 -1
  24. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  25. package/src/comments/ui/view/basecommentview.js +1 -1
  26. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  27. package/src/comments/ui/view/commentcontentview.js +1 -1
  28. package/src/comments/ui/view/commentinputview.js +1 -1
  29. package/src/comments/ui/view/commentslistview.js +1 -1
  30. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  31. package/src/comments/ui/view/commentthreadview.js +1 -1
  32. package/src/comments/ui/view/commentview.js +1 -1
  33. package/src/comments/ui/view/confirmmixin.js +1 -1
  34. package/src/comments/ui/view/confirmview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. package/src/utils/createmutationobserver.js +1 -1
  39. package/src/utils/getdatetimeformatter.js +1 -1
  40. package/src/utils/getmarkerdomelement.js +1 -1
  41. package/src/utils/trim-html.js +1 -1
  42. package/theme/icons/add-comment.svg +1 -1
  43. package/theme/sidebar-narrow.css +2 -2
  44. package/theme/icons/add-comment-inverted.svg +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "30.0.0",
3
+ "version": "31.0.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -30,13 +30,13 @@
30
30
  "discussions"
31
31
  ],
32
32
  "dependencies": {
33
- "@ckeditor/ckeditor5-autoformat": "^30.0.0",
34
- "@ckeditor/ckeditor5-basic-styles": "^30.0.0",
35
- "@ckeditor/ckeditor5-collaboration-core": "^30.0.0",
36
- "@ckeditor/ckeditor5-essentials": "^30.0.0",
37
- "@ckeditor/ckeditor5-list": "^30.0.0",
38
- "@ckeditor/ckeditor5-utils": "^30.0.0",
39
- "ckeditor5": "^30.0.0",
33
+ "@ckeditor/ckeditor5-autoformat": "^31.0.0",
34
+ "@ckeditor/ckeditor5-basic-styles": "^31.0.0",
35
+ "@ckeditor/ckeditor5-collaboration-core": "^31.0.0",
36
+ "@ckeditor/ckeditor5-essentials": "^31.0.0",
37
+ "@ckeditor/ckeditor5-list": "^31.0.0",
38
+ "@ckeditor/ckeditor5-utils": "^31.0.0",
39
+ "ckeditor5": "^31.0.0",
40
40
  "date-fns": "^2.17.0",
41
41
  "lodash-es": "^4.17.11"
42
42
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ff1=['render','add','stopListening','function','remove','mainView','target','isActive','annotation-invalid-target','_id','element','view','targetRect','focusableElements','_assertCorrectTarget','focusTracker','updateTargetRect','_type','clear','_target'];(function(_0x2896e8,_0x3ff1f7){const _0x3ee3f4=function(_0x2120d2){while(--_0x2120d2){_0x2896e8['push'](_0x2896e8['shift']());}};_0x3ee3f4(++_0x3ff1f7);}(_0x3ff1,0x6e));const _0x3ee3=function(_0x2896e8,_0x3ff1f7){_0x2896e8=_0x2896e8-0x0;let _0x3ee3f4=_0x3ff1[_0x2896e8];return _0x3ee3f4;};import{CKEditorError as _0x214b42,Rect as _0x43d86e,Collection as _0x38005f}from'ckeditor5/src/utils';import{isElement as _0x4d9b1f}from'lodash-es';export default class d{constructor({view:_0x4b964c,target:_0x3c49e9,type:_0x3af53e}){this[_0x3ee3('0x1')]=_0x4b964c,this[_0x3ee3('0x1')][_0x3ee3('0x0')]||this[_0x3ee3('0x1')][_0x3ee3('0xa')](),this['_type']=_0x3af53e,this[_0x3ee3('0x9')]=_0x3c49e9,this['_assertCorrectTarget'](),this['focusableElements']=new _0x38005f([this[_0x3ee3('0x1')]['element']],{'idProperty':_0x3ee3('0x13')}),this['focusableElements']['on']('add',(_0x4c341b,_0x4c4ffa)=>{this[_0x3ee3('0x1')][_0x3ee3('0x5')][_0x3ee3('0xb')](_0x4c4ffa);}),this[_0x3ee3('0x3')]['on'](_0x3ee3('0xe'),(_0x29b1bf,_0x534c7e)=>{this[_0x3ee3('0x1')]['focusTracker'][_0x3ee3('0xe')](_0x534c7e);});}get['type'](){return _0x3ee3('0xd')==typeof this[_0x3ee3('0x7')]?this[_0x3ee3('0x7')]():this[_0x3ee3('0x7')];}get['innerView'](){return this[_0x3ee3('0x1')][_0x3ee3('0xf')];}get[_0x3ee3('0x10')](){return'function'==typeof this[_0x3ee3('0x9')]?this['_target']():this[_0x3ee3('0x9')];}get[_0x3ee3('0x2')](){const _0x5a1294=this[_0x3ee3('0x10')];return this[_0x3ee3('0x4')](),null===_0x5a1294?null:new _0x43d86e(_0x5a1294);}get[_0x3ee3('0x11')](){return this[_0x3ee3('0x1')][_0x3ee3('0x11')];}set[_0x3ee3('0x11')](_0x4b31e8){this[_0x3ee3('0x1')][_0x3ee3('0x11')]=_0x4b31e8,this[_0x3ee3('0x1')][_0x3ee3('0xf')][_0x3ee3('0x11')]=_0x4b31e8;}[_0x3ee3('0x6')](){this[_0x3ee3('0x1')][_0x3ee3('0x2')]=this[_0x3ee3('0x2')];}['destroy'](){this[_0x3ee3('0x3')][_0x3ee3('0xc')](),this[_0x3ee3('0x3')][_0x3ee3('0x8')]();}[_0x3ee3('0x4')](){const _0x39f6c9=this[_0x3ee3('0x10')];if(!(null===_0x39f6c9||_0x39f6c9 instanceof _0x43d86e||_0x4d9b1f(_0x39f6c9)))throw new _0x214b42(_0x3ee3('0x12'),null,{'target':_0x39f6c9});}}
23
+ const _0x2f90=['add','annotation-invalid-target','_assertCorrectTarget','target','innerView','_target','_id','function','focusTracker','focusableElements','remove','isActive','targetRect','clear','stopListening','view','element','_type'];(function(_0x40114b,_0x2f9014){const _0x541ea0=function(_0x292e17){while(--_0x292e17){_0x40114b['push'](_0x40114b['shift']());}};_0x541ea0(++_0x2f9014);}(_0x2f90,0x171));const _0x541e=function(_0x40114b,_0x2f9014){_0x40114b=_0x40114b-0x0;let _0x541ea0=_0x2f90[_0x40114b];return _0x541ea0;};import{CKEditorError as _0xa0ef9b,Rect as _0x2f1ab9,Collection as _0x57d120}from'ckeditor5/src/utils';import{isElement as _0x1229a1}from'lodash-es';export default class d{constructor({view:_0x4ae8d3,target:_0x241e21,type:_0x2ae738}){this['view']=_0x4ae8d3,this['view'][_0x541e('0x7')]||this[_0x541e('0x6')]['render'](),this['_type']=_0x2ae738,this[_0x541e('0xe')]=_0x241e21,this[_0x541e('0xb')](),this['focusableElements']=new _0x57d120([this[_0x541e('0x6')][_0x541e('0x7')]],{'idProperty':_0x541e('0xf')}),this[_0x541e('0x0')]['on']('add',(_0x5dcf5f,_0x5997f8)=>{this[_0x541e('0x6')][_0x541e('0x11')][_0x541e('0x9')](_0x5997f8);}),this[_0x541e('0x0')]['on']('remove',(_0xbad6f,_0x13d6c1)=>{this[_0x541e('0x6')][_0x541e('0x11')][_0x541e('0x1')](_0x13d6c1);});}get['type'](){return _0x541e('0x10')==typeof this[_0x541e('0x8')]?this[_0x541e('0x8')]():this[_0x541e('0x8')];}get[_0x541e('0xd')](){return this['view']['mainView'];}get['target'](){return _0x541e('0x10')==typeof this[_0x541e('0xe')]?this[_0x541e('0xe')]():this[_0x541e('0xe')];}get['targetRect'](){const _0x34387f=this['target'];return this['_assertCorrectTarget'](),null===_0x34387f?null:new _0x2f1ab9(_0x34387f);}get['isActive'](){return this['view'][_0x541e('0x2')];}set[_0x541e('0x2')](_0x376ad1){this[_0x541e('0x6')]['isActive']=_0x376ad1,this[_0x541e('0x6')]['mainView'][_0x541e('0x2')]=_0x376ad1;}['updateTargetRect'](){this['view'][_0x541e('0x3')]=this[_0x541e('0x3')];}['destroy'](){this[_0x541e('0x0')][_0x541e('0x5')](),this['focusableElements'][_0x541e('0x4')]();}['_assertCorrectTarget'](){const _0x14631d=this[_0x541e('0xc')];if(!(null===_0x14631d||_0x14631d instanceof _0x2f1ab9||_0x1229a1(_0x14631d)))throw new _0xa0ef9b(_0x541e('0xa'),null,{'target':_0x14631d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xef61=['_sort','_getOrderInContent','get','delete','focus','destroy','top','listenTo','isFocused','from','innerView','getByInnerView','clear','fire','left','length','focusTracker','annotationcollection-not-existing-item','getByView','targetRect','focusableElements','add','_innerViewToAnnotation','set','has','updateTargetRect','getIndex','_viewToAnnotation','blur','target','change:isFocused','view','remove','_focusTracker','stopListening'];(function(_0x3821b4,_0xef61b){const _0x22832d=function(_0x42eca5){while(--_0x42eca5){_0x3821b4['push'](_0x3821b4['shift']());}};_0x22832d(++_0xef61b);}(_0xef61,0x150));const _0x2283=function(_0x3821b4,_0xef61b){_0x3821b4=_0x3821b4-0x0;let _0x22832d=_0xef61[_0x3821b4];return _0x22832d;};import{CKEditorError as _0x1e930f,Collection as _0x367d34,Rect as _0x3d50f0,FocusTracker as _0x3db053}from'ckeditor5/src/utils';export default class p extends _0x367d34{constructor(_0xa59cea=[]){super(),this[_0x2283('0x1')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x2283('0xc')]=new _0x3db053(),this['_focusTracker']['on']('change:isFocused',(_0x2483ff,_0xb3c5f1,_0x13ecf2)=>{_0x13ecf2||this[_0x2283('0x1b')](_0x2283('0x7'));});for(const _0x400066 of _0xa59cea)this[_0x2283('0x0')](_0x400066);}get[_0x2283('0x16')](){return this['_focusTracker'][_0x2283('0x16')];}[_0x2283('0x0')](_0x3785d4){if(this[_0x2283('0x3')](_0x3785d4))throw new _0x1e930f('annotationcollection-duplicated-item',null);this[_0x2283('0x1')][_0x2283('0x2')](_0x3785d4[_0x2283('0x18')],_0x3785d4),this['_viewToAnnotation']['set'](_0x3785d4[_0x2283('0xa')],_0x3785d4);for(const _0x364e09 of _0x3785d4[_0x2283('0x22')])this[_0x2283('0xc')][_0x2283('0x0')](_0x364e09);this[_0x2283('0x15')](_0x3785d4[_0x2283('0x22')],_0x2283('0x0'),(_0x15ff77,_0x5bda98)=>{this[_0x2283('0xc')][_0x2283('0x0')](_0x5bda98);}),this['listenTo'](_0x3785d4['focusableElements'],'remove',(_0x67ffc9,_0x195c92)=>{this[_0x2283('0xc')][_0x2283('0xb')](_0x195c92);}),this[_0x2283('0x15')](_0x3785d4[_0x2283('0xa')][_0x2283('0x1e')],_0x2283('0x9'),(_0x1bd7c3,_0x243f5d,_0x534ae6)=>{_0x534ae6&&this[_0x2283('0x1b')](_0x2283('0x12'),_0x3785d4);});const _0x533141=this[_0x2283('0xf')](_0x3785d4);super[_0x2283('0x0')](_0x3785d4,_0x533141),_0x3785d4[_0x2283('0x4')]();}[_0x2283('0xb')](_0x544638){if(!this['has'](_0x544638))throw new _0x1e930f(_0x2283('0x1f'),null);this['stopListening'](_0x544638['view'][_0x2283('0x1e')]),this[_0x2283('0xd')](_0x544638[_0x2283('0x22')]);for(const _0x555592 of _0x544638[_0x2283('0x22')])this[_0x2283('0xc')]['remove'](_0x555592);this[_0x2283('0x6')][_0x2283('0x11')](_0x544638[_0x2283('0xa')]),this[_0x2283('0x1')][_0x2283('0x11')](_0x544638[_0x2283('0x18')]),super[_0x2283('0xb')](_0x544638);}[_0x2283('0x19')](_0x5d8adc){return this[_0x2283('0x1')][_0x2283('0x10')](_0x5d8adc);}[_0x2283('0x20')](_0xa08373){return this[_0x2283('0x6')][_0x2283('0x10')](_0xa08373);}[_0x2283('0x13')](){super[_0x2283('0x1a')](),this[_0x2283('0xd')](),this[_0x2283('0x1')]=null,this[_0x2283('0x6')]=null,this['_focusTracker'][_0x2283('0x13')]();}['refreshPositioning'](){for(const _0xc29a58 of this)_0xc29a58[_0x2283('0x4')]();this[_0x2283('0xe')]();}[_0x2283('0xe')](){const _0x55e374=Array[_0x2283('0x17')](this)['sort']((_0x574ae9,_0xc1e266)=>w(_0x574ae9[_0x2283('0x21')],_0xc1e266[_0x2283('0x21')]));for(let _0x3dd757=_0x55e374[_0x2283('0x1d')]-0x1;_0x3dd757>0x0;_0x3dd757--){const _0x2b6a67=_0x55e374[_0x3dd757];_0x3dd757!==this[_0x2283('0x5')](_0x2b6a67)&&(this[_0x2283('0xb')](_0x2b6a67),this[_0x2283('0x0')](_0x2b6a67,_0x3dd757));}}['_getOrderInContent'](_0x96d18b){let _0x36406e=0x0;const _0x229795=_0x96d18b[_0x2283('0x21')];for(const _0x44a13c of this){const _0x398c4f=_0x44a13c[_0x2283('0x8')];if(_0x398c4f){if(w(_0x229795,new _0x3d50f0(_0x398c4f))<0x0)return _0x36406e;_0x36406e++;}}return Math['max'](0x0,_0x36406e);}}export function bindAnnotationCollections({source:_0x41fe09,target:_0x51f85c,filter:_0x3fda92}){for(const _0x384d48 of _0x41fe09)_0x3fda92(_0x384d48)&&_0x51f85c[_0x2283('0x0')](_0x384d48);_0x51f85c[_0x2283('0x15')](_0x41fe09,_0x2283('0x0'),(_0x19ae21,_0x451f9f)=>{_0x3fda92(_0x451f9f)&&_0x51f85c['add'](_0x451f9f);}),_0x51f85c['listenTo'](_0x41fe09,_0x2283('0xb'),(_0x3b3386,_0x18157e)=>{_0x3fda92(_0x18157e)&&_0x51f85c[_0x2283('0xb')](_0x18157e);});}function w(_0x31da5f,_0x32e8c2){const _0x2e6d6e=_0x31da5f['top']-_0x32e8c2[_0x2283('0x14')];return 0x0==_0x2e6d6e?_0x31da5f[_0x2283('0x1c')]-_0x32e8c2[_0x2283('0x1c')]:_0x2e6d6e;}
23
+ const _0x3e66=['targetRect','sort','getIndex','left','max','_sort','annotationcollection-not-existing-item','top','refreshPositioning','focus','_innerViewToAnnotation','fire','view','innerView','_focusTracker','annotationcollection-duplicated-item','_viewToAnnotation','focusableElements','has','getByInnerView','updateTargetRect','add','change:isFocused','get','from','delete','length','focusTracker','stopListening','listenTo','destroy','isFocused','blur','remove','_getOrderInContent','target','getByView'];(function(_0x5aee80,_0x3e6645){const _0xd23115=function(_0x1ccd23){while(--_0x1ccd23){_0x5aee80['push'](_0x5aee80['shift']());}};_0xd23115(++_0x3e6645);}(_0x3e66,0x1e2));const _0xd231=function(_0x5aee80,_0x3e6645){_0x5aee80=_0x5aee80-0x0;let _0xd23115=_0x3e66[_0x5aee80];return _0xd23115;};import{CKEditorError as _0x1c0d1e,Collection as _0x1956a1,Rect as _0x3cdfa0,FocusTracker as _0x281796}from'ckeditor5/src/utils';export default class p extends _0x1956a1{constructor(_0x3a11d1=[]){super(),this[_0xd231('0x9')]=new Map(),this[_0xd231('0xf')]=new Map(),this['_focusTracker']=new _0x281796(),this[_0xd231('0xd')]['on'](_0xd231('0x15'),(_0x4227f7,_0x338f2e,_0x1047f4)=>{_0x1047f4||this[_0xd231('0xa')](_0xd231('0x1f'));});for(const _0x34c702 of _0x3a11d1)this[_0xd231('0x14')](_0x34c702);}get[_0xd231('0x1e')](){return this[_0xd231('0xd')]['isFocused'];}['add'](_0x235c06){if(this[_0xd231('0x11')](_0x235c06))throw new _0x1c0d1e(_0xd231('0xe'),null);this[_0xd231('0x9')]['set'](_0x235c06['innerView'],_0x235c06),this['_viewToAnnotation']['set'](_0x235c06[_0xd231('0xb')],_0x235c06);for(const _0x4c080b of _0x235c06[_0xd231('0x10')])this['_focusTracker'][_0xd231('0x14')](_0x4c080b);this[_0xd231('0x1c')](_0x235c06['focusableElements'],_0xd231('0x14'),(_0x237770,_0x2cf41e)=>{this[_0xd231('0xd')][_0xd231('0x14')](_0x2cf41e);}),this[_0xd231('0x1c')](_0x235c06['focusableElements'],_0xd231('0x20'),(_0x587a56,_0x2392f4)=>{this['_focusTracker'][_0xd231('0x20')](_0x2392f4);}),this['listenTo'](_0x235c06[_0xd231('0xb')][_0xd231('0x1a')],_0xd231('0x15'),(_0x173cb5,_0x32b15d,_0x5e4c40)=>{_0x5e4c40&&this[_0xd231('0xa')](_0xd231('0x8'),_0x235c06);});const _0x29246f=this[_0xd231('0x21')](_0x235c06);super[_0xd231('0x14')](_0x235c06,_0x29246f),_0x235c06['updateTargetRect']();}['remove'](_0x56e3f4){if(!this[_0xd231('0x11')](_0x56e3f4))throw new _0x1c0d1e(_0xd231('0x5'),null);this[_0xd231('0x1b')](_0x56e3f4[_0xd231('0xb')][_0xd231('0x1a')]),this[_0xd231('0x1b')](_0x56e3f4[_0xd231('0x10')]);for(const _0x10db4a of _0x56e3f4[_0xd231('0x10')])this[_0xd231('0xd')][_0xd231('0x20')](_0x10db4a);this[_0xd231('0xf')]['delete'](_0x56e3f4[_0xd231('0xb')]),this[_0xd231('0x9')][_0xd231('0x18')](_0x56e3f4[_0xd231('0xc')]),super[_0xd231('0x20')](_0x56e3f4);}[_0xd231('0x12')](_0x46f67a){return this['_innerViewToAnnotation'][_0xd231('0x16')](_0x46f67a);}[_0xd231('0x23')](_0x373238){return this['_viewToAnnotation'][_0xd231('0x16')](_0x373238);}[_0xd231('0x1d')](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']=null,this[_0xd231('0xf')]=null,this['_focusTracker']['destroy']();}[_0xd231('0x7')](){for(const _0x4b11e6 of this)_0x4b11e6[_0xd231('0x13')]();this['_sort']();}[_0xd231('0x4')](){const _0x3d39cf=Array[_0xd231('0x17')](this)[_0xd231('0x0')]((_0x6b331a,_0xc7b182)=>w(_0x6b331a[_0xd231('0x24')],_0xc7b182[_0xd231('0x24')]));for(let _0x5d4177=_0x3d39cf[_0xd231('0x19')]-0x1;_0x5d4177>0x0;_0x5d4177--){const _0x15708d=_0x3d39cf[_0x5d4177];_0x5d4177!==this[_0xd231('0x1')](_0x15708d)&&(this['remove'](_0x15708d),this['add'](_0x15708d,_0x5d4177));}}[_0xd231('0x21')](_0x3ff6ab){let _0x3f13d2=0x0;const _0x5c071e=_0x3ff6ab['targetRect'];for(const _0x291397 of this){const _0x181374=_0x291397[_0xd231('0x22')];if(_0x181374){if(w(_0x5c071e,new _0x3cdfa0(_0x181374))<0x0)return _0x3f13d2;_0x3f13d2++;}}return Math[_0xd231('0x3')](0x0,_0x3f13d2);}}export function bindAnnotationCollections({source:_0x1966ed,target:_0x164c0c,filter:_0x494a0e}){for(const _0x111e5b of _0x1966ed)_0x494a0e(_0x111e5b)&&_0x164c0c[_0xd231('0x14')](_0x111e5b);_0x164c0c['listenTo'](_0x1966ed,_0xd231('0x14'),(_0x5c3277,_0x196569)=>{_0x494a0e(_0x196569)&&_0x164c0c[_0xd231('0x14')](_0x196569);}),_0x164c0c['listenTo'](_0x1966ed,'remove',(_0x308560,_0x443e37)=>{_0x494a0e(_0x443e37)&&_0x164c0c[_0xd231('0x20')](_0x443e37);});}function w(_0xf0a4fe,_0x3d46d5){const _0x32713d=_0xf0a4fe[_0xd231('0x6')]-_0x3d46d5['top'];return 0x0==_0x32713d?_0xf0a4fe[_0xd231('0x2')]-_0x3d46d5['left']:_0x32713d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5224=['_activateAnnotation','destroy','collection','Annotations','getByInnerView','activate','remove','_addActiveAnnotation','_removeActiveAnnotation','add','activeAnnotations','fire','deactivateAll','delete','_deactivateAllAnnotations','set'];(function(_0x580f41,_0x522486){const _0x343942=function(_0x426f76){while(--_0x426f76){_0x580f41['push'](_0x580f41['shift']());}};_0x343942(++_0x522486);}(_0x5224,0x1d6));const _0x3439=function(_0x580f41,_0x522486){_0x580f41=_0x580f41-0x0;let _0x343942=_0x5224[_0x580f41];return _0x343942;};import{ContextPlugin as _0x560d5d}from'ckeditor5/src/core';import _0x15d966 from'./annotationcollection';export default class v extends _0x560d5d{static get['pluginName'](){return _0x3439('0xd');}constructor(_0x33476d){super(_0x33476d),this['collection']=new _0x15d966(),this[_0x3439('0x9')](_0x3439('0x4'),new Set());}[_0x3439('0x3')](_0x3a42b8){this['collection'][_0x3439('0x3')](_0x3a42b8);}[_0x3439('0x0')](_0x344828){this[_0x3439('0xc')][_0x3439('0x0')](_0x344828),_0x344828['destroy']();}[_0x3439('0xe')](_0x4af907){return this[_0x3439('0xc')][_0x3439('0xe')](_0x4af907);}[_0x3439('0x6')](){this[_0x3439('0x5')](_0x3439('0x8'));}[_0x3439('0xb')](){for(const _0x4a909c of this[_0x3439('0xc')])_0x4a909c[_0x3439('0xb')]();super[_0x3439('0xb')]();}[_0x3439('0xf')](_0x3ebe2e){this['fire'](_0x3439('0xa'),_0x3ebe2e);}[_0x3439('0x1')](_0x2ecb61){const _0x4af70b=new Set(this['activeAnnotations']);_0x4af70b[_0x3439('0x3')](_0x2ecb61),this[_0x3439('0x4')]=_0x4af70b;}[_0x3439('0x2')](_0x3d1625){const _0x469b3d=new Set(this[_0x3439('0x4')]);_0x469b3d[_0x3439('0x7')](_0x3d1625),this[_0x3439('0x4')]=_0x469b3d;}}
23
+ const _0x41c1=['pluginName','activeAnnotations','collection','_addActiveAnnotation','activate','fire','destroy','_activateAnnotation','set','add','remove'];(function(_0x260946,_0x41c1f7){const _0x585011=function(_0x15a6c7){while(--_0x15a6c7){_0x260946['push'](_0x260946['shift']());}};_0x585011(++_0x41c1f7);}(_0x41c1,0x103));const _0x5850=function(_0x260946,_0x41c1f7){_0x260946=_0x260946-0x0;let _0x585011=_0x41c1[_0x260946];return _0x585011;};import{ContextPlugin as _0x536711}from'ckeditor5/src/core';import _0x46c003 from'./annotationcollection';export default class v extends _0x536711{static get[_0x5850('0x5')](){return'Annotations';}constructor(_0x201f3e){super(_0x201f3e),this[_0x5850('0x7')]=new _0x46c003(),this[_0x5850('0x2')](_0x5850('0x6'),new Set());}[_0x5850('0x3')](_0x4b42b6){this[_0x5850('0x7')][_0x5850('0x3')](_0x4b42b6);}[_0x5850('0x4')](_0x4b06d0){this[_0x5850('0x7')][_0x5850('0x4')](_0x4b06d0),_0x4b06d0[_0x5850('0x0')]();}['getByInnerView'](_0x23a23c){return this[_0x5850('0x7')]['getByInnerView'](_0x23a23c);}['deactivateAll'](){this[_0x5850('0xa')]('_deactivateAllAnnotations');}[_0x5850('0x0')](){for(const _0xbc0362 of this[_0x5850('0x7')])_0xbc0362[_0x5850('0x0')]();super[_0x5850('0x0')]();}[_0x5850('0x9')](_0x3e62ff){this[_0x5850('0xa')](_0x5850('0x1'),_0x3e62ff);}[_0x5850('0x8')](_0x5b65cc){const _0x9b4f23=new Set(this['activeAnnotations']);_0x9b4f23[_0x5850('0x3')](_0x5b65cc),this['activeAnnotations']=_0x9b4f23;}['_removeActiveAnnotation'](_0x401382){const _0x18bd1d=new Set(this['activeAnnotations']);_0x18bd1d['delete'](_0x401382),this[_0x5850('0x6')]=_0x18bd1d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6bf0=['from','get','push','_setSelectedAnnotations','_assertAnnotationBelongsToSingleUI','function','has','attach','switchTo','change:activeAnnotation','set','activeAnnotations','plugins','annotationsuis-activate-missing-ui','listenTo','delete','register','annotationsuis-register-invalid-interface','context','add','detach','init','pluginName','deactivate','_uisData','_deactivateAllAnnotations','length','_uis','annotationsuis-register-already-registered','collection','deactivateAll','activeUIs','hasActive','destroy','setActiveAnnotation','_removeActiveAnnotation','requires','activate','filter','stopListening','isActive','size','_activateAnnotation'];(function(_0x126a9b,_0x6bf024){const _0x182128=function(_0x1ebc0e){while(--_0x1ebc0e){_0x126a9b['push'](_0x126a9b['shift']());}};_0x182128(++_0x6bf024);}(_0x6bf0,0xb1));const _0x1821=function(_0x126a9b,_0x6bf024){_0x126a9b=_0x126a9b-0x0;let _0x182128=_0x6bf0[_0x126a9b];return _0x182128;};import{ContextPlugin as _0x54994a}from'ckeditor5/src/core';import{CKEditorError as _0x392f48}from'ckeditor5/src/utils';import _0xa719b3,{bindAnnotationCollections as _0x36e8f6}from'./annotationcollection';import _0x159696 from'./annotations';export default class I extends _0x54994a{static get[_0x1821('0x1f')](){return[_0x159696];}static get[_0x1821('0x11')](){return'AnnotationsUIs';}constructor(_0x1e601a){super(_0x1e601a),this[_0x1821('0x1a')]=new Set(),this[_0x1821('0x16')]=new Map(),this[_0x1821('0x13')]=new Map();}[_0x1821('0x10')](){const _0x2671bd=this[_0x1821('0xd')][_0x1821('0x7')]['get'](_0x159696);this[_0x1821('0x9')](_0x2671bd,_0x1821('0x25'),(_0x13b44e,_0x339020)=>{for(const _0x5deead of this[_0x1821('0x1a')]){const _0x242b2a=this['_uis'][_0x1821('0x27')](_0x5deead);(0x0,this[_0x1821('0x13')][_0x1821('0x27')](_0x5deead)[_0x1821('0x21')])(_0x339020)&&_0x242b2a['setActiveAnnotation'](_0x339020);}}),this['listenTo'](_0x2671bd,_0x1821('0x14'),()=>{for(const _0x22f246 of this['activeUIs']){this[_0x1821('0x16')][_0x1821('0x27')](_0x22f246)[_0x1821('0x1d')](null);}}),this[_0x1821('0x9')](_0x2671bd[_0x1821('0x18')],'add',(_0x358d99,_0x142138)=>{this[_0x1821('0x2a')](_0x142138);});}[_0x1821('0x1b')](){return this[_0x1821('0x1a')][_0x1821('0x24')]>0x0;}[_0x1821('0x23')](_0x12a051){return this[_0x1821('0x1a')][_0x1821('0x1')](_0x12a051);}[_0x1821('0x20')](_0x33d13e,_0x4cf81d=()=>!0x0){const _0x373150=this[_0x1821('0xd')][_0x1821('0x7')][_0x1821('0x27')](_0x159696);if(!this[_0x1821('0x16')][_0x1821('0x1')](_0x33d13e))throw new _0x392f48(_0x1821('0x8'),this,{'uiName':_0x33d13e});this['isActive'](_0x33d13e)&&this['deactivate'](_0x33d13e),this[_0x1821('0x1a')][_0x1821('0xe')](_0x33d13e);const _0x1971a7=new _0xa719b3(),_0x198caf=_0x373150[_0x1821('0x18')];_0x36e8f6({'source':_0x198caf,'target':_0x1971a7,'filter':_0x4cf81d}),this[_0x1821('0x13')][_0x1821('0x5')](_0x33d13e,{'collection':_0x1971a7,'filter':_0x4cf81d});const _0x2f885b=this[_0x1821('0x16')][_0x1821('0x27')](_0x33d13e);_0x2f885b[_0x1821('0x2')](_0x1971a7),this['listenTo'](_0x2f885b,_0x1821('0x4'),(_0x52264b,_0x379cc5,_0x8e95a3,_0x1f5f15)=>{_0x1f5f15&&_0x373150[_0x1821('0x1e')](_0x1f5f15),_0x8e95a3&&_0x373150['_addActiveAnnotation'](_0x8e95a3);});}['deactivate'](_0x37be70){this[_0x1821('0x1a')][_0x1821('0xa')](_0x37be70);const _0x49fc40=this[_0x1821('0x16')][_0x1821('0x27')](_0x37be70);_0x49fc40[_0x1821('0xf')](),this[_0x1821('0x22')](_0x49fc40),this['_uisData'][_0x1821('0x27')](_0x37be70)['collection'][_0x1821('0x1c')](),this['_uisData'][_0x1821('0xa')](_0x37be70);}[_0x1821('0x3')](_0x22738e){const _0x208de1=this[_0x1821('0xd')][_0x1821('0x7')]['get'](_0x159696),_0x2bc660=Array[_0x1821('0x26')](_0x208de1[_0x1821('0x6')])[0x0]||null;this[_0x1821('0x19')](),this[_0x1821('0x20')](_0x22738e);const _0x238410=this[_0x1821('0x16')][_0x1821('0x27')](_0x22738e);_0x238410[_0x1821('0x1d')](_0x2bc660),_0x238410['_setSelectedAnnotations']&&_0x2bc660&&_0x238410[_0x1821('0x29')]([_0x2bc660]);}[_0x1821('0x19')](){for(const _0x5b3235 of this[_0x1821('0x1a')])this[_0x1821('0x12')](_0x5b3235);}[_0x1821('0xb')](_0x2a2ec7,_0x596ddc){if(this[_0x1821('0x16')][_0x1821('0x1')](_0x2a2ec7))throw new _0x392f48(_0x1821('0x17'));if(_0x1821('0x0')!=typeof _0x596ddc[_0x1821('0x2')]||'function'!=typeof _0x596ddc[_0x1821('0xf')]||_0x1821('0x0')!=typeof _0x596ddc[_0x1821('0x1d')])throw new _0x392f48(_0x1821('0xc'),null);this[_0x1821('0x16')][_0x1821('0x5')](_0x2a2ec7,_0x596ddc);}[_0x1821('0x1c')](){this[_0x1821('0x19')](),super[_0x1821('0x1c')]();}[_0x1821('0x2a')](_0x1bc8ca){const _0x180041=[];for(const _0x159868 of this['activeUIs']){(0x0,this[_0x1821('0x13')][_0x1821('0x27')](_0x159868)[_0x1821('0x21')])(_0x1bc8ca)&&_0x180041[_0x1821('0x28')](_0x159868);}if(0x1!==_0x180041[_0x1821('0x15')])throw new _0x392f48('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x180041});}}
23
+ const _0x3bd0=['size','init','activate','_setSelectedAnnotations','context','requires','deactivateAll','detach','add','register','activeUIs','annotationsuis-register-already-registered','_uisData','deactivate','annotationsuis-annotation-mismatch','change:activeAnnotation','length','listenTo','get','_activateAnnotation','set','collection','_deactivateAllAnnotations','isActive','attach','annotationsuis-register-invalid-interface','activeAnnotations','hasActive','push','AnnotationsUIs','setActiveAnnotation','destroy','filter','plugins','_uis','delete','_assertAnnotationDoesNotBelongToMultpleUI','function','pluginName','has','from','stopListening'];(function(_0x59ea17,_0x3bd070){const _0x2728e1=function(_0x52405b){while(--_0x52405b){_0x59ea17['push'](_0x59ea17['shift']());}};_0x2728e1(++_0x3bd070);}(_0x3bd0,0x1de));const _0x2728=function(_0x59ea17,_0x3bd070){_0x59ea17=_0x59ea17-0x0;let _0x2728e1=_0x3bd0[_0x59ea17];return _0x2728e1;};import{ContextPlugin as _0x6110e0}from'ckeditor5/src/core';import{CKEditorError as _0x53c4b2}from'ckeditor5/src/utils';import _0x5df939,{bindAnnotationCollections as _0x340f40}from'./annotationcollection';import _0x33b0d3 from'./annotations';export default class I extends _0x6110e0{static get[_0x2728('0x1f')](){return[_0x33b0d3];}static get[_0x2728('0x16')](){return _0x2728('0xd');}constructor(_0x482789){super(_0x482789),this['activeUIs']=new Set(),this[_0x2728('0x12')]=new Map(),this[_0x2728('0x26')]=new Map();}[_0x2728('0x1b')](){const _0x5c25d7=this['context']['plugins'][_0x2728('0x2')](_0x33b0d3);this[_0x2728('0x1')](_0x5c25d7,_0x2728('0x3'),(_0x397b9b,_0x20c6e5)=>{for(const _0x6a7459 of this[_0x2728('0x24')]){const _0x2b7dc5=this[_0x2728('0x12')]['get'](_0x6a7459);(0x0,this[_0x2728('0x26')][_0x2728('0x2')](_0x6a7459)[_0x2728('0x10')])(_0x20c6e5)&&_0x2b7dc5[_0x2728('0xe')](_0x20c6e5);}}),this['listenTo'](_0x5c25d7,_0x2728('0x6'),()=>{for(const _0x5311e of this[_0x2728('0x24')]){this[_0x2728('0x12')][_0x2728('0x2')](_0x5311e)[_0x2728('0xe')](null);}}),this[_0x2728('0x1')](_0x5c25d7['collection'],_0x2728('0x22'),(_0x3e5880,_0x3afee7)=>{this[_0x2728('0x14')](_0x3afee7);});}[_0x2728('0xb')](){return this[_0x2728('0x24')][_0x2728('0x1a')]>0x0;}[_0x2728('0x7')](_0xa7dfdd){return this[_0x2728('0x24')]['has'](_0xa7dfdd);}[_0x2728('0x1c')](_0x43b83a,_0x20f9fe=()=>!0x0){const _0xd26d82=this['context'][_0x2728('0x11')][_0x2728('0x2')](_0x33b0d3);if(!this[_0x2728('0x12')]['has'](_0x43b83a))throw new _0x53c4b2('annotationsuis-activate-missing-ui',this,{'uiName':_0x43b83a});this[_0x2728('0x7')](_0x43b83a)&&this[_0x2728('0x27')](_0x43b83a),this[_0x2728('0x24')]['add'](_0x43b83a);const _0x27e444=new _0x5df939(),_0x34d639=_0xd26d82[_0x2728('0x5')];_0x340f40({'source':_0x34d639,'target':_0x27e444,'filter':_0x20f9fe}),this[_0x2728('0x26')][_0x2728('0x4')](_0x43b83a,{'collection':_0x27e444,'filter':_0x20f9fe});const _0x1bcb08=this[_0x2728('0x12')][_0x2728('0x2')](_0x43b83a);_0x1bcb08[_0x2728('0x8')](_0x27e444),this[_0x2728('0x1')](_0x1bcb08,_0x2728('0x29'),(_0x3536ec,_0x860ffd,_0x3df724,_0x395f5c)=>{_0x395f5c&&_0xd26d82['_removeActiveAnnotation'](_0x395f5c),_0x3df724&&_0xd26d82['_addActiveAnnotation'](_0x3df724);});}[_0x2728('0x27')](_0x300739){this[_0x2728('0x24')][_0x2728('0x13')](_0x300739);const _0x2286d6=this[_0x2728('0x12')][_0x2728('0x2')](_0x300739);_0x2286d6[_0x2728('0x21')](),this[_0x2728('0x19')](_0x2286d6),this[_0x2728('0x26')]['get'](_0x300739)[_0x2728('0x5')][_0x2728('0xf')](),this[_0x2728('0x26')][_0x2728('0x13')](_0x300739);}['switchTo'](_0x4dfb0c){const _0x245f1a=this[_0x2728('0x1e')][_0x2728('0x11')]['get'](_0x33b0d3),_0xa33ff9=Array[_0x2728('0x18')](_0x245f1a[_0x2728('0xa')])[0x0]||null;this[_0x2728('0x20')](),this[_0x2728('0x1c')](_0x4dfb0c);const _0x62b2bb=this['_uis'][_0x2728('0x2')](_0x4dfb0c);_0x62b2bb[_0x2728('0xe')](_0xa33ff9),_0x62b2bb[_0x2728('0x1d')]&&_0xa33ff9&&_0x62b2bb['_setSelectedAnnotations']([_0xa33ff9]);}['deactivateAll'](){for(const _0x3b5750 of this[_0x2728('0x24')])this[_0x2728('0x27')](_0x3b5750);}[_0x2728('0x23')](_0x292e8a,_0x25ca57){if(this[_0x2728('0x12')][_0x2728('0x17')](_0x292e8a))throw new _0x53c4b2(_0x2728('0x25'));if(_0x2728('0x15')!=typeof _0x25ca57[_0x2728('0x8')]||'function'!=typeof _0x25ca57[_0x2728('0x21')]||_0x2728('0x15')!=typeof _0x25ca57[_0x2728('0xe')])throw new _0x53c4b2(_0x2728('0x9'),null);this[_0x2728('0x12')][_0x2728('0x4')](_0x292e8a,_0x25ca57);}['destroy'](){this[_0x2728('0x20')](),super[_0x2728('0xf')]();}[_0x2728('0x14')](_0x3b543d){const _0x241f54=[];for(const _0x26272c of this[_0x2728('0x24')]){(0x0,this['_uisData'][_0x2728('0x2')](_0x26272c)[_0x2728('0x10')])(_0x3b543d)&&_0x241f54[_0x2728('0xc')](_0x26272c);}if(_0x241f54[_0x2728('0x0')]>0x1)throw new _0x53c4b2(_0x2728('0x28'),null,{'matchedUIs':_0x241f54});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41ec=['EditorAnnotations','requires','blur','has','range','from','editor','innerView','add','_editorAnnotationsData','change:range','function','plugins','focusTracker','set','uiUpdate','cancel','pluginName','refreshSelectedViews','isReadOnly','collection','_dataCollectors','getOrderedSelectedAnnotations','change:isFocused','getRanges','delete','document','map','view','listenTo','editing','keys','push','annotation','containsRange','addSourceCollector','selection','model','update','fire','refresh','editorannotations-invalid-source-callback','isCollapsed','init','remove','hasDomSelection','element'];(function(_0x49c7cd,_0x41ec75){const _0x1a3e56=function(_0x2d90f5){while(--_0x2d90f5){_0x49c7cd['push'](_0x49c7cd['shift']());}};_0x1a3e56(++_0x41ec75);}(_0x41ec,0x19a));const _0x1a3e=function(_0x49c7cd,_0x41ec75){_0x49c7cd=_0x49c7cd-0x0;let _0x1a3e56=_0x41ec[_0x49c7cd];return _0x1a3e56;};import{Plugin as _0x535049}from'ckeditor5/src/core';import{CKEditorError as _0x1551ad}from'ckeditor5/src/utils';import{debounce as _0x5c2f73}from'lodash-es';import _0x4cfce0 from'./annotations';export default class k extends _0x535049{static get[_0x1a3e('0xe')](){return[_0x4cfce0];}static get[_0x1a3e('0x1e')](){return _0x1a3e('0xd');}constructor(_0x95eefb){super(_0x95eefb),this[_0x1a3e('0x22')]=new Set();}[_0x1a3e('0x9')](){const _0x48dca5=this[_0x1a3e('0x13')],_0x4d091f=_0x48dca5[_0x1a3e('0x19')]['get'](_0x4cfce0),_0x2916bf=_0x48dca5[_0x1a3e('0x3')]['document'][_0x1a3e('0x2')],_0x3a3c6d=_0x5c2f73(()=>this[_0x1a3e('0x1f')](),0xa);_0x2916bf['on'](_0x1a3e('0x17'),(_0x462eaf,_0xaec8c2)=>{_0xaec8c2['directChange']&&(_0x3a3c6d[_0x1a3e('0x1d')](),this[_0x1a3e('0x1f')]());}),this[_0x1a3e('0x2a')](_0x48dca5[_0x1a3e('0x2b')][_0x1a3e('0x29')][_0x1a3e('0x27')],_0x1a3e('0x24'),(_0xe46684,_0x53a1fd,_0x125af0)=>{_0x125af0&&_0x3a3c6d();}),this[_0x1a3e('0x2a')](_0x48dca5['ui'][_0x1a3e('0x1a')],'change:isFocused',(_0x184f0b,_0x3c5962,_0x379d1b)=>{_0x379d1b||_0x48dca5[_0x1a3e('0x20')]||this[_0x1a3e('0x5')](_0x1a3e('0xf'),{'isAnnotationTracked':_0x18d2be=>this['_editorAnnotationsData'][_0x1a3e('0x10')](_0x18d2be[_0x1a3e('0x14')])});}),this[_0x1a3e('0x2a')](this[_0x1a3e('0x13')]['ui'],_0x1a3e('0x4'),()=>this['fire'](_0x1a3e('0x1c')));const _0x2de808=new Set();this['listenTo'](_0x4d091f[_0x1a3e('0x21')],_0x1a3e('0x15'),(_0x155cf0,_0x2568e7)=>{for(const _0x2b1403 of this[_0x1a3e('0x16')][_0x1a3e('0x2c')]())if(_0x2b1403===_0x2568e7[_0x1a3e('0x14')]){_0x48dca5['ui'][_0x1a3e('0x1a')][_0x1a3e('0x15')](_0x2568e7[_0x1a3e('0x29')][_0x1a3e('0xc')]),_0x2de808[_0x1a3e('0x15')](_0x2568e7['view']);break;}}),this[_0x1a3e('0x2a')](_0x4d091f['collection'],_0x1a3e('0xa'),(_0x5296b9,_0x3df04f)=>{_0x2de808['has'](_0x3df04f['view'])&&(_0x48dca5['ui'][_0x1a3e('0x1a')][_0x1a3e('0xa')](_0x3df04f[_0x1a3e('0x29')][_0x1a3e('0xc')]),_0x2de808[_0x1a3e('0x26')](_0x3df04f[_0x1a3e('0x29')]));});}[_0x1a3e('0xb')](){return this[_0x1a3e('0x13')]['editing']['view'][_0x1a3e('0xb')];}[_0x1a3e('0x1')](_0x145d02){if(_0x1a3e('0x18')!=typeof _0x145d02)throw new _0x1551ad(_0x1a3e('0x7'));this[_0x1a3e('0x22')][_0x1a3e('0x15')](_0x145d02);}['refreshSelectedViews'](){this[_0x1a3e('0x5')](_0x1a3e('0x6'));}[_0x1a3e('0x23')]({activeAnnotation:_0x585101,annotations:_0x46d270}){const _0x516ce3=[],_0x413c9c=this[_0x1a3e('0x13')][_0x1a3e('0x3')]['document'][_0x1a3e('0x2')],_0x17acbe=Array[_0x1a3e('0x12')](_0x413c9c[_0x1a3e('0x25')]());for(const [_0x5dd2b6,_0x3b832c]of this[_0x1a3e('0x16')]){const _0x1e4564=_0x37e5fa(_0x3b832c),_0x1715bc=_0x46d270['getByInnerView'](_0x5dd2b6);_0x1e4564&&_0x1715bc&&_0x516ce3[_0x1a3e('0x2d')]({'annotation':_0x1715bc,'range':_0x1e4564});}function _0x37e5fa(_0x17d3b0){for(const _0x26055f of _0x17d3b0)for(const _0x5aec69 of _0x17acbe)if(_0x26055f[_0x1a3e('0x0')](_0x5aec69,!_0x413c9c[_0x1a3e('0x8')]))return _0x26055f;return null;}return _0x516ce3['sort']((_0x404f71,_0x576f48)=>{const _0x190991=_0x404f71['range'],_0x3b98cb=_0x576f48[_0x1a3e('0x11')];if(!_0x190991['isEqual'](_0x3b98cb)){if(_0x190991[_0x1a3e('0x0')](_0x3b98cb,!0x0))return 0x1;if(_0x3b98cb[_0x1a3e('0x0')](_0x190991,!0x0))return-0x1;}return _0x404f71['annotation']==_0x585101?-0x1:_0x576f48['annotation']==_0x585101?0x1:0x0;})[_0x1a3e('0x28')](_0x190789=>_0x190789[_0x1a3e('0x2e')]);}get[_0x1a3e('0x16')](){const _0x541949=new Map();for(const _0x1a76cb of Array['from'](this[_0x1a3e('0x22')]))for(const [_0x48c6ce,_0x3b7559]of _0x1a76cb())_0x541949[_0x1a3e('0x1b')](_0x48c6ce,_0x3b7559);return _0x541949;}}
23
+ const _0x4f6e=['has','set','add','EditorAnnotations','fire','change:isFocused','isCollapsed','refresh','change:range','range','document','addSourceCollector','blur','function','init','view','remove','getRanges','_editorAnnotationsData','refreshSelectedViews','editor','model','update','editing','keys','cancel','sort','uiUpdate','delete','listenTo','_dataCollectors','containsRange','annotation','map','push','from','innerView','collection','element','requires','hasDomSelection','focusTracker'];(function(_0x398f40,_0x4f6e7c){const _0x4fe171=function(_0x5bcec1){while(--_0x5bcec1){_0x398f40['push'](_0x398f40['shift']());}};_0x4fe171(++_0x4f6e7c);}(_0x4f6e,0x156));const _0x4fe1=function(_0x398f40,_0x4f6e7c){_0x398f40=_0x398f40-0x0;let _0x4fe171=_0x4f6e[_0x398f40];return _0x4fe171;};import{Plugin as _0xb18491}from'ckeditor5/src/core';import{CKEditorError as _0xe2a257}from'ckeditor5/src/utils';import{debounce as _0x4cc2f5}from'lodash-es';import _0x254fc0 from'./annotations';export default class k extends _0xb18491{static get[_0x4fe1('0x21')](){return[_0x254fc0];}static get['pluginName'](){return _0x4fe1('0x27');}constructor(_0x43ddbd){super(_0x43ddbd),this[_0x4fe1('0x18')]=new Set();}[_0x4fe1('0x8')](){const _0x586da5=this['editor'],_0x5e5d43=_0x586da5['plugins']['get'](_0x254fc0),_0x56421c=_0x586da5[_0x4fe1('0xf')]['document']['selection'],_0x4c66f0=_0x4cc2f5(()=>this['refreshSelectedViews'](),0xa);_0x56421c['on'](_0x4fe1('0x2'),(_0x484fa2,_0x42210c)=>{_0x42210c['directChange']&&(_0x4c66f0[_0x4fe1('0x13')](),this[_0x4fe1('0xd')]());}),this[_0x4fe1('0x17')](_0x586da5['editing']['view'][_0x4fe1('0x4')],'change:isFocused',(_0x57766a,_0xf40d99,_0x343bfe)=>{_0x343bfe&&_0x4c66f0();}),this['listenTo'](_0x586da5['ui'][_0x4fe1('0x23')],_0x4fe1('0x29'),(_0x494524,_0x5285d8,_0x435cf5)=>{_0x435cf5||_0x586da5['isReadOnly']||this[_0x4fe1('0x28')](_0x4fe1('0x6'),{'isAnnotationTracked':_0x5e675a=>this[_0x4fe1('0xc')]['has'](_0x5e675a[_0x4fe1('0x1e')])});}),this[_0x4fe1('0x17')](this[_0x4fe1('0xe')]['ui'],_0x4fe1('0x10'),()=>this['fire'](_0x4fe1('0x15')));const _0x1fe075=new Set();this[_0x4fe1('0x17')](_0x5e5d43[_0x4fe1('0x1f')],'add',(_0x48ca22,_0xde9548)=>{for(const _0xc63ae7 of this[_0x4fe1('0xc')][_0x4fe1('0x12')]())if(_0xc63ae7===_0xde9548[_0x4fe1('0x1e')]){_0x586da5['ui'][_0x4fe1('0x23')]['add'](_0xde9548[_0x4fe1('0x9')][_0x4fe1('0x20')]),_0x1fe075[_0x4fe1('0x26')](_0xde9548['view']);break;}}),this['listenTo'](_0x5e5d43[_0x4fe1('0x1f')],'remove',(_0x662d74,_0x129927)=>{_0x1fe075[_0x4fe1('0x24')](_0x129927[_0x4fe1('0x9')])&&(_0x586da5['ui'][_0x4fe1('0x23')][_0x4fe1('0xa')](_0x129927['view'][_0x4fe1('0x20')]),_0x1fe075[_0x4fe1('0x16')](_0x129927[_0x4fe1('0x9')]));});}['hasDomSelection'](){return this[_0x4fe1('0xe')][_0x4fe1('0x11')]['view'][_0x4fe1('0x22')];}[_0x4fe1('0x5')](_0x59f4e0){if(_0x4fe1('0x7')!=typeof _0x59f4e0)throw new _0xe2a257('editorannotations-invalid-source-callback');this[_0x4fe1('0x18')][_0x4fe1('0x26')](_0x59f4e0);}[_0x4fe1('0xd')](){this[_0x4fe1('0x28')](_0x4fe1('0x1'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2c3b1e,annotations:_0x2c46e9}){const _0x111377=[],_0x47f5e9=this['editor']['model'][_0x4fe1('0x4')]['selection'],_0x2d7dbe=Array[_0x4fe1('0x1d')](_0x47f5e9[_0x4fe1('0xb')]());for(const [_0x355858,_0xf55cb]of this[_0x4fe1('0xc')]){const _0x23eac7=_0x4f29eb(_0xf55cb),_0x264aa=_0x2c46e9['getByInnerView'](_0x355858);_0x23eac7&&_0x264aa&&_0x111377[_0x4fe1('0x1c')]({'annotation':_0x264aa,'range':_0x23eac7});}function _0x4f29eb(_0x37ccae){for(const _0xc29e21 of _0x37ccae)for(const _0x1437a3 of _0x2d7dbe)if(_0xc29e21[_0x4fe1('0x19')](_0x1437a3,!_0x47f5e9[_0x4fe1('0x0')]))return _0xc29e21;return null;}return _0x111377[_0x4fe1('0x14')]((_0x1d8817,_0x10e054)=>{const _0xb4c8ce=_0x1d8817[_0x4fe1('0x3')],_0x346da4=_0x10e054['range'];if(!_0xb4c8ce['isEqual'](_0x346da4)){if(_0xb4c8ce[_0x4fe1('0x19')](_0x346da4,!0x0))return 0x1;if(_0x346da4[_0x4fe1('0x19')](_0xb4c8ce,!0x0))return-0x1;}return _0x1d8817[_0x4fe1('0x1a')]==_0x2c3b1e?-0x1:_0x10e054[_0x4fe1('0x1a')]==_0x2c3b1e?0x1:0x0;})[_0x4fe1('0x1b')](_0x32f410=>_0x32f410[_0x4fe1('0x1a')]);}get[_0x4fe1('0xc')](){const _0x5e46de=new Map();for(const _0x5a1d3b of Array['from'](this['_dataCollectors']))for(const [_0x13f1cb,_0x10845a]of _0x5a1d3b())_0x5e46de[_0x4fe1('0x25')](_0x13f1cb,_0x10845a);return _0x5e46de;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e99=['getOrderedSelectedAnnotations','editableElement','clear','document','_removeAnnotationFromBalloon','getByView','register','destroy','inline','requires','targetRect','isFocused','editor','focus','_annotations','setActiveAnnotation','InlineAnnotations','hasActive','activeAnnotation','includes','blur','get','addObserver','EditorAnnotations','_balloon','_addedAnnotations','set','updatePosition','Esc','_setSelectedAnnotations','view','remove','isActive','pluginName','init','target','detach','editing','selection','_manuallyClosed','afterInit','_addAnnotationToBalloon','context','update','getRangeAt','inlineannotations-attach-already-attached','_selectedAnnotations','mousedown','refresh','showStack','listenTo','stopListening','inlineannotations-detach-not-attached','delete','change:isFocused','visibleView','isAttached','add','hasView','keystrokes','plugins','has','getSelection'];(function(_0x13ca22,_0x4e99ed){const _0x54c53a=function(_0x155e9b){while(--_0x155e9b){_0x13ca22['push'](_0x13ca22['shift']());}};_0x54c53a(++_0x4e99ed);}(_0x4e99,0xb7));const _0x54c5=function(_0x13ca22,_0x4e99ed){_0x13ca22=_0x13ca22-0x0;let _0x54c53a=_0x4e99[_0x13ca22];return _0x54c53a;};import{Plugin as _0x12e48a}from'ckeditor5/src/core';import _0x3351db from'./annotationsuis';import _0x52a1d0 from'./editorannotations';import{ContextualBalloon as _0x5c6efb}from'ckeditor5/src/ui';import{MouseObserver as _0x17578b}from'ckeditor5/src/engine';import{CKEditorError as _0x11f4e7}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x12e48a{static get[_0x54c5('0xf')](){return[_0x52a1d0,_0x5c6efb,_0x3351db];}static get[_0x54c5('0x27')](){return _0x54c5('0x16');}constructor(_0x10ab3c){super(_0x10ab3c),_0x10ab3c[_0x54c5('0x2b')]['view'][_0x54c5('0x1c')](_0x17578b),this[_0x54c5('0x3e')]=!0x1,this['set'](_0x54c5('0x18'),null),this[_0x54c5('0x14')]=null,this[_0x54c5('0x2d')]=new Set(),this[_0x54c5('0x1e')]=_0x10ab3c[_0x54c5('0x3')][_0x54c5('0x1b')](_0x5c6efb),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[];}[_0x54c5('0x28')](){const _0x1eb71e=this['editor'][_0x54c5('0x3')][_0x54c5('0x1b')](_0x3351db);_0x1eb71e[_0x54c5('0x30')]===this[_0x54c5('0x12')]&&(_0x1eb71e[_0x54c5('0xc')](_0x54c5('0xe'),this),this[_0x54c5('0x12')][_0x54c5('0x2')][_0x54c5('0x20')]('Esc',(_0x4e090,_0x4317bf)=>{const _0x124d47=this[_0x54c5('0x1e')];if(this[_0x54c5('0x3e')]&&_0x124d47[_0x54c5('0x3d')]){const _0x33684c=this[_0x54c5('0x14')]['getByView'](_0x124d47[_0x54c5('0x3d')]);this[_0x54c5('0x2d')][_0x54c5('0x0')](_0x33684c),this[_0x54c5('0xa')](_0x33684c),_0x4317bf();}}));}[_0x54c5('0x2e')](){const _0x2ffadf=this[_0x54c5('0x12')][_0x54c5('0x3')][_0x54c5('0x1b')](_0x3351db);_0x2ffadf[_0x54c5('0x30')]===this[_0x54c5('0x12')]&&(_0x2ffadf[_0x54c5('0x17')]()||_0x2ffadf['switchTo'](_0x54c5('0xe')));}[_0x54c5('0x15')](_0x1fb85b){_0x1fb85b!==this[_0x54c5('0x18')]&&(this['activeAnnotation']&&(this[_0x54c5('0x18')][_0x54c5('0x26')]=!0x1),_0x1fb85b&&this['editor']['ui']['focusTracker'][_0x54c5('0x11')]&&(this[_0x54c5('0x2f')](_0x1fb85b,!0x0),_0x1fb85b[_0x54c5('0x26')]=!0x0),_0x1fb85b||this[_0x54c5('0x23')]([]),this[_0x54c5('0x18')]=_0x1fb85b);}['attach'](_0xcbf496){this[_0x54c5('0x14')]=_0xcbf496;const _0x1c544c=this[_0x54c5('0x12')]['plugins'][_0x54c5('0x1b')](_0x3351db),_0x18d669=this['_balloon'];if(this['isAttached'])throw new _0x11f4e7(_0x54c5('0x33'),this);if(_0x1c544c[_0x54c5('0x30')]!==this['editor'])throw new _0x11f4e7('inlineannotations-not-allowed-with-context',this);const _0x269524=this[_0x54c5('0x12')][_0x54c5('0x3')][_0x54c5('0x1b')](_0x54c5('0x1d'));this[_0x54c5('0x38')](_0x269524,_0x54c5('0x36'),function(){const _0x291744=_0x269524[_0x54c5('0x6')]({'activeAnnotation':this[_0x54c5('0x18')],'annotations':this[_0x54c5('0x14')]});this[_0x54c5('0x23')](_0x291744),this[_0x54c5('0x15')](_0x291744[0x0]||null);}['bind'](this)),this[_0x54c5('0x38')](_0x269524,_0x54c5('0x1a'),(_0x5f2d4a,{isAnnotationTracked:_0xc533a9})=>{this[_0x54c5('0x18')]&&_0xc533a9(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x54c5('0x38')](this[_0x54c5('0x12')]['ui']['focusTracker'],_0x54c5('0x3c'),(_0x4a21bd,_0x8d3e6d,_0xd68a78)=>{_0xd68a78||this[_0x54c5('0x15')](null);}),this['listenTo'](_0xcbf496,_0x54c5('0x25'),(_0x4775d4,_0x9c038d)=>{this['_removeAnnotationFromBalloon'](_0x9c038d),_0x9c038d===this[_0x54c5('0x18')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x18d669,'change:visibleView',(_0x3374c5,_0x30fb11,_0x3dd62b,_0x5142a6)=>{if(_0x5142a6&&this[_0x54c5('0x39')](_0x5142a6),!_0x3dd62b||!_0xcbf496[_0x54c5('0xb')](_0x3dd62b))return;const _0x3f341f=_0xcbf496[_0x54c5('0xb')](_0x3dd62b);this['listenTo'](_0x3dd62b,'change:height',()=>{_0x18d669[_0x54c5('0x21')]();}),this['listenTo'](_0x3dd62b,_0x54c5('0x22'),()=>{this[_0x54c5('0x2d')][_0x54c5('0x0')](_0x3f341f),this[_0x54c5('0xa')](_0x3f341f),this[_0x54c5('0x12')][_0x54c5('0x2b')]['view']['focus']();}),this[_0x54c5('0x18')]!==_0x3f341f&&this[_0x54c5('0x15')](_0x3f341f);}),this['listenTo'](this[_0x54c5('0x12')]['ui'],_0x54c5('0x31'),()=>{_0x18d669['visibleView']&&(_0xcbf496['getByView'](_0x18d669['visibleView'])&&_0x18d669['updatePosition']());}),this[_0x54c5('0x38')](this[_0x54c5('0x12')][_0x54c5('0x2b')]['view']['document'],_0x54c5('0x35'),()=>{this[_0x54c5('0x2d')][_0x54c5('0x8')]();}),this[_0x54c5('0x12')]['editing'][_0x54c5('0x24')][_0x54c5('0x9')][_0x54c5('0x2c')][_0x54c5('0x7')]&&this[_0x54c5('0x12')][_0x54c5('0x2b')]['view'][_0x54c5('0x13')](),this['isAttached']=!0x0;}['detach'](){if(!this[_0x54c5('0x3e')])throw new _0x11f4e7(_0x54c5('0x3a'),this);this[_0x54c5('0x15')](null);for(const _0x1731aa of this[_0x54c5('0x1f')])this[_0x54c5('0xa')](_0x1731aa);this['stopListening'](),this[_0x54c5('0x3e')]=!0x1;}[_0x54c5('0xd')](){this[_0x54c5('0x3e')]&&this[_0x54c5('0x2a')]();}[_0x54c5('0x23')](_0x28ad4c){const _0xc1d209=this[_0x54c5('0x34')];for(const _0x3616ff of _0xc1d209)_0x28ad4c[_0x54c5('0x19')](_0x3616ff)||this[_0x54c5('0x2d')][_0x54c5('0x3b')](_0x3616ff);for(const _0x5b6950 of this['_annotations'])_0x28ad4c[_0x54c5('0x19')](_0x5b6950)||this['_removeAnnotationFromBalloon'](_0x5b6950);if(this[_0x54c5('0x12')]['ui']['focusTracker'][_0x54c5('0x11')])for(const _0x10485b of _0x28ad4c)this[_0x54c5('0x2f')](_0x10485b);this[_0x54c5('0x34')]=_0x28ad4c;}[_0x54c5('0x2f')](_0x25a8f7,_0x38cfe9){this[_0x54c5('0x2d')][_0x54c5('0x4')](_0x25a8f7)||(this[_0x54c5('0x1f')][_0x54c5('0x4')](_0x25a8f7)||this[_0x54c5('0x1e')][_0x54c5('0x1')](_0x25a8f7[_0x54c5('0x24')])||(this[_0x54c5('0x1f')]['add'](_0x25a8f7),this[_0x54c5('0x1e')][_0x54c5('0x0')]({'stackId':_0x25a8f7[_0x54c5('0x24')]['id'],'view':_0x25a8f7[_0x54c5('0x24')],'position':{'target':()=>_0x25a8f7[_0x54c5('0x29')]||_0x25a8f7[_0x54c5('0x10')]||document[_0x54c5('0x5')]()[_0x54c5('0x32')](0x0)}})),_0x38cfe9&&this[_0x54c5('0x1e')][_0x54c5('0x37')](_0x25a8f7[_0x54c5('0x24')]['id']));}['_removeAnnotationFromBalloon'](_0x1839ce){this[_0x54c5('0x1f')]['has'](_0x1839ce)&&this[_0x54c5('0x1e')][_0x54c5('0x1')](_0x1839ce[_0x54c5('0x24')])&&(this['_addedAnnotations'][_0x54c5('0x3b')](_0x1839ce),this[_0x54c5('0x1e')][_0x54c5('0x25')](_0x1839ce['view']));}}
23
+ const _0x5d24=['change:height','inline','_selectedAnnotations','editableElement','isActive','_addedAnnotations','plugins','_removeAnnotationFromBalloon','addObserver','isAttached','hasActive','requires','includes','clear','Esc','getSelection','destroy','set','getOrderedSelectedAnnotations','getByView','updatePosition','editing','selection','EditorAnnotations','remove','isFocused','setActiveAnnotation','register','detach','view','focusTracker','_annotations','visibleView','afterInit','context','blur','targetRect','InlineAnnotations','change:visibleView','has','activeAnnotation','delete','_balloon','mousedown','add','init','refresh','focus','get','attach','_setSelectedAnnotations','inlineannotations-attach-already-attached','hasView','_manuallyClosed','bind','_addAnnotationToBalloon','inlineannotations-detach-not-attached','listenTo','keystrokes','stopListening','editor'];(function(_0x18a836,_0x5d2427){const _0x11b8d0=function(_0x29abd7){while(--_0x29abd7){_0x18a836['push'](_0x18a836['shift']());}};_0x11b8d0(++_0x5d2427);}(_0x5d24,0xcb));const _0x11b8=function(_0x18a836,_0x5d2427){_0x18a836=_0x18a836-0x0;let _0x11b8d0=_0x5d24[_0x18a836];return _0x11b8d0;};import{Plugin as _0x4e6018}from'ckeditor5/src/core';import _0x44197d from'./annotationsuis';import _0x3c597a from'./editorannotations';import{ContextualBalloon as _0x5a940e}from'ckeditor5/src/ui';import{MouseObserver as _0x2597b1}from'ckeditor5/src/engine';import{CKEditorError as _0x4376c5}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4e6018{static get[_0x11b8('0x34')](){return[_0x3c597a,_0x5a940e,_0x44197d];}static get['pluginName'](){return _0x11b8('0x11');}constructor(_0x244877){super(_0x244877),_0x244877[_0x11b8('0x1')][_0x11b8('0x9')][_0x11b8('0x31')](_0x2597b1),this[_0x11b8('0x32')]=!0x1,this[_0x11b8('0x3a')]('activeAnnotation',null),this[_0x11b8('0xb')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x244877[_0x11b8('0x2f')][_0x11b8('0x1c')](_0x5a940e),this[_0x11b8('0x2e')]=new Set(),this['_selectedAnnotations']=[];}[_0x11b8('0x19')](){const _0x5e7e35=this[_0x11b8('0x28')][_0x11b8('0x2f')]['get'](_0x44197d);_0x5e7e35[_0x11b8('0xe')]===this[_0x11b8('0x28')]&&(_0x5e7e35[_0x11b8('0x7')](_0x11b8('0x2a'),this),this[_0x11b8('0x28')][_0x11b8('0x26')][_0x11b8('0x3a')](_0x11b8('0x37'),(_0x487c70,_0x26508e)=>{const _0x3eb4e9=this[_0x11b8('0x16')];if(this[_0x11b8('0x32')]&&_0x3eb4e9[_0x11b8('0xc')]){const _0x3271b2=this[_0x11b8('0xb')][_0x11b8('0x3c')](_0x3eb4e9[_0x11b8('0xc')]);this[_0x11b8('0x21')]['add'](_0x3271b2),this['_removeAnnotationFromBalloon'](_0x3271b2),_0x26508e();}}));}[_0x11b8('0xd')](){const _0x21b08c=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x44197d);_0x21b08c[_0x11b8('0xe')]===this['editor']&&(_0x21b08c[_0x11b8('0x33')]()||_0x21b08c['switchTo'](_0x11b8('0x2a')));}[_0x11b8('0x6')](_0xc92332){_0xc92332!==this[_0x11b8('0x14')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x11b8('0x2d')]=!0x1),_0xc92332&&this[_0x11b8('0x28')]['ui'][_0x11b8('0xa')]['isFocused']&&(this[_0x11b8('0x23')](_0xc92332,!0x0),_0xc92332[_0x11b8('0x2d')]=!0x0),_0xc92332||this[_0x11b8('0x1e')]([]),this[_0x11b8('0x14')]=_0xc92332);}[_0x11b8('0x1d')](_0x3bd63e){this[_0x11b8('0xb')]=_0x3bd63e;const _0x16bbaa=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x44197d),_0x3d63a2=this[_0x11b8('0x16')];if(this[_0x11b8('0x32')])throw new _0x4376c5(_0x11b8('0x1f'),this);if(_0x16bbaa[_0x11b8('0xe')]!==this[_0x11b8('0x28')])throw new _0x4376c5('inlineannotations-not-allowed-with-context',this);const _0x27e25f=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x11b8('0x3'));this[_0x11b8('0x25')](_0x27e25f,_0x11b8('0x1a'),function(){const _0x400092=_0x27e25f[_0x11b8('0x3b')]({'activeAnnotation':this[_0x11b8('0x14')],'annotations':this[_0x11b8('0xb')]});this[_0x11b8('0x1e')](_0x400092),this[_0x11b8('0x6')](_0x400092[0x0]||null);}[_0x11b8('0x22')](this)),this['listenTo'](_0x27e25f,_0x11b8('0xf'),(_0x1d1f8e,{isAnnotationTracked:_0xaa81fd})=>{this['activeAnnotation']&&_0xaa81fd(this[_0x11b8('0x14')])&&(this['_setSelectedAnnotations']([]),this[_0x11b8('0x6')](null));}),this[_0x11b8('0x25')](this[_0x11b8('0x28')]['ui'][_0x11b8('0xa')],'change:isFocused',(_0x2c884d,_0x20b332,_0x37395a)=>{_0x37395a||this[_0x11b8('0x6')](null);}),this[_0x11b8('0x25')](_0x3bd63e,'remove',(_0x20ab5c,_0x38ce7a)=>{this[_0x11b8('0x30')](_0x38ce7a),_0x38ce7a===this[_0x11b8('0x14')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3d63a2,_0x11b8('0x12'),(_0x25260e,_0x387226,_0x1f1bdf,_0x5aac64)=>{if(_0x5aac64&&this[_0x11b8('0x27')](_0x5aac64),!_0x1f1bdf||!_0x3bd63e['getByView'](_0x1f1bdf))return;const _0x59274d=_0x3bd63e['getByView'](_0x1f1bdf);this['listenTo'](_0x1f1bdf,_0x11b8('0x29'),()=>{_0x3d63a2[_0x11b8('0x0')]();}),this[_0x11b8('0x25')](_0x1f1bdf,_0x11b8('0x37'),()=>{this[_0x11b8('0x21')][_0x11b8('0x18')](_0x59274d),this[_0x11b8('0x30')](_0x59274d),this[_0x11b8('0x28')][_0x11b8('0x1')]['view'][_0x11b8('0x1b')]();}),this['activeAnnotation']!==_0x59274d&&this[_0x11b8('0x6')](_0x59274d);}),this[_0x11b8('0x25')](this[_0x11b8('0x28')]['ui'],'update',()=>{_0x3d63a2['visibleView']&&(_0x3bd63e[_0x11b8('0x3c')](_0x3d63a2[_0x11b8('0xc')])&&_0x3d63a2['updatePosition']());}),this[_0x11b8('0x25')](this['editor'][_0x11b8('0x1')][_0x11b8('0x9')]['document'],_0x11b8('0x17'),()=>{this[_0x11b8('0x21')][_0x11b8('0x36')]();}),this[_0x11b8('0x28')][_0x11b8('0x1')][_0x11b8('0x9')]['document'][_0x11b8('0x2')][_0x11b8('0x2c')]&&this['editor'][_0x11b8('0x1')][_0x11b8('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x11b8('0x8')](){if(!this[_0x11b8('0x32')])throw new _0x4376c5(_0x11b8('0x24'),this);this[_0x11b8('0x6')](null);for(const _0x39915a of this[_0x11b8('0x2e')])this[_0x11b8('0x30')](_0x39915a);this[_0x11b8('0x27')](),this['isAttached']=!0x1;}[_0x11b8('0x39')](){this[_0x11b8('0x32')]&&this[_0x11b8('0x8')]();}['_setSelectedAnnotations'](_0x372ea9){const _0x3cb608=this[_0x11b8('0x2b')];for(const _0xe48a58 of _0x3cb608)_0x372ea9[_0x11b8('0x35')](_0xe48a58)||this[_0x11b8('0x21')]['delete'](_0xe48a58);for(const _0x4d5916 of this[_0x11b8('0xb')])_0x372ea9['includes'](_0x4d5916)||this[_0x11b8('0x30')](_0x4d5916);if(this[_0x11b8('0x28')]['ui']['focusTracker'][_0x11b8('0x5')])for(const _0x433acc of _0x372ea9)this[_0x11b8('0x23')](_0x433acc);this['_selectedAnnotations']=_0x372ea9;}[_0x11b8('0x23')](_0x3ff652,_0xcbc279){this[_0x11b8('0x21')][_0x11b8('0x13')](_0x3ff652)||(this['_addedAnnotations'][_0x11b8('0x13')](_0x3ff652)||this['_balloon'][_0x11b8('0x20')](_0x3ff652[_0x11b8('0x9')])||(this['_addedAnnotations']['add'](_0x3ff652),this[_0x11b8('0x16')][_0x11b8('0x18')]({'stackId':_0x3ff652['view']['id'],'view':_0x3ff652[_0x11b8('0x9')],'position':{'target':()=>_0x3ff652['target']||_0x3ff652[_0x11b8('0x10')]||document[_0x11b8('0x38')]()['getRangeAt'](0x0)}})),_0xcbc279&&this[_0x11b8('0x16')]['showStack'](_0x3ff652[_0x11b8('0x9')]['id']));}['_removeAnnotationFromBalloon'](_0x2ae66f){this['_addedAnnotations'][_0x11b8('0x13')](_0x2ae66f)&&this[_0x11b8('0x16')][_0x11b8('0x20')](_0x2ae66f[_0x11b8('0x9')])&&(this[_0x11b8('0x2e')][_0x11b8('0x15')](_0x2ae66f),this[_0x11b8('0x16')][_0x11b8('0x4')](_0x2ae66f[_0x11b8('0x9')]));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3911=['addEventListener','isVisible','_annotationToNarrowView','_destroyEditorAnnotationsIntegration','stopListening','attach','view','element','_detachListeners','ck-sidebar--narrow','Sidebar','refreshPositioning','from','_throttledRefreshPositioning','delete','_editorAnnotations','locale','values','getByView','narrowsidebar-attach-already-attached','_manuallyClosedAnnotationViews','Esc','destroy','_integrateWithEditorAnnotations','preventClosingBalloon','blur','number','listenTo','_updateBalloonPosition','content','_selectedAnnotations','low','requires','detachFromDom','southArrowNorthEast','cancel','getOrderedSelectedAnnotations','keyCode','has','register','bodyCollection','editors','addAnnotation','annotationType','uiUpdate','_attachListeners','includes','init','execute','_attachToContainer','_annotations','northArrowSouth','southArrowNorth','refresh','clear','setActiveAnnotation','bind','balloonPanelView','_refreshPositioning','_showBalloon','northArrowSouthWest','getSidebarItemView','_domEmitter','get','type','resize','EditorAnnotations','_setSelectedAnnotations','_detachFromContainer','set:container','set','_hideBalloon','detach','isAttached','focus','context','pin','first','contains','activeAnnotation','mousedown','unpin','pluginName','isDirty','high','southArrowNorthWest','defaultPositions','add','preventDefault','ready','change:container','plugins','remove','hasDomSelection','off','length'];(function(_0x589497,_0x3911a0){const _0x4cec40=function(_0x33757a){while(--_0x33757a){_0x589497['push'](_0x589497['shift']());}};_0x4cec40(++_0x3911a0);}(_0x3911,0x1d8));const _0x4cec=function(_0x589497,_0x3911a0){_0x589497=_0x589497-0x0;let _0x4cec40=_0x3911[_0x589497];return _0x4cec40;};import{ContextPlugin as _0x3f977b}from'ckeditor5/src/core';import _0x4405f2 from'./annotationsuis';import _0x229085 from'./sidebar';import _0x5e9765 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x13a820,BodyCollection as _0x3a577b}from'ckeditor5/src/ui';import{CKEditorError as _0x215fc0,DomEmitterMixin as _0x3551c1,keyCodes as _0x25b1b2,Collection as _0x1b58e0}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x1885e6}from'lodash-es';export default class s extends _0x3f977b{static get[_0x4cec('0x28')](){return[_0x229085,_0x4405f2];}static get[_0x4cec('0x5a')](){return'NarrowSidebar';}constructor(_0x43810d){super(_0x43810d),this['isAttached']=!0x1,this[_0x4cec('0x1c')]=new Set(),this[_0x4cec('0x46')]=Object['create'](_0x3551c1),this[_0x4cec('0xa')]=new Map(),this[_0x4cec('0x4e')](_0x4cec('0x57'),null),this[_0x4cec('0x3a')]=null,this[_0x4cec('0x26')]=[],this[_0x4cec('0x17')]=new _0x1b58e0(),this[_0x4cec('0x15')]=_0x1885e6(()=>{this[_0x4cec('0x42')]();},0x190,{'leading':!0x1});}[_0x4cec('0x37')](){this['context'][_0x4cec('0x3')]['get'](_0x4405f2)[_0x4cec('0x2f')]('narrowSidebar',this),this[_0x4cec('0x30')]=new _0x3a577b(this['context'][_0x4cec('0x18')]),this['balloonPanelView']=new _0x13a820(this[_0x4cec('0x53')][_0x4cec('0x18')]),this[_0x4cec('0x30')]['attachToDom'](),this['bodyCollection'][_0x4cec('0x5f')](this['balloonPanelView']);}[_0x4cec('0xd')](_0x5960ae){this['_annotations']=_0x5960ae;const _0x2778ab=this[_0x4cec('0x53')][_0x4cec('0x3')][_0x4cec('0x47')](_0x229085),_0x567b45=this[_0x4cec('0x41')];if(_0x2778ab[_0x4cec('0x3a')]=_0x5960ae,this['isAttached'])throw new _0x215fc0(_0x4cec('0x1b'),this);this['isAttached']=!0x0,this[_0x4cec('0x23')](_0x2778ab,_0x4cec('0x4d'),()=>{this[_0x4cec('0x50')](),this[_0x4cec('0x23')](_0x2778ab,_0x4cec('0x2'),_0x1a1142=>{_0x1a1142[_0x4cec('0x6')](),this[_0x4cec('0xd')](_0x5960ae);});}),_0x2778ab[_0x4cec('0x39')]({'viewClass':_0x4cec('0x11'),'spaceBetweenItems':0x5});const _0x10af3f=_0x558e6d=>{const _0x233885=new _0x5e9765(this['context'][_0x4cec('0x18')]);_0x2778ab[_0x4cec('0x32')](_0x558e6d,_0x233885),this['_annotationToNarrowView'][_0x4cec('0x4e')](_0x558e6d,_0x233885),_0x233885[_0x4cec('0x40')]('isDirty',_0x4cec('0x33'),_0x4cec('0x22'))['to'](_0x558e6d[_0x4cec('0xe')],_0x4cec('0x5b'),_0x4cec('0x48'),_0x4cec('0x7')),_0x233885['on'](_0x4cec('0x38'),()=>{this[_0x4cec('0x1c')][_0x4cec('0x3e')](),_0x567b45[_0x4cec('0x25')]['first']!==_0x558e6d['view']?(this[_0x4cec('0x43')](_0x558e6d),_0x558e6d[_0x4cec('0xe')][_0x4cec('0xf')]['focus'](),this[_0x4cec('0x3f')](_0x558e6d)):this[_0x4cec('0x3f')](null);});};for(const _0x4190c1 of _0x5960ae)_0x10af3f(_0x4190c1);this[_0x4cec('0x23')](_0x5960ae,'add',(_0x22402f,_0x5b6e24)=>{_0x10af3f(_0x5b6e24);}),this['listenTo'](_0x5960ae,_0x4cec('0x4'),(_0x1cbd35,_0x2f83e2,_0x56c33d)=>{this[_0x4cec('0xa')][_0x4cec('0x47')](_0x2f83e2)['destroy'](),this[_0x4cec('0xa')]['delete'](_0x2f83e2),_0x2778ab['rearrange']({'removedAnnotation':_0x2f83e2,'previousAnnotation':_0x5960ae['get'](_0x56c33d-0x1),'nextAnnotation':_0x5960ae[_0x4cec('0x47')](_0x56c33d+0x1)}),_0x2f83e2===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x4cec('0x27')}),this[_0x4cec('0x23')](_0x5960ae,_0x4cec('0x52'),(_0x263e2e,_0x224afa)=>{this[_0x4cec('0x3f')](_0x224afa);}),this['listenTo'](_0x5960ae,_0x4cec('0x21'),()=>{this[_0x4cec('0x3f')](null);}),this[_0x4cec('0x46')]['listenTo'](document,'keydown',(_0x325516,_0x57cd2d)=>{_0x57cd2d[_0x4cec('0x2d')]===_0x25b1b2['esc']&&_0x567b45[_0x4cec('0x9')]&&(this[_0x4cec('0x1c')][_0x4cec('0x5f')](_0x567b45[_0x4cec('0x25')]['first']),this['_hideBalloon'](),_0x57cd2d['stopPropagation'](),_0x57cd2d[_0x4cec('0x0')]());}),this[_0x4cec('0x46')][_0x4cec('0x23')](document,_0x4cec('0x58'),(_0x2957da,_0x560207)=>{const _0x235bbc=_0x560207['target'];_0x567b45[_0x4cec('0x9')]&&_0x567b45[_0x4cec('0xf')][_0x4cec('0x56')](_0x235bbc)||_0x2778ab[_0x4cec('0xe')]['element'][_0x4cec('0x56')](_0x235bbc)||_0x2957da[_0x4cec('0x20')]||(this['_manuallyClosedAnnotationViews'][_0x4cec('0x3e')](),this[_0x4cec('0x4f')](),this[_0x4cec('0x3f')](null));});const _0x186e62=this[_0x4cec('0x53')][_0x4cec('0x31')]?this['context'][_0x4cec('0x31')]:new _0x1b58e0([this[_0x4cec('0x53')]]);for(const _0x4ecf78 of _0x186e62)this[_0x4cec('0x1f')](_0x4ecf78);this[_0x4cec('0x23')](_0x186e62,_0x4cec('0x5f'),(_0x2a9f3b,_0x199ed7)=>{this[_0x4cec('0x23')](_0x199ed7,_0x4cec('0x1'),()=>{this[_0x4cec('0x1f')](_0x199ed7);});}),this[_0x4cec('0x23')](_0x186e62,_0x4cec('0x4'),(_0x70954b,_0x36e3bc)=>{_0x36e3bc[_0x4cec('0x3')]['has'](_0x4cec('0x4a'))&&this[_0x4cec('0xb')](_0x36e3bc['plugins'][_0x4cec('0x47')](_0x4cec('0x4a')));}),window[_0x4cec('0x8')](_0x4cec('0x49'),this[_0x4cec('0x15')]),this[_0x4cec('0x42')]();}[_0x4cec('0x3f')](_0x44a6d6){if(_0x44a6d6===this[_0x4cec('0x57')])return;const _0x220859=this[_0x4cec('0x53')]['plugins']['get'](_0x4cec('0x12'));if(_0x220859[_0x4cec('0x3d')]({'blurredAnnotation':this[_0x4cec('0x57')],'activatedAnnotation':_0x44a6d6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x44a6d6)_0x220859[_0x4cec('0x45')](_0x44a6d6)?this[_0x4cec('0x43')](_0x44a6d6):this['_hideBalloon']();else this[_0x4cec('0x4f')]();this[_0x4cec('0x57')]=_0x44a6d6;}[_0x4cec('0x50')](){if(!this[_0x4cec('0x51')])throw new _0x215fc0('narrowsidebar-detach-not-attached',this);this[_0x4cec('0x3f')](null);const _0xe861f3=this[_0x4cec('0x53')][_0x4cec('0x3')][_0x4cec('0x47')](_0x4cec('0x12'));this[_0x4cec('0x4f')](),Array[_0x4cec('0x14')](this[_0x4cec('0xa')][_0x4cec('0x19')](),_0x4f41d4=>_0x4f41d4[_0x4cec('0x1e')]()),this[_0x4cec('0xa')][_0x4cec('0x3e')](),_0xe861f3[_0x4cec('0x4c')](this[_0x4cec('0x3a')]),this[_0x4cec('0xc')](),this[_0x4cec('0x46')][_0x4cec('0xc')](),this[_0x4cec('0xc')](this['context'][_0x4cec('0x31')]);for(const _0x2b2e53 of Array[_0x4cec('0x14')](this[_0x4cec('0x17')]))this['_destroyEditorAnnotationsIntegration'](_0x2b2e53);window['removeEventListener'](_0x4cec('0x49'),this[_0x4cec('0x15')]),this[_0x4cec('0x15')][_0x4cec('0x2b')](),this[_0x4cec('0x26')]=[],this[_0x4cec('0x51')]=!0x1,this[_0x4cec('0x3a')]=null;}[_0x4cec('0x1e')](){this[_0x4cec('0x51')]&&this[_0x4cec('0x50')](),this[_0x4cec('0x30')][_0x4cec('0x29')]();}['_integrateWithEditorAnnotations'](_0x3b9273){const _0x5adff3=_0x3b9273['plugins'][_0x4cec('0x47')]('EditorAnnotations'),_0x34a96b=this['context'][_0x4cec('0x3')][_0x4cec('0x47')](_0x229085),_0x49f882=this[_0x4cec('0x3a')],_0x151ce7=this[_0x4cec('0x41')],_0x535a01=()=>{const _0x1bc09f=_0x5adff3[_0x4cec('0x2c')]({'activeAnnotation':this['activeAnnotation'],'annotations':this['_annotations']});this['_setSelectedAnnotations'](_0x1bc09f),this['setActiveAnnotation'](_0x1bc09f[0x0]||null);};this['listenTo'](_0x5adff3,'refresh',_0x535a01),this[_0x4cec('0x23')](_0x5adff3,_0x4cec('0x21'),(_0x1a4329,{isAnnotationTracked:_0x31d36f})=>{this['activeAnnotation']&&_0x31d36f(this[_0x4cec('0x57')])&&(this[_0x4cec('0x4b')]([]),this[_0x4cec('0x3f')](null));}),this[_0x4cec('0x23')](_0x5adff3,_0x4cec('0x34'),()=>{this[_0x4cec('0x15')]();}),this[_0x4cec('0x23')](_0x49f882,_0x4cec('0x21'),_0x126055=>{_0x5adff3[_0x4cec('0x5')]()&&_0x126055['stop']();},{'priority':'high'}),this['_domEmitter'][_0x4cec('0x23')](document,_0x4cec('0x58'),(_0x347b5c,_0x2df4d0)=>{const _0xa6bf52=_0x2df4d0['target'];_0x151ce7[_0x4cec('0x9')]&&_0x151ce7[_0x4cec('0xf')][_0x4cec('0x56')](_0xa6bf52)||_0x34a96b[_0x4cec('0xe')][_0x4cec('0xf')][_0x4cec('0x56')](_0xa6bf52)||this[_0x4cec('0x57')]&&_0x5adff3[_0x4cec('0x5')]()&&(_0x535a01(),_0x347b5c[_0x4cec('0x20')]=!0x0);},{'priority':_0x4cec('0x5c')}),this[_0x4cec('0x17')]['add'](_0x5adff3);}[_0x4cec('0xb')](_0x1d4073){_0x1d4073&&(this[_0x4cec('0xc')](_0x1d4073),this[_0x4cec('0x17')][_0x4cec('0x4')](_0x1d4073));}['_setSelectedAnnotations'](_0x4e6d80){for(const _0x2381c4 of this[_0x4cec('0x26')])_0x4e6d80[_0x4cec('0x36')](_0x2381c4)||this[_0x4cec('0x1c')][_0x4cec('0x16')](_0x2381c4['view']);this[_0x4cec('0x26')]=_0x4e6d80;}[_0x4cec('0x42')](){const _0x135887=this[_0x4cec('0x41')];this[_0x4cec('0x3a')][_0x4cec('0x13')](),_0x135887[_0x4cec('0x9')]&&this[_0x4cec('0x24')]();}['_showBalloon'](_0x46806f){if(this[_0x4cec('0x1c')][_0x4cec('0x2e')](_0x46806f[_0x4cec('0xe')]))return;const _0x3e533b=this[_0x4cec('0x41')]['content'][_0x4cec('0x55')];_0x3e533b!==_0x46806f[_0x4cec('0xe')]?(_0x3e533b&&this[_0x4cec('0x10')](_0x3e533b),this[_0x4cec('0x35')](_0x46806f[_0x4cec('0xe')]),this[_0x4cec('0x41')][_0x4cec('0x25')]['clear'](),this[_0x4cec('0x41')][_0x4cec('0x25')]['add'](_0x46806f['view']),this[_0x4cec('0x24')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x406d55=this[_0x4cec('0x41')]['content'][_0x4cec('0x55')],_0x5696e1=this[_0x4cec('0x3a')][_0x4cec('0x1a')](_0x406d55);if(!this['_annotationToNarrowView'][_0x4cec('0x2e')](_0x5696e1))return;const _0x1787a5=this[_0x4cec('0xa')]['get'](_0x5696e1)[_0x4cec('0xf')],_0x23c11c=function(){const _0x145cc4=_0x13a820[_0x4cec('0x5e')];return[_0x145cc4[_0x4cec('0x2a')],_0x145cc4['northArrowSouthEast'],_0x145cc4[_0x4cec('0x3c')],_0x145cc4[_0x4cec('0x3b')],_0x145cc4[_0x4cec('0x5d')],_0x145cc4[_0x4cec('0x44')]];}();this[_0x4cec('0x41')][_0x4cec('0x54')]({'target':_0x1787a5,'positions':_0x23c11c});}[_0x4cec('0x4f')](){const _0x59dd6c=this[_0x4cec('0x41')],_0x228992=_0x59dd6c[_0x4cec('0x25')][_0x4cec('0x55')];_0x228992&&(this['_detachListeners'](_0x228992),_0x59dd6c[_0x4cec('0x59')](),_0x59dd6c[_0x4cec('0x25')][_0x4cec('0x3e')]());}[_0x4cec('0x35')](_0x53fc85){this['listenTo'](_0x53fc85,'change:height',()=>this['_updateBalloonPosition']()),this[_0x4cec('0x23')](_0x53fc85,_0x4cec('0x1d'),(_0x48cdd3,_0x18c639)=>{this[_0x4cec('0x1c')][_0x4cec('0x5f')](_0x53fc85),this['_hideBalloon'](),_0x18c639();});}[_0x4cec('0x10')](_0x14d2a9){this[_0x4cec('0xc')](_0x14d2a9);}}
23
+ const _0x5b15=['_manuallyClosedAnnotationViews','get','change:container','esc','set','_updateBalloonPosition','stopListening','_editorAnnotations','locale','uiUpdate','rearrange','southArrowNorthWest','NarrowSidebar','_integrateWithEditorAnnotations','attachToDom','off','register','_showBalloon','delete','northArrowSouthEast','_destroyEditorAnnotationsIntegration','_annotations','has','keyCode','EditorAnnotations','refreshPositioning','southArrowNorthEast','getSidebarItemView','_attachToContainer','_refreshPositioning','_domEmitter','isDirty','from','target','editors','annotationType','clear','bind','bodyCollection','detach','balloonPanelView','unpin','create','southArrowNorth','remove','contains','preventDefault','stop','first','detachFromDom','focus','plugins','add','narrowSidebar','number','init','addAnnotation','_attachListeners','Esc','isAttached','execute','keydown','isVisible','set:container','Sidebar','defaultPositions','hasDomSelection','mousedown','listenTo','values','_throttledRefreshPositioning','getByView','content','getOrderedSelectedAnnotations','northArrowSouthWest','activeAnnotation','destroy','requires','blur','removeEventListener','cancel','ck-sidebar--narrow','view','_annotationToNarrowView','_setSelectedAnnotations','ready','narrowsidebar-detach-not-attached','pin','setActiveAnnotation','resize','_detachListeners','preventClosingBalloon','_hideBalloon','high','refresh','element','context','_selectedAnnotations','northArrowSouth'];(function(_0x42dd08,_0x5b1544){const _0x2f49ed=function(_0x360a24){while(--_0x360a24){_0x42dd08['push'](_0x42dd08['shift']());}};_0x2f49ed(++_0x5b1544);}(_0x5b15,0x17d));const _0x2f49=function(_0x42dd08,_0x5b1544){_0x42dd08=_0x42dd08-0x0;let _0x2f49ed=_0x5b15[_0x42dd08];return _0x2f49ed;};import{ContextPlugin as _0x203678}from'ckeditor5/src/core';import _0x3f762a from'./annotationsuis';import _0x4fa331 from'./sidebar';import _0x478ceb from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a16c0,BodyCollection as _0xe17308}from'ckeditor5/src/ui';import{CKEditorError as _0x2f6cd1,DomEmitterMixin as _0x269581,keyCodes as _0x261e15,Collection as _0x39d40d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x8ff5d5}from'lodash-es';export default class s extends _0x203678{static get[_0x2f49('0x5c')](){return[_0x4fa331,_0x3f762a];}static get['pluginName'](){return _0x2f49('0x1b');}constructor(_0x158c60){super(_0x158c60),this[_0x2f49('0x4a')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x2f49('0x2d')]=Object[_0x2f49('0x39')](_0x269581),this['_annotationToNarrowView']=new Map(),this[_0x2f49('0x13')](_0x2f49('0x5a'),null),this['_annotations']=null,this[_0x2f49('0xd')]=[],this[_0x2f49('0x16')]=new _0x39d40d(),this[_0x2f49('0x55')]=_0x8ff5d5(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x2f49('0x46')](){this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x3f762a)[_0x2f49('0x1f')](_0x2f49('0x44'),this),this[_0x2f49('0x35')]=new _0xe17308(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x37')]=new _0x2a16c0(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x35')][_0x2f49('0x1d')](),this[_0x2f49('0x35')][_0x2f49('0x43')](this[_0x2f49('0x37')]);}['attach'](_0x4dc3f5){this[_0x2f49('0x24')]=_0x4dc3f5;const _0x3cff2b=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0xe360ea=this['balloonPanelView'];if(_0x3cff2b['_annotations']=_0x4dc3f5,this[_0x2f49('0x4a')])throw new _0x2f6cd1('narrowsidebar-attach-already-attached',this);this[_0x2f49('0x4a')]=!0x0,this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x4e'),()=>{this[_0x2f49('0x36')](),this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x11'),_0x2341ff=>{_0x2341ff[_0x2f49('0x1e')](),this['attach'](_0x4dc3f5);});}),_0x3cff2b[_0x2f49('0x2b')]({'viewClass':_0x2f49('0x60'),'spaceBetweenItems':0x5});const _0x3dd13b=_0x3d5946=>{const _0x532152=new _0x478ceb(this['context']['locale']);_0x3cff2b[_0x2f49('0x47')](_0x3d5946,_0x532152),this['_annotationToNarrowView'][_0x2f49('0x13')](_0x3d5946,_0x532152),_0x532152[_0x2f49('0x34')](_0x2f49('0x2e'),_0x2f49('0x32'),_0x2f49('0x45'))['to'](_0x3d5946[_0x2f49('0x61')],'isDirty','type','length'),_0x532152['on'](_0x2f49('0x4b'),()=>{this[_0x2f49('0xf')][_0x2f49('0x33')](),_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]!==_0x3d5946[_0x2f49('0x61')]?(this[_0x2f49('0x20')](_0x3d5946),_0x3d5946[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x41')](),this['setActiveAnnotation'](_0x3d5946)):this['setActiveAnnotation'](null);});};for(const _0x11c9c8 of _0x4dc3f5)_0x3dd13b(_0x11c9c8);this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x43'),(_0x3004a4,_0x22dc26)=>{_0x3dd13b(_0x22dc26);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x3b'),(_0x4c8bbd,_0x289cf1,_0x29629e)=>{this[_0x2f49('0x62')]['get'](_0x289cf1)['destroy'](),this[_0x2f49('0x62')][_0x2f49('0x21')](_0x289cf1),_0x3cff2b[_0x2f49('0x19')]({'removedAnnotation':_0x289cf1,'previousAnnotation':_0x4dc3f5[_0x2f49('0x10')](_0x29629e-0x1),'nextAnnotation':_0x4dc3f5['get'](_0x29629e+0x1)}),_0x289cf1===this[_0x2f49('0x5a')]&&this[_0x2f49('0x4')](null);},{'priority':'low'}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x41'),(_0x489c5e,_0x5988e9)=>{this[_0x2f49('0x4')](_0x5988e9);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x5d'),()=>{this[_0x2f49('0x4')](null);}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x4c'),(_0x20255e,_0x3419be)=>{_0x3419be[_0x2f49('0x26')]===_0x261e15[_0x2f49('0x12')]&&_0xe360ea[_0x2f49('0x4d')]&&(this[_0x2f49('0xf')][_0x2f49('0x43')](_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]),this['_hideBalloon'](),_0x3419be['stopPropagation'](),_0x3419be[_0x2f49('0x3d')]());}),this['_domEmitter'][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x2e3783,_0x2115ec)=>{const _0x1a02c9=_0x2115ec[_0x2f49('0x30')];_0xe360ea[_0x2f49('0x4d')]&&_0xe360ea[_0x2f49('0xb')]['contains'](_0x1a02c9)||_0x3cff2b[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x3c')](_0x1a02c9)||_0x2e3783[_0x2f49('0x7')]||(this[_0x2f49('0xf')][_0x2f49('0x33')](),this[_0x2f49('0x8')](),this[_0x2f49('0x4')](null));});const _0x3bffb2=this[_0x2f49('0xc')]['editors']?this['context'][_0x2f49('0x31')]:new _0x39d40d([this[_0x2f49('0xc')]]);for(const _0x45ed50 of _0x3bffb2)this[_0x2f49('0x1c')](_0x45ed50);this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x43'),(_0x49ca04,_0x44d6a9)=>{this['listenTo'](_0x44d6a9,_0x2f49('0x1'),()=>{this[_0x2f49('0x1c')](_0x44d6a9);});}),this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x3b'),(_0x3bf1cd,_0x2b1883)=>{_0x2b1883[_0x2f49('0x42')][_0x2f49('0x25')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b1883[_0x2f49('0x42')]['get'](_0x2f49('0x27')));}),window['addEventListener'](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x2c')]();}[_0x2f49('0x4')](_0x1c03a3){if(_0x1c03a3===this['activeAnnotation'])return;const _0x565e53=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));if(_0x565e53['refresh']({'blurredAnnotation':this[_0x2f49('0x5a')],'activatedAnnotation':_0x1c03a3,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1c03a3)_0x565e53[_0x2f49('0x2a')](_0x1c03a3)?this[_0x2f49('0x20')](_0x1c03a3):this[_0x2f49('0x8')]();else this[_0x2f49('0x8')]();this[_0x2f49('0x5a')]=_0x1c03a3;}[_0x2f49('0x36')](){if(!this[_0x2f49('0x4a')])throw new _0x2f6cd1(_0x2f49('0x2'),this);this[_0x2f49('0x4')](null);const _0x3088ef=this['context'][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));this['_hideBalloon'](),Array[_0x2f49('0x2f')](this[_0x2f49('0x62')][_0x2f49('0x54')](),_0x17e9a0=>_0x17e9a0[_0x2f49('0x5b')]()),this[_0x2f49('0x62')]['clear'](),_0x3088ef['_detachFromContainer'](this[_0x2f49('0x24')]),this[_0x2f49('0x15')](),this[_0x2f49('0x2d')][_0x2f49('0x15')](),this[_0x2f49('0x15')](this[_0x2f49('0xc')]['editors']);for(const _0x41eb89 of Array[_0x2f49('0x2f')](this['_editorAnnotations']))this[_0x2f49('0x23')](_0x41eb89);window[_0x2f49('0x5e')](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x55')][_0x2f49('0x5f')](),this['_selectedAnnotations']=[],this[_0x2f49('0x4a')]=!0x1,this[_0x2f49('0x24')]=null;}[_0x2f49('0x5b')](){this[_0x2f49('0x4a')]&&this[_0x2f49('0x36')](),this[_0x2f49('0x35')][_0x2f49('0x40')]();}['_integrateWithEditorAnnotations'](_0x4901a0){const _0x1b575b=_0x4901a0[_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x27')),_0x586c8a=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0x24b1bf=this['_annotations'],_0x167493=this[_0x2f49('0x37')],_0x4f43fb=()=>{const _0x38d727=_0x1b575b[_0x2f49('0x58')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x2f49('0x24')]});this[_0x2f49('0x0')](_0x38d727),this['setActiveAnnotation'](_0x38d727[0x0]||null);};this['listenTo'](_0x1b575b,_0x2f49('0xa'),_0x4f43fb),this[_0x2f49('0x53')](_0x1b575b,'blur',(_0x4fd268,{isAnnotationTracked:_0x9e65f8})=>{this['activeAnnotation']&&_0x9e65f8(this[_0x2f49('0x5a')])&&(this[_0x2f49('0x0')]([]),this[_0x2f49('0x4')](null));}),this[_0x2f49('0x53')](_0x1b575b,_0x2f49('0x18'),()=>{this[_0x2f49('0x55')]();}),this['listenTo'](_0x24b1bf,_0x2f49('0x5d'),_0x4fe70a=>{_0x1b575b['hasDomSelection']()&&_0x4fe70a[_0x2f49('0x3e')]();},{'priority':_0x2f49('0x9')}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x101d09,_0x1e09c9)=>{const _0x482030=_0x1e09c9[_0x2f49('0x30')];_0x167493['isVisible']&&_0x167493[_0x2f49('0xb')][_0x2f49('0x3c')](_0x482030)||_0x586c8a[_0x2f49('0x61')]['element']['contains'](_0x482030)||this[_0x2f49('0x5a')]&&_0x1b575b[_0x2f49('0x51')]()&&(_0x4f43fb(),_0x101d09[_0x2f49('0x7')]=!0x0);},{'priority':'high'}),this[_0x2f49('0x16')]['add'](_0x1b575b);}[_0x2f49('0x23')](_0x50a10c){_0x50a10c&&(this[_0x2f49('0x15')](_0x50a10c),this[_0x2f49('0x16')][_0x2f49('0x3b')](_0x50a10c));}[_0x2f49('0x0')](_0x488e06){for(const _0x2fa43b of this[_0x2f49('0xd')])_0x488e06['includes'](_0x2fa43b)||this[_0x2f49('0xf')][_0x2f49('0x21')](_0x2fa43b['view']);this['_selectedAnnotations']=_0x488e06;}[_0x2f49('0x2c')](){const _0x1a3e55=this['balloonPanelView'];this['_annotations'][_0x2f49('0x28')](),_0x1a3e55[_0x2f49('0x4d')]&&this[_0x2f49('0x14')]();}[_0x2f49('0x20')](_0x48ddc3){if(this['_manuallyClosedAnnotationViews'][_0x2f49('0x25')](_0x48ddc3['view']))return;const _0x46919c=this[_0x2f49('0x37')]['content']['first'];_0x46919c!==_0x48ddc3[_0x2f49('0x61')]?(_0x46919c&&this['_detachListeners'](_0x46919c),this[_0x2f49('0x48')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x37')][_0x2f49('0x57')][_0x2f49('0x33')](),this['balloonPanelView']['content'][_0x2f49('0x43')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x14')]()):this[_0x2f49('0x14')]();}['_updateBalloonPosition'](){const _0x361653=this['balloonPanelView'][_0x2f49('0x57')]['first'],_0x5e55b6=this[_0x2f49('0x24')][_0x2f49('0x56')](_0x361653);if(!this[_0x2f49('0x62')][_0x2f49('0x25')](_0x5e55b6))return;const _0x43c9f1=this['_annotationToNarrowView'][_0x2f49('0x10')](_0x5e55b6)['element'],_0x595249=function(){const _0xbcd568=_0x2a16c0[_0x2f49('0x50')];return[_0xbcd568[_0x2f49('0x29')],_0xbcd568[_0x2f49('0x22')],_0xbcd568[_0x2f49('0x3a')],_0xbcd568[_0x2f49('0xe')],_0xbcd568[_0x2f49('0x1a')],_0xbcd568[_0x2f49('0x59')]];}();this['balloonPanelView'][_0x2f49('0x3')]({'target':_0x43c9f1,'positions':_0x595249});}[_0x2f49('0x8')](){const _0x18b90e=this[_0x2f49('0x37')],_0x1ddc99=_0x18b90e[_0x2f49('0x57')][_0x2f49('0x3f')];_0x1ddc99&&(this[_0x2f49('0x6')](_0x1ddc99),_0x18b90e[_0x2f49('0x38')](),_0x18b90e[_0x2f49('0x57')][_0x2f49('0x33')]());}[_0x2f49('0x48')](_0x226e24){this[_0x2f49('0x53')](_0x226e24,'change:height',()=>this[_0x2f49('0x14')]()),this['listenTo'](_0x226e24,_0x2f49('0x49'),(_0x538f0c,_0x46ae66)=>{this[_0x2f49('0xf')][_0x2f49('0x43')](_0x226e24),this['_hideBalloon'](),_0x46ae66();});}[_0x2f49('0x6')](_0x3a10c8){this[_0x2f49('0x15')](_0x3a10c8);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x273d=['_annotationToSidebarItemView','getSidebarItemView','_createSidebarView','container','appendChild','content','_alignAfterItem','class','remove','sidebar-setcontainer-invalid-element','sidebar.container','config','_alignToTargetRect','_detachFromContainer','isAnimationDisabled','get','length','_alignBeforeItem','bottom','stopListening','delete','clear','_getMaxAvailableTop','getIndex','isActive','_updateLastItem','define','refresh','element','add','targetRect','updateHeight','rearrange','change:_lastItem','unbind','sidebar.preventScrollOutOfView','change:bottom','max','minHeight','list','change:top','target','_getItemAfter','bind','set','_destroySidebarItemView','_annotations','_attachToContainer','_setItemTop','render','setContainer','view','last','height','_activeAnnotation','context','top','_sidebarItemViewToAnnotation','_spaceBetweenItems','_targetTop','destroy','listenTo','_getTargetTop','sidebar-attachtocontainer-missing-container','_lastItem','_getItemBefore','addAnnotation'];(function(_0x430bbb,_0x273d1c){const _0x1af66c=function(_0x51995c){while(--_0x51995c){_0x430bbb['push'](_0x430bbb['shift']());}};_0x1af66c(++_0x273d1c);}(_0x273d,0x17d));const _0x1af6=function(_0x430bbb,_0x273d1c){_0x430bbb=_0x430bbb-0x0;let _0x1af66c=_0x273d[_0x430bbb];return _0x1af66c;};import{ContextPlugin as _0x3db344}from'ckeditor5/src/core';import _0x5392b5 from'./view/sidebarview';import _0x870d16 from'./view/sidebaritemview';import{Rect as _0x1ebbb3,CKEditorError as _0x490fed}from'ckeditor5/src/utils';import{isElement as _0x17d291,throttle as _0x1a71e5}from'lodash-es';export default class b extends _0x3db344{static get['pluginName'](){return'Sidebar';}constructor(_0x586a94){super(_0x586a94),this[_0x1af6('0x41')](_0x1af6('0x12')),this[_0x1af6('0x5')]=this[_0x1af6('0x17')](),this[_0x1af6('0x41')]('container',null),this[_0x1af6('0xc')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1af6('0x15')]=new Map(),this[_0x1af6('0x9')][_0x1af6('0x20')][_0x1af6('0x2f')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}['init'](){const _0x47ed25=this[_0x1af6('0x9')]['config'][_0x1af6('0x24')](_0x1af6('0x1f'));_0x47ed25&&this[_0x1af6('0x4')](_0x47ed25);}[_0x1af6('0x4')](_0x2faa16){if(!_0x17d291(_0x2faa16))throw new _0x490fed(_0x1af6('0x1e'));this['container']=_0x2faa16;}[_0x1af6('0x1')]({viewClass:_0x5975db='',spaceBetweenItems:_0x195620=0x19}={}){if(!_0x17d291(this[_0x1af6('0x18')]))throw new _0x490fed(_0x1af6('0x11'),this);this[_0x1af6('0x18')][_0x1af6('0x19')](this[_0x1af6('0x5')][_0x1af6('0x31')]),this['view'][_0x1af6('0x1c')]=_0x5975db,this[_0x1af6('0xc')]=_0x195620;}[_0x1af6('0x35')]({removedAnnotation:_0x6e3578,previousAnnotation:_0x3ecd14,nextAnnotation:_0x2506fc}){const _0x289cd3=this[_0x1af6('0x16')](_0x6e3578);this['view'][_0x1af6('0x3c')][_0x1af6('0x1d')](_0x289cd3),this[_0x1af6('0x42')](_0x6e3578),_0x3ecd14&&this[_0x1af6('0x21')](this['getSidebarItemView'](_0x3ecd14)),_0x2506fc&&this[_0x1af6('0x21')](this[_0x1af6('0x16')](_0x2506fc)),this[_0x1af6('0x2e')]();}[_0x1af6('0x30')]({blurredAnnotation:_0x11bf5d,activatedAnnotation:_0x47f790,disableAnimationOnActivatedAnnotation:_0xa2d755}){if(this[_0x1af6('0x8')]=_0x47f790,_0x11bf5d){_0x11bf5d[_0x1af6('0x2d')]=!0x1;const _0x2ba600=this[_0x1af6('0x16')](_0x11bf5d);_0x2ba600&&_0xa2d755&&(_0x2ba600[_0x1af6('0x23')]=!0x1);}if(_0x47f790){const _0x5f898a=this[_0x1af6('0x16')](_0x47f790);_0x5f898a&&(_0x47f790[_0x1af6('0x2d')]=!0x0,_0xa2d755&&(_0x5f898a[_0x1af6('0x23')]=!0x0,_0x5f898a[_0x1af6('0xa')]+=0x1),this[_0x1af6('0x21')](_0x5f898a));}}[_0x1af6('0x22')](_0x110509){this['stopListening'](),this['view'][_0x1af6('0x31')][_0x1af6('0x1d')]();for(const _0x1ef422 of _0x110509)this[_0x1af6('0x42')](_0x1ef422);this[_0x1af6('0x5')][_0x1af6('0x3c')][_0x1af6('0x2a')](),this[_0x1af6('0x5')]['class']='',this[_0x1af6('0x12')]=null;}[_0x1af6('0x14')](_0xdbfaa5,_0x5e3e40){_0x5e3e40||(_0x5e3e40=_0xdbfaa5[_0x1af6('0x5')]);const _0x49c444=new _0x870d16(this['context']['locale']);this[_0x1af6('0xb')][_0x1af6('0x41')](_0x49c444,_0xdbfaa5),this[_0x1af6('0x15')][_0x1af6('0x41')](_0xdbfaa5,_0x49c444),_0x49c444[_0x1af6('0x1a')][_0x1af6('0x32')](_0x5e3e40),this[_0x1af6('0x21')](_0x49c444),this[_0x1af6('0xf')](_0xdbfaa5[_0x1af6('0x5')],'change:targetRect',()=>{const _0x40384d=this[_0x1af6('0x10')](_0x49c444);_0x49c444[_0x1af6('0xd')]!=_0x40384d&&(_0x49c444['_targetTop']=_0x40384d,this[_0x1af6('0x2')](_0x49c444,_0x40384d));}),this[_0x1af6('0xf')](_0x49c444,_0x1af6('0x3d'),_0x1a71e5(()=>{if(!_0x49c444[_0x1af6('0x1a')][_0x1af6('0x25')])return;const _0x50b253=this['_getItemBefore'](_0x49c444);if(!_0x50b253)return;const _0x84db59=this[_0x1af6('0xb')][_0x1af6('0x24')](_0x50b253),_0x4cb882=this[_0x1af6('0x8')];_0x4cb882&&_0x4cb882===_0x84db59?this[_0x1af6('0x1b')](_0x50b253,_0x49c444):this['_alignBeforeItem'](_0x49c444,_0x50b253);},0xa,{'leading':!0x1})),this[_0x1af6('0xf')](_0x49c444,_0x1af6('0x39'),_0x1a71e5(()=>{if(!_0x49c444['content'][_0x1af6('0x25')])return;const _0x1addda=this[_0x1af6('0x3f')](_0x49c444);if(!_0x1addda)return;const _0x1e2127=this[_0x1af6('0xb')]['get'](_0x1addda),_0x461474=this[_0x1af6('0x9')][_0x1af6('0x20')][_0x1af6('0x24')](_0x1af6('0x38')),_0x1ffdad=this['_activeAnnotation'];_0x1ffdad&&_0x1ffdad===_0x1e2127&&_0x461474?(this[_0x1af6('0x26')](_0x1addda,_0x49c444),this['_alignAfterItem'](_0x49c444,_0x1addda)):_0x1ffdad&&_0x1ffdad===_0x1e2127?this[_0x1af6('0x26')](_0x1addda,_0x49c444):this[_0x1af6('0x1b')](_0x49c444,_0x1addda);},0xa,{'leading':!0x1}));const _0x5f1ceb=this[_0x1af6('0x13')](_0x49c444);if(_0x5f1ceb)this[_0x1af6('0x1b')](_0x5f1ceb,_0x49c444)||this[_0x1af6('0x21')](_0x49c444);else this['_alignToTargetRect'](_0x49c444);return this[_0x1af6('0x2e')](),this['view'][_0x1af6('0x3c')]['add'](_0x49c444),_0x49c444;}[_0x1af6('0x16')](_0x2772e0){return this[_0x1af6('0x15')][_0x1af6('0x24')](_0x2772e0);}['destroy'](){this[_0x1af6('0x5')][_0x1af6('0xe')]();}[_0x1af6('0x42')](_0x1ba002){const _0x3deb29=this['getSidebarItemView'](_0x1ba002);this[_0x1af6('0x28')](_0x3deb29),this[_0x1af6('0x28')](_0x1ba002['view']),_0x3deb29[_0x1af6('0xe')](),this[_0x1af6('0x15')][_0x1af6('0x29')](_0x1ba002),this[_0x1af6('0xb')][_0x1af6('0x29')](_0x3deb29);}[_0x1af6('0x17')](){const _0x2e79e2=new _0x5392b5(this[_0x1af6('0x9')]['locale']);return _0x2e79e2[_0x1af6('0x3')](),this['on'](_0x1af6('0x36'),(_0x1f3ead,_0x5204dd,_0x2fba84,_0x3d9891)=>{_0x3d9891&&_0x2e79e2[_0x1af6('0x37')]('minHeight'),_0x2fba84?_0x2e79e2[_0x1af6('0x40')](_0x1af6('0x3b'))['to'](_0x2fba84,_0x1af6('0x27')):_0x2e79e2[_0x1af6('0x3b')]=null;}),_0x2e79e2;}['_updateLastItem'](){this[_0x1af6('0x12')]=this[_0x1af6('0x16')](this['_annotations'][_0x1af6('0x6')]);}[_0x1af6('0x13')](_0x31cde9){const _0x5596c8=this[_0x1af6('0xb')][_0x1af6('0x24')](_0x31cde9),_0x4df08d=this[_0x1af6('0x0')][_0x1af6('0x24')](this['_annotations'][_0x1af6('0x2c')](_0x5596c8)-0x1);return _0x4df08d&&this[_0x1af6('0x16')](_0x4df08d);}['_getItemAfter'](_0x16973f){const _0x52280a=this['_sidebarItemViewToAnnotation']['get'](_0x16973f),_0x540f4d=this[_0x1af6('0x0')][_0x1af6('0x24')](this['_annotations'][_0x1af6('0x2c')](_0x52280a)+0x1);return _0x540f4d&&this[_0x1af6('0x16')](_0x540f4d);}[_0x1af6('0x26')](_0x41fc59,_0x77fc4d){_0x41fc59[_0x1af6('0x34')]();const _0x24c45e=V(_0x77fc4d[_0x1af6('0x27')]+this[_0x1af6('0xc')],_0x41fc59[_0x1af6('0xa')]);return!!_0x24c45e&&(this['_setItemTop'](_0x77fc4d,_0x77fc4d[_0x1af6('0xa')]-_0x24c45e),!0x0);}['_alignAfterItem'](_0x10bff8,_0x156ef8){_0x10bff8[_0x1af6('0x34')]();const _0x88f1c1=V(_0x10bff8[_0x1af6('0x27')]+this[_0x1af6('0xc')],_0x156ef8[_0x1af6('0xa')]);return!!_0x88f1c1&&(this[_0x1af6('0x2')](_0x156ef8,_0x156ef8['top']+_0x88f1c1,!0x1),!0x0);}[_0x1af6('0x21')](_0x15aa50){const _0x236138=this[_0x1af6('0xb')][_0x1af6('0x24')](_0x15aa50);if(!_0x236138||!_0x236138[_0x1af6('0x3e')])return;const _0x45f10f=this['_getTargetTop'](_0x15aa50);this[_0x1af6('0x2')](_0x15aa50,_0x45f10f);}[_0x1af6('0x10')](_0x46fc9c){const _0x1e0e5d=this[_0x1af6('0xb')][_0x1af6('0x24')](_0x46fc9c);if(_0x1e0e5d[_0x1af6('0x3e')]instanceof _0x1ebbb3)return _0x1e0e5d[_0x1af6('0x33')][_0x1af6('0xa')];{const _0x13138=new _0x1ebbb3(this[_0x1af6('0x5')][_0x1af6('0x31')])[_0x1af6('0xa')];return _0x1e0e5d['targetRect'][_0x1af6('0xa')]-_0x13138;}}['_setItemTop'](_0x150efd,_0x156ae3,_0x3fddda=this[_0x1af6('0x9')][_0x1af6('0x20')][_0x1af6('0x24')](_0x1af6('0x38'))){_0x3fddda&&(_0x156ae3=Math['max'](_0x156ae3,this[_0x1af6('0x2b')](_0x150efd))),_0x150efd[_0x1af6('0xa')]=_0x156ae3;}[_0x1af6('0x2b')](_0x27812c){let _0xfecd8c=this[_0x1af6('0x13')](_0x27812c),_0x112890=0x0;for(;_0xfecd8c;)_0xfecd8c['updateHeight'](),_0x112890+=this[_0x1af6('0xc')]+_0xfecd8c[_0x1af6('0x7')],_0xfecd8c=this[_0x1af6('0x13')](_0xfecd8c);return _0x112890;}}function V(_0x5d37be,_0x4eecb6){return Math[_0x1af6('0x3a')](_0x5d37be-_0x4eecb6,0x0);}
23
+ const _0x1ab5=['_getTargetTop','add','init','pluginName','isActive','max','config','setContainer','change:bottom','change:_lastItem','sidebar-attachtocontainer-missing-container','_lastItem','Sidebar','_createSidebarView','_destroySidebarItemView','context','define','_activeAnnotation','list','isAnimationDisabled','destroy','last','set','_updateLastItem','clear','view','_getItemBefore','sidebar.container','change:targetRect','target','_attachToContainer','locale','bottom','render','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','remove','_alignBeforeItem','_alignToTargetRect','getIndex','class','_getMaxAvailableTop','top','updateHeight','element','_setItemTop','content','getSidebarItemView','_annotationToSidebarItemView','change:top','delete','_targetTop','targetRect','container','_spaceBetweenItems','sidebar.preventScrollOutOfView','get','unbind','stopListening','_getItemAfter','listenTo','length','_alignAfterItem','appendChild','minHeight','refresh','_annotations','height'];(function(_0x3ad47f,_0x1ab5ed){const _0x4976c2=function(_0x442581){while(--_0x442581){_0x3ad47f['push'](_0x3ad47f['shift']());}};_0x4976c2(++_0x1ab5ed);}(_0x1ab5,0x15b));const _0x4976=function(_0x3ad47f,_0x1ab5ed){_0x3ad47f=_0x3ad47f-0x0;let _0x4976c2=_0x1ab5[_0x3ad47f];return _0x4976c2;};import{ContextPlugin as _0x3e8b3b}from'ckeditor5/src/core';import _0x25ef68 from'./view/sidebarview';import _0x281e99 from'./view/sidebaritemview';import{Rect as _0x3c4a5b,CKEditorError as _0x11c2e4}from'ckeditor5/src/utils';import{isElement as _0x235457,throttle as _0x48c204}from'lodash-es';export default class b extends _0x3e8b3b{static get[_0x4976('0x40')](){return _0x4976('0x5');}constructor(_0x5d89d0){super(_0x5d89d0),this[_0x4976('0xf')](_0x4976('0x4')),this[_0x4976('0x12')]=this[_0x4976('0x6')](),this['set'](_0x4976('0x2e'),null),this[_0x4976('0x2f')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x4976('0x8')][_0x4976('0x43')][_0x4976('0x9')]('sidebar.preventScrollOutOfView',!0x1),this[_0x4976('0x3b')]=null,this[_0x4976('0xa')]=null;}[_0x4976('0x3f')](){const _0x2e731c=this[_0x4976('0x8')][_0x4976('0x43')]['get'](_0x4976('0x14'));_0x2e731c&&this['setContainer'](_0x2e731c);}[_0x4976('0x0')](_0xbabc34){if(!_0x235457(_0xbabc34))throw new _0x11c2e4(_0x4976('0x1b'));this[_0x4976('0x2e')]=_0xbabc34;}[_0x4976('0x17')]({viewClass:_0x3ae9cb='',spaceBetweenItems:_0x3635d5=0x19}={}){if(!_0x235457(this[_0x4976('0x2e')]))throw new _0x11c2e4(_0x4976('0x3'),this);this['container'][_0x4976('0x38')](this[_0x4976('0x12')][_0x4976('0x25')]),this[_0x4976('0x12')][_0x4976('0x21')]=_0x3ae9cb,this[_0x4976('0x2f')]=_0x3635d5;}['rearrange']({removedAnnotation:_0xb8be8d,previousAnnotation:_0x3bb002,nextAnnotation:_0x54e569}){const _0x4349f1=this['getSidebarItemView'](_0xb8be8d);this['view'][_0x4976('0xb')][_0x4976('0x1d')](_0x4349f1),this[_0x4976('0x7')](_0xb8be8d),_0x3bb002&&this[_0x4976('0x1f')](this[_0x4976('0x28')](_0x3bb002)),_0x54e569&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54e569)),this[_0x4976('0x10')]();}[_0x4976('0x3a')]({blurredAnnotation:_0x31f67a,activatedAnnotation:_0x1be8f3,disableAnimationOnActivatedAnnotation:_0x53fa05}){if(this['_activeAnnotation']=_0x1be8f3,_0x31f67a){_0x31f67a[_0x4976('0x41')]=!0x1;const _0x410b5f=this[_0x4976('0x28')](_0x31f67a);_0x410b5f&&_0x53fa05&&(_0x410b5f[_0x4976('0xc')]=!0x1);}if(_0x1be8f3){const _0x3fcd93=this[_0x4976('0x28')](_0x1be8f3);_0x3fcd93&&(_0x1be8f3[_0x4976('0x41')]=!0x0,_0x53fa05&&(_0x3fcd93[_0x4976('0xc')]=!0x0,_0x3fcd93[_0x4976('0x23')]+=0x1),this[_0x4976('0x1f')](_0x3fcd93));}}['_detachFromContainer'](_0xa0dea5){this[_0x4976('0x33')](),this[_0x4976('0x12')]['element'][_0x4976('0x1d')]();for(const _0x5293 of _0xa0dea5)this[_0x4976('0x7')](_0x5293);this['view'][_0x4976('0xb')][_0x4976('0x11')](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4cfcb,_0x6ff28a){_0x6ff28a||(_0x6ff28a=_0x4cfcb[_0x4976('0x12')]);const _0x3c9adb=new _0x281e99(this['context'][_0x4976('0x18')]);this[_0x4976('0x1c')][_0x4976('0xf')](_0x3c9adb,_0x4cfcb),this[_0x4976('0x29')][_0x4976('0xf')](_0x4cfcb,_0x3c9adb),_0x3c9adb['content']['add'](_0x6ff28a),this['_alignToTargetRect'](_0x3c9adb),this[_0x4976('0x35')](_0x4cfcb[_0x4976('0x12')],_0x4976('0x15'),()=>{const _0x3c652e=this['_getTargetTop'](_0x3c9adb);_0x3c9adb[_0x4976('0x2c')]!=_0x3c652e&&(_0x3c9adb['_targetTop']=_0x3c652e,this[_0x4976('0x26')](_0x3c9adb,_0x3c652e));}),this[_0x4976('0x35')](_0x3c9adb,_0x4976('0x2a'),_0x48c204(()=>{if(!_0x3c9adb[_0x4976('0x27')][_0x4976('0x36')])return;const _0x5ad492=this['_getItemBefore'](_0x3c9adb);if(!_0x5ad492)return;const _0x43bf48=this['_sidebarItemViewToAnnotation'][_0x4976('0x31')](_0x5ad492),_0x16e11c=this[_0x4976('0xa')];_0x16e11c&&_0x16e11c===_0x43bf48?this[_0x4976('0x37')](_0x5ad492,_0x3c9adb):this['_alignBeforeItem'](_0x3c9adb,_0x5ad492);},0xa,{'leading':!0x1})),this[_0x4976('0x35')](_0x3c9adb,_0x4976('0x1'),_0x48c204(()=>{if(!_0x3c9adb[_0x4976('0x27')][_0x4976('0x36')])return;const _0x287af0=this[_0x4976('0x34')](_0x3c9adb);if(!_0x287af0)return;const _0x3f903e=this[_0x4976('0x1c')][_0x4976('0x31')](_0x287af0),_0xa0b232=this[_0x4976('0x8')][_0x4976('0x43')][_0x4976('0x31')](_0x4976('0x30')),_0x42d658=this[_0x4976('0xa')];_0x42d658&&_0x42d658===_0x3f903e&&_0xa0b232?(this[_0x4976('0x1e')](_0x287af0,_0x3c9adb),this[_0x4976('0x37')](_0x3c9adb,_0x287af0)):_0x42d658&&_0x42d658===_0x3f903e?this[_0x4976('0x1e')](_0x287af0,_0x3c9adb):this[_0x4976('0x37')](_0x3c9adb,_0x287af0);},0xa,{'leading':!0x1}));const _0x497efe=this[_0x4976('0x13')](_0x3c9adb);if(_0x497efe)this[_0x4976('0x37')](_0x497efe,_0x3c9adb)||this[_0x4976('0x1f')](_0x3c9adb);else this[_0x4976('0x1f')](_0x3c9adb);return this['_updateLastItem'](),this[_0x4976('0x12')][_0x4976('0xb')][_0x4976('0x3e')](_0x3c9adb),_0x3c9adb;}[_0x4976('0x28')](_0x55050d){return this['_annotationToSidebarItemView'][_0x4976('0x31')](_0x55050d);}[_0x4976('0xd')](){this[_0x4976('0x12')][_0x4976('0xd')]();}[_0x4976('0x7')](_0x148ff4){const _0xc581cb=this[_0x4976('0x28')](_0x148ff4);this[_0x4976('0x33')](_0xc581cb),this[_0x4976('0x33')](_0x148ff4[_0x4976('0x12')]),_0xc581cb[_0x4976('0xd')](),this[_0x4976('0x29')][_0x4976('0x2b')](_0x148ff4),this[_0x4976('0x1c')][_0x4976('0x2b')](_0xc581cb);}[_0x4976('0x6')](){const _0x5b16c5=new _0x25ef68(this[_0x4976('0x8')][_0x4976('0x18')]);return _0x5b16c5[_0x4976('0x1a')](),this['on'](_0x4976('0x2'),(_0x50a826,_0x5a9f7f,_0x209f7f,_0x4601ac)=>{_0x4601ac&&_0x5b16c5[_0x4976('0x32')](_0x4976('0x39')),_0x209f7f?_0x5b16c5['bind'](_0x4976('0x39'))['to'](_0x209f7f,_0x4976('0x19')):_0x5b16c5['minHeight']=null;}),_0x5b16c5;}[_0x4976('0x10')](){this[_0x4976('0x4')]=this[_0x4976('0x28')](this[_0x4976('0x3b')][_0x4976('0xe')]);}[_0x4976('0x13')](_0x14806a){const _0x2227e6=this[_0x4976('0x1c')]['get'](_0x14806a),_0x1013cd=this['_annotations'][_0x4976('0x31')](this[_0x4976('0x3b')][_0x4976('0x20')](_0x2227e6)-0x1);return _0x1013cd&&this[_0x4976('0x28')](_0x1013cd);}[_0x4976('0x34')](_0x21d665){const _0x5d5537=this[_0x4976('0x1c')]['get'](_0x21d665),_0x21c82d=this[_0x4976('0x3b')]['get'](this[_0x4976('0x3b')][_0x4976('0x20')](_0x5d5537)+0x1);return _0x21c82d&&this[_0x4976('0x28')](_0x21c82d);}[_0x4976('0x1e')](_0x1f646f,_0x2c1d98){_0x1f646f[_0x4976('0x24')]();const _0x584ca9=V(_0x2c1d98['bottom']+this[_0x4976('0x2f')],_0x1f646f[_0x4976('0x23')]);return!!_0x584ca9&&(this['_setItemTop'](_0x2c1d98,_0x2c1d98[_0x4976('0x23')]-_0x584ca9),!0x0);}[_0x4976('0x37')](_0x3fdbce,_0x5e2cc3){_0x3fdbce['updateHeight']();const _0x57b8e2=V(_0x3fdbce[_0x4976('0x19')]+this[_0x4976('0x2f')],_0x5e2cc3['top']);return!!_0x57b8e2&&(this[_0x4976('0x26')](_0x5e2cc3,_0x5e2cc3[_0x4976('0x23')]+_0x57b8e2,!0x1),!0x0);}[_0x4976('0x1f')](_0x13ad97){const _0x5ebbff=this[_0x4976('0x1c')][_0x4976('0x31')](_0x13ad97);if(!_0x5ebbff||!_0x5ebbff[_0x4976('0x16')])return;const _0x3cd66e=this['_getTargetTop'](_0x13ad97);this[_0x4976('0x26')](_0x13ad97,_0x3cd66e);}[_0x4976('0x3d')](_0x32b0af){const _0x3f91ac=this[_0x4976('0x1c')][_0x4976('0x31')](_0x32b0af);if(_0x3f91ac[_0x4976('0x16')]instanceof _0x3c4a5b)return _0x3f91ac[_0x4976('0x2d')][_0x4976('0x23')];{const _0xe534e2=new _0x3c4a5b(this[_0x4976('0x12')][_0x4976('0x25')])[_0x4976('0x23')];return _0x3f91ac[_0x4976('0x2d')][_0x4976('0x23')]-_0xe534e2;}}[_0x4976('0x26')](_0x57dc6a,_0x5dee33,_0x1e8b03=this['context']['config'][_0x4976('0x31')](_0x4976('0x30'))){_0x1e8b03&&(_0x5dee33=Math[_0x4976('0x42')](_0x5dee33,this[_0x4976('0x22')](_0x57dc6a))),_0x57dc6a[_0x4976('0x23')]=_0x5dee33;}['_getMaxAvailableTop'](_0x5db9ec){let _0x2a50d5=this[_0x4976('0x13')](_0x5db9ec),_0x242fd1=0x0;for(;_0x2a50d5;)_0x2a50d5[_0x4976('0x24')](),_0x242fd1+=this[_0x4976('0x2f')]+_0x2a50d5[_0x4976('0x3c')],_0x2a50d5=this[_0x4976('0x13')](_0x2a50d5);return _0x242fd1;}}function V(_0x22a71f,_0x2d7386){return Math[_0x4976('0x42')](_0x22a71f-_0x2d7386,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2284=['add','children','extendTemplate','isDirty','set','ck-annotation-counter__badge--edit-mode','number','ck-annotation-counter','ck-annotation-counter__badge--','bind','_badge','ck-annotation-counter__badge','icon','annotationType','span','counterView','setTemplate'];(function(_0x9fadf8,_0x2284a2){const _0x21ed7f=function(_0x509db0){while(--_0x509db0){_0x9fadf8['push'](_0x9fadf8['shift']());}};_0x21ed7f(++_0x2284a2);}(_0x2284,0x8d));const _0x21ed=function(_0x9fadf8,_0x2284a2){_0x9fadf8=_0x9fadf8-0x0;let _0x21ed7f=_0x2284[_0x9fadf8];return _0x21ed7f;};import{ButtonView as _0x227312,View as _0xe691c3}from'ckeditor5/src/ui';import _0x1bf8aa from'../../../theme/icons/add-comment-inverted.svg';export default class _ extends _0x227312{constructor(_0x19f765){super(_0x19f765);const _0x450d74=this['bindTemplate'];this['set']('isDirty',!0x1),this[_0x21ed('0x10')](_0x21ed('0x1'),0x0),this[_0x21ed('0x4')]('_badge')['to'](this,_0x21ed('0xf'),this,_0x21ed('0x1'),(_0x26afcb,_0x44c3f0)=>_0x26afcb?'...':_0x44c3f0),this[_0x21ed('0x10')](_0x21ed('0x8'),''),this[_0x21ed('0x7')]=_0x1bf8aa,this[_0x21ed('0xe')]({'attributes':{'class':[_0x21ed('0x2')]}}),this[_0x21ed('0xa')]=new _0xe691c3(),this[_0x21ed('0xa')][_0x21ed('0xb')]({'tag':_0x21ed('0x9'),'attributes':{'class':[_0x21ed('0x6'),_0x450d74['to'](_0x21ed('0x8'),_0x2c8743=>_0x21ed('0x3')+_0x2c8743),_0x450d74['if'](_0x21ed('0xf'),_0x21ed('0x0'))]},'children':[{'text':_0x450d74['to'](_0x21ed('0x5'))}]}),this[_0x21ed('0xd')][_0x21ed('0xc')](this[_0x21ed('0xa')]);}}
23
+ const _0x5dca=['children','add','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','extendTemplate','bind','set','...','setTemplate','annotationType','isDirty','number','ck-annotation-counter__badge','ck-annotation-counter','counterView','_badge','icon'];(function(_0x20caaf,_0x5dca08){const _0x357fc2=function(_0x4919f6){while(--_0x4919f6){_0x20caaf['push'](_0x20caaf['shift']());}};_0x357fc2(++_0x5dca08);}(_0x5dca,0x6c));const _0x357f=function(_0x20caaf,_0x5dca08){_0x20caaf=_0x20caaf-0x0;let _0x357fc2=_0x5dca[_0x20caaf];return _0x357fc2;};import{ButtonView as _0x3a618a,View as _0x52f71b}from'ckeditor5/src/ui';import _0x3a46ba from'../../../theme/icons/add-comment.svg';export default class _ extends _0x3a618a{constructor(_0x56d5f9){super(_0x56d5f9);const _0x38e6eb=this['bindTemplate'];this[_0x357f('0x0')](_0x357f('0x4'),!0x1),this[_0x357f('0x0')](_0x357f('0x5'),0x0),this[_0x357f('0x10')](_0x357f('0x9'))['to'](this,'isDirty',this,_0x357f('0x5'),(_0xe26bba,_0x4c5391)=>_0xe26bba?_0x357f('0x1'):_0x4c5391),this['set'](_0x357f('0x3'),''),this[_0x357f('0xa')]=_0x3a46ba,this[_0x357f('0xf')]({'attributes':{'class':[_0x357f('0x7')]}}),this[_0x357f('0x8')]=new _0x52f71b(),this[_0x357f('0x8')][_0x357f('0x2')]({'tag':'span','attributes':{'class':[_0x357f('0x6'),_0x38e6eb['to']('annotationType',_0x12a731=>_0x357f('0xd')+_0x12a731),_0x38e6eb['if'](_0x357f('0x4'),_0x357f('0xe'))]},'children':[{'text':_0x38e6eb['to'](_0x357f('0x9'))}]}),this[_0x357f('0xb')][_0x357f('0xc')](this[_0x357f('0x8')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b6d=['setTemplate','ck-rounded-corners','div','length','bindTemplate','fire','_updateHeight','set','render','detach','mainView','_mutationObserver','clientHeight','ck-annotation-wrapper','attach','isDirty','isActive','focus','focusTracker','destroy','content','type','height','createCollection','keystrokes','add','targetRect','listenTo','ck-annotation-wrapper--active','Esc','element'];(function(_0x2e3d51,_0x1b6d2f){const _0x47dc4e=function(_0x473b28){while(--_0x473b28){_0x2e3d51['push'](_0x2e3d51['shift']());}};_0x47dc4e(++_0x1b6d2f);}(_0x1b6d,0x126));const _0x47dc=function(_0x2e3d51,_0x1b6d2f){_0x2e3d51=_0x2e3d51-0x0;let _0x47dc4e=_0x1b6d[_0x2e3d51];return _0x47dc4e;};import{View as _0x214b9d}from'ckeditor5/src/ui';import{FocusTracker as _0x26bfab,KeystrokeHandler as _0x881539,uid as _0x3ab2d5}from'ckeditor5/src/utils';import _0xe6c755 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0x214b9d{constructor(_0x29d04a,_0x6e4492){super(_0x29d04a),this['id']=_0x3ab2d5(),this[_0x47dc('0x3')]=new _0x26bfab(),this['keystrokes']=new _0x881539(),this['keystrokes'][_0x47dc('0x17')](_0x47dc('0xe'),(_0x2cdc4b,_0x181861)=>this[_0x47dc('0x15')](_0x47dc('0xe'),_0x181861)),this[_0x47dc('0x17')](_0x47dc('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x47dc('0x17')](_0x47dc('0x7'),0x0),this[_0x47dc('0x17')](_0x47dc('0x1'),!0x1),this['set'](_0x47dc('0x0'),!0x1),this[_0x47dc('0x17')](_0x47dc('0x13'),0x0),this[_0x47dc('0x17')](_0x47dc('0x6'),''),this[_0x47dc('0x1b')]=_0xe6c755(()=>this[_0x47dc('0x16')]()),this[_0x47dc('0x5')]=this[_0x47dc('0x8')](),this[_0x47dc('0x5')][_0x47dc('0xa')](_0x6e4492),this[_0x47dc('0x1a')]=_0x6e4492;const _0x33b72b=this[_0x47dc('0x14')];this[_0x47dc('0x10')]({'tag':_0x47dc('0x12'),'attributes':{'class':['ck',_0x47dc('0x1d'),_0x47dc('0x11'),_0x33b72b['if'](_0x47dc('0x1'),_0x47dc('0xd'))],'tabindex':-0x1},'children':this[_0x47dc('0x5')]});}[_0x47dc('0x18')](){super[_0x47dc('0x18')](),this[_0x47dc('0x3')][_0x47dc('0xa')](this[_0x47dc('0xf')]),this[_0x47dc('0x9')][_0x47dc('0xc')](this[_0x47dc('0xf')]),this['_mutationObserver'][_0x47dc('0x1e')](this['element']);}['destroy'](){this[_0x47dc('0x5')]['clear'](),this[_0x47dc('0x9')][_0x47dc('0x4')](),this[_0x47dc('0x3')][_0x47dc('0x4')](),this[_0x47dc('0x1b')][_0x47dc('0x19')](),super[_0x47dc('0x4')]();}[_0x47dc('0x2')](){this['element'][_0x47dc('0x2')]();}['_updateHeight'](){const _0x56c52a=this[_0x47dc('0xf')][_0x47dc('0x1c')];_0x56c52a&&(this[_0x47dc('0x7')]=_0x56c52a);}}
23
+ const _0x194b=['isDirty','isActive','Esc','focus','createCollection','destroy','fire','element','ck-annotation-wrapper--active','listenTo','div','detach','height','focusTracker','content','mainView','set','ck-annotation-wrapper','keystrokes','_updateHeight','type','ck-rounded-corners','add','bindTemplate','_mutationObserver'];(function(_0x29ebd8,_0x194b94){const _0xaf56b3=function(_0x549092){while(--_0x549092){_0x29ebd8['push'](_0x29ebd8['shift']());}};_0xaf56b3(++_0x194b94);}(_0x194b,0x114));const _0xaf56=function(_0x29ebd8,_0x194b94){_0x29ebd8=_0x29ebd8-0x0;let _0xaf56b3=_0x194b[_0x29ebd8];return _0xaf56b3;};import{View as _0xe83d0c}from'ckeditor5/src/ui';import{FocusTracker as _0x57acca,KeystrokeHandler as _0x4ea42d,uid as _0x42579e}from'ckeditor5/src/utils';import _0x2e9b26 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0xe83d0c{constructor(_0x50e1a5,_0x44feee){super(_0x50e1a5),this['id']=_0x42579e(),this[_0xaf56('0xc')]=new _0x57acca(),this[_0xaf56('0x11')]=new _0x4ea42d(),this['keystrokes']['set'](_0xaf56('0x1'),(_0x43336a,_0x3a54f0)=>this[_0xaf56('0x5')](_0xaf56('0x1'),_0x3a54f0)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xaf56('0xf')](_0xaf56('0xb'),0x0),this['set'](_0xaf56('0x0'),!0x1),this[_0xaf56('0xf')](_0xaf56('0x18'),!0x1),this[_0xaf56('0xf')]('length',0x0),this['set'](_0xaf56('0x13'),''),this[_0xaf56('0x17')]=_0x2e9b26(()=>this[_0xaf56('0x12')]()),this[_0xaf56('0xd')]=this[_0xaf56('0x3')](),this[_0xaf56('0xd')][_0xaf56('0x15')](_0x44feee),this[_0xaf56('0xe')]=_0x44feee;const _0x152cd8=this[_0xaf56('0x16')];this['setTemplate']({'tag':_0xaf56('0x9'),'attributes':{'class':['ck',_0xaf56('0x10'),_0xaf56('0x14'),_0x152cd8['if'](_0xaf56('0x0'),_0xaf56('0x7'))],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this['focusTracker'][_0xaf56('0x15')](this[_0xaf56('0x6')]),this[_0xaf56('0x11')][_0xaf56('0x8')](this[_0xaf56('0x6')]),this[_0xaf56('0x17')]['attach'](this[_0xaf56('0x6')]);}[_0xaf56('0x4')](){this['content']['clear'](),this[_0xaf56('0x11')][_0xaf56('0x4')](),this[_0xaf56('0xc')][_0xaf56('0x4')](),this[_0xaf56('0x17')][_0xaf56('0xa')](),super[_0xaf56('0x4')]();}['focus'](){this[_0xaf56('0x6')][_0xaf56('0x2')]();}[_0xaf56('0x12')](){const _0x1289cd=this['element']['clientHeight'];_0x1289cd&&(this[_0xaf56('0xb')]=_0x1289cd);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47a7=['top','bottom','content','isAnimationDisabled','detach','bindTemplate','set','_mutationObserver','destroy','div','ck-sidebar-item--no-animation','updateHeight','_targetTop','height','setTemplate','createCollection','element','render','clear','attach','clientHeight'];(function(_0x4e89c6,_0x47a7f8){const _0x4ad3f6=function(_0x1516d5){while(--_0x1516d5){_0x4e89c6['push'](_0x4e89c6['shift']());}};_0x4ad3f6(++_0x47a7f8);}(_0x47a7,0x1ae));const _0x4ad3=function(_0x4e89c6,_0x47a7f8){_0x4e89c6=_0x4e89c6-0x0;let _0x4ad3f6=_0x47a7[_0x4e89c6];return _0x4ad3f6;};import{View as _0x3e7b20}from'ckeditor5/src/ui';import{toUnit as _0x3930cf}from'ckeditor5/src/utils';import _0x381687 from'../../utils/createmutationobserver';const gt=_0x3930cf('px');export default class T extends _0x3e7b20{constructor(_0x3044f2){super(_0x3044f2),this[_0x4ad3('0x11')](_0x4ad3('0xb')),this['set']('height',0x0),this['bind'](_0x4ad3('0xc'))['to'](this,'top',this,_0x4ad3('0x3'),(_0x80aab9,_0x48ec80)=>(_0x80aab9||0x0)+_0x48ec80),this[_0x4ad3('0x11')]('isAnimationDisabled',!0x1),this[_0x4ad3('0x12')]=_0x381687(()=>this[_0x4ad3('0x1')]()),this[_0x4ad3('0x2')]=null,this[_0x4ad3('0xd')]=this[_0x4ad3('0x5')]();const _0x45b5eb=this[_0x4ad3('0x10')];this[_0x4ad3('0x4')]({'tag':_0x4ad3('0x14'),'attributes':{'class':['ck-sidebar-item',_0x45b5eb['to'](_0x4ad3('0xe'),_0x10507b=>_0x10507b?_0x4ad3('0x0'):'')],'style':{'top':_0x45b5eb['to'](_0x4ad3('0xb'),gt)}},'children':this[_0x4ad3('0xd')]});}[_0x4ad3('0x7')](){super[_0x4ad3('0x7')](),this['_mutationObserver'][_0x4ad3('0x9')](this[_0x4ad3('0x6')]);}[_0x4ad3('0x1')](){const _0x24464f=this[_0x4ad3('0x6')][_0x4ad3('0xa')];_0x24464f&&(this['height']=_0x24464f);}[_0x4ad3('0x13')](){this['content'][_0x4ad3('0x8')](),this[_0x4ad3('0x12')][_0x4ad3('0xf')](),super[_0x4ad3('0x13')]();}}
23
+ const _0x1c57=['_mutationObserver','ck-sidebar-item--no-animation','attach','clientHeight','set','isAnimationDisabled','content','top','_targetTop','height','setTemplate','ck-sidebar-item','destroy','bottom','updateHeight','detach','element','createCollection'];(function(_0x401601,_0x1c5796){const _0x3fb10c=function(_0x5a1813){while(--_0x5a1813){_0x401601['push'](_0x401601['shift']());}};_0x3fb10c(++_0x1c5796);}(_0x1c57,0x171));const _0x3fb1=function(_0x401601,_0x1c5796){_0x401601=_0x401601-0x0;let _0x3fb10c=_0x1c57[_0x401601];return _0x3fb10c;};import{View as _0x182ab6}from'ckeditor5/src/ui';import{toUnit as _0x1a85f7}from'ckeditor5/src/utils';import _0x3b9e2a from'../../utils/createmutationobserver';const gt=_0x1a85f7('px');export default class T extends _0x182ab6{constructor(_0x52c3bf){super(_0x52c3bf),this[_0x3fb1('0xd')](_0x3fb1('0x10')),this[_0x3fb1('0xd')]('height',0x0),this['bind'](_0x3fb1('0x4'))['to'](this,'top',this,'height',(_0x101f0b,_0x94dc9c)=>(_0x101f0b||0x0)+_0x94dc9c),this[_0x3fb1('0xd')](_0x3fb1('0xe'),!0x1),this[_0x3fb1('0x9')]=_0x3b9e2a(()=>this[_0x3fb1('0x5')]()),this[_0x3fb1('0x11')]=null,this[_0x3fb1('0xf')]=this[_0x3fb1('0x8')]();const _0x33158c=this['bindTemplate'];this[_0x3fb1('0x1')]({'tag':'div','attributes':{'class':[_0x3fb1('0x2'),_0x33158c['to']('isAnimationDisabled',_0x302191=>_0x302191?_0x3fb1('0xa'):'')],'style':{'top':_0x33158c['to']('top',gt)}},'children':this[_0x3fb1('0xf')]});}['render'](){super['render'](),this[_0x3fb1('0x9')][_0x3fb1('0xb')](this[_0x3fb1('0x7')]);}[_0x3fb1('0x5')](){const _0x54d507=this['element'][_0x3fb1('0xc')];_0x54d507&&(this[_0x3fb1('0x0')]=_0x54d507);}['destroy'](){this['content']['clear'](),this[_0x3fb1('0x9')][_0x3fb1('0x6')](),super[_0x3fb1('0x3')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5424=['set','div','list','class','minHeight','ck-sidebar','ck-reset','createCollection'];(function(_0x32ed09,_0x5424d0){const _0x3792ac=function(_0x1e3025){while(--_0x1e3025){_0x32ed09['push'](_0x32ed09['shift']());}};_0x3792ac(++_0x5424d0);}(_0x5424,0x13a));const _0x3792=function(_0x32ed09,_0x5424d0){_0x32ed09=_0x32ed09-0x0;let _0x3792ac=_0x5424[_0x32ed09];return _0x3792ac;};import{View as _0x1633c3}from'ckeditor5/src/ui';import{toUnit as _0x491acb}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x491acb('px');export default class O extends _0x1633c3{constructor(_0x2d216e){super(_0x2d216e);const _0x2fd75e=this['bindTemplate'];this['set'](_0x3792('0x2'),0x0),this[_0x3792('0x6')](_0x3792('0x1'),''),this['list']=this[_0x3792('0x5')](),this['setTemplate']({'tag':_0x3792('0x7'),'attributes':{'class':['ck',_0x3792('0x3'),_0x3792('0x4'),_0x2fd75e['to'](_0x3792('0x1'))],'style':{'minHeight':_0x2fd75e['to'](_0x3792('0x2'),_0x16ce40=>_0x16ce40?gt(_0x16ce40+0xa):null)}},'children':this[_0x3792('0x0')]});}}
23
+ const _0x3054=['list','setTemplate','class','ck-sidebar','minHeight','createCollection','set'];(function(_0x1fd717,_0x3054fd){const _0x4d500f=function(_0x122e63){while(--_0x122e63){_0x1fd717['push'](_0x1fd717['shift']());}};_0x4d500f(++_0x3054fd);}(_0x3054,0xe9));const _0x4d50=function(_0x1fd717,_0x3054fd){_0x1fd717=_0x1fd717-0x0;let _0x4d500f=_0x3054[_0x1fd717];return _0x4d500f;};import{View as _0x30a341}from'ckeditor5/src/ui';import{toUnit as _0x3a8ae1}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x3a8ae1('px');export default class O extends _0x30a341{constructor(_0x593312){super(_0x593312);const _0x56f029=this['bindTemplate'];this[_0x4d50('0x4')]('minHeight',0x0),this['set']('class',''),this[_0x4d50('0x5')]=this[_0x4d50('0x3')](),this[_0x4d50('0x6')]({'tag':'div','attributes':{'class':['ck',_0x4d50('0x1'),'ck-reset',_0x56f029['to'](_0x4d50('0x0'))],'style':{'minHeight':_0x56f029['to'](_0x4d50('0x2'),_0x426f9c=>_0x426f9c?gt(_0x426f9c+0xa):null)}},'children':this['list']});}}