@ckeditor/ckeditor5-comments 29.2.0 → 32.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 (88) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/translations/bs.po +80 -0
  4. package/lang/translations/cs.po +1 -1
  5. package/lang/translations/da.po +79 -0
  6. package/lang/translations/de-ch.po +1 -1
  7. package/lang/translations/de.po +1 -1
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/en.po +1 -1
  10. package/lang/translations/es.po +1 -1
  11. package/lang/translations/et.po +1 -1
  12. package/lang/translations/fr.po +1 -1
  13. package/lang/translations/gl.po +1 -1
  14. package/lang/translations/hi.po +1 -1
  15. package/lang/translations/hr.po +1 -1
  16. package/lang/translations/hu.po +1 -1
  17. package/lang/translations/id.po +78 -0
  18. package/lang/translations/it.po +1 -1
  19. package/lang/translations/ja.po +1 -1
  20. package/lang/translations/ko.po +1 -1
  21. package/lang/translations/nl.po +1 -1
  22. package/lang/translations/no.po +1 -1
  23. package/lang/translations/pl.po +1 -1
  24. package/lang/translations/pt-br.po +1 -1
  25. package/lang/translations/ro.po +1 -1
  26. package/lang/translations/ru.po +1 -1
  27. package/lang/translations/sk.po +1 -1
  28. package/lang/translations/sr-latn.po +1 -1
  29. package/lang/translations/sr.po +1 -1
  30. package/lang/translations/tk.po +1 -1
  31. package/lang/translations/tr.po +1 -1
  32. package/lang/translations/ug.po +1 -1
  33. package/lang/translations/uk.po +1 -1
  34. package/lang/translations/zh-cn.po +1 -1
  35. package/lang/translations/zh.po +1 -1
  36. package/package.json +8 -8
  37. package/src/annotations/annotation.js +2 -2
  38. package/src/annotations/annotationcollection.js +2 -2
  39. package/src/annotations/annotations.js +2 -2
  40. package/src/annotations/annotationsuis.js +2 -2
  41. package/src/annotations/editorannotations.js +2 -2
  42. package/src/annotations/inlineannotations.js +2 -2
  43. package/src/annotations/narrowsidebar.js +2 -2
  44. package/src/annotations/sidebar.js +2 -2
  45. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  46. package/src/annotations/view/annotationview.js +2 -2
  47. package/src/annotations/view/sidebaritemview.js +2 -2
  48. package/src/annotations/view/sidebarview.js +2 -2
  49. package/src/annotations/widesidebar.js +2 -2
  50. package/src/comments/addcommentthreadcommand.js +2 -2
  51. package/src/comments/commentsediting.js +2 -2
  52. package/src/comments/commentsrepository.js +2 -2
  53. package/src/comments/commentsui.js +2 -2
  54. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  55. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  56. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  57. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  58. package/src/comments/ui/commentthreadcontroller.js +2 -2
  59. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  60. package/src/comments/ui/view/basecommentview.js +2 -2
  61. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  62. package/src/comments/ui/view/commentcontentview.js +2 -2
  63. package/src/comments/ui/view/commentinputview.js +2 -2
  64. package/src/comments/ui/view/commentslistview.js +2 -2
  65. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  66. package/src/comments/ui/view/commentthreadview.js +2 -2
  67. package/src/comments/ui/view/commentview.js +2 -2
  68. package/src/comments/ui/view/confirmmixin.js +2 -2
  69. package/src/comments/ui/view/confirmview.js +2 -2
  70. package/src/comments.js +2 -2
  71. package/src/commentsonly.js +2 -2
  72. package/src/utils/common-translations.js +2 -2
  73. package/src/utils/createmutationobserver.js +2 -2
  74. package/src/utils/getdatetimeformatter.js +2 -2
  75. package/src/utils/getmarkerdomelement.js +2 -2
  76. package/src/utils/trim-html.js +2 -2
  77. package/theme/annotation-inline.css +1 -1
  78. package/theme/annotation.css +1 -1
  79. package/theme/comment.css +1 -1
  80. package/theme/commentinput.css +1 -1
  81. package/theme/commentmarker.css +1 -1
  82. package/theme/commentthread.css +1 -1
  83. package/theme/icons/add-comment.svg +2 -2
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +3 -3
  87. package/theme/sidebar.css +1 -1
  88. package/theme/icons/add-comment-inverted.svg +0 -11
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d33=['_addActiveAnnotation','_removeActiveAnnotation','Annotations','_activateAnnotation','collection','remove','getByInnerView','_deactivateAllAnnotations','set','destroy','activeAnnotations','pluginName','deactivateAll','add'];(function(_0x562261,_0x3d3359){const _0x4616a4=function(_0xd7d239){while(--_0xd7d239){_0x562261['push'](_0x562261['shift']());}};_0x4616a4(++_0x3d3359);}(_0x3d33,0x1ce));const _0x4616=function(_0x562261,_0x3d3359){_0x562261=_0x562261-0x0;let _0x4616a4=_0x3d33[_0x562261];return _0x4616a4;};import{ContextPlugin as _0xffc1ad}from'ckeditor5/src/core';import _0x2e90d1 from'./annotationcollection';export default class v extends _0xffc1ad{static get[_0x4616('0xb')](){return _0x4616('0x2');}constructor(_0x2099f3){super(_0x2099f3),this['collection']=new _0x2e90d1(),this[_0x4616('0x8')](_0x4616('0xa'),new Set());}[_0x4616('0xd')](_0x416f5d){this['collection'][_0x4616('0xd')](_0x416f5d);}[_0x4616('0x5')](_0x387707){this[_0x4616('0x4')][_0x4616('0x5')](_0x387707),_0x387707[_0x4616('0x9')]();}[_0x4616('0x6')](_0x116e56){return this['collection'][_0x4616('0x6')](_0x116e56);}[_0x4616('0xc')](){this['fire'](_0x4616('0x7'));}['destroy'](){for(const _0x10d923 of this[_0x4616('0x4')])_0x10d923[_0x4616('0x9')]();super[_0x4616('0x9')]();}['activate'](_0x381dae){this['fire'](_0x4616('0x3'),_0x381dae);}[_0x4616('0x0')](_0x4ba979){const _0x1d87f9=new Set(this[_0x4616('0xa')]);_0x1d87f9[_0x4616('0xd')](_0x4ba979),this[_0x4616('0xa')]=_0x1d87f9;}[_0x4616('0x1')](_0x258af1){const _0x34f935=new Set(this[_0x4616('0xa')]);_0x34f935['delete'](_0x258af1),this[_0x4616('0xa')]=_0x34f935;}}
23
+ const _0x387a=['stopListening','_deactivateAllAnnotations','isVisible','refreshVisibility','Annotations','activate','_activateAnnotation','has','add','listenTo','change:isVisible','activeAnnotations','collection','source','pluginName','getByInnerView','_visibleAnnotations','destroy','_bindAnnotationsToVisibleAnnotations','remove','delete','_addActiveAnnotation','deactivateAll','refreshPositioning'];(function(_0x1d826a,_0x387a93){const _0x4d9dfb=function(_0x11c1b5){while(--_0x11c1b5){_0x1d826a['push'](_0x1d826a['shift']());}};_0x4d9dfb(++_0x387a93);}(_0x387a,0xe0));const _0x4d9d=function(_0x1d826a,_0x387a93){_0x1d826a=_0x1d826a-0x0;let _0x4d9dfb=_0x387a[_0x1d826a];return _0x4d9dfb;};import{ContextPlugin as _0x47cd74}from'ckeditor5/src/core';import _0x2cf3c9 from'./annotationcollection';export default class v extends _0x47cd74{static get[_0x4d9d('0x6')](){return _0x4d9d('0x14');}constructor(_0x2c5303){super(_0x2c5303),this[_0x4d9d('0x4')]=new _0x2cf3c9(),this[_0x4d9d('0x8')]=new _0x2cf3c9(),this['set'](_0x4d9d('0x3'),new Set()),this[_0x4d9d('0xa')]();}[_0x4d9d('0x0')](_0x2bfeba){this[_0x4d9d('0x4')][_0x4d9d('0x0')](_0x2bfeba);}[_0x4d9d('0xb')](_0x21a693){this['collection'][_0x4d9d('0xb')](_0x21a693),_0x21a693[_0x4d9d('0x9')]();}[_0x4d9d('0x13')](){for(const _0x41ba30 of this['collection'])_0x41ba30[_0x4d9d('0x13')]();}[_0x4d9d('0xf')](){this[_0x4d9d('0x8')]['refreshPositioning']();}[_0x4d9d('0x7')](_0x4e07dc){return this[_0x4d9d('0x4')][_0x4d9d('0x7')](_0x4e07dc);}[_0x4d9d('0xe')](){this['fire'](_0x4d9d('0x11'));}['destroy'](){for(const _0x20e9f5 of this[_0x4d9d('0x4')])_0x20e9f5['destroy']();this['_visibleAnnotations'][_0x4d9d('0x9')](),this[_0x4d9d('0x4')]['destroy'](),super[_0x4d9d('0x9')]();}[_0x4d9d('0x15')](_0x4c84f3){this['fire'](_0x4d9d('0x16'),_0x4c84f3);}[_0x4d9d('0xd')](_0xedf333){const _0x3a2bb7=new Set(this[_0x4d9d('0x3')]);_0x3a2bb7[_0x4d9d('0x0')](_0xedf333),this['activeAnnotations']=_0x3a2bb7;}['_removeActiveAnnotation'](_0x3c2624){const _0x1e893d=new Set(this['activeAnnotations']);_0x1e893d[_0x4d9d('0xc')](_0x3c2624),this[_0x4d9d('0x3')]=_0x1e893d;}[_0x4d9d('0xa')](){const _0x15c3a0=this[_0x4d9d('0x4')],_0x48f05c=this['_visibleAnnotations'];function _0x191d29(_0x226060){const _0x7f8814=_0x226060[_0x4d9d('0x5')];_0x7f8814[_0x4d9d('0x12')]&&!_0x48f05c[_0x4d9d('0x17')](_0x7f8814)?_0x48f05c['add'](_0x7f8814):!_0x7f8814[_0x4d9d('0x12')]&&_0x48f05c[_0x4d9d('0x17')](_0x7f8814)&&_0x48f05c[_0x4d9d('0xb')](_0x7f8814);}this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0x0'),(_0x16088b,_0x5da884)=>{_0x5da884['isVisible']&&_0x48f05c[_0x4d9d('0x0')](_0x5da884),this[_0x4d9d('0x1')](_0x5da884,_0x4d9d('0x2'),_0x191d29);}),this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0xb'),(_0x31eab0,_0x2846fe)=>{_0x48f05c['has'](_0x2846fe)&&_0x48f05c['remove'](_0x2846fe),this[_0x4d9d('0x10')](_0x2846fe,_0x4d9d('0x2'),_0x191d29);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfe80=['context','_assertAnnotationBelongsToSingleUI','isActive','detach','set','collection','activate','length','has','setActiveAnnotation','stopListening','add','pluginName','activeAnnotations','size','deactivate','_uisData','requires','_removeActiveAnnotation','push','get','_setSelectedAnnotations','delete','annotationsuis-register-already-registered','annotationsuis-activate-missing-ui','switchTo','deactivateAll','register','_activateAnnotation','function','activeUIs','hasActive','filter','_addActiveAnnotation','destroy','attach','change:activeAnnotation','_uis','listenTo','AnnotationsUIs','plugins','init'];(function(_0x1272d9,_0xfe8021){const _0x4ff7c2=function(_0x77184d){while(--_0x77184d){_0x1272d9['push'](_0x1272d9['shift']());}};_0x4ff7c2(++_0xfe8021);}(_0xfe80,0xb1));const _0x4ff7=function(_0x1272d9,_0xfe8021){_0x1272d9=_0x1272d9-0x0;let _0x4ff7c2=_0xfe80[_0x1272d9];return _0x4ff7c2;};import{ContextPlugin as _0x5cae26}from'ckeditor5/src/core';import{CKEditorError as _0x446b57}from'ckeditor5/src/utils';import _0x4d83c3,{bindAnnotationCollections as _0x5b9078}from'./annotationcollection';import _0x3ec636 from'./annotations';export default class I extends _0x5cae26{static get[_0x4ff7('0x8')](){return[_0x3ec636];}static get[_0x4ff7('0x3')](){return _0x4ff7('0x1e');}constructor(_0xf31ab4){super(_0xf31ab4),this['activeUIs']=new Set(),this[_0x4ff7('0x1c')]=new Map(),this['_uisData']=new Map();}[_0x4ff7('0x20')](){const _0x39460a=this['context'][_0x4ff7('0x1f')]['get'](_0x3ec636);this[_0x4ff7('0x1d')](_0x39460a,_0x4ff7('0x13'),(_0x134910,_0x5a9784)=>{for(const _0x426521 of this[_0x4ff7('0x15')]){const _0x325fda=this['_uis'][_0x4ff7('0xb')](_0x426521);(0x0,this['_uisData'][_0x4ff7('0xb')](_0x426521)[_0x4ff7('0x17')])(_0x5a9784)&&_0x325fda[_0x4ff7('0x0')](_0x5a9784);}}),this[_0x4ff7('0x1d')](_0x39460a,'_deactivateAllAnnotations',()=>{for(const _0x12ded7 of this['activeUIs']){this[_0x4ff7('0x1c')][_0x4ff7('0xb')](_0x12ded7)[_0x4ff7('0x0')](null);}}),this[_0x4ff7('0x1d')](_0x39460a[_0x4ff7('0x26')],'add',(_0x54ba97,_0xbb74c9)=>{this[_0x4ff7('0x22')](_0xbb74c9);});}[_0x4ff7('0x16')](){return this[_0x4ff7('0x15')][_0x4ff7('0x5')]>0x0;}[_0x4ff7('0x23')](_0x28f854){return this[_0x4ff7('0x15')]['has'](_0x28f854);}[_0x4ff7('0x27')](_0x458748,_0x1d5558=()=>!0x0){const _0x1309ef=this[_0x4ff7('0x21')][_0x4ff7('0x1f')][_0x4ff7('0xb')](_0x3ec636);if(!this[_0x4ff7('0x1c')][_0x4ff7('0x29')](_0x458748))throw new _0x446b57(_0x4ff7('0xf'),this,{'uiName':_0x458748});this[_0x4ff7('0x23')](_0x458748)&&this[_0x4ff7('0x6')](_0x458748),this[_0x4ff7('0x15')][_0x4ff7('0x2')](_0x458748);const _0x2de935=new _0x4d83c3(),_0x385a88=_0x1309ef[_0x4ff7('0x26')];_0x5b9078({'source':_0x385a88,'target':_0x2de935,'filter':_0x1d5558}),this[_0x4ff7('0x7')][_0x4ff7('0x25')](_0x458748,{'collection':_0x2de935,'filter':_0x1d5558});const _0x50b472=this[_0x4ff7('0x1c')][_0x4ff7('0xb')](_0x458748);_0x50b472['attach'](_0x2de935),this[_0x4ff7('0x1d')](_0x50b472,_0x4ff7('0x1b'),(_0x4bd234,_0x268b0f,_0x8cadf2,_0x18b96b)=>{_0x18b96b&&_0x1309ef[_0x4ff7('0x9')](_0x18b96b),_0x8cadf2&&_0x1309ef[_0x4ff7('0x18')](_0x8cadf2);});}[_0x4ff7('0x6')](_0x1936c2){this[_0x4ff7('0x15')]['delete'](_0x1936c2);const _0x39ee09=this[_0x4ff7('0x1c')][_0x4ff7('0xb')](_0x1936c2);_0x39ee09[_0x4ff7('0x24')](),this[_0x4ff7('0x1')](_0x39ee09),this[_0x4ff7('0x7')]['get'](_0x1936c2)[_0x4ff7('0x26')]['destroy'](),this[_0x4ff7('0x7')][_0x4ff7('0xd')](_0x1936c2);}[_0x4ff7('0x10')](_0x18f491){const _0xaf767d=this[_0x4ff7('0x21')][_0x4ff7('0x1f')][_0x4ff7('0xb')](_0x3ec636),_0x2b72ac=Array['from'](_0xaf767d[_0x4ff7('0x4')])[0x0]||null;this[_0x4ff7('0x11')](),this[_0x4ff7('0x27')](_0x18f491);const _0x3fa1e3=this[_0x4ff7('0x1c')][_0x4ff7('0xb')](_0x18f491);_0x3fa1e3[_0x4ff7('0x0')](_0x2b72ac),_0x3fa1e3[_0x4ff7('0xc')]&&_0x2b72ac&&_0x3fa1e3[_0x4ff7('0xc')]([_0x2b72ac]);}[_0x4ff7('0x11')](){for(const _0x1c0e71 of this[_0x4ff7('0x15')])this[_0x4ff7('0x6')](_0x1c0e71);}[_0x4ff7('0x12')](_0x51706d,_0x3d82fb){if(this['_uis']['has'](_0x51706d))throw new _0x446b57(_0x4ff7('0xe'));if(_0x4ff7('0x14')!=typeof _0x3d82fb[_0x4ff7('0x1a')]||_0x4ff7('0x14')!=typeof _0x3d82fb[_0x4ff7('0x24')]||_0x4ff7('0x14')!=typeof _0x3d82fb[_0x4ff7('0x0')])throw new _0x446b57('annotationsuis-register-invalid-interface',null);this[_0x4ff7('0x1c')][_0x4ff7('0x25')](_0x51706d,_0x3d82fb);}['destroy'](){this[_0x4ff7('0x11')](),super[_0x4ff7('0x19')]();}['_assertAnnotationBelongsToSingleUI'](_0x4705b1){const _0x4390eb=[];for(const _0x5952cc of this[_0x4ff7('0x15')]){(0x0,this[_0x4ff7('0x7')][_0x4ff7('0xb')](_0x5952cc)[_0x4ff7('0x17')])(_0x4705b1)&&_0x4390eb[_0x4ff7('0xa')](_0x5952cc);}if(0x1!==_0x4390eb[_0x4ff7('0x28')])throw new _0x446b57('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4390eb});}}
23
+ const _0x5b6e=['from','deactivateAll','add','isActive','collection','has','filter','annotationsuis-register-invalid-interface','destroy','set','push','annotationsuis-register-already-registered','type','context','plugins','annotationsuis-annotation-mismatch','activate','requires','listenTo','attach','activeAnnotations','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','_uisData','get','size','change:activeAnnotation','find','AnnotationsUIs','length','function','delete','_addActiveAnnotation','_uis','switchTo','setActiveAnnotation','detach','_setSelectedAnnotations','_activateAnnotation','deactivate','_visibleAnnotations','pluginName'];(function(_0x9aded0,_0x5b6e1b){const _0x1399fa=function(_0x295531){while(--_0x295531){_0x9aded0['push'](_0x9aded0['shift']());}};_0x1399fa(++_0x5b6e1b);}(_0x5b6e,0x8c));const _0x1399=function(_0x9aded0,_0x5b6e1b){_0x9aded0=_0x9aded0-0x0;let _0x1399fa=_0x5b6e[_0x9aded0];return _0x1399fa;};import{ContextPlugin as _0x19a17c}from'ckeditor5/src/core';import{CKEditorError as _0x38106e}from'ckeditor5/src/utils';import _0x19f427,{bindAnnotationCollections as _0x4eb783}from'./annotationcollection';import _0x285315 from'./annotations';export default class I extends _0x19a17c{static get[_0x1399('0x6')](){return[_0x285315];}static get[_0x1399('0x1f')](){return _0x1399('0x12');}constructor(_0x39e8f5){super(_0x39e8f5),this['activeUIs']=new Set(),this['_uis']=new Map(),this[_0x1399('0xd')]=new Map();}['init'](){const _0x334d52=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315);this[_0x1399('0x7')](_0x334d52,_0x1399('0x1c'),(_0x4448a2,_0x2415ed)=>{for(const _0x405fd8 of this[_0x1399('0xc')]){const _0x3bd9be=this['_uis'][_0x1399('0xe')](_0x405fd8);(0x0,this['_uisData'][_0x1399('0xe')](_0x405fd8)['filter'])(_0x2415ed)&&_0x3bd9be['setActiveAnnotation'](_0x2415ed);}}),this[_0x1399('0x7')](_0x334d52,'_deactivateAllAnnotations',()=>{for(const _0x3c8f80 of this[_0x1399('0xc')]){this[_0x1399('0x17')][_0x1399('0xe')](_0x3c8f80)['setActiveAnnotation'](null);}}),this['listenTo'](_0x334d52[_0x1399('0x1e')],'add',(_0x240b1d,_0x50101e)=>{this[_0x1399('0xb')](_0x50101e);});}[_0x1399('0xa')](){return this['activeUIs'][_0x1399('0xf')]>0x0;}[_0x1399('0x23')](_0x342495){return this['activeUIs']['has'](_0x342495);}[_0x1399('0x5')](_0x4436e4,_0x5057b4=()=>!0x0){const _0x561f4b=this[_0x1399('0x2')]['plugins'][_0x1399('0xe')](_0x285315);if(!this[_0x1399('0x17')][_0x1399('0x25')](_0x4436e4))throw new _0x38106e('annotationsuis-activate-missing-ui',this,{'uiName':_0x4436e4});this['isActive'](_0x4436e4)&&this['deactivate'](_0x4436e4),this[_0x1399('0xc')]['add'](_0x4436e4);const _0xe3ce5e=new _0x19f427(),_0x3a6746=_0x561f4b[_0x1399('0x1e')];_0x4eb783({'source':_0x3a6746,'target':_0xe3ce5e,'filter':_0x5057b4}),this[_0x1399('0xd')][_0x1399('0x29')](_0x4436e4,{'collection':_0xe3ce5e,'filter':_0x5057b4});const _0x484771=this[_0x1399('0x17')][_0x1399('0xe')](_0x4436e4);_0x484771[_0x1399('0x8')](_0xe3ce5e),this[_0x1399('0x7')](_0x484771,_0x1399('0x10'),(_0x295fd0,_0x504fe3,_0x4f2a4d,_0xec7f55)=>{_0xec7f55&&_0x561f4b['_removeActiveAnnotation'](_0xec7f55),_0x4f2a4d&&_0x561f4b[_0x1399('0x16')](_0x4f2a4d);});}['deactivate'](_0x1063b8){this[_0x1399('0xc')][_0x1399('0x15')](_0x1063b8);const _0x2361e6=this[_0x1399('0x17')]['get'](_0x1063b8);_0x2361e6[_0x1399('0x1a')](),this['stopListening'](_0x2361e6),this[_0x1399('0xd')][_0x1399('0xe')](_0x1063b8)[_0x1399('0x24')][_0x1399('0x28')](),this['_uisData'][_0x1399('0x15')](_0x1063b8);}[_0x1399('0x18')](_0x10bfc4){const _0x32369f=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315),_0x593d75=Array[_0x1399('0x20')](_0x32369f[_0x1399('0x9')])[0x0]||null;this['deactivateAll'](),this[_0x1399('0x5')](_0x10bfc4);const _0x17d9ef=this[_0x1399('0x17')]['get'](_0x10bfc4);_0x17d9ef[_0x1399('0x19')](_0x593d75),_0x17d9ef[_0x1399('0x1b')]&&_0x593d75&&_0x17d9ef[_0x1399('0x1b')]([_0x593d75]);}[_0x1399('0x21')](){for(const _0x1bfa92 of this[_0x1399('0xc')])this[_0x1399('0x1d')](_0x1bfa92);}['register'](_0x3bfea7,_0x2111f7){if(this[_0x1399('0x17')][_0x1399('0x25')](_0x3bfea7))throw new _0x38106e(_0x1399('0x0'));if(_0x1399('0x14')!=typeof _0x2111f7[_0x1399('0x8')]||_0x1399('0x14')!=typeof _0x2111f7['detach']||'function'!=typeof _0x2111f7[_0x1399('0x19')])throw new _0x38106e(_0x1399('0x27'),null);this[_0x1399('0x17')][_0x1399('0x29')](_0x3bfea7,_0x2111f7);}['refilterAnnotations'](){const _0x2bacc6=this[_0x1399('0x2')][_0x1399('0x3')]['get'](_0x285315)['collection'],_0x3a9497=new Map(),_0x67e443=Array[_0x1399('0x20')](this[_0x1399('0xc')]);for(const _0x230ce7 of this['activeUIs']){const _0x3e5f10=this[_0x1399('0xd')][_0x1399('0xe')](_0x230ce7)[_0x1399('0x24')];for(const _0x55113b of _0x3e5f10)_0x3a9497[_0x1399('0x29')](_0x55113b,_0x230ce7);}for(const _0x56f044 of _0x2bacc6){const _0x67c3a6=_0x3a9497['get'](_0x56f044);this[_0x1399('0xb')](_0x56f044);const _0x33ff1a=_0x67e443[_0x1399('0x11')](_0x2d0c4d=>this[_0x1399('0xd')]['get'](_0x2d0c4d)[_0x1399('0x26')](_0x56f044));_0x67c3a6!==_0x33ff1a&&(_0x67c3a6&&this[_0x1399('0xd')][_0x1399('0xe')](_0x67c3a6)[_0x1399('0x24')]['remove'](_0x56f044),_0x33ff1a&&this[_0x1399('0xd')]['get'](_0x33ff1a)[_0x1399('0x24')][_0x1399('0x22')](_0x56f044));}}[_0x1399('0x28')](){this[_0x1399('0x21')](),super[_0x1399('0x28')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xd14a90){const _0x291396=[];for(const _0x1b3b2e of this[_0x1399('0xc')]){(0x0,this[_0x1399('0xd')][_0x1399('0xe')](_0x1b3b2e)[_0x1399('0x26')])(_0xd14a90)&&_0x291396[_0x1399('0x2a')](_0x1b3b2e);}if(_0x291396[_0x1399('0x13')]>0x1)throw new _0x38106e(_0x1399('0x4'),null,{'matchedUIs':_0x291396,'annotationType':_0xd14a90[_0x1399('0x1')]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1471=['keys','collection','selection','hasDomSelection','fire','annotation','update','add','isCollapsed','sort','refresh','isEqual','from','document','model','listenTo','EditorAnnotations','_editorAnnotationsData','focusTracker','cancel','containsRange','remove','editorannotations-invalid-source-callback','getRanges','addSourceCollector','init','map','_dataCollectors','change:isFocused','refreshSelectedViews','has','function','range','innerView','get','push','editing','view','editor','getByInnerView','delete','directChange'];(function(_0x354295,_0x1471c4){const _0x33c9e8=function(_0x3b3421){while(--_0x3b3421){_0x354295['push'](_0x354295['shift']());}};_0x33c9e8(++_0x1471c4);}(_0x1471,0x143));const _0x33c9=function(_0x354295,_0x1471c4){_0x354295=_0x354295-0x0;let _0x33c9e8=_0x1471[_0x354295];return _0x33c9e8;};import{Plugin as _0x41c900}from'ckeditor5/src/core';import{CKEditorError as _0x41f17d}from'ckeditor5/src/utils';import{debounce as _0x154eda}from'lodash-es';import _0x2eec35 from'./annotations';export default class k extends _0x41c900{static get['requires'](){return[_0x2eec35];}static get['pluginName'](){return _0x33c9('0x1d');}constructor(_0x682f7c){super(_0x682f7c),this[_0x33c9('0x28')]=new Set();}[_0x33c9('0x26')](){const _0x90b9ca=this[_0x33c9('0x9')],_0x3622cb=_0x90b9ca['plugins'][_0x33c9('0x5')](_0x2eec35),_0x200c0b=_0x90b9ca[_0x33c9('0x1b')][_0x33c9('0x1a')][_0x33c9('0xf')],_0x507a74=_0x154eda(()=>this[_0x33c9('0x0')](),0xa);_0x200c0b['on']('change:range',(_0x4e6c70,_0x63b0b2)=>{_0x63b0b2[_0x33c9('0xc')]&&(_0x507a74[_0x33c9('0x20')](),this[_0x33c9('0x0')]());}),this[_0x33c9('0x1c')](_0x90b9ca['editing'][_0x33c9('0x8')]['document'],'change:isFocused',(_0x4ca58e,_0x47b04e,_0x407d1b)=>{_0x407d1b&&_0x507a74();}),this[_0x33c9('0x1c')](_0x90b9ca['ui'][_0x33c9('0x1f')],_0x33c9('0x29'),(_0x246b9f,_0x604ab8,_0x3f1513)=>{_0x3f1513||_0x90b9ca['isReadOnly']||this[_0x33c9('0x11')]('blur',{'isAnnotationTracked':_0x2a68a2=>this['_editorAnnotationsData'][_0x33c9('0x1')](_0x2a68a2[_0x33c9('0x4')])});}),this[_0x33c9('0x1c')](this[_0x33c9('0x9')]['ui'],_0x33c9('0x13'),()=>this[_0x33c9('0x11')]('uiUpdate'));const _0x574a9f=new Set();this[_0x33c9('0x1c')](_0x3622cb[_0x33c9('0xe')],_0x33c9('0x14'),(_0x9ddf28,_0xf458b0)=>{for(const _0x247b16 of this[_0x33c9('0x1e')][_0x33c9('0xd')]())if(_0x247b16===_0xf458b0[_0x33c9('0x4')]){_0x90b9ca['ui'][_0x33c9('0x1f')][_0x33c9('0x14')](_0xf458b0[_0x33c9('0x8')]['element']),_0x574a9f['add'](_0xf458b0[_0x33c9('0x8')]);break;}}),this['listenTo'](_0x3622cb[_0x33c9('0xe')],_0x33c9('0x22'),(_0x51b86c,_0x410941)=>{_0x574a9f[_0x33c9('0x1')](_0x410941['view'])&&(_0x90b9ca['ui'][_0x33c9('0x1f')][_0x33c9('0x22')](_0x410941[_0x33c9('0x8')]['element']),_0x574a9f[_0x33c9('0xb')](_0x410941[_0x33c9('0x8')]));});}[_0x33c9('0x10')](){return this[_0x33c9('0x9')][_0x33c9('0x7')][_0x33c9('0x8')][_0x33c9('0x10')];}[_0x33c9('0x25')](_0xcec9a0){if(_0x33c9('0x2')!=typeof _0xcec9a0)throw new _0x41f17d(_0x33c9('0x23'));this[_0x33c9('0x28')][_0x33c9('0x14')](_0xcec9a0);}[_0x33c9('0x0')](){this['fire'](_0x33c9('0x17'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x46c0fa,annotations:_0x910dd3}){const _0x4882f0=[],_0x4a8a1a=this['editor'][_0x33c9('0x1b')][_0x33c9('0x1a')][_0x33c9('0xf')],_0x224139=Array[_0x33c9('0x19')](_0x4a8a1a[_0x33c9('0x24')]());for(const [_0x1d23dc,_0x4e1603]of this['_editorAnnotationsData']){const _0x2f0039=_0x4dc5ad(_0x4e1603),_0xf5effb=_0x910dd3[_0x33c9('0xa')](_0x1d23dc);_0x2f0039&&_0xf5effb&&_0x4882f0[_0x33c9('0x6')]({'annotation':_0xf5effb,'range':_0x2f0039});}function _0x4dc5ad(_0x2a39b1){for(const _0x5f967d of _0x2a39b1)for(const _0x1d3c37 of _0x224139)if(_0x5f967d[_0x33c9('0x21')](_0x1d3c37,!_0x4a8a1a[_0x33c9('0x15')]))return _0x5f967d;return null;}return _0x4882f0[_0x33c9('0x16')]((_0xddf362,_0x269e05)=>{const _0x302b78=_0xddf362[_0x33c9('0x3')],_0x59c9b8=_0x269e05[_0x33c9('0x3')];if(!_0x302b78[_0x33c9('0x18')](_0x59c9b8)){if(_0x302b78[_0x33c9('0x21')](_0x59c9b8,!0x0))return 0x1;if(_0x59c9b8['containsRange'](_0x302b78,!0x0))return-0x1;}return _0xddf362['annotation']==_0x46c0fa?-0x1:_0x269e05[_0x33c9('0x12')]==_0x46c0fa?0x1:0x0;})[_0x33c9('0x27')](_0x401edd=>_0x401edd[_0x33c9('0x12')]);}get['_editorAnnotationsData'](){const _0x2108a7=new Map();for(const _0x215752 of Array[_0x33c9('0x19')](this[_0x33c9('0x28')]))for(const [_0x44aef8,_0x2bc005]of _0x215752())_0x2108a7['set'](_0x44aef8,_0x2bc005);return _0x2108a7;}}
23
+ const _0x7eca=['change:isFocused','view','getRanges','editor','selection','focusTracker','change:range','document','fire','add','innerView','from','uiUpdate','EditorAnnotations','element','isEqual','sort','getOrderedSelectedAnnotations','requires','plugins','blur','model','addSourceCollector','delete','set','map','isReadOnly','editing','annotation','_dataCollectors','_editorAnnotationsData','containsRange','editorannotations-invalid-source-callback','get','cancel','has','hasDomSelection','pluginName','update','range','listenTo','refreshSelectedViews','remove'];(function(_0x57e516,_0x7ecae0){const _0x11f7ff=function(_0x5202c9){while(--_0x5202c9){_0x57e516['push'](_0x57e516['shift']());}};_0x11f7ff(++_0x7ecae0);}(_0x7eca,0x7b));const _0x11f7=function(_0x57e516,_0x7ecae0){_0x57e516=_0x57e516-0x0;let _0x11f7ff=_0x7eca[_0x57e516];return _0x11f7ff;};import{Plugin as _0x5a9420}from'ckeditor5/src/core';import{CKEditorError as _0x334e9a}from'ckeditor5/src/utils';import{debounce as _0x5b42b1}from'lodash-es';import _0x2a978f from'./annotations';export default class k extends _0x5a9420{static get[_0x11f7('0x18')](){return[_0x2a978f];}static get[_0x11f7('0x0')](){return _0x11f7('0x13');}constructor(_0x52ee70){super(_0x52ee70),this[_0x11f7('0x23')]=new Set();}['init'](){const _0x16da2e=this['editor'],_0x292e1e=_0x16da2e[_0x11f7('0x19')][_0x11f7('0x27')](_0x2a978f),_0x4b7472=_0x16da2e[_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x2f5237=_0x5b42b1(()=>this[_0x11f7('0x4')](),0xa);_0x4b7472['on'](_0x11f7('0xc'),(_0x1e0430,_0x2ce74d)=>{_0x2ce74d['directChange']&&(_0x2f5237[_0x11f7('0x28')](),this[_0x11f7('0x4')]());}),this[_0x11f7('0x3')](_0x16da2e[_0x11f7('0x21')][_0x11f7('0x7')][_0x11f7('0xd')],_0x11f7('0x6'),(_0x41481f,_0x49e47e,_0x56917c)=>{_0x56917c&&_0x2f5237();}),this[_0x11f7('0x3')](_0x16da2e['ui'][_0x11f7('0xb')],_0x11f7('0x6'),(_0x26c2f6,_0x13ec77,_0x3dc960)=>{_0x3dc960||_0x16da2e[_0x11f7('0x20')]||this[_0x11f7('0xe')](_0x11f7('0x1a'),{'isAnnotationTracked':_0x3ec2dd=>this['_editorAnnotationsData'][_0x11f7('0x29')](_0x3ec2dd[_0x11f7('0x10')])});}),this[_0x11f7('0x3')](this[_0x11f7('0x9')]['ui'],_0x11f7('0x1'),()=>this[_0x11f7('0xe')](_0x11f7('0x12')));const _0x3fe0b4=new Set();this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0xf'),(_0xa7b415,_0x43f5a5)=>{for(const _0x5613bf of this['_editorAnnotationsData']['keys']())if(_0x5613bf===_0x43f5a5[_0x11f7('0x10')]){_0x16da2e['ui'][_0x11f7('0xb')]['add'](_0x43f5a5['view'][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0xf')](_0x43f5a5['view']);break;}}),this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0x5'),(_0x413679,_0x43d9b1)=>{_0x3fe0b4[_0x11f7('0x29')](_0x43d9b1[_0x11f7('0x7')])&&(_0x16da2e['ui'][_0x11f7('0xb')][_0x11f7('0x5')](_0x43d9b1[_0x11f7('0x7')][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0x1d')](_0x43d9b1[_0x11f7('0x7')]));});}[_0x11f7('0x2a')](){return this['editor']['editing'][_0x11f7('0x7')][_0x11f7('0x2a')];}[_0x11f7('0x1c')](_0x2ae256){if('function'!=typeof _0x2ae256)throw new _0x334e9a(_0x11f7('0x26'));this['_dataCollectors'][_0x11f7('0xf')](_0x2ae256);}[_0x11f7('0x4')](){this['fire']('refresh');}[_0x11f7('0x17')]({activeAnnotation:_0x34671a,annotations:_0x5b3322}){const _0x335dc3=[],_0x568486=this['editor'][_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x16ea55=Array[_0x11f7('0x11')](_0x568486[_0x11f7('0x8')]());for(const [_0x5266c0,_0x189d4d]of this[_0x11f7('0x24')]){const _0x499b37=_0x491c50(_0x189d4d),_0x5b6a7d=_0x5b3322['getByInnerView'](_0x5266c0);_0x499b37&&_0x5b6a7d&&_0x335dc3['push']({'annotation':_0x5b6a7d,'range':_0x499b37});}function _0x491c50(_0x369dae){for(const _0x498b77 of _0x369dae)for(const _0x5017f0 of _0x16ea55)if(_0x498b77['containsRange'](_0x5017f0,!_0x568486['isCollapsed']))return _0x498b77;return null;}return _0x335dc3[_0x11f7('0x16')]((_0x4b75d8,_0x5a3a17)=>{const _0x20413e=_0x4b75d8['range'],_0x1f5e3d=_0x5a3a17[_0x11f7('0x2')];if(!_0x20413e[_0x11f7('0x15')](_0x1f5e3d)){if(_0x20413e[_0x11f7('0x25')](_0x1f5e3d,!0x0))return 0x1;if(_0x1f5e3d[_0x11f7('0x25')](_0x20413e,!0x0))return-0x1;}return _0x4b75d8[_0x11f7('0x22')]==_0x34671a?-0x1:_0x5a3a17['annotation']==_0x34671a?0x1:0x0;})[_0x11f7('0x1f')](_0x405581=>_0x405581[_0x11f7('0x22')]);}get[_0x11f7('0x24')](){const _0x26a1f5=new Map();for(const _0x32a72c of Array['from'](this[_0x11f7('0x23')]))for(const [_0x2efc1f,_0xbda767]of _0x32a72c())_0x26a1f5[_0x11f7('0x1e')](_0x2efc1f,_0xbda767);return _0x26a1f5;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1787=['hasActive','view','get','update','visibleView','getByView','set','afterInit','setActiveAnnotation','InlineAnnotations','showStack','focus','_addAnnotationToBalloon','has','inline','includes','clear','add','activeAnnotation','isActive','document','change:isFocused','_balloon','editableElement','editor','_addedAnnotations','_removeAnnotationFromBalloon','refresh','Esc','editing','getRangeAt','pluginName','_setSelectedAnnotations','inlineannotations-not-allowed-with-context','keystrokes','remove','_manuallyClosed','plugins','updatePosition','selection','_annotations','stopListening','change:visibleView','change:height','switchTo','context','listenTo','blur','detach','EditorAnnotations','targetRect','mousedown','destroy','_selectedAnnotations','target','register','isFocused','isAttached','focusTracker'];(function(_0x5086f3,_0x17872d){const _0x4a4fcc=function(_0x1b4450){while(--_0x1b4450){_0x5086f3['push'](_0x5086f3['shift']());}};_0x4a4fcc(++_0x17872d);}(_0x1787,0x1b6));const _0x4a4f=function(_0x5086f3,_0x17872d){_0x5086f3=_0x5086f3-0x0;let _0x4a4fcc=_0x1787[_0x5086f3];return _0x4a4fcc;};import{Plugin as _0x4f0bae}from'ckeditor5/src/core';import _0x43fe10 from'./annotationsuis';import _0x2e9be3 from'./editorannotations';import{ContextualBalloon as _0xd4f3e0}from'ckeditor5/src/ui';import{MouseObserver as _0x31d3d8}from'ckeditor5/src/engine';import{CKEditorError as _0x9b3d5f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4f0bae{static get['requires'](){return[_0x2e9be3,_0xd4f3e0,_0x43fe10];}static get[_0x4a4f('0x6')](){return _0x4a4f('0x2b');}constructor(_0x5f0a5e){super(_0x5f0a5e),_0x5f0a5e[_0x4a4f('0x4')]['view']['addObserver'](_0x31d3d8),this['isAttached']=!0x1,this[_0x4a4f('0x28')](_0x4a4f('0x34'),null),this[_0x4a4f('0xf')]=null,this[_0x4a4f('0xb')]=new Set(),this[_0x4a4f('0x38')]=_0x5f0a5e[_0x4a4f('0xc')][_0x4a4f('0x24')](_0xd4f3e0),this[_0x4a4f('0x0')]=new Set(),this['_selectedAnnotations']=[];}['init'](){const _0x2b85b3=this[_0x4a4f('0x3a')][_0x4a4f('0xc')][_0x4a4f('0x24')](_0x43fe10);_0x2b85b3[_0x4a4f('0x14')]===this[_0x4a4f('0x3a')]&&(_0x2b85b3[_0x4a4f('0x1e')](_0x4a4f('0x30'),this),this[_0x4a4f('0x3a')][_0x4a4f('0x9')][_0x4a4f('0x28')](_0x4a4f('0x3'),(_0x12e11b,_0x4ba9d5)=>{const _0x2cf6ca=this[_0x4a4f('0x38')];if(this[_0x4a4f('0x20')]&&_0x2cf6ca[_0x4a4f('0x26')]){const _0x1e0df8=this['_annotations']['getByView'](_0x2cf6ca[_0x4a4f('0x26')]);this[_0x4a4f('0xb')][_0x4a4f('0x33')](_0x1e0df8),this[_0x4a4f('0x1')](_0x1e0df8),_0x4ba9d5();}}));}[_0x4a4f('0x29')](){const _0x518ca6=this[_0x4a4f('0x3a')]['plugins'][_0x4a4f('0x24')](_0x43fe10);_0x518ca6[_0x4a4f('0x14')]===this[_0x4a4f('0x3a')]&&(_0x518ca6[_0x4a4f('0x22')]()||_0x518ca6[_0x4a4f('0x13')](_0x4a4f('0x30')));}[_0x4a4f('0x2a')](_0x19997f){_0x19997f!==this['activeAnnotation']&&(this['activeAnnotation']&&(this[_0x4a4f('0x34')][_0x4a4f('0x35')]=!0x1),_0x19997f&&this[_0x4a4f('0x3a')]['ui'][_0x4a4f('0x21')][_0x4a4f('0x1f')]&&(this[_0x4a4f('0x2e')](_0x19997f,!0x0),_0x19997f[_0x4a4f('0x35')]=!0x0),_0x19997f||this[_0x4a4f('0x7')]([]),this[_0x4a4f('0x34')]=_0x19997f);}['attach'](_0x45ed48){this['_annotations']=_0x45ed48;const _0x34a866=this[_0x4a4f('0x3a')][_0x4a4f('0xc')][_0x4a4f('0x24')](_0x43fe10),_0x468288=this[_0x4a4f('0x38')];if(this[_0x4a4f('0x20')])throw new _0x9b3d5f('inlineannotations-attach-already-attached',this);if(_0x34a866[_0x4a4f('0x14')]!==this[_0x4a4f('0x3a')])throw new _0x9b3d5f(_0x4a4f('0x8'),this);const _0x3653c1=this[_0x4a4f('0x3a')]['plugins']['get'](_0x4a4f('0x18'));this[_0x4a4f('0x15')](_0x3653c1,_0x4a4f('0x2'),function(){const _0x996e72=_0x3653c1['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x4a4f('0x34')],'annotations':this['_annotations']});this[_0x4a4f('0x7')](_0x996e72),this[_0x4a4f('0x2a')](_0x996e72[0x0]||null);}['bind'](this)),this[_0x4a4f('0x15')](_0x3653c1,_0x4a4f('0x16'),(_0x131608,{isAnnotationTracked:_0x469467})=>{this['activeAnnotation']&&_0x469467(this[_0x4a4f('0x34')])&&(this[_0x4a4f('0x7')]([]),this[_0x4a4f('0x2a')](null));}),this[_0x4a4f('0x15')](this[_0x4a4f('0x3a')]['ui'][_0x4a4f('0x21')],_0x4a4f('0x37'),(_0x227676,_0x501dca,_0x54f649)=>{_0x54f649||this[_0x4a4f('0x2a')](null);}),this[_0x4a4f('0x15')](_0x45ed48,'remove',(_0x47ec5f,_0x27559e)=>{this[_0x4a4f('0x1')](_0x27559e),_0x27559e===this[_0x4a4f('0x34')]&&this[_0x4a4f('0x2a')](null);}),this[_0x4a4f('0x15')](_0x468288,_0x4a4f('0x11'),(_0x93c7e7,_0x3bee94,_0xfcf477,_0x46046d)=>{if(_0x46046d&&this[_0x4a4f('0x10')](_0x46046d),!_0xfcf477||!_0x45ed48[_0x4a4f('0x27')](_0xfcf477))return;const _0x369e6f=_0x45ed48['getByView'](_0xfcf477);this['listenTo'](_0xfcf477,_0x4a4f('0x12'),()=>{_0x468288[_0x4a4f('0xd')]();}),this[_0x4a4f('0x15')](_0xfcf477,_0x4a4f('0x3'),()=>{this[_0x4a4f('0xb')][_0x4a4f('0x33')](_0x369e6f),this[_0x4a4f('0x1')](_0x369e6f),this[_0x4a4f('0x3a')][_0x4a4f('0x4')][_0x4a4f('0x23')][_0x4a4f('0x2d')]();}),this['activeAnnotation']!==_0x369e6f&&this[_0x4a4f('0x2a')](_0x369e6f);}),this['listenTo'](this[_0x4a4f('0x3a')]['ui'],_0x4a4f('0x25'),()=>{_0x468288['visibleView']&&(_0x45ed48['getByView'](_0x468288[_0x4a4f('0x26')])&&_0x468288['updatePosition']());}),this[_0x4a4f('0x15')](this['editor'][_0x4a4f('0x4')][_0x4a4f('0x23')][_0x4a4f('0x36')],_0x4a4f('0x1a'),()=>{this[_0x4a4f('0xb')][_0x4a4f('0x32')]();}),this[_0x4a4f('0x3a')]['editing'][_0x4a4f('0x23')][_0x4a4f('0x36')][_0x4a4f('0xe')][_0x4a4f('0x39')]&&this[_0x4a4f('0x3a')][_0x4a4f('0x4')][_0x4a4f('0x23')][_0x4a4f('0x2d')](),this[_0x4a4f('0x20')]=!0x0;}[_0x4a4f('0x17')](){if(!this[_0x4a4f('0x20')])throw new _0x9b3d5f('inlineannotations-detach-not-attached',this);this[_0x4a4f('0x2a')](null);for(const _0x491997 of this[_0x4a4f('0x0')])this[_0x4a4f('0x1')](_0x491997);this[_0x4a4f('0x10')](),this[_0x4a4f('0x20')]=!0x1;}[_0x4a4f('0x1b')](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x25ca89){const _0x234034=this['_selectedAnnotations'];for(const _0x56219d of _0x234034)_0x25ca89['includes'](_0x56219d)||this[_0x4a4f('0xb')]['delete'](_0x56219d);for(const _0x318461 of this[_0x4a4f('0xf')])_0x25ca89[_0x4a4f('0x31')](_0x318461)||this[_0x4a4f('0x1')](_0x318461);if(this[_0x4a4f('0x3a')]['ui'][_0x4a4f('0x21')][_0x4a4f('0x1f')])for(const _0x568613 of _0x25ca89)this[_0x4a4f('0x2e')](_0x568613);this[_0x4a4f('0x1c')]=_0x25ca89;}[_0x4a4f('0x2e')](_0x11e365,_0x27b83d){this[_0x4a4f('0xb')][_0x4a4f('0x2f')](_0x11e365)||(this['_addedAnnotations'][_0x4a4f('0x2f')](_0x11e365)||this['_balloon']['hasView'](_0x11e365['view'])||(this[_0x4a4f('0x0')][_0x4a4f('0x33')](_0x11e365),this[_0x4a4f('0x38')][_0x4a4f('0x33')]({'stackId':_0x11e365['view']['id'],'view':_0x11e365[_0x4a4f('0x23')],'position':{'target':()=>_0x11e365[_0x4a4f('0x1d')]||_0x11e365[_0x4a4f('0x19')]||document['getSelection']()[_0x4a4f('0x5')](0x0)}})),_0x27b83d&&this[_0x4a4f('0x38')][_0x4a4f('0x2c')](_0x11e365[_0x4a4f('0x23')]['id']));}['_removeAnnotationFromBalloon'](_0x4611db){this[_0x4a4f('0x0')][_0x4a4f('0x2f')](_0x4611db)&&this[_0x4a4f('0x38')]['hasView'](_0x4611db['view'])&&(this[_0x4a4f('0x0')]['delete'](_0x4611db),this[_0x4a4f('0x38')][_0x4a4f('0xa')](_0x4611db[_0x4a4f('0x23')]));}}
23
+ const _0x49a0=['add','plugins','getByView','_manuallyClosed','get','setActiveAnnotation','inlineannotations-not-allowed-with-context','_addedAnnotations','activeAnnotation','stopListening','hasView','change:visibleView','set','targetRect','listenTo','_removeAnnotationFromBalloon','blur','isAttached','hasActive','mousedown','focus','_annotations','editing','visibleView','inline','bind','context','focusTracker','refresh','attach','showStack','has','includes','EditorAnnotations','editor','_selectedAnnotations','remove','requires','Esc','InlineAnnotations','document','inlineannotations-detach-not-attached','keystrokes','change:isFocused','delete','detach','editableElement','init','_addAnnotationToBalloon','register','isActive','isFocused','switchTo','view','_setSelectedAnnotations','_balloon','afterInit','clear','destroy','updatePosition'];(function(_0xfcc72,_0x49a0c6){const _0x4fc040=function(_0x2ec178){while(--_0x2ec178){_0xfcc72['push'](_0xfcc72['shift']());}};_0x4fc040(++_0x49a0c6);}(_0x49a0,0x68));const _0x4fc0=function(_0xfcc72,_0x49a0c6){_0xfcc72=_0xfcc72-0x0;let _0x4fc040=_0x49a0[_0xfcc72];return _0x4fc040;};import{Plugin as _0x387b2a}from'ckeditor5/src/core';import _0x3d314a from'./annotationsuis';import _0x144cb7 from'./editorannotations';import{ContextualBalloon as _0x4c6882}from'ckeditor5/src/ui';import{MouseObserver as _0x378e8d}from'ckeditor5/src/engine';import{CKEditorError as _0x5d95e0}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x387b2a{static get[_0x4fc0('0x35')](){return[_0x144cb7,_0x4c6882,_0x3d314a];}static get['pluginName'](){return _0x4fc0('0x37');}constructor(_0x3ad8a7){super(_0x3ad8a7),_0x3ad8a7['editing']['view']['addObserver'](_0x378e8d),this['isAttached']=!0x1,this[_0x4fc0('0x1c')](_0x4fc0('0x18'),null),this[_0x4fc0('0x25')]=null,this[_0x4fc0('0x13')]=new Set(),this[_0x4fc0('0xb')]=_0x3ad8a7[_0x4fc0('0x11')][_0x4fc0('0x14')](_0x4c6882),this['_addedAnnotations']=new Set(),this[_0x4fc0('0x33')]=[];}[_0x4fc0('0x3')](){const _0xce2646=this[_0x4fc0('0x32')][_0x4fc0('0x11')]['get'](_0x3d314a);_0xce2646['context']===this['editor']&&(_0xce2646[_0x4fc0('0x5')](_0x4fc0('0x28'),this),this[_0x4fc0('0x32')][_0x4fc0('0x3a')][_0x4fc0('0x1c')]('Esc',(_0x13182f,_0x818708)=>{const _0x375665=this[_0x4fc0('0xb')];if(this[_0x4fc0('0x21')]&&_0x375665['visibleView']){const _0x267caf=this['_annotations'][_0x4fc0('0x12')](_0x375665[_0x4fc0('0x27')]);this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x267caf),this[_0x4fc0('0x1f')](_0x267caf),_0x818708();}}));}[_0x4fc0('0xc')](){const _0x328ba0=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a);_0x328ba0['context']===this[_0x4fc0('0x32')]&&(_0x328ba0[_0x4fc0('0x22')]()||_0x328ba0[_0x4fc0('0x8')](_0x4fc0('0x28')));}[_0x4fc0('0x15')](_0x1a5782){_0x1a5782!==this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')][_0x4fc0('0x6')]=!0x1),_0x1a5782&&this[_0x4fc0('0x32')]['ui']['focusTracker'][_0x4fc0('0x7')]&&(this[_0x4fc0('0x4')](_0x1a5782,!0x0),_0x1a5782['isActive']=!0x0),_0x1a5782||this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x18')]=_0x1a5782);}[_0x4fc0('0x2d')](_0x9a7996){this[_0x4fc0('0x25')]=_0x9a7996;const _0x5b7a99=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a),_0x310253=this[_0x4fc0('0xb')];if(this['isAttached'])throw new _0x5d95e0('inlineannotations-attach-already-attached',this);if(_0x5b7a99[_0x4fc0('0x2a')]!==this[_0x4fc0('0x32')])throw new _0x5d95e0(_0x4fc0('0x16'),this);const _0x2e4aea=this[_0x4fc0('0x32')]['plugins'][_0x4fc0('0x14')](_0x4fc0('0x31'));this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x2c'),function(){const _0x2fc8d5=_0x2e4aea['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x4fc0('0x18')],'annotations':this[_0x4fc0('0x25')]});this[_0x4fc0('0xa')](_0x2fc8d5),this[_0x4fc0('0x15')](_0x2fc8d5[0x0]||null);}[_0x4fc0('0x29')](this)),this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x20'),(_0x2b9d1d,{isAnnotationTracked:_0x10c8c1})=>{this[_0x4fc0('0x18')]&&_0x10c8c1(this[_0x4fc0('0x18')])&&(this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x15')](null));}),this[_0x4fc0('0x1e')](this[_0x4fc0('0x32')]['ui']['focusTracker'],_0x4fc0('0x3b'),(_0x438eb7,_0x22c2d1,_0x465971)=>{_0x465971||this['setActiveAnnotation'](null);}),this[_0x4fc0('0x1e')](_0x9a7996,_0x4fc0('0x34'),(_0x1b74a0,_0x107d4e)=>{this[_0x4fc0('0x1f')](_0x107d4e),_0x107d4e===this[_0x4fc0('0x18')]&&this[_0x4fc0('0x15')](null);}),this[_0x4fc0('0x1e')](_0x310253,_0x4fc0('0x1b'),(_0xeb4b35,_0x410731,_0x5891a3,_0x26428b)=>{if(_0x26428b&&this[_0x4fc0('0x19')](_0x26428b),!_0x5891a3||!_0x9a7996['getByView'](_0x5891a3))return;const _0x46e68c=_0x9a7996[_0x4fc0('0x12')](_0x5891a3);this[_0x4fc0('0x1e')](_0x5891a3,'change:height',()=>{_0x310253[_0x4fc0('0xf')]();}),this[_0x4fc0('0x1e')](_0x5891a3,_0x4fc0('0x36'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x46e68c),this[_0x4fc0('0x1f')](_0x46e68c),this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x24')]();}),this['activeAnnotation']!==_0x46e68c&&this['setActiveAnnotation'](_0x46e68c);}),this[_0x4fc0('0x1e')](this['editor']['ui'],'update',()=>{_0x310253[_0x4fc0('0x27')]&&(_0x9a7996[_0x4fc0('0x12')](_0x310253['visibleView'])&&_0x310253[_0x4fc0('0xf')]());}),this['listenTo'](this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x38')],_0x4fc0('0x23'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0xd')]();}),this[_0x4fc0('0x32')]['editing'][_0x4fc0('0x9')]['document']['selection'][_0x4fc0('0x2')]&&this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x4fc0('0x1')](){if(!this[_0x4fc0('0x21')])throw new _0x5d95e0(_0x4fc0('0x39'),this);this[_0x4fc0('0x15')](null);for(const _0x2aa29b of this[_0x4fc0('0x17')])this['_removeAnnotationFromBalloon'](_0x2aa29b);this[_0x4fc0('0x19')](),this['isAttached']=!0x1;}[_0x4fc0('0xe')](){this[_0x4fc0('0x21')]&&this[_0x4fc0('0x1')]();}[_0x4fc0('0xa')](_0x3081e7){const _0x3e305b=this['_selectedAnnotations'];for(const _0x3700f4 of _0x3e305b)_0x3081e7[_0x4fc0('0x30')](_0x3700f4)||this['_manuallyClosed'][_0x4fc0('0x0')](_0x3700f4);for(const _0x222052 of this[_0x4fc0('0x25')])_0x3081e7[_0x4fc0('0x30')](_0x222052)||this[_0x4fc0('0x1f')](_0x222052);if(this[_0x4fc0('0x32')]['ui'][_0x4fc0('0x2b')][_0x4fc0('0x7')])for(const _0x27195e of _0x3081e7)this[_0x4fc0('0x4')](_0x27195e);this[_0x4fc0('0x33')]=_0x3081e7;}[_0x4fc0('0x4')](_0x4529cb,_0x1e47c6){this[_0x4fc0('0x13')][_0x4fc0('0x2f')](_0x4529cb)||(this['_addedAnnotations'][_0x4fc0('0x2f')](_0x4529cb)||this['_balloon'][_0x4fc0('0x1a')](_0x4529cb[_0x4fc0('0x9')])||(this[_0x4fc0('0x17')][_0x4fc0('0x10')](_0x4529cb),this[_0x4fc0('0xb')][_0x4fc0('0x10')]({'stackId':_0x4529cb[_0x4fc0('0x9')]['id'],'view':_0x4529cb[_0x4fc0('0x9')],'position':{'target':()=>_0x4529cb['target']||_0x4529cb[_0x4fc0('0x1d')]||document['getSelection']()['getRangeAt'](0x0)}})),_0x1e47c6&&this[_0x4fc0('0xb')][_0x4fc0('0x2e')](_0x4529cb['view']['id']));}[_0x4fc0('0x1f')](_0x1e1bb1){this[_0x4fc0('0x17')][_0x4fc0('0x2f')](_0x1e1bb1)&&this[_0x4fc0('0xb')][_0x4fc0('0x1a')](_0x1e1bb1[_0x4fc0('0x9')])&&(this[_0x4fc0('0x17')][_0x4fc0('0x0')](_0x1e1bb1),this[_0x4fc0('0xb')][_0x4fc0('0x34')](_0x1e1bb1[_0x4fc0('0x9')]));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1eda=['off','preventDefault','defaultPositions','view','locale','bodyCollection','init','low','get','refresh','refreshPositioning','narrowsidebar-attach-already-attached','has','mousedown','content','plugins','northArrowSouth','cancel','from','resize','first','stopPropagation','blur','NarrowSidebar','_refreshPositioning','_manuallyClosedAnnotationViews','detachFromDom','keyCode','stopListening','_throttledRefreshPositioning','_annotations','_domEmitter','Sidebar','esc','detach','_detachListeners','_showBalloon','_updateBalloonPosition','_attachListeners','context','balloonPanelView','clear','listenTo','length','narrowsidebar-detach-not-attached','remove','_hideBalloon','preventClosingBalloon','_detachFromContainer','_setSelectedAnnotations','_editorAnnotations','_integrateWithEditorAnnotations','activeAnnotation','isDirty','southArrowNorthWest','northArrowSouthEast','isVisible','narrowSidebar','setActiveAnnotation','change:height','pin','southArrowNorthEast','getByView','attachToDom','focus','_annotationToNarrowView','element','addAnnotation','southArrowNorth','_attachToContainer','set','_destroyEditorAnnotationsIntegration','hasDomSelection','destroy','add','register','_selectedAnnotations','ready','unpin','change:container','EditorAnnotations','editors','bind','target','isAttached','includes','execute','contains','addEventListener'];(function(_0x5f3c12,_0x1eda3f){const _0x39260a=function(_0x254040){while(--_0x254040){_0x5f3c12['push'](_0x5f3c12['shift']());}};_0x39260a(++_0x1eda3f);}(_0x1eda,0x1f4));const _0x3926=function(_0x5f3c12,_0x1eda3f){_0x5f3c12=_0x5f3c12-0x0;let _0x39260a=_0x1eda[_0x5f3c12];return _0x39260a;};import{ContextPlugin as _0x4579a8}from'ckeditor5/src/core';import _0x5d878b from'./annotationsuis';import _0x5b9ac3 from'./sidebar';import _0x211f14 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0xa721a9,BodyCollection as _0x4c5e6b}from'ckeditor5/src/ui';import{CKEditorError as _0x977353,DomEmitterMixin as _0x188fc3,keyCodes as _0x1a8793,Collection as _0x18d553}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x43c33a}from'lodash-es';export default class s extends _0x4579a8{static get['requires'](){return[_0x5b9ac3,_0x5d878b];}static get['pluginName'](){return _0x3926('0x39');}constructor(_0x515a81){super(_0x515a81),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x3926('0x41')]=Object['create'](_0x188fc3),this[_0x3926('0xa')]=new Map(),this['set']('activeAnnotation',null),this[_0x3926('0x40')]=null,this[_0x3926('0x15')]=[],this[_0x3926('0x54')]=new _0x18d553(),this['_throttledRefreshPositioning']=_0x43c33a(()=>{this[_0x3926('0x3a')]();},0x190,{'leading':!0x1});}[_0x3926('0x28')](){this[_0x3926('0x49')]['plugins'][_0x3926('0x2a')](_0x5d878b)[_0x3926('0x14')](_0x3926('0x2'),this),this[_0x3926('0x27')]=new _0x4c5e6b(this[_0x3926('0x49')][_0x3926('0x26')]),this[_0x3926('0x4a')]=new _0xa721a9(this[_0x3926('0x49')]['locale']),this[_0x3926('0x27')][_0x3926('0x8')](),this[_0x3926('0x27')][_0x3926('0x13')](this[_0x3926('0x4a')]);}['attach'](_0x20e3f4){this['_annotations']=_0x20e3f4;const _0x1bef17=this[_0x3926('0x49')]['plugins'][_0x3926('0x2a')](_0x5b9ac3),_0x48ec3b=this[_0x3926('0x4a')];if(_0x1bef17[_0x3926('0x40')]=_0x20e3f4,this[_0x3926('0x1d')])throw new _0x977353(_0x3926('0x2d'),this);this[_0x3926('0x1d')]=!0x0,this['listenTo'](_0x1bef17,'set:container',()=>{this['detach'](),this[_0x3926('0x4c')](_0x1bef17,_0x3926('0x18'),_0x2ef020=>{_0x2ef020[_0x3926('0x22')](),this['attach'](_0x20e3f4);});}),_0x1bef17[_0x3926('0xe')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2c8c62=_0x2d43c8=>{const _0x3e4419=new _0x211f14(this[_0x3926('0x49')][_0x3926('0x26')]);_0x1bef17[_0x3926('0xc')](_0x2d43c8,_0x3e4419),this[_0x3926('0xa')][_0x3926('0xf')](_0x2d43c8,_0x3e4419),_0x3e4419[_0x3926('0x1b')](_0x3926('0x57'),'annotationType','number')['to'](_0x2d43c8[_0x3926('0x25')],'isDirty','type',_0x3926('0x4d')),_0x3e4419['on'](_0x3926('0x1f'),()=>{this['_manuallyClosedAnnotationViews'][_0x3926('0x4b')](),_0x48ec3b['content'][_0x3926('0x36')]!==_0x2d43c8[_0x3926('0x25')]?(this['_showBalloon'](_0x2d43c8),_0x2d43c8[_0x3926('0x25')][_0x3926('0xb')]['focus'](),this[_0x3926('0x3')](_0x2d43c8)):this[_0x3926('0x3')](null);});};for(const _0x3ac593 of _0x20e3f4)_0x2c8c62(_0x3ac593);this[_0x3926('0x4c')](_0x20e3f4,_0x3926('0x13'),(_0x4f3c67,_0x4dec69)=>{_0x2c8c62(_0x4dec69);}),this[_0x3926('0x4c')](_0x20e3f4,_0x3926('0x4f'),(_0x30130b,_0x328420,_0x10631b)=>{this[_0x3926('0xa')][_0x3926('0x2a')](_0x328420)[_0x3926('0x12')](),this[_0x3926('0xa')]['delete'](_0x328420),_0x1bef17['rearrange']({'removedAnnotation':_0x328420,'previousAnnotation':_0x20e3f4['get'](_0x10631b-0x1),'nextAnnotation':_0x20e3f4[_0x3926('0x2a')](_0x10631b+0x1)}),_0x328420===this['activeAnnotation']&&this[_0x3926('0x3')](null);},{'priority':_0x3926('0x29')}),this[_0x3926('0x4c')](_0x20e3f4,_0x3926('0x9'),(_0x293323,_0x2e1e48)=>{this[_0x3926('0x3')](_0x2e1e48);}),this[_0x3926('0x4c')](_0x20e3f4,'blur',()=>{this[_0x3926('0x3')](null);}),this[_0x3926('0x41')]['listenTo'](document,'keydown',(_0x20d2f8,_0x205bc2)=>{_0x205bc2[_0x3926('0x3d')]===_0x1a8793[_0x3926('0x43')]&&_0x48ec3b['isVisible']&&(this[_0x3926('0x3b')]['add'](_0x48ec3b[_0x3926('0x30')]['first']),this['_hideBalloon'](),_0x205bc2[_0x3926('0x37')](),_0x205bc2[_0x3926('0x23')]());}),this['_domEmitter'][_0x3926('0x4c')](document,_0x3926('0x2f'),(_0x2f9c3c,_0xed2a00)=>{const _0x437cb7=_0xed2a00[_0x3926('0x1c')];_0x48ec3b[_0x3926('0x1')]&&_0x48ec3b[_0x3926('0xb')][_0x3926('0x20')](_0x437cb7)||_0x1bef17[_0x3926('0x25')][_0x3926('0xb')][_0x3926('0x20')](_0x437cb7)||_0x2f9c3c[_0x3926('0x51')]||(this[_0x3926('0x3b')][_0x3926('0x4b')](),this[_0x3926('0x50')](),this[_0x3926('0x3')](null));});const _0x97b57=this['context'][_0x3926('0x1a')]?this[_0x3926('0x49')][_0x3926('0x1a')]:new _0x18d553([this[_0x3926('0x49')]]);for(const _0x2ddd7f of _0x97b57)this[_0x3926('0x55')](_0x2ddd7f);this['listenTo'](_0x97b57,_0x3926('0x13'),(_0x196368,_0x484530)=>{this[_0x3926('0x4c')](_0x484530,_0x3926('0x16'),()=>{this[_0x3926('0x55')](_0x484530);});}),this[_0x3926('0x4c')](_0x97b57,_0x3926('0x4f'),(_0x36437e,_0x1c8c23)=>{_0x1c8c23[_0x3926('0x31')][_0x3926('0x2e')](_0x3926('0x19'))&&this[_0x3926('0x10')](_0x1c8c23['plugins'][_0x3926('0x2a')](_0x3926('0x19')));}),window[_0x3926('0x21')](_0x3926('0x35'),this['_throttledRefreshPositioning']),this['_refreshPositioning']();}[_0x3926('0x3')](_0x46c7ee){if(_0x46c7ee===this['activeAnnotation'])return;const _0x34471f=this[_0x3926('0x49')][_0x3926('0x31')][_0x3926('0x2a')](_0x3926('0x42'));if(_0x34471f[_0x3926('0x2b')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x46c7ee,'disableAnimationOnActivatedAnnotation':!0x0}),_0x46c7ee)_0x34471f['getSidebarItemView'](_0x46c7ee)?this[_0x3926('0x46')](_0x46c7ee):this['_hideBalloon']();else this[_0x3926('0x50')]();this[_0x3926('0x56')]=_0x46c7ee;}[_0x3926('0x44')](){if(!this[_0x3926('0x1d')])throw new _0x977353(_0x3926('0x4e'),this);this[_0x3926('0x3')](null);const _0x5284db=this[_0x3926('0x49')]['plugins'][_0x3926('0x2a')]('Sidebar');this[_0x3926('0x50')](),Array['from'](this[_0x3926('0xa')]['values'](),_0x589b94=>_0x589b94[_0x3926('0x12')]()),this[_0x3926('0xa')][_0x3926('0x4b')](),_0x5284db[_0x3926('0x52')](this[_0x3926('0x40')]),this[_0x3926('0x3e')](),this[_0x3926('0x41')][_0x3926('0x3e')](),this[_0x3926('0x3e')](this['context'][_0x3926('0x1a')]);for(const _0x42a1fb of Array[_0x3926('0x34')](this[_0x3926('0x54')]))this[_0x3926('0x10')](_0x42a1fb);window['removeEventListener'](_0x3926('0x35'),this[_0x3926('0x3f')]),this[_0x3926('0x3f')][_0x3926('0x33')](),this[_0x3926('0x15')]=[],this[_0x3926('0x1d')]=!0x1,this['_annotations']=null;}[_0x3926('0x12')](){this['isAttached']&&this[_0x3926('0x44')](),this[_0x3926('0x27')][_0x3926('0x3c')]();}[_0x3926('0x55')](_0x3c5a28){const _0x873496=_0x3c5a28[_0x3926('0x31')][_0x3926('0x2a')](_0x3926('0x19')),_0x3d477f=this[_0x3926('0x49')]['plugins']['get'](_0x5b9ac3),_0x13be05=this[_0x3926('0x40')],_0x449186=this[_0x3926('0x4a')],_0x159123=()=>{const _0x567c9c=_0x873496['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x3926('0x56')],'annotations':this[_0x3926('0x40')]});this[_0x3926('0x53')](_0x567c9c),this[_0x3926('0x3')](_0x567c9c[0x0]||null);};this['listenTo'](_0x873496,'refresh',_0x159123),this[_0x3926('0x4c')](_0x873496,_0x3926('0x38'),(_0x1ca7b7,{isAnnotationTracked:_0x4869c9})=>{this['activeAnnotation']&&_0x4869c9(this[_0x3926('0x56')])&&(this['_setSelectedAnnotations']([]),this[_0x3926('0x3')](null));}),this[_0x3926('0x4c')](_0x873496,'uiUpdate',()=>{this[_0x3926('0x3f')]();}),this[_0x3926('0x4c')](_0x13be05,_0x3926('0x38'),_0x5e167e=>{_0x873496[_0x3926('0x11')]()&&_0x5e167e['stop']();},{'priority':'high'}),this[_0x3926('0x41')][_0x3926('0x4c')](document,_0x3926('0x2f'),(_0x1ff7fa,_0x39fd15)=>{const _0x434887=_0x39fd15[_0x3926('0x1c')];_0x449186[_0x3926('0x1')]&&_0x449186[_0x3926('0xb')]['contains'](_0x434887)||_0x3d477f[_0x3926('0x25')][_0x3926('0xb')][_0x3926('0x20')](_0x434887)||this['activeAnnotation']&&_0x873496['hasDomSelection']()&&(_0x159123(),_0x1ff7fa[_0x3926('0x51')]=!0x0);},{'priority':'high'}),this[_0x3926('0x54')][_0x3926('0x13')](_0x873496);}[_0x3926('0x10')](_0x4290ee){_0x4290ee&&(this['stopListening'](_0x4290ee),this[_0x3926('0x54')]['remove'](_0x4290ee));}[_0x3926('0x53')](_0x49543d){for(const _0x1f18aa of this[_0x3926('0x15')])_0x49543d[_0x3926('0x1e')](_0x1f18aa)||this[_0x3926('0x3b')]['delete'](_0x1f18aa[_0x3926('0x25')]);this[_0x3926('0x15')]=_0x49543d;}['_refreshPositioning'](){const _0x13f82d=this[_0x3926('0x4a')];this[_0x3926('0x40')][_0x3926('0x2c')](),_0x13f82d[_0x3926('0x1')]&&this['_updateBalloonPosition']();}[_0x3926('0x46')](_0x194d0b){if(this[_0x3926('0x3b')]['has'](_0x194d0b['view']))return;const _0xcef1cc=this['balloonPanelView'][_0x3926('0x30')]['first'];_0xcef1cc!==_0x194d0b[_0x3926('0x25')]?(_0xcef1cc&&this[_0x3926('0x45')](_0xcef1cc),this[_0x3926('0x48')](_0x194d0b[_0x3926('0x25')]),this['balloonPanelView'][_0x3926('0x30')][_0x3926('0x4b')](),this['balloonPanelView'][_0x3926('0x30')][_0x3926('0x13')](_0x194d0b[_0x3926('0x25')]),this[_0x3926('0x47')]()):this[_0x3926('0x47')]();}[_0x3926('0x47')](){const _0x5b082c=this['balloonPanelView'][_0x3926('0x30')][_0x3926('0x36')],_0x21f65d=this['_annotations'][_0x3926('0x7')](_0x5b082c);if(!this[_0x3926('0xa')][_0x3926('0x2e')](_0x21f65d))return;const _0x948971=this[_0x3926('0xa')][_0x3926('0x2a')](_0x21f65d)[_0x3926('0xb')],_0x6c4c8d=function(){const _0x328e6e=_0xa721a9[_0x3926('0x24')];return[_0x328e6e[_0x3926('0x6')],_0x328e6e[_0x3926('0x0')],_0x328e6e[_0x3926('0xd')],_0x328e6e[_0x3926('0x32')],_0x328e6e[_0x3926('0x58')],_0x328e6e['northArrowSouthWest']];}();this[_0x3926('0x4a')][_0x3926('0x5')]({'target':_0x948971,'positions':_0x6c4c8d});}[_0x3926('0x50')](){const _0x159188=this[_0x3926('0x4a')],_0x2a5bac=_0x159188[_0x3926('0x30')]['first'];_0x2a5bac&&(this['_detachListeners'](_0x2a5bac),_0x159188[_0x3926('0x17')](),_0x159188['content']['clear']());}[_0x3926('0x48')](_0x53a2d7){this[_0x3926('0x4c')](_0x53a2d7,_0x3926('0x4'),()=>this[_0x3926('0x47')]()),this[_0x3926('0x4c')](_0x53a2d7,'Esc',(_0xbfdf0f,_0x17f48d)=>{this[_0x3926('0x3b')]['add'](_0x53a2d7),this[_0x3926('0x50')](),_0x17f48d();});}[_0x3926('0x45')](_0x49e862){this[_0x3926('0x3e')](_0x49e862);}}
23
+ const _0x22c3=['isAttached','plugins','content','hasDomSelection','_detachFromContainer','Sidebar','init','_hideBalloon','preventClosingBalloon','EditorAnnotations','ck-sidebar--narrow','number','removeEventListener','northArrowSouth','_setSelectedAnnotations','resize','stopListening','keyCode','_destroyEditorAnnotationsIntegration','stop','editors','refreshPositioning','_attachListeners','_updateBalloonPosition','activeAnnotation','_domEmitter','target','mousedown','_annotationToNarrowView','balloonPanelView','blur','register','off','getByView','context','change:height','detach','isVisible','pluginName','refresh','narrowSidebar','Esc','listenTo','length','set','_throttledRefreshPositioning','preventDefault','first','set:container','attach','clear','stopPropagation','low','keydown','requires','ready','addEventListener','pin','change:container','high','type','focus','defaultPositions','esc','getSidebarItemView','setActiveAnnotation','_showBalloon','_annotations','cancel','bind','values','destroy','view','annotationType','get','contains','_selectedAnnotations','_detachListeners','element','remove','add','_integrateWithEditorAnnotations','northArrowSouthWest','unpin','delete','has','_editorAnnotations','bodyCollection','_refreshPositioning','_attachToContainer','southArrowNorthWest','locale','rearrange','southArrowNorthEast','_manuallyClosedAnnotationViews','narrowsidebar-attach-already-attached'];(function(_0x152738,_0x22c313){const _0xa3fa0a=function(_0x5a2e8b){while(--_0x5a2e8b){_0x152738['push'](_0x152738['shift']());}};_0xa3fa0a(++_0x22c313);}(_0x22c3,0xbc));const _0xa3fa=function(_0x152738,_0x22c313){_0x152738=_0x152738-0x0;let _0xa3fa0a=_0x22c3[_0x152738];return _0xa3fa0a;};import{ContextPlugin as _0xce22ef}from'ckeditor5/src/core';import _0x3eab28 from'./annotationsuis';import _0xdcc9b0 from'./sidebar';import _0x247ca2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1c66bc,BodyCollection as _0x561f52}from'ckeditor5/src/ui';import{CKEditorError as _0x20a550,DomEmitterMixin as _0x3bc5de,keyCodes as _0x506443,Collection as _0x45798c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x5471ef}from'lodash-es';export default class s extends _0xce22ef{static get[_0xa3fa('0x3a')](){return[_0xdcc9b0,_0x3eab28];}static get[_0xa3fa('0x2a')](){return'NarrowSidebar';}constructor(_0x4b3e6d){super(_0x4b3e6d),this[_0xa3fa('0x4')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xa3fa('0x1d')]=Object['create'](_0x3bc5de),this[_0xa3fa('0x20')]=new Map(),this[_0xa3fa('0x30')](_0xa3fa('0x1c'),null),this[_0xa3fa('0x47')]=null,this[_0xa3fa('0x50')]=[],this['_editorAnnotations']=new _0x45798c(),this[_0xa3fa('0x31')]=_0x5471ef(()=>{this[_0xa3fa('0x5c')]();},0x190,{'leading':!0x1});}[_0xa3fa('0xa')](){this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')](_0x3eab28)[_0xa3fa('0x23')](_0xa3fa('0x2c'),this),this[_0xa3fa('0x5b')]=new _0x561f52(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this[_0xa3fa('0x21')]=new _0x1c66bc(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this[_0xa3fa('0x21')]);}[_0xa3fa('0x35')](_0x163b9c){this['_annotations']=_0x163b9c;const _0x2176fc=this[_0xa3fa('0x26')]['plugins'][_0xa3fa('0x4e')](_0xdcc9b0),_0x15c5ef=this[_0xa3fa('0x21')];if(_0x2176fc[_0xa3fa('0x47')]=_0x163b9c,this[_0xa3fa('0x4')])throw new _0x20a550(_0xa3fa('0x3'),this);this[_0xa3fa('0x4')]=!0x0,this['listenTo'](_0x2176fc,_0xa3fa('0x34'),()=>{this[_0xa3fa('0x28')](),this['listenTo'](_0x2176fc,_0xa3fa('0x3e'),_0x4344dd=>{_0x4344dd[_0xa3fa('0x24')](),this[_0xa3fa('0x35')](_0x163b9c);});}),_0x2176fc[_0xa3fa('0x5d')]({'viewClass':_0xa3fa('0xe'),'spaceBetweenItems':0x5});const _0x5d6d22=_0x1adfed=>{const _0x58905f=new _0x247ca2(this['context'][_0xa3fa('0x5f')]);_0x2176fc['addAnnotation'](_0x1adfed,_0x58905f),this['_annotationToNarrowView'][_0xa3fa('0x30')](_0x1adfed,_0x58905f),_0x58905f[_0xa3fa('0x49')]('isDirty',_0xa3fa('0x4d'),_0xa3fa('0xf'))['to'](_0x1adfed['view'],'isDirty',_0xa3fa('0x40'),_0xa3fa('0x2f')),_0x58905f['on']('execute',()=>{this[_0xa3fa('0x2')][_0xa3fa('0x36')](),_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]!==_0x1adfed[_0xa3fa('0x4c')]?(this[_0xa3fa('0x46')](_0x1adfed),_0x1adfed[_0xa3fa('0x4c')][_0xa3fa('0x52')]['focus'](),this['setActiveAnnotation'](_0x1adfed)):this[_0xa3fa('0x45')](null);});};for(const _0x166106 of _0x163b9c)_0x5d6d22(_0x166106);this['listenTo'](_0x163b9c,'add',(_0x105519,_0x304e7a)=>{_0x5d6d22(_0x304e7a);}),this[_0xa3fa('0x2e')](_0x163b9c,_0xa3fa('0x53'),(_0x72d76,_0x3370e0,_0x558318)=>{this[_0xa3fa('0x20')]['get'](_0x3370e0)[_0xa3fa('0x4b')](),this['_annotationToNarrowView'][_0xa3fa('0x58')](_0x3370e0),_0x2176fc[_0xa3fa('0x0')]({'removedAnnotation':_0x3370e0,'previousAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318-0x1),'nextAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318+0x1)}),_0x3370e0===this[_0xa3fa('0x1c')]&&this[_0xa3fa('0x45')](null);},{'priority':_0xa3fa('0x38')}),this['listenTo'](_0x163b9c,_0xa3fa('0x41'),(_0x43bde2,_0x511568)=>{this[_0xa3fa('0x45')](_0x511568);}),this[_0xa3fa('0x2e')](_0x163b9c,'blur',()=>{this[_0xa3fa('0x45')](null);}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x39'),(_0x277001,_0x38a6d0)=>{_0x38a6d0[_0xa3fa('0x15')]===_0x506443[_0xa3fa('0x43')]&&_0x15c5ef[_0xa3fa('0x29')]&&(this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]),this[_0xa3fa('0xb')](),_0x38a6d0[_0xa3fa('0x37')](),_0x38a6d0[_0xa3fa('0x32')]());}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x1f'),(_0x401ab4,_0x71952f)=>{const _0x33f0cb=_0x71952f[_0xa3fa('0x1e')];_0x15c5ef[_0xa3fa('0x29')]&&_0x15c5ef[_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x2176fc[_0xa3fa('0x4c')][_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x401ab4[_0xa3fa('0xc')]||(this[_0xa3fa('0x2')][_0xa3fa('0x36')](),this['_hideBalloon'](),this[_0xa3fa('0x45')](null));});const _0x150498=this['context']['editors']?this['context'][_0xa3fa('0x18')]:new _0x45798c([this[_0xa3fa('0x26')]]);for(const _0x559692 of _0x150498)this[_0xa3fa('0x55')](_0x559692);this[_0xa3fa('0x2e')](_0x150498,_0xa3fa('0x54'),(_0x46947d,_0x4e4207)=>{this[_0xa3fa('0x2e')](_0x4e4207,_0xa3fa('0x3b'),()=>{this['_integrateWithEditorAnnotations'](_0x4e4207);});}),this[_0xa3fa('0x2e')](_0x150498,'remove',(_0x5a2c97,_0x52caf0)=>{_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x59')](_0xa3fa('0xd'))&&this[_0xa3fa('0x16')](_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x4e')](_0xa3fa('0xd')));}),window[_0xa3fa('0x3c')](_0xa3fa('0x13'),this[_0xa3fa('0x31')]),this[_0xa3fa('0x5c')]();}[_0xa3fa('0x45')](_0x4df7a8){if(_0x4df7a8===this[_0xa3fa('0x1c')])return;const _0x18dd5a=this[_0xa3fa('0x26')]['plugins']['get'](_0xa3fa('0x9'));if(_0x18dd5a[_0xa3fa('0x2b')]({'blurredAnnotation':this[_0xa3fa('0x1c')],'activatedAnnotation':_0x4df7a8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4df7a8)_0x18dd5a[_0xa3fa('0x44')](_0x4df7a8)?this['_showBalloon'](_0x4df7a8):this['_hideBalloon']();else this[_0xa3fa('0xb')]();this['activeAnnotation']=_0x4df7a8;}[_0xa3fa('0x28')](){if(!this[_0xa3fa('0x4')])throw new _0x20a550('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x341020=this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')]('Sidebar');this[_0xa3fa('0xb')](),Array['from'](this[_0xa3fa('0x20')][_0xa3fa('0x4a')](),_0x458d31=>_0x458d31['destroy']()),this[_0xa3fa('0x20')][_0xa3fa('0x36')](),_0x341020[_0xa3fa('0x8')](this[_0xa3fa('0x47')]),this[_0xa3fa('0x14')](),this[_0xa3fa('0x1d')][_0xa3fa('0x14')](),this[_0xa3fa('0x14')](this[_0xa3fa('0x26')]['editors']);for(const _0x63e327 of Array['from'](this[_0xa3fa('0x5a')]))this['_destroyEditorAnnotationsIntegration'](_0x63e327);window[_0xa3fa('0x10')](_0xa3fa('0x13'),this['_throttledRefreshPositioning']),this[_0xa3fa('0x31')][_0xa3fa('0x48')](),this[_0xa3fa('0x50')]=[],this['isAttached']=!0x1,this['_annotations']=null;}[_0xa3fa('0x4b')](){this[_0xa3fa('0x4')]&&this['detach'](),this[_0xa3fa('0x5b')]['detachFromDom']();}[_0xa3fa('0x55')](_0x38a283){const _0x34e3e8=_0x38a283['plugins'][_0xa3fa('0x4e')](_0xa3fa('0xd')),_0x4fb254=this[_0xa3fa('0x26')]['plugins']['get'](_0xdcc9b0),_0xdc292b=this['_annotations'],_0x2f897d=this['balloonPanelView'],_0x376133=()=>{const _0x20abe6=_0x34e3e8['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0xa3fa('0x47')]});this[_0xa3fa('0x12')](_0x20abe6),this['setActiveAnnotation'](_0x20abe6[0x0]||null);};this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x2b'),_0x376133),this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x22'),(_0x242c7c,{isAnnotationTracked:_0x3078fb})=>{this[_0xa3fa('0x1c')]&&_0x3078fb(this[_0xa3fa('0x1c')])&&(this[_0xa3fa('0x12')]([]),this[_0xa3fa('0x45')](null));}),this[_0xa3fa('0x2e')](_0x34e3e8,'uiUpdate',()=>{this[_0xa3fa('0x31')]();}),this[_0xa3fa('0x2e')](_0xdc292b,'blur',_0x154f6b=>{_0x34e3e8[_0xa3fa('0x7')]()&&_0x154f6b[_0xa3fa('0x17')]();},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x1d')]['listenTo'](document,_0xa3fa('0x1f'),(_0x53f636,_0x235d60)=>{const _0x5dfa1b=_0x235d60[_0xa3fa('0x1e')];_0x2f897d[_0xa3fa('0x29')]&&_0x2f897d['element']['contains'](_0x5dfa1b)||_0x4fb254[_0xa3fa('0x4c')]['element'][_0xa3fa('0x4f')](_0x5dfa1b)||this[_0xa3fa('0x1c')]&&_0x34e3e8[_0xa3fa('0x7')]()&&(_0x376133(),_0x53f636[_0xa3fa('0xc')]=!0x0);},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x5a')]['add'](_0x34e3e8);}[_0xa3fa('0x16')](_0x1b0005){_0x1b0005&&(this[_0xa3fa('0x14')](_0x1b0005),this[_0xa3fa('0x5a')][_0xa3fa('0x53')](_0x1b0005));}[_0xa3fa('0x12')](_0x1a3e3c){for(const _0x5a6307 of this['_selectedAnnotations'])_0x1a3e3c['includes'](_0x5a6307)||this[_0xa3fa('0x2')]['delete'](_0x5a6307['view']);this[_0xa3fa('0x50')]=_0x1a3e3c;}[_0xa3fa('0x5c')](){const _0x38f839=this[_0xa3fa('0x21')];this[_0xa3fa('0x47')][_0xa3fa('0x19')](),_0x38f839[_0xa3fa('0x29')]&&this[_0xa3fa('0x1b')]();}[_0xa3fa('0x46')](_0x3e8512){if(this[_0xa3fa('0x2')][_0xa3fa('0x59')](_0x3e8512[_0xa3fa('0x4c')]))return;const _0x4a088c=this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x33')];_0x4a088c!==_0x3e8512[_0xa3fa('0x4c')]?(_0x4a088c&&this[_0xa3fa('0x51')](_0x4a088c),this['_attachListeners'](_0x3e8512[_0xa3fa('0x4c')]),this['balloonPanelView']['content']['clear'](),this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x54')](_0x3e8512[_0xa3fa('0x4c')]),this[_0xa3fa('0x1b')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x298bf4=this[_0xa3fa('0x21')]['content'][_0xa3fa('0x33')],_0x5446f8=this['_annotations'][_0xa3fa('0x25')](_0x298bf4);if(!this[_0xa3fa('0x20')][_0xa3fa('0x59')](_0x5446f8))return;const _0x45b66e=this[_0xa3fa('0x20')][_0xa3fa('0x4e')](_0x5446f8)['element'],_0x32f2fa=function(){const _0x5c8749=_0x1c66bc[_0xa3fa('0x42')];return[_0x5c8749[_0xa3fa('0x1')],_0x5c8749['northArrowSouthEast'],_0x5c8749['southArrowNorth'],_0x5c8749[_0xa3fa('0x11')],_0x5c8749[_0xa3fa('0x5e')],_0x5c8749[_0xa3fa('0x56')]];}();this[_0xa3fa('0x21')][_0xa3fa('0x3d')]({'target':_0x45b66e,'positions':_0x32f2fa});}[_0xa3fa('0xb')](){const _0x2cd591=this[_0xa3fa('0x21')],_0x5b034a=_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x33')];_0x5b034a&&(this[_0xa3fa('0x51')](_0x5b034a),_0x2cd591[_0xa3fa('0x57')](),_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x36')]());}[_0xa3fa('0x1a')](_0x4a317e){this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x27'),()=>this[_0xa3fa('0x1b')]()),this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x2d'),(_0x8b3a0c,_0x11476a)=>{this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x4a317e),this['_hideBalloon'](),_0x11476a();});}[_0xa3fa('0x51')](_0x4915a0){this[_0xa3fa('0x14')](_0x4915a0);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ae7=['class','_alignToTargetRect','list','_detachFromContainer','_setItemTop','_activeAnnotation','refresh','get','remove','set','_createSidebarView','config','sidebar-setcontainer-invalid-element','unbind','_sidebarItemViewToAnnotation','isActive','target','last','getIndex','change:_lastItem','_lastItem','_getMaxAvailableTop','_alignAfterItem','_destroySidebarItemView','rearrange','targetRect','isAnimationDisabled','height','listenTo','change:targetRect','_alignBeforeItem','content','setContainer','change:top','stopListening','locale','appendChild','top','bottom','context','updateHeight','_spaceBetweenItems','minHeight','_annotationToSidebarItemView','_targetTop','sidebar.container','destroy','sidebar.preventScrollOutOfView','_getTargetTop','delete','add','_annotations','clear','_attachToContainer','max','addAnnotation','length','container','getSidebarItemView','change:bottom','Sidebar','define','_updateLastItem','_getItemAfter','view','bind','_getItemBefore','element','pluginName'];(function(_0x591697,_0x1ae76b){const _0x3b0a4d=function(_0x1c149e){while(--_0x1c149e){_0x591697['push'](_0x591697['shift']());}};_0x3b0a4d(++_0x1ae76b);}(_0x1ae7,0x1da));const _0x3b0a=function(_0x591697,_0x1ae76b){_0x591697=_0x591697-0x0;let _0x3b0a4d=_0x1ae7[_0x591697];return _0x3b0a4d;};import{ContextPlugin as _0x2dd07b}from'ckeditor5/src/core';import _0x114462 from'./view/sidebarview';import _0x3220c9 from'./view/sidebaritemview';import{Rect as _0x3ca274,CKEditorError as _0x59f212}from'ckeditor5/src/utils';import{isElement as _0x5c5532,throttle as _0xeafcb4}from'lodash-es';export default class b extends _0x2dd07b{static get[_0x3b0a('0x8')](){return _0x3b0a('0x0');}constructor(_0x115bef){super(_0x115bef),this[_0x3b0a('0x12')]('_lastItem'),this[_0x3b0a('0x4')]=this[_0x3b0a('0x13')](),this[_0x3b0a('0x12')](_0x3b0a('0x42'),null),this[_0x3b0a('0x32')]=0x19,this[_0x3b0a('0x17')]=new Map(),this[_0x3b0a('0x34')]=new Map(),this['context']['config'][_0x3b0a('0x1')](_0x3b0a('0x38'),!0x1),this[_0x3b0a('0x3c')]=null,this[_0x3b0a('0xe')]=null;}['init'](){const _0x8fdadc=this[_0x3b0a('0x30')]['config'][_0x3b0a('0x10')](_0x3b0a('0x36'));_0x8fdadc&&this[_0x3b0a('0x29')](_0x8fdadc);}['setContainer'](_0x21a7f1){if(!_0x5c5532(_0x21a7f1))throw new _0x59f212(_0x3b0a('0x15'));this[_0x3b0a('0x42')]=_0x21a7f1;}[_0x3b0a('0x3e')]({viewClass:_0x58a777='',spaceBetweenItems:_0x141235=0x19}={}){if(!_0x5c5532(this[_0x3b0a('0x42')]))throw new _0x59f212('sidebar-attachtocontainer-missing-container',this);this['container'][_0x3b0a('0x2d')](this['view'][_0x3b0a('0x7')]),this[_0x3b0a('0x4')][_0x3b0a('0x9')]=_0x58a777,this[_0x3b0a('0x32')]=_0x141235;}[_0x3b0a('0x21')]({removedAnnotation:_0x2977aa,previousAnnotation:_0x5b5822,nextAnnotation:_0x331c5c}){const _0x10b042=this[_0x3b0a('0x43')](_0x2977aa);this[_0x3b0a('0x4')][_0x3b0a('0xb')]['remove'](_0x10b042),this[_0x3b0a('0x20')](_0x2977aa),_0x5b5822&&this[_0x3b0a('0xa')](this[_0x3b0a('0x43')](_0x5b5822)),_0x331c5c&&this[_0x3b0a('0xa')](this['getSidebarItemView'](_0x331c5c)),this[_0x3b0a('0x2')]();}[_0x3b0a('0xf')]({blurredAnnotation:_0x316ab4,activatedAnnotation:_0x1a1f67,disableAnimationOnActivatedAnnotation:_0xfe1a20}){if(this[_0x3b0a('0xe')]=_0x1a1f67,_0x316ab4){_0x316ab4[_0x3b0a('0x18')]=!0x1;const _0x22d957=this[_0x3b0a('0x43')](_0x316ab4);_0x22d957&&_0xfe1a20&&(_0x22d957[_0x3b0a('0x23')]=!0x1);}if(_0x1a1f67){const _0x2b7fe2=this[_0x3b0a('0x43')](_0x1a1f67);_0x2b7fe2&&(_0x1a1f67[_0x3b0a('0x18')]=!0x0,_0xfe1a20&&(_0x2b7fe2[_0x3b0a('0x23')]=!0x0,_0x2b7fe2[_0x3b0a('0x2e')]+=0x1),this['_alignToTargetRect'](_0x2b7fe2));}}[_0x3b0a('0xc')](_0x18b5bf){this[_0x3b0a('0x2b')](),this['view'][_0x3b0a('0x7')][_0x3b0a('0x11')]();for(const _0x488b4a of _0x18b5bf)this['_destroySidebarItemView'](_0x488b4a);this['view']['list'][_0x3b0a('0x3d')](),this[_0x3b0a('0x4')][_0x3b0a('0x9')]='',this[_0x3b0a('0x1d')]=null;}[_0x3b0a('0x40')](_0xd0fcf6,_0xaf868e){_0xaf868e||(_0xaf868e=_0xd0fcf6[_0x3b0a('0x4')]);const _0x48a969=new _0x3220c9(this[_0x3b0a('0x30')][_0x3b0a('0x2c')]);this[_0x3b0a('0x17')][_0x3b0a('0x12')](_0x48a969,_0xd0fcf6),this[_0x3b0a('0x34')][_0x3b0a('0x12')](_0xd0fcf6,_0x48a969),_0x48a969[_0x3b0a('0x28')][_0x3b0a('0x3b')](_0xaf868e),this[_0x3b0a('0xa')](_0x48a969),this[_0x3b0a('0x25')](_0xd0fcf6['view'],_0x3b0a('0x26'),()=>{const _0x283693=this[_0x3b0a('0x39')](_0x48a969);_0x48a969[_0x3b0a('0x35')]!=_0x283693&&(_0x48a969[_0x3b0a('0x35')]=_0x283693,this[_0x3b0a('0xd')](_0x48a969,_0x283693));}),this[_0x3b0a('0x25')](_0x48a969,_0x3b0a('0x2a'),_0xeafcb4(()=>{if(!_0x48a969[_0x3b0a('0x28')][_0x3b0a('0x41')])return;const _0x2e8e81=this['_getItemBefore'](_0x48a969);if(!_0x2e8e81)return;const _0x1a4efd=this[_0x3b0a('0x17')]['get'](_0x2e8e81),_0x254056=this[_0x3b0a('0xe')];_0x254056&&_0x254056===_0x1a4efd?this['_alignAfterItem'](_0x2e8e81,_0x48a969):this[_0x3b0a('0x27')](_0x48a969,_0x2e8e81);},0xa,{'leading':!0x1})),this[_0x3b0a('0x25')](_0x48a969,_0x3b0a('0x44'),_0xeafcb4(()=>{if(!_0x48a969['content'][_0x3b0a('0x41')])return;const _0x269467=this[_0x3b0a('0x3')](_0x48a969);if(!_0x269467)return;const _0x2cc6ca=this[_0x3b0a('0x17')][_0x3b0a('0x10')](_0x269467),_0x3f527c=this[_0x3b0a('0x30')][_0x3b0a('0x14')][_0x3b0a('0x10')]('sidebar.preventScrollOutOfView'),_0x129bab=this[_0x3b0a('0xe')];_0x129bab&&_0x129bab===_0x2cc6ca&&_0x3f527c?(this[_0x3b0a('0x27')](_0x269467,_0x48a969),this[_0x3b0a('0x1f')](_0x48a969,_0x269467)):_0x129bab&&_0x129bab===_0x2cc6ca?this[_0x3b0a('0x27')](_0x269467,_0x48a969):this[_0x3b0a('0x1f')](_0x48a969,_0x269467);},0xa,{'leading':!0x1}));const _0xc586e2=this[_0x3b0a('0x6')](_0x48a969);if(_0xc586e2)this['_alignAfterItem'](_0xc586e2,_0x48a969)||this[_0x3b0a('0xa')](_0x48a969);else this[_0x3b0a('0xa')](_0x48a969);return this['_updateLastItem'](),this[_0x3b0a('0x4')]['list'][_0x3b0a('0x3b')](_0x48a969),_0x48a969;}[_0x3b0a('0x43')](_0x3ef8c1){return this[_0x3b0a('0x34')]['get'](_0x3ef8c1);}['destroy'](){this['view']['destroy']();}[_0x3b0a('0x20')](_0x2a7ad3){const _0x216831=this[_0x3b0a('0x43')](_0x2a7ad3);this['stopListening'](_0x216831),this[_0x3b0a('0x2b')](_0x2a7ad3[_0x3b0a('0x4')]),_0x216831[_0x3b0a('0x37')](),this[_0x3b0a('0x34')][_0x3b0a('0x3a')](_0x2a7ad3),this['_sidebarItemViewToAnnotation'][_0x3b0a('0x3a')](_0x216831);}[_0x3b0a('0x13')](){const _0x53347f=new _0x114462(this[_0x3b0a('0x30')][_0x3b0a('0x2c')]);return _0x53347f['render'](),this['on'](_0x3b0a('0x1c'),(_0x34ee3c,_0x2542c2,_0x41f3a2,_0x267946)=>{_0x267946&&_0x53347f[_0x3b0a('0x16')](_0x3b0a('0x33')),_0x41f3a2?_0x53347f[_0x3b0a('0x5')]('minHeight')['to'](_0x41f3a2,_0x3b0a('0x2f')):_0x53347f['minHeight']=null;}),_0x53347f;}[_0x3b0a('0x2')](){this[_0x3b0a('0x1d')]=this['getSidebarItemView'](this[_0x3b0a('0x3c')][_0x3b0a('0x1a')]);}[_0x3b0a('0x6')](_0x44ed67){const _0x214226=this['_sidebarItemViewToAnnotation']['get'](_0x44ed67),_0x1ab0f5=this[_0x3b0a('0x3c')][_0x3b0a('0x10')](this[_0x3b0a('0x3c')]['getIndex'](_0x214226)-0x1);return _0x1ab0f5&&this[_0x3b0a('0x43')](_0x1ab0f5);}[_0x3b0a('0x3')](_0x702918){const _0x3bdb34=this[_0x3b0a('0x17')][_0x3b0a('0x10')](_0x702918),_0x239fbd=this[_0x3b0a('0x3c')]['get'](this[_0x3b0a('0x3c')][_0x3b0a('0x1b')](_0x3bdb34)+0x1);return _0x239fbd&&this[_0x3b0a('0x43')](_0x239fbd);}[_0x3b0a('0x27')](_0x590f97,_0x1e3397){_0x590f97[_0x3b0a('0x31')]();const _0xd4ddf6=V(_0x1e3397[_0x3b0a('0x2f')]+this[_0x3b0a('0x32')],_0x590f97[_0x3b0a('0x2e')]);return!!_0xd4ddf6&&(this[_0x3b0a('0xd')](_0x1e3397,_0x1e3397[_0x3b0a('0x2e')]-_0xd4ddf6),!0x0);}[_0x3b0a('0x1f')](_0x4ce17e,_0x300f41){_0x4ce17e[_0x3b0a('0x31')]();const _0xa247ff=V(_0x4ce17e[_0x3b0a('0x2f')]+this[_0x3b0a('0x32')],_0x300f41[_0x3b0a('0x2e')]);return!!_0xa247ff&&(this[_0x3b0a('0xd')](_0x300f41,_0x300f41[_0x3b0a('0x2e')]+_0xa247ff,!0x1),!0x0);}[_0x3b0a('0xa')](_0x495e84){const _0x2942dc=this[_0x3b0a('0x17')][_0x3b0a('0x10')](_0x495e84);if(!_0x2942dc||!_0x2942dc[_0x3b0a('0x19')])return;const _0xe57f30=this[_0x3b0a('0x39')](_0x495e84);this[_0x3b0a('0xd')](_0x495e84,_0xe57f30);}['_getTargetTop'](_0x4ca90c){const _0x664ce5=this[_0x3b0a('0x17')][_0x3b0a('0x10')](_0x4ca90c);if(_0x664ce5[_0x3b0a('0x19')]instanceof _0x3ca274)return _0x664ce5[_0x3b0a('0x22')][_0x3b0a('0x2e')];{const _0x5bb5e6=new _0x3ca274(this[_0x3b0a('0x4')][_0x3b0a('0x7')])[_0x3b0a('0x2e')];return _0x664ce5[_0x3b0a('0x22')]['top']-_0x5bb5e6;}}[_0x3b0a('0xd')](_0x6d97f,_0x4552e8,_0x64bcc3=this[_0x3b0a('0x30')][_0x3b0a('0x14')][_0x3b0a('0x10')]('sidebar.preventScrollOutOfView')){_0x64bcc3&&(_0x4552e8=Math[_0x3b0a('0x3f')](_0x4552e8,this[_0x3b0a('0x1e')](_0x6d97f))),_0x6d97f['top']=_0x4552e8;}[_0x3b0a('0x1e')](_0x3ea965){let _0x45e96e=this[_0x3b0a('0x6')](_0x3ea965),_0xe6dc78=0x0;for(;_0x45e96e;)_0x45e96e[_0x3b0a('0x31')](),_0xe6dc78+=this[_0x3b0a('0x32')]+_0x45e96e[_0x3b0a('0x24')],_0x45e96e=this[_0x3b0a('0x6')](_0x45e96e);return _0xe6dc78;}}function V(_0x5be045,_0x40c389){return Math[_0x3b0a('0x3f')](_0x5be045-_0x40c389,0x0);}
23
+ const _0x2a07=['_spaceBetweenItems','minHeight','length','addAnnotation','_updateLastItem','_annotationToSidebarItemView','_annotations','view','content','delete','_getTargetTop','getIndex','bottom','_getItemAfter','top','updateHeight','_detachFromContainer','rearrange','_getItemBefore','_lastItem','remove','sidebar.preventScrollOutOfView','listenTo','last','_destroySidebarItemView','context','sidebar-setcontainer-invalid-element','target','_attachToContainer','change:_lastItem','getSidebarItemView','add','_setItemTop','bind','config','_activeAnnotation','destroy','_createSidebarView','_sidebarItemViewToAnnotation','list','change:bottom','Sidebar','_alignBeforeItem','container','_alignAfterItem','sidebar-attachtocontainer-missing-container','setContainer','set','_targetTop','max','isAnimationDisabled','pluginName','element','change:top','init','stopListening','class','locale','clear','appendChild','change:targetRect','define','sidebar.container','isActive','get','targetRect','refresh','_getMaxAvailableTop','_alignToTargetRect','height'];(function(_0x4f7cb2,_0x2a0701){const _0x32202f=function(_0x23ba6b){while(--_0x23ba6b){_0x4f7cb2['push'](_0x4f7cb2['shift']());}};_0x32202f(++_0x2a0701);}(_0x2a07,0x1b2));const _0x3220=function(_0x4f7cb2,_0x2a0701){_0x4f7cb2=_0x4f7cb2-0x0;let _0x32202f=_0x2a07[_0x4f7cb2];return _0x32202f;};import{ContextPlugin as _0x30bcc9}from'ckeditor5/src/core';import _0x36d231 from'./view/sidebarview';import _0x31561d from'./view/sidebaritemview';import{Rect as _0x4fa7f3,CKEditorError as _0x5aa609}from'ckeditor5/src/utils';import{isElement as _0x5c2a45,throttle as _0x5cfa75}from'lodash-es';export default class b extends _0x30bcc9{static get[_0x3220('0x25')](){return _0x3220('0x1b');}constructor(_0x107353){super(_0x107353),this[_0x3220('0x21')](_0x3220('0x5')),this[_0x3220('0x3f')]=this[_0x3220('0x17')](),this['set'](_0x3220('0x1d'),null),this[_0x3220('0x38')]=0x19,this[_0x3220('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x3220('0x14')][_0x3220('0x2f')](_0x3220('0x7'),!0x1),this[_0x3220('0x3e')]=null,this[_0x3220('0x15')]=null;}[_0x3220('0x28')](){const _0x490712=this['context'][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x30'));_0x490712&&this[_0x3220('0x20')](_0x490712);}['setContainer'](_0x324f2f){if(!_0x5c2a45(_0x324f2f))throw new _0x5aa609(_0x3220('0xc'));this[_0x3220('0x1d')]=_0x324f2f;}[_0x3220('0xe')]({viewClass:_0xce7e41='',spaceBetweenItems:_0x1fb45a=0x19}={}){if(!_0x5c2a45(this[_0x3220('0x1d')]))throw new _0x5aa609(_0x3220('0x1f'),this);this[_0x3220('0x1d')][_0x3220('0x2d')](this['view'][_0x3220('0x26')]),this[_0x3220('0x3f')][_0x3220('0x2a')]=_0xce7e41,this[_0x3220('0x38')]=_0x1fb45a;}[_0x3220('0x3')]({removedAnnotation:_0x4e5029,previousAnnotation:_0x4b3ca8,nextAnnotation:_0x3307a7}){const _0x30e497=this[_0x3220('0x10')](_0x4e5029);this[_0x3220('0x3f')][_0x3220('0x19')][_0x3220('0x6')](_0x30e497),this[_0x3220('0xa')](_0x4e5029),_0x4b3ca8&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x4b3ca8)),_0x3307a7&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x3307a7)),this['_updateLastItem']();}[_0x3220('0x34')]({blurredAnnotation:_0x5cdeab,activatedAnnotation:_0x19b67e,disableAnimationOnActivatedAnnotation:_0x1a0764}){if(this[_0x3220('0x15')]=_0x19b67e,_0x5cdeab){_0x5cdeab[_0x3220('0x31')]=!0x1;const _0x3e74ee=this[_0x3220('0x10')](_0x5cdeab);_0x3e74ee&&_0x1a0764&&(_0x3e74ee[_0x3220('0x24')]=!0x1);}if(_0x19b67e){const _0x175c7e=this[_0x3220('0x10')](_0x19b67e);_0x175c7e&&(_0x19b67e[_0x3220('0x31')]=!0x0,_0x1a0764&&(_0x175c7e['isAnimationDisabled']=!0x0,_0x175c7e[_0x3220('0x0')]+=0x1),this['_alignToTargetRect'](_0x175c7e));}}[_0x3220('0x2')](_0x377973){this[_0x3220('0x29')](),this[_0x3220('0x3f')][_0x3220('0x26')][_0x3220('0x6')]();for(const _0xc816e0 of _0x377973)this[_0x3220('0xa')](_0xc816e0);this['view'][_0x3220('0x19')][_0x3220('0x2c')](),this['view']['class']='',this[_0x3220('0x5')]=null;}[_0x3220('0x3b')](_0x456072,_0x467621){_0x467621||(_0x467621=_0x456072[_0x3220('0x3f')]);const _0x1f5e25=new _0x31561d(this[_0x3220('0xb')][_0x3220('0x2b')]);this[_0x3220('0x18')][_0x3220('0x21')](_0x1f5e25,_0x456072),this[_0x3220('0x3d')]['set'](_0x456072,_0x1f5e25),_0x1f5e25[_0x3220('0x40')][_0x3220('0x11')](_0x467621),this[_0x3220('0x36')](_0x1f5e25),this['listenTo'](_0x456072[_0x3220('0x3f')],_0x3220('0x2e'),()=>{const _0x421033=this[_0x3220('0x42')](_0x1f5e25);_0x1f5e25[_0x3220('0x22')]!=_0x421033&&(_0x1f5e25[_0x3220('0x22')]=_0x421033,this[_0x3220('0x12')](_0x1f5e25,_0x421033));}),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x27'),_0x5cfa75(()=>{if(!_0x1f5e25[_0x3220('0x40')][_0x3220('0x3a')])return;const _0x594e79=this[_0x3220('0x4')](_0x1f5e25);if(!_0x594e79)return;const _0x2724dc=this[_0x3220('0x18')][_0x3220('0x32')](_0x594e79),_0x56c4a4=this['_activeAnnotation'];_0x56c4a4&&_0x56c4a4===_0x2724dc?this[_0x3220('0x1e')](_0x594e79,_0x1f5e25):this[_0x3220('0x1c')](_0x1f5e25,_0x594e79);},0xa,{'leading':!0x1})),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x1a'),_0x5cfa75(()=>{if(!_0x1f5e25['content'][_0x3220('0x3a')])return;const _0x3f44ee=this[_0x3220('0x45')](_0x1f5e25);if(!_0x3f44ee)return;const _0x26d6d1=this[_0x3220('0x18')][_0x3220('0x32')](_0x3f44ee),_0x28d4ce=this[_0x3220('0xb')][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x7')),_0x5c2cfb=this['_activeAnnotation'];_0x5c2cfb&&_0x5c2cfb===_0x26d6d1&&_0x28d4ce?(this[_0x3220('0x1c')](_0x3f44ee,_0x1f5e25),this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee)):_0x5c2cfb&&_0x5c2cfb===_0x26d6d1?this['_alignBeforeItem'](_0x3f44ee,_0x1f5e25):this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee);},0xa,{'leading':!0x1}));const _0x283c35=this[_0x3220('0x4')](_0x1f5e25);if(_0x283c35)this[_0x3220('0x1e')](_0x283c35,_0x1f5e25)||this['_alignToTargetRect'](_0x1f5e25);else this[_0x3220('0x36')](_0x1f5e25);return this['_updateLastItem'](),this[_0x3220('0x3f')]['list'][_0x3220('0x11')](_0x1f5e25),_0x1f5e25;}[_0x3220('0x10')](_0x1a1496){return this[_0x3220('0x3d')][_0x3220('0x32')](_0x1a1496);}['destroy'](){this[_0x3220('0x3f')][_0x3220('0x16')]();}[_0x3220('0xa')](_0x69917){const _0x4b50aa=this['getSidebarItemView'](_0x69917);this[_0x3220('0x29')](_0x4b50aa),this[_0x3220('0x29')](_0x69917['view']),_0x4b50aa[_0x3220('0x16')](),this[_0x3220('0x3d')][_0x3220('0x41')](_0x69917),this[_0x3220('0x18')][_0x3220('0x41')](_0x4b50aa);}[_0x3220('0x17')](){const _0x46fbd2=new _0x36d231(this[_0x3220('0xb')][_0x3220('0x2b')]);return _0x46fbd2['render'](),this['on'](_0x3220('0xf'),(_0x39761d,_0x2127ce,_0x2c0c1f,_0x41d1b6)=>{_0x41d1b6&&_0x46fbd2['unbind'](_0x3220('0x39')),_0x2c0c1f?_0x46fbd2[_0x3220('0x13')](_0x3220('0x39'))['to'](_0x2c0c1f,_0x3220('0x44')):_0x46fbd2[_0x3220('0x39')]=null;}),_0x46fbd2;}[_0x3220('0x3c')](){this['_lastItem']=this[_0x3220('0x10')](this['_annotations'][_0x3220('0x9')]);}[_0x3220('0x4')](_0x17337f){const _0xbc4708=this[_0x3220('0x18')][_0x3220('0x32')](_0x17337f),_0x137844=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0xbc4708)-0x1);return _0x137844&&this['getSidebarItemView'](_0x137844);}['_getItemAfter'](_0x3d095d){const _0x32e84e=this[_0x3220('0x18')][_0x3220('0x32')](_0x3d095d),_0x4292b9=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0x32e84e)+0x1);return _0x4292b9&&this[_0x3220('0x10')](_0x4292b9);}['_alignBeforeItem'](_0x318bfb,_0x27608e){_0x318bfb[_0x3220('0x1')]();const _0x560500=C(_0x27608e['bottom']+this[_0x3220('0x38')],_0x318bfb[_0x3220('0x0')]);return!!_0x560500&&(this[_0x3220('0x12')](_0x27608e,_0x27608e[_0x3220('0x0')]-_0x560500),!0x0);}['_alignAfterItem'](_0xf7943a,_0x3dfce2){_0xf7943a[_0x3220('0x1')]();const _0x539fea=C(_0xf7943a[_0x3220('0x44')]+this['_spaceBetweenItems'],_0x3dfce2[_0x3220('0x0')]);return!!_0x539fea&&(this[_0x3220('0x12')](_0x3dfce2,_0x3dfce2[_0x3220('0x0')]+_0x539fea,!0x1),!0x0);}[_0x3220('0x36')](_0x131abd){const _0xbc1962=this['_sidebarItemViewToAnnotation'][_0x3220('0x32')](_0x131abd);if(!_0xbc1962||!_0xbc1962[_0x3220('0xd')])return;const _0x72ecc3=this[_0x3220('0x42')](_0x131abd);this[_0x3220('0x12')](_0x131abd,_0x72ecc3);}[_0x3220('0x42')](_0x30fb82){const _0x131b9f=this[_0x3220('0x18')][_0x3220('0x32')](_0x30fb82);if(null===_0x131b9f[_0x3220('0x33')])return 0x0;if(_0x131b9f['target']instanceof _0x4fa7f3)return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')];{const _0x46cdd8=new _0x4fa7f3(this['view'][_0x3220('0x26')])['top'];return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')]-_0x46cdd8;}}[_0x3220('0x12')](_0x1e22d2,_0x31f3ff,_0x5119a5=this[_0x3220('0xb')]['config'][_0x3220('0x32')](_0x3220('0x7'))){_0x5119a5&&(_0x31f3ff=Math['max'](_0x31f3ff,this[_0x3220('0x35')](_0x1e22d2))),_0x1e22d2[_0x3220('0x0')]=_0x31f3ff;}[_0x3220('0x35')](_0x17b881){let _0x14e1c5=this['_getItemBefore'](_0x17b881),_0x4e227d=0x0;for(;_0x14e1c5;)_0x14e1c5[_0x3220('0x1')](),_0x4e227d+=this['_spaceBetweenItems']+_0x14e1c5[_0x3220('0x37')],_0x14e1c5=this[_0x3220('0x4')](_0x14e1c5);return _0x4e227d;}}function C(_0x754e11,_0x19ea72){return Math[_0x3220('0x23')](_0x754e11-_0x19ea72,0x0);}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fdc=['ck-annotation-counter__badge--edit-mode','annotationType','ck-annotation-counter__badge--','ck-annotation-counter__badge','isDirty','number','bindTemplate','ck-annotation-counter','children','span','...','icon','add','_badge','counterView','extendTemplate','set'];(function(_0x50d531,_0x1fdc85){const _0x1b1830=function(_0x2844ed){while(--_0x2844ed){_0x50d531['push'](_0x50d531['shift']());}};_0x1b1830(++_0x1fdc85);}(_0x1fdc,0x1b7));const _0x1b18=function(_0x50d531,_0x1fdc85){_0x50d531=_0x50d531-0x0;let _0x1b1830=_0x1fdc[_0x50d531];return _0x1b1830;};import{ButtonView as _0x258a70,View as _0xd4c56e}from'ckeditor5/src/ui';import _0x198e09 from'../../../theme/icons/add-comment-inverted.svg';export default class _ extends _0x258a70{constructor(_0xeb9a28){super(_0xeb9a28);const _0x644bbc=this[_0x1b18('0x9')];this[_0x1b18('0x2')](_0x1b18('0x7'),!0x1),this['set'](_0x1b18('0x8'),0x0),this['bind'](_0x1b18('0x10'))['to'](this,_0x1b18('0x7'),this,_0x1b18('0x8'),(_0x46d885,_0x4aa427)=>_0x46d885?_0x1b18('0xd'):_0x4aa427),this[_0x1b18('0x2')](_0x1b18('0x4'),''),this[_0x1b18('0xe')]=_0x198e09,this[_0x1b18('0x1')]({'attributes':{'class':[_0x1b18('0xa')]}}),this[_0x1b18('0x0')]=new _0xd4c56e(),this[_0x1b18('0x0')]['setTemplate']({'tag':_0x1b18('0xc'),'attributes':{'class':[_0x1b18('0x6'),_0x644bbc['to'](_0x1b18('0x4'),_0x4fa0f7=>_0x1b18('0x5')+_0x4fa0f7),_0x644bbc['if'](_0x1b18('0x7'),_0x1b18('0x3'))]},'children':[{'text':_0x644bbc['to'](_0x1b18('0x10'))}]}),this[_0x1b18('0xb')][_0x1b18('0xf')](this[_0x1b18('0x0')]);}}
23
+ const _0x135b=['annotationType','add','ck-annotation-counter__badge--edit-mode','bind','children','ck-annotation-counter__badge--','ck-annotation-counter','icon','counterView','isDirty','ck-annotation-counter__badge','set','number'];(function(_0x519ce,_0x135b7c){const _0xdfd35=function(_0x482f09){while(--_0x482f09){_0x519ce['push'](_0x519ce['shift']());}};_0xdfd35(++_0x135b7c);}(_0x135b,0x65));const _0xdfd3=function(_0x519ce,_0x135b7c){_0x519ce=_0x519ce-0x0;let _0xdfd35=_0x135b[_0x519ce];return _0xdfd35;};import{ButtonView as _0x1e4576,View as _0x2d718f}from'ckeditor5/src/ui';import _0x360a61 from'../../../theme/icons/add-comment.svg';export default class B extends _0x1e4576{constructor(_0x4056f8){super(_0x4056f8);const _0x48770b=this['bindTemplate'];this[_0xdfd3('0x1')](_0xdfd3('0xc'),!0x1),this[_0xdfd3('0x1')](_0xdfd3('0x2'),0x0),this[_0xdfd3('0x6')]('_badge')['to'](this,_0xdfd3('0xc'),this,_0xdfd3('0x2'),(_0x1d5d67,_0x55524e)=>_0x1d5d67?'...':_0x55524e),this[_0xdfd3('0x1')](_0xdfd3('0x3'),''),this[_0xdfd3('0xa')]=_0x360a61,this['extendTemplate']({'attributes':{'class':[_0xdfd3('0x9')]}}),this[_0xdfd3('0xb')]=new _0x2d718f(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0xdfd3('0x0'),_0x48770b['to'](_0xdfd3('0x3'),_0x3486d2=>_0xdfd3('0x8')+_0x3486d2),_0x48770b['if'](_0xdfd3('0xc'),_0xdfd3('0x5'))]},'children':[{'text':_0x48770b['to']('_badge')}]}),this[_0xdfd3('0x7')][_0xdfd3('0x4')](this[_0xdfd3('0xb')]);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38a0=['_mutationObserver','render','fire','createCollection','isDirty','ck-rounded-corners','type','mainView','bindTemplate','height','focus','length','listenTo','attach','element','content','ck-annotation-wrapper--active','detach','ck-annotation-wrapper','targetRect','keystrokes','isActive','_updateHeight','destroy','setTemplate','set','Esc','focusTracker','add'];(function(_0xa889c7,_0x38a095){const _0x3e144c=function(_0xea0366){while(--_0xea0366){_0xa889c7['push'](_0xa889c7['shift']());}};_0x3e144c(++_0x38a095);}(_0x38a0,0x90));const _0x3e14=function(_0xa889c7,_0x38a095){_0xa889c7=_0xa889c7-0x0;let _0x3e144c=_0x38a0[_0xa889c7];return _0x3e144c;};import{View as _0x2509b5}from'ckeditor5/src/ui';import{FocusTracker as _0x4b20a6,KeystrokeHandler as _0x1569c6,uid as _0x5cf626}from'ckeditor5/src/utils';import _0x428c88 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0x2509b5{constructor(_0x27f1a4,_0x16e542){super(_0x27f1a4),this['id']=_0x5cf626(),this[_0x3e14('0x1c')]=new _0x4b20a6(),this[_0x3e14('0x15')]=new _0x1569c6(),this[_0x3e14('0x15')][_0x3e14('0x1a')](_0x3e14('0x1b'),(_0x58df45,_0x41710b)=>this[_0x3e14('0x3')]('Esc',_0x41710b)),this[_0x3e14('0x1a')](_0x3e14('0x14'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3e14('0x1a')](_0x3e14('0xa'),0x0),this[_0x3e14('0x1a')](_0x3e14('0x16'),!0x1),this['set'](_0x3e14('0x5'),!0x1),this[_0x3e14('0x1a')](_0x3e14('0xc'),0x0),this[_0x3e14('0x1a')](_0x3e14('0x7'),''),this[_0x3e14('0x1')]=_0x428c88(()=>this[_0x3e14('0x17')]()),this[_0x3e14('0x10')]=this[_0x3e14('0x4')](),this[_0x3e14('0x10')][_0x3e14('0x0')](_0x16e542),this[_0x3e14('0x8')]=_0x16e542;const _0x279e6d=this[_0x3e14('0x9')];this[_0x3e14('0x19')]({'tag':'div','attributes':{'class':['ck',_0x3e14('0x13'),_0x3e14('0x6'),_0x279e6d['if'](_0x3e14('0x16'),_0x3e14('0x11'))],'tabindex':-0x1},'children':this[_0x3e14('0x10')]});}[_0x3e14('0x2')](){super[_0x3e14('0x2')](),this[_0x3e14('0x1c')][_0x3e14('0x0')](this[_0x3e14('0xf')]),this[_0x3e14('0x15')][_0x3e14('0xd')](this[_0x3e14('0xf')]),this['_mutationObserver'][_0x3e14('0xe')](this[_0x3e14('0xf')]);}[_0x3e14('0x18')](){this['content']['clear'](),this[_0x3e14('0x15')][_0x3e14('0x18')](),this[_0x3e14('0x1c')][_0x3e14('0x18')](),this[_0x3e14('0x1')][_0x3e14('0x12')](),super[_0x3e14('0x18')]();}[_0x3e14('0xb')](){this['element'][_0x3e14('0xb')]();}['_updateHeight'](){const _0x2968c8=this[_0x3e14('0xf')]['clientHeight'];_0x2968c8&&(this[_0x3e14('0xa')]=_0x2968c8);}}
23
+ const _0x2e5a=['focusTracker','mainView','clientHeight','div','render','_mutationObserver','add','isActive','focus','detach','bindTemplate','content','element','ck-rounded-corners','keystrokes','listenTo','attach','ck-annotation-wrapper','type','height','Esc','createCollection','isDirty','_updateHeight','destroy','setTemplate','set','fire'];(function(_0x5eb722,_0x2e5a13){const _0x5adf90=function(_0x31752f){while(--_0x31752f){_0x5eb722['push'](_0x5eb722['shift']());}};_0x5adf90(++_0x2e5a13);}(_0x2e5a,0x1f2));const _0x5adf=function(_0x5eb722,_0x2e5a13){_0x5eb722=_0x5eb722-0x0;let _0x5adf90=_0x2e5a[_0x5eb722];return _0x5adf90;};import{View as _0x52f669}from'ckeditor5/src/ui';import{FocusTracker as _0x348e70,KeystrokeHandler as _0x3a5703,uid as _0x5b956f}from'ckeditor5/src/utils';import _0x5ba1b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class it extends _0x52f669{constructor(_0x597702,_0x55c8fb){super(_0x597702),this['id']=_0x5b956f(),this['focusTracker']=new _0x348e70(),this[_0x5adf('0x14')]=new _0x3a5703(),this[_0x5adf('0x14')][_0x5adf('0x4')](_0x5adf('0x1a'),(_0x4608cb,_0x1a190f)=>this[_0x5adf('0x5')](_0x5adf('0x1a'),_0x1a190f)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5adf('0x4')](_0x5adf('0x19'),0x0),this[_0x5adf('0x4')](_0x5adf('0xd'),!0x1),this[_0x5adf('0x4')](_0x5adf('0x0'),!0x1),this[_0x5adf('0x4')]('length',0x0),this[_0x5adf('0x4')](_0x5adf('0x18'),''),this[_0x5adf('0xb')]=_0x5ba1b(()=>this[_0x5adf('0x1')]()),this[_0x5adf('0x11')]=this[_0x5adf('0x1b')](),this['content'][_0x5adf('0xc')](_0x55c8fb),this[_0x5adf('0x7')]=_0x55c8fb;const _0x1d4079=this[_0x5adf('0x10')];this[_0x5adf('0x3')]({'tag':_0x5adf('0x9'),'attributes':{'class':['ck',_0x5adf('0x17'),_0x5adf('0x13'),_0x1d4079['if'](_0x5adf('0xd'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5adf('0x11')]});}[_0x5adf('0xa')](){super['render'](),this[_0x5adf('0x6')]['add'](this[_0x5adf('0x12')]),this[_0x5adf('0x14')][_0x5adf('0x15')](this['element']),this[_0x5adf('0xb')][_0x5adf('0x16')](this[_0x5adf('0x12')]);}[_0x5adf('0x2')](){this[_0x5adf('0x11')]['clear'](),this[_0x5adf('0x14')][_0x5adf('0x2')](),this['focusTracker']['destroy'](),this[_0x5adf('0xb')][_0x5adf('0xf')](),super[_0x5adf('0x2')]();}[_0x5adf('0xe')](){this[_0x5adf('0x12')][_0x5adf('0xe')]();}[_0x5adf('0x1')](){const _0x4e5ec7=this[_0x5adf('0x12')][_0x5adf('0x8')];_0x4e5ec7&&(this[_0x5adf('0x19')]=_0x4e5ec7);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c64=['top','render','bottom','attach','content','destroy','bind','detach','updateHeight','bindTemplate','clear','clientHeight','isAnimationDisabled','set','_mutationObserver','div','height','ck-sidebar-item','createCollection','element','setTemplate','_targetTop','ck-sidebar-item--no-animation'];(function(_0x14af6b,_0x1c64ca){const _0x2345dd=function(_0x4eebf3){while(--_0x4eebf3){_0x14af6b['push'](_0x14af6b['shift']());}};_0x2345dd(++_0x1c64ca);}(_0x1c64,0x69));const _0x2345=function(_0x14af6b,_0x1c64ca){_0x14af6b=_0x14af6b-0x0;let _0x2345dd=_0x1c64[_0x14af6b];return _0x2345dd;};import{View as _0x1f96db}from'ckeditor5/src/ui';import{toUnit as _0x5b3382}from'ckeditor5/src/utils';import _0x5e9646 from'../../utils/createmutationobserver';const gt=_0x5b3382('px');export default class T extends _0x1f96db{constructor(_0x2d2aa4){super(_0x2d2aa4),this[_0x2345('0x0')]('top'),this[_0x2345('0x0')](_0x2345('0x3'),0x0),this[_0x2345('0x10')](_0x2345('0xc'))['to'](this,_0x2345('0xa'),this,_0x2345('0x3'),(_0x568395,_0x253df6)=>(_0x568395||0x0)+_0x253df6),this[_0x2345('0x0')](_0x2345('0x16'),!0x1),this[_0x2345('0x1')]=_0x5e9646(()=>this[_0x2345('0x12')]()),this[_0x2345('0x8')]=null,this[_0x2345('0xe')]=this[_0x2345('0x5')]();const _0x5d07d0=this[_0x2345('0x13')];this[_0x2345('0x7')]({'tag':_0x2345('0x2'),'attributes':{'class':[_0x2345('0x4'),_0x5d07d0['to']('isAnimationDisabled',_0x4bc861=>_0x4bc861?_0x2345('0x9'):'')],'style':{'top':_0x5d07d0['to'](_0x2345('0xa'),gt)}},'children':this['content']});}[_0x2345('0xb')](){super[_0x2345('0xb')](),this[_0x2345('0x1')][_0x2345('0xd')](this['element']);}['updateHeight'](){const _0x75a648=this[_0x2345('0x6')][_0x2345('0x15')];_0x75a648&&(this[_0x2345('0x3')]=_0x75a648);}[_0x2345('0xf')](){this['content'][_0x2345('0x14')](),this['_mutationObserver'][_0x2345('0x11')](),super['destroy']();}}
23
+ const _0x5d9f=['_mutationObserver','top','bind','set','setTemplate','bottom','render','element','height','content','bindTemplate','createCollection','updateHeight','ck-sidebar-item','destroy','isAnimationDisabled','clientHeight','detach','attach','_targetTop'];(function(_0x1c3a0b,_0x5d9f57){const _0x189dd0=function(_0x4d06b7){while(--_0x4d06b7){_0x1c3a0b['push'](_0x1c3a0b['shift']());}};_0x189dd0(++_0x5d9f57);}(_0x5d9f,0x6b));const _0x189d=function(_0x1c3a0b,_0x5d9f57){_0x1c3a0b=_0x1c3a0b-0x0;let _0x189dd0=_0x5d9f[_0x1c3a0b];return _0x189dd0;};import{View as _0x5a04fc}from'ckeditor5/src/ui';import{toUnit as _0x28f1b0}from'ckeditor5/src/utils';import _0x40690c from'../../utils/createmutationobserver';const gt=_0x28f1b0('px');export default class V extends _0x5a04fc{constructor(_0x4fef88){super(_0x4fef88),this['set']('top'),this[_0x189d('0x10')]('height',0x0),this[_0x189d('0xf')](_0x189d('0x12'))['to'](this,_0x189d('0xe'),this,_0x189d('0x1'),(_0x160580,_0xd3467f)=>(_0x160580||0x0)+_0xd3467f),this[_0x189d('0x10')](_0x189d('0x8'),!0x1),this[_0x189d('0xd')]=_0x40690c(()=>this[_0x189d('0x5')]()),this[_0x189d('0xc')]=null,this[_0x189d('0x2')]=this[_0x189d('0x4')]();const _0x42917e=this[_0x189d('0x3')];this[_0x189d('0x11')]({'tag':'div','attributes':{'class':[_0x189d('0x6'),_0x42917e['to'](_0x189d('0x8'),_0x2f2292=>_0x2f2292?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x42917e['to'](_0x189d('0xe'),gt)}},'children':this[_0x189d('0x2')]});}['render'](){super[_0x189d('0x13')](),this[_0x189d('0xd')][_0x189d('0xb')](this[_0x189d('0x0')]);}[_0x189d('0x5')](){const _0x83fd3d=this['element'][_0x189d('0x9')];_0x83fd3d&&(this[_0x189d('0x1')]=_0x83fd3d);}[_0x189d('0x7')](){this['content']['clear'](),this[_0x189d('0xd')][_0x189d('0xa')](),super[_0x189d('0x7')]();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5292=['minHeight','class','set','createCollection','list','setTemplate','div'];(function(_0x3a4289,_0x5292c1){const _0xa86720=function(_0x244f64){while(--_0x244f64){_0x3a4289['push'](_0x3a4289['shift']());}};_0xa86720(++_0x5292c1);}(_0x5292,0x158));const _0xa867=function(_0x3a4289,_0x5292c1){_0x3a4289=_0x3a4289-0x0;let _0xa86720=_0x5292[_0x3a4289];return _0xa86720;};import{View as _0x2d1583}from'ckeditor5/src/ui';import{toUnit as _0x58652a}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x58652a('px');export default class O extends _0x2d1583{constructor(_0x39ae25){super(_0x39ae25);const _0x52b901=this['bindTemplate'];this['set'](_0xa867('0x6'),0x0),this[_0xa867('0x1')](_0xa867('0x0'),''),this[_0xa867('0x3')]=this[_0xa867('0x2')](),this[_0xa867('0x4')]({'tag':_0xa867('0x5'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x52b901['to'](_0xa867('0x0'))],'style':{'minHeight':_0x52b901['to'](_0xa867('0x6'),_0x53f809=>_0x53f809?gt(_0x53f809+0xa):null)}},'children':this[_0xa867('0x3')]});}}
23
+ const _0x30c3=['set','class','setTemplate','ck-reset','div','list','createCollection','bindTemplate','minHeight'];(function(_0xed5014,_0x30c38f){const _0x178aa0=function(_0x3ea671){while(--_0x3ea671){_0xed5014['push'](_0xed5014['shift']());}};_0x178aa0(++_0x30c38f);}(_0x30c3,0xa2));const _0x178a=function(_0xed5014,_0x30c38f){_0xed5014=_0xed5014-0x0;let _0x178aa0=_0x30c3[_0xed5014];return _0x178aa0;};import{View as _0x278cfa}from'ckeditor5/src/ui';import{toUnit as _0x6dd516}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x6dd516('px');export default class T extends _0x278cfa{constructor(_0x54db50){super(_0x54db50);const _0x590762=this[_0x178a('0x7')];this['set'](_0x178a('0x8'),0x0),this[_0x178a('0x0')]('class',''),this['list']=this[_0x178a('0x6')](),this[_0x178a('0x2')]({'tag':_0x178a('0x4'),'attributes':{'class':['ck','ck-sidebar',_0x178a('0x3'),_0x590762['to'](_0x178a('0x1'))],'style':{'minHeight':_0x590762['to'](_0x178a('0x8'),_0x1056b2=>_0x1056b2?gt(_0x1056b2+0xa):null)}},'children':this[_0x178a('0x5')]});}}