@ckeditor/ckeditor5-comments 35.4.0 → 36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/sr-latn.js +1 -1
  3. package/build/translations/sr.js +1 -1
  4. package/build/translations/ug.js +1 -1
  5. package/lang/translations/af.po +1 -1
  6. package/lang/translations/ar.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/bs.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de-ch.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/nl.po +1 -1
  38. package/lang/translations/no.po +1 -1
  39. package/lang/translations/pl.po +1 -1
  40. package/lang/translations/pt-br.po +1 -1
  41. package/lang/translations/pt.po +1 -1
  42. package/lang/translations/ro.po +1 -1
  43. package/lang/translations/ru.po +1 -1
  44. package/lang/translations/sk.po +1 -1
  45. package/lang/translations/sr-latn.po +5 -5
  46. package/lang/translations/sr.po +5 -5
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +7 -7
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +3 -3
  59. package/src/annotations/annotation.js +2 -2
  60. package/src/annotations/annotationcollection.js +2 -2
  61. package/src/annotations/annotations.js +2 -2
  62. package/src/annotations/annotationsuis.js +2 -2
  63. package/src/annotations/editorannotations.js +2 -2
  64. package/src/annotations/inlineannotations.js +2 -2
  65. package/src/annotations/narrowsidebar.js +2 -2
  66. package/src/annotations/sidebar.js +2 -2
  67. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  68. package/src/annotations/view/annotationview.js +2 -2
  69. package/src/annotations/view/sidebaritemview.js +2 -2
  70. package/src/annotations/view/sidebarview.js +2 -2
  71. package/src/annotations/widesidebar.js +2 -2
  72. package/src/comments/addcommentthreadcommand.js +2 -2
  73. package/src/comments/commentsediting.js +2 -2
  74. package/src/comments/commentsrepository.js +2 -2
  75. package/src/comments/commentsui.js +2 -2
  76. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  77. package/src/comments/integrations/importword.js +2 -2
  78. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  79. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  80. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  81. package/src/comments/ui/commentthreadcontroller.js +2 -2
  82. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  83. package/src/comments/ui/view/basecommentview.js +2 -2
  84. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  85. package/src/comments/ui/view/commentcontentview.js +2 -2
  86. package/src/comments/ui/view/commentinputview.js +2 -2
  87. package/src/comments/ui/view/commentslistview.js +2 -2
  88. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  89. package/src/comments/ui/view/commentthreadview.js +2 -2
  90. package/src/comments/ui/view/commentview.js +2 -2
  91. package/src/comments.js +2 -2
  92. package/src/commentsonly.js +2 -2
  93. package/src/index.js +1 -1
  94. package/src/utils/common-translations.js +2 -2
  95. package/src/utils/createmutationobserver.js +2 -2
  96. package/theme/commentthread.css +7 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x52bf=['collection','_activateAnnotation','activeAnnotations','createAnnotation','activate','refreshVisibility','remove','deactivateAll','add','_addActiveAnnotation','stopListening','pluginName','fire','change:isVisible','createAnnotationView','getByInnerView','set','isVisible','_bindAnnotationsToVisibleAnnotations','_removeActiveAnnotation','_visibleAnnotations','_deactivateAllAnnotations','destroy'];(function(_0x52d595,_0x52bf35){const _0x3bbffa=function(_0x204c6c){while(--_0x204c6c){_0x52d595['push'](_0x52d595['shift']());}};_0x3bbffa(++_0x52bf35);}(_0x52bf,0x1c0));const _0x3bbf=function(_0x52d595,_0x52bf35){_0x52d595=_0x52d595-0x0;let _0x3bbffa=_0x52bf[_0x52d595];return _0x3bbffa;};import{ContextPlugin as _0x466a6b}from'ckeditor5/src/core';import _0x4ecdfa from'./annotation';import _0x8cad48 from'./annotationcollection';import _0x5dbcb6 from'./view/annotationview';export default class V extends _0x466a6b{static get[_0x3bbf('0x0')](){return'Annotations';}constructor(_0x5950d7){super(_0x5950d7),this[_0x3bbf('0xc')]=new _0x8cad48(),this[_0x3bbf('0x9')]=new _0x8cad48(),this[_0x3bbf('0x5')](_0x3bbf('0xe'),new Set()),this[_0x3bbf('0x7')]();}[_0x3bbf('0x14')](_0x3a8b34){this['collection'][_0x3bbf('0x14')](_0x3a8b34);}[_0x3bbf('0x12')](_0x35a92a){this[_0x3bbf('0xc')]['remove'](_0x35a92a),_0x35a92a[_0x3bbf('0xb')]();}['refreshVisibility'](){for(const _0x15e087 of this[_0x3bbf('0xc')])_0x15e087[_0x3bbf('0x11')]();}['refreshPositioning'](){this[_0x3bbf('0x9')]['refreshPositioning']();}[_0x3bbf('0x4')](_0x2675b5){return this['collection']['getByInnerView'](_0x2675b5);}[_0x3bbf('0x13')](){this[_0x3bbf('0x1')](_0x3bbf('0xa'));}[_0x3bbf('0xb')](){for(const _0x449e31 of this[_0x3bbf('0xc')])_0x449e31[_0x3bbf('0xb')]();this[_0x3bbf('0x9')]['destroy'](),this['collection'][_0x3bbf('0xb')](),super[_0x3bbf('0xb')]();}[_0x3bbf('0x10')](_0xcce05e){this[_0x3bbf('0x1')](_0x3bbf('0xd'),_0xcce05e);}[_0x3bbf('0xf')](_0x19e6e7){return new _0x4ecdfa(_0x19e6e7);}[_0x3bbf('0x3')](_0x41c2d8,_0x5cf913){return new _0x5dbcb6(_0x41c2d8,_0x5cf913);}[_0x3bbf('0x15')](_0x4400c4){const _0x427f9f=new Set(this['activeAnnotations']);_0x427f9f['add'](_0x4400c4),this[_0x3bbf('0xe')]=_0x427f9f;}[_0x3bbf('0x8')](_0x33da13){const _0x24fd6c=new Set(this[_0x3bbf('0xe')]);_0x24fd6c['delete'](_0x33da13),this[_0x3bbf('0xe')]=_0x24fd6c;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4755be=this[_0x3bbf('0xc')],_0x19cae5=this[_0x3bbf('0x9')];function _0x2194fc(_0xd74b7){const _0xea4370=_0xd74b7['source'];_0xea4370[_0x3bbf('0x6')]&&!_0x19cae5['has'](_0xea4370)?_0x19cae5[_0x3bbf('0x14')](_0xea4370):!_0xea4370['isVisible']&&_0x19cae5['has'](_0xea4370)&&_0x19cae5['remove'](_0xea4370);}this['listenTo'](_0x4755be,_0x3bbf('0x14'),(_0x44ea2b,_0x34b5b0)=>{_0x34b5b0['isVisible']&&_0x19cae5['add'](_0x34b5b0),this['listenTo'](_0x34b5b0,'change:isVisible',_0x2194fc);}),this['listenTo'](_0x4755be,'remove',(_0x246882,_0xb1486c)=>{_0x19cae5['has'](_0xb1486c)&&_0x19cae5['remove'](_0xb1486c),this[_0x3bbf('0x16')](_0xb1486c,_0x3bbf('0x2'),_0x2194fc);});}}
23
+ const _0x3adf=['_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','add','getByInnerView','remove','activeAnnotations','_removeActiveAnnotation','_addActiveAnnotation','createAnnotationView','collection','refreshVisibility','fire','activate','destroy','_activateAnnotation','change:isVisible','isVisible','has','createAnnotation','_deactivateAllAnnotations','Annotations','deactivateAll','delete','listenTo','source','stopListening','pluginName','refreshPositioning'];(function(_0x4168a3,_0x3adf9b){const _0x744091=function(_0x39873e){while(--_0x39873e){_0x4168a3['push'](_0x4168a3['shift']());}};_0x744091(++_0x3adf9b);}(_0x3adf,0x75));const _0x7440=function(_0x4168a3,_0x3adf9b){_0x4168a3=_0x4168a3-0x0;let _0x744091=_0x3adf[_0x4168a3];return _0x744091;};import{ContextPlugin as _0x9e3f0a}from'ckeditor5/src/core';import _0x309f3b from'./annotation';import _0x117566 from'./annotationcollection';import _0x3af509 from'./view/annotationview';export default class V extends _0x9e3f0a{static get[_0x7440('0x15')](){return _0x7440('0xf');}constructor(_0x270c31){super(_0x270c31),this[_0x7440('0x4')]=new _0x117566(),this[_0x7440('0x18')]=new _0x117566(),this['set'](_0x7440('0x0'),new Set()),this[_0x7440('0x17')]();}['add'](_0x68a5f3){this[_0x7440('0x4')][_0x7440('0x19')](_0x68a5f3);}['remove'](_0x2e8e78){this['collection']['remove'](_0x2e8e78),_0x2e8e78[_0x7440('0x8')]();}[_0x7440('0x5')](){for(const _0x1adea4 of this['collection'])_0x1adea4[_0x7440('0x5')]();}['refreshPositioning'](){this['_visibleAnnotations'][_0x7440('0x16')]();}[_0x7440('0x1a')](_0x3c0812){return this[_0x7440('0x4')][_0x7440('0x1a')](_0x3c0812);}[_0x7440('0x10')](){this[_0x7440('0x6')](_0x7440('0xe'));}[_0x7440('0x8')](){for(const _0x292b28 of this[_0x7440('0x4')])_0x292b28[_0x7440('0x8')]();this[_0x7440('0x18')][_0x7440('0x8')](),this[_0x7440('0x4')][_0x7440('0x8')](),super[_0x7440('0x8')]();}[_0x7440('0x7')](_0x45178c){this[_0x7440('0x6')](_0x7440('0x9'),_0x45178c);}[_0x7440('0xd')](_0x35dd1e){return new _0x309f3b(_0x35dd1e);}[_0x7440('0x3')](_0x1aa5aa,_0x560848){return new _0x3af509(_0x1aa5aa,_0x560848);}[_0x7440('0x2')](_0x5f2348){const _0xb08fc7=new Set(this[_0x7440('0x0')]);_0xb08fc7[_0x7440('0x19')](_0x5f2348),this['activeAnnotations']=_0xb08fc7;}[_0x7440('0x1')](_0x237cf6){const _0x39c553=new Set(this[_0x7440('0x0')]);_0x39c553[_0x7440('0x11')](_0x237cf6),this['activeAnnotations']=_0x39c553;}[_0x7440('0x17')](){const _0x489d79=this[_0x7440('0x4')],_0x4b5ced=this[_0x7440('0x18')];function _0x1708b5(_0x4b5342){const _0x5dbefb=_0x4b5342[_0x7440('0x13')];_0x5dbefb[_0x7440('0xb')]&&!_0x4b5ced[_0x7440('0xc')](_0x5dbefb)?_0x4b5ced['add'](_0x5dbefb):!_0x5dbefb[_0x7440('0xb')]&&_0x4b5ced['has'](_0x5dbefb)&&_0x4b5ced[_0x7440('0x1b')](_0x5dbefb);}this['listenTo'](_0x489d79,'add',(_0x1be9ac,_0x4b449c)=>{_0x4b449c['isVisible']&&_0x4b5ced['add'](_0x4b449c),this[_0x7440('0x12')](_0x4b449c,_0x7440('0xa'),_0x1708b5);}),this['listenTo'](_0x489d79,_0x7440('0x1b'),(_0x2e0d9c,_0x515146)=>{_0x4b5ced[_0x7440('0xc')](_0x515146)&&_0x4b5ced[_0x7440('0x1b')](_0x515146),this[_0x7440('0x14')](_0x515146,_0x7440('0xa'),_0x1708b5);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x5e79=['length','_assertAnnotationDoesNotBelongToMultipleUIs','requires','set','change:activeAnnotation','annotationsuis-annotation-mismatch','_uisData','has','deactivate','push','deactivateAll','stopListening','add','register','_setSelectedAnnotations','plugins','setActiveAnnotation','activeUIs','destroy','detach','find','hasActive','isActive','remove','_visibleAnnotations','from','collection','activate','_activateAnnotation','attach','context','listenTo','delete','annotationsuis-activate-missing-ui','_uis','filter','activeAnnotations','get','_removeActiveAnnotation','switchTo','pluginName','_addActiveAnnotation','refilterAnnotations'];(function(_0xf3edd,_0x5e7943){const _0x333223=function(_0x5b101a){while(--_0x5b101a){_0xf3edd['push'](_0xf3edd['shift']());}};_0x333223(++_0x5e7943);}(_0x5e79,0x67));const _0x3332=function(_0xf3edd,_0x5e7943){_0xf3edd=_0xf3edd-0x0;let _0x333223=_0x5e79[_0xf3edd];return _0x333223;};import{ContextPlugin as _0x1cfcd4}from'ckeditor5/src/core';import{CKEditorError as _0x51c18a}from'ckeditor5/src/utils';import _0x5a4f53,{bindAnnotationCollections as _0xe5f63b}from'./annotationcollection';import _0x24a0a4 from'./annotations';export default class I extends _0x1cfcd4{static get[_0x3332('0x1c')](){return[_0x24a0a4];}static get[_0x3332('0x17')](){return'AnnotationsUIs';}constructor(_0x521b58){super(_0x521b58),this[_0x3332('0x0')]=new Set(),this['_uis']=new Map(),this[_0x3332('0x20')]=new Map();}['init'](){const _0x2eebda=this[_0x3332('0xd')][_0x3332('0x29')][_0x3332('0x14')](_0x24a0a4);this[_0x3332('0xe')](_0x2eebda,_0x3332('0xb'),(_0x4e76a8,_0x206b97)=>{for(const _0xabd791 of this[_0x3332('0x0')]){const _0x13fa25=this[_0x3332('0x11')][_0x3332('0x14')](_0xabd791);(0x0,this['_uisData'][_0x3332('0x14')](_0xabd791)[_0x3332('0x12')])(_0x206b97)&&_0x13fa25[_0x3332('0x2a')](_0x206b97);}}),this[_0x3332('0xe')](_0x2eebda,'_deactivateAllAnnotations',()=>{for(const _0x5923b6 of this['activeUIs']){this['_uis'][_0x3332('0x14')](_0x5923b6)[_0x3332('0x2a')](null);}}),this[_0x3332('0xe')](_0x2eebda[_0x3332('0x7')],_0x3332('0x26'),(_0x4af4e8,_0x5ce588)=>{this[_0x3332('0x1b')](_0x5ce588);});}[_0x3332('0x4')](){return this['activeUIs']['size']>0x0;}[_0x3332('0x5')](_0x3d760d){return this[_0x3332('0x0')][_0x3332('0x21')](_0x3d760d);}[_0x3332('0xa')](_0x524343,_0xe6d58c=()=>!0x0){const _0x138115=this[_0x3332('0xd')]['plugins'][_0x3332('0x14')](_0x24a0a4);if(!this['_uis'][_0x3332('0x21')](_0x524343))throw new _0x51c18a(_0x3332('0x10'),this,{'uiName':_0x524343});this['isActive'](_0x524343)&&this[_0x3332('0x22')](_0x524343),this[_0x3332('0x0')][_0x3332('0x26')](_0x524343);const _0x15b82f=new _0x5a4f53(),_0x162f48=_0x138115[_0x3332('0x7')];_0xe5f63b({'source':_0x162f48,'target':_0x15b82f,'filter':_0xe6d58c}),this[_0x3332('0x20')]['set'](_0x524343,{'collection':_0x15b82f,'filter':_0xe6d58c});const _0x3320a7=this[_0x3332('0x11')][_0x3332('0x14')](_0x524343);_0x3320a7[_0x3332('0xc')](_0x15b82f),this[_0x3332('0xe')](_0x3320a7,_0x3332('0x1e'),(_0x11d133,_0x376d5c,_0x50db68,_0x463f49)=>{_0x463f49&&_0x138115[_0x3332('0x15')](_0x463f49),_0x50db68&&_0x138115[_0x3332('0x18')](_0x50db68);});}['deactivate'](_0x48715e){this[_0x3332('0x0')][_0x3332('0xf')](_0x48715e);const _0x1645d8=this[_0x3332('0x11')][_0x3332('0x14')](_0x48715e);_0x1645d8[_0x3332('0x2')](),this[_0x3332('0x25')](_0x1645d8),this[_0x3332('0x20')]['get'](_0x48715e)[_0x3332('0x9')][_0x3332('0x1')](),this[_0x3332('0x20')][_0x3332('0xf')](_0x48715e);}[_0x3332('0x16')](_0x571f5a){const _0x14e8ae=this['context'][_0x3332('0x29')]['get'](_0x24a0a4),_0x3a107f=Array[_0x3332('0x8')](_0x14e8ae[_0x3332('0x13')])[0x0]||null;this[_0x3332('0x24')](),this[_0x3332('0xa')](_0x571f5a);const _0x46259d=this[_0x3332('0x11')][_0x3332('0x14')](_0x571f5a);_0x46259d[_0x3332('0x2a')](_0x3a107f),_0x46259d[_0x3332('0x28')]&&_0x3a107f&&_0x46259d[_0x3332('0x28')]([_0x3a107f]);}['deactivateAll'](){for(const _0x1a8c67 of this['activeUIs'])this['deactivate'](_0x1a8c67);}[_0x3332('0x27')](_0x718420,_0x277dc3){if(this[_0x3332('0x11')][_0x3332('0x21')](_0x718420))throw new _0x51c18a('annotationsuis-register-already-registered');if('function'!=typeof _0x277dc3[_0x3332('0xc')]||'function'!=typeof _0x277dc3[_0x3332('0x2')]||'function'!=typeof _0x277dc3[_0x3332('0x2a')])throw new _0x51c18a('annotationsuis-register-invalid-interface',null);this['_uis'][_0x3332('0x1d')](_0x718420,_0x277dc3);}[_0x3332('0x19')](){const _0x47b69d=this[_0x3332('0xd')][_0x3332('0x29')]['get'](_0x24a0a4)[_0x3332('0x9')],_0x238b39=new Map(),_0x4e7405=Array['from'](this['activeUIs']);for(const _0x13d2c6 of this[_0x3332('0x0')]){const _0x46b10=this[_0x3332('0x20')][_0x3332('0x14')](_0x13d2c6)['collection'];for(const _0x58c48c of _0x46b10)_0x238b39[_0x3332('0x1d')](_0x58c48c,_0x13d2c6);}for(const _0x510750 of _0x47b69d){const _0x21dd61=_0x238b39[_0x3332('0x14')](_0x510750);this[_0x3332('0x1b')](_0x510750);const _0x287b30=_0x4e7405[_0x3332('0x3')](_0xd053e6=>this[_0x3332('0x20')][_0x3332('0x14')](_0xd053e6)[_0x3332('0x12')](_0x510750));_0x21dd61!==_0x287b30&&(_0x21dd61&&this[_0x3332('0x20')][_0x3332('0x14')](_0x21dd61)[_0x3332('0x9')][_0x3332('0x6')](_0x510750),_0x287b30&&this[_0x3332('0x20')][_0x3332('0x14')](_0x287b30)[_0x3332('0x9')][_0x3332('0x26')](_0x510750));}}[_0x3332('0x1')](){this[_0x3332('0x24')](),super[_0x3332('0x1')]();}[_0x3332('0x1b')](_0x15b538){const _0x33b3ce=[];for(const _0xc5f24f of this[_0x3332('0x0')]){(0x0,this['_uisData'][_0x3332('0x14')](_0xc5f24f)['filter'])(_0x15b538)&&_0x33b3ce[_0x3332('0x23')](_0xc5f24f);}if(_0x33b3ce[_0x3332('0x1a')]>0x1)throw new _0x51c18a(_0x3332('0x1f'),null,{'matchedUIs':_0x33b3ce,'annotationType':_0x15b538['type']});}}
23
+ const _0x5b78=['register','has','deactivateAll','length','listenTo','get','isActive','attach','requires','push','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','_activateAnnotation','add','context','delete','_addActiveAnnotation','activeUIs','detach','plugins','_removeActiveAnnotation','set','function','annotationsuis-activate-missing-ui','annotationsuis-register-already-registered','AnnotationsUIs','switchTo','_uisData','deactivate','_setSelectedAnnotations','activate','type','destroy','pluginName','change:activeAnnotation','size','init','remove','find','filter','from','activeAnnotations','stopListening','collection','refilterAnnotations','_visibleAnnotations','_uis','_deactivateAllAnnotations'];(function(_0xc0a410,_0x5b7869){const _0x400af0=function(_0xa50125){while(--_0xa50125){_0xc0a410['push'](_0xc0a410['shift']());}};_0x400af0(++_0x5b7869);}(_0x5b78,0x96));const _0x400a=function(_0xc0a410,_0x5b7869){_0xc0a410=_0xc0a410-0x0;let _0x400af0=_0x5b78[_0xc0a410];return _0x400af0;};import{ContextPlugin as _0xd5e16e}from'ckeditor5/src/core';import{CKEditorError as _0x1e737f}from'ckeditor5/src/utils';import _0x26ac75,{bindAnnotationCollections as _0x5a5e12}from'./annotationcollection';import _0x406659 from'./annotations';export default class I extends _0xd5e16e{static get[_0x400a('0x2')](){return[_0x406659];}static get[_0x400a('0x1b')](){return _0x400a('0x13');}constructor(_0x103d5b){super(_0x103d5b),this[_0x400a('0xb')]=new Set(),this[_0x400a('0x28')]=new Map(),this[_0x400a('0x15')]=new Map();}[_0x400a('0x1e')](){const _0x2a3408=this[_0x400a('0x8')]['plugins']['get'](_0x406659);this['listenTo'](_0x2a3408,_0x400a('0x6'),(_0x1c92f7,_0x538f65)=>{for(const _0x3d121b of this['activeUIs']){const _0x15aa49=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3d121b);(0x0,this[_0x400a('0x15')][_0x400a('0x2f')](_0x3d121b)[_0x400a('0x21')])(_0x538f65)&&_0x15aa49['setActiveAnnotation'](_0x538f65);}}),this[_0x400a('0x2e')](_0x2a3408,_0x400a('0x29'),()=>{for(const _0x3ffb63 of this['activeUIs']){this['_uis'][_0x400a('0x2f')](_0x3ffb63)[_0x400a('0x5')](null);}}),this[_0x400a('0x2e')](_0x2a3408[_0x400a('0x27')],_0x400a('0x7'),(_0x1d2dc9,_0x5e2e66)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5e2e66);});}['hasActive'](){return this[_0x400a('0xb')][_0x400a('0x1d')]>0x0;}[_0x400a('0x0')](_0x3acbc1){return this['activeUIs'][_0x400a('0x2b')](_0x3acbc1);}[_0x400a('0x18')](_0x3806a2,_0x5e9d00=()=>!0x0){const _0x513841=this[_0x400a('0x8')]['plugins']['get'](_0x406659);if(!this[_0x400a('0x28')][_0x400a('0x2b')](_0x3806a2))throw new _0x1e737f(_0x400a('0x11'),this,{'uiName':_0x3806a2});this[_0x400a('0x0')](_0x3806a2)&&this[_0x400a('0x16')](_0x3806a2),this[_0x400a('0xb')][_0x400a('0x7')](_0x3806a2);const _0xdbeebd=new _0x26ac75(),_0x349cd6=_0x513841['_visibleAnnotations'];_0x5a5e12({'source':_0x349cd6,'target':_0xdbeebd,'filter':_0x5e9d00}),this[_0x400a('0x15')]['set'](_0x3806a2,{'collection':_0xdbeebd,'filter':_0x5e9d00});const _0x16077c=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3806a2);_0x16077c['attach'](_0xdbeebd),this[_0x400a('0x2e')](_0x16077c,_0x400a('0x1c'),(_0x767fb4,_0x235c7e,_0x4e7dbe,_0x2ee220)=>{_0x2ee220&&_0x513841[_0x400a('0xe')](_0x2ee220),_0x4e7dbe&&_0x513841[_0x400a('0xa')](_0x4e7dbe);});}[_0x400a('0x16')](_0x137afd){this[_0x400a('0xb')][_0x400a('0x9')](_0x137afd);const _0xb8f7c8=this[_0x400a('0x28')][_0x400a('0x2f')](_0x137afd);_0xb8f7c8[_0x400a('0xc')](),this[_0x400a('0x24')](_0xb8f7c8),this[_0x400a('0x15')][_0x400a('0x2f')](_0x137afd)[_0x400a('0x25')][_0x400a('0x1a')](),this[_0x400a('0x15')]['delete'](_0x137afd);}[_0x400a('0x14')](_0x3af3b5){const _0x95e586=this[_0x400a('0x8')][_0x400a('0xd')][_0x400a('0x2f')](_0x406659),_0xa6f2c2=Array['from'](_0x95e586[_0x400a('0x23')])[0x0]||null;this[_0x400a('0x2c')](),this[_0x400a('0x18')](_0x3af3b5);const _0x3cd7e4=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3af3b5);_0x3cd7e4['setActiveAnnotation'](_0xa6f2c2),_0x3cd7e4[_0x400a('0x17')]&&_0xa6f2c2&&_0x3cd7e4[_0x400a('0x17')]([_0xa6f2c2]);}['deactivateAll'](){for(const _0x36a712 of this[_0x400a('0xb')])this[_0x400a('0x16')](_0x36a712);}[_0x400a('0x2a')](_0x1c2ca9,_0x31901f){if(this[_0x400a('0x28')]['has'](_0x1c2ca9))throw new _0x1e737f(_0x400a('0x12'));if(_0x400a('0x10')!=typeof _0x31901f[_0x400a('0x1')]||_0x400a('0x10')!=typeof _0x31901f[_0x400a('0xc')]||'function'!=typeof _0x31901f[_0x400a('0x5')])throw new _0x1e737f('annotationsuis-register-invalid-interface',null);this[_0x400a('0x28')][_0x400a('0xf')](_0x1c2ca9,_0x31901f);}[_0x400a('0x26')](){const _0x34b1d0=this[_0x400a('0x8')][_0x400a('0xd')][_0x400a('0x2f')](_0x406659)[_0x400a('0x25')],_0x208903=new Map(),_0x39b9ce=Array[_0x400a('0x22')](this[_0x400a('0xb')]);for(const _0x43c1a6 of this['activeUIs']){const _0x394db2=this[_0x400a('0x15')]['get'](_0x43c1a6)['collection'];for(const _0x28298a of _0x394db2)_0x208903[_0x400a('0xf')](_0x28298a,_0x43c1a6);}for(const _0x528585 of _0x34b1d0){const _0x516f50=_0x208903[_0x400a('0x2f')](_0x528585);this[_0x400a('0x4')](_0x528585);const _0x3e5531=_0x39b9ce[_0x400a('0x20')](_0x3290b2=>this[_0x400a('0x15')]['get'](_0x3290b2)[_0x400a('0x21')](_0x528585));_0x516f50!==_0x3e5531&&(_0x516f50&&this[_0x400a('0x15')][_0x400a('0x2f')](_0x516f50)['collection'][_0x400a('0x1f')](_0x528585),_0x3e5531&&this[_0x400a('0x15')]['get'](_0x3e5531)[_0x400a('0x25')][_0x400a('0x7')](_0x528585));}}[_0x400a('0x1a')](){this['deactivateAll'](),super[_0x400a('0x1a')]();}[_0x400a('0x4')](_0xfcb97d){const _0x142cff=[];for(const _0x15e543 of this[_0x400a('0xb')]){(0x0,this[_0x400a('0x15')][_0x400a('0x2f')](_0x15e543)[_0x400a('0x21')])(_0xfcb97d)&&_0x142cff[_0x400a('0x3')](_0x15e543);}if(_0x142cff[_0x400a('0x2d')]>0x1)throw new _0x1e737f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x142cff,'annotationType':_0xfcb97d[_0x400a('0x19')]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x13b4=['editorannotations-invalid-source-callback','pluginName','getByInnerView','editor','refresh','requires','annotation','listenTo','change:range','focusTracker','_editorAnnotationsData','change:isFocused','_editorAnnotations','EditorAnnotations','directChange','element','_dataCollectors','plugins','isReadOnly','update','remove','refreshSelectedViews','fire','function','from','push','init','document','blur','map','addSourceCollector','collection','containsRange','innerView','view','editing','hasDomSelection','model','isEqual','add','isCollapsed','range','sort','selection','set','getOrderedSelectedAnnotations'];(function(_0x3097ba,_0x13b42b){const _0x1d9e2f=function(_0x86d184){while(--_0x86d184){_0x3097ba['push'](_0x3097ba['shift']());}};_0x1d9e2f(++_0x13b42b);}(_0x13b4,0x130));const _0x1d9e=function(_0x3097ba,_0x13b42b){_0x3097ba=_0x3097ba-0x0;let _0x1d9e2f=_0x13b4[_0x3097ba];return _0x1d9e2f;};import{Plugin as _0x1e779d}from'ckeditor5/src/core';import{CKEditorError as _0x568bf0}from'ckeditor5/src/utils';import{debounce as _0x180ff9}from'lodash-es';import _0x2c536d from'./annotations';export default class k extends _0x1e779d{static get[_0x1d9e('0x17')](){return[_0x2c536d];}static get[_0x1d9e('0x13')](){return _0x1d9e('0x1f');}constructor(_0x2a5191){super(_0x2a5191),this[_0x1d9e('0x22')]=new Set(),this['_editorAnnotations']=new Set();}[_0x1d9e('0x2c')](){const _0x4c53ae=this[_0x1d9e('0x15')],_0x5eb20c=_0x4c53ae[_0x1d9e('0x9')][_0x1d9e('0x2d')][_0x1d9e('0xf')],_0x32bb36=_0x180ff9(()=>this[_0x1d9e('0x27')](),0xa);_0x5eb20c['on'](_0x1d9e('0x1a'),(_0x378285,_0x23c76c)=>{_0x23c76c[_0x1d9e('0x20')]&&(_0x32bb36['cancel'](),this[_0x1d9e('0x27')]());}),this[_0x1d9e('0x19')](_0x4c53ae['editing']['view'][_0x1d9e('0x2d')],_0x1d9e('0x1d'),(_0x452b9b,_0xfb593e,_0x3a6948)=>{_0x3a6948&&_0x32bb36();}),this[_0x1d9e('0x19')](_0x4c53ae['ui']['focusTracker'],_0x1d9e('0x1d'),(_0x59feae,_0x1551e2,_0x58aa33)=>{_0x58aa33||_0x4c53ae[_0x1d9e('0x24')]||this[_0x1d9e('0x28')](_0x1d9e('0x0'),{'isAnnotationTracked':_0x2a0162=>this[_0x1d9e('0x1c')]['has'](_0x2a0162[_0x1d9e('0x5')])});}),this[_0x1d9e('0x19')](this[_0x1d9e('0x15')]['ui'],_0x1d9e('0x25'),()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x897c00){if(this[_0x1d9e('0x1e')]['has'](_0x897c00))return;this[_0x1d9e('0x1e')][_0x1d9e('0xb')](_0x897c00[_0x1d9e('0x6')]),this[_0x1d9e('0x15')]['ui'][_0x1d9e('0x1b')]['add'](_0x897c00['view'][_0x1d9e('0x21')]);const _0x30a01a=this[_0x1d9e('0x15')][_0x1d9e('0x23')]['get'](_0x2c536d);this[_0x1d9e('0x19')](_0x30a01a[_0x1d9e('0x3')],'remove',(_0x5279a8,_0x57e54d)=>{this[_0x1d9e('0x15')]['ui'][_0x1d9e('0x1b')][_0x1d9e('0x26')](_0x57e54d['view']['element']),this[_0x1d9e('0x1e')]['delete'](_0x57e54d[_0x1d9e('0x6')]);});}[_0x1d9e('0x8')](){return this[_0x1d9e('0x15')][_0x1d9e('0x7')][_0x1d9e('0x6')]['hasDomSelection'];}[_0x1d9e('0x2')](_0x33ddf0){if(_0x1d9e('0x29')!=typeof _0x33ddf0)throw new _0x568bf0(_0x1d9e('0x12'));this[_0x1d9e('0x22')][_0x1d9e('0xb')](_0x33ddf0);}['refreshSelectedViews'](){this['fire'](_0x1d9e('0x16'));}[_0x1d9e('0x11')]({activeAnnotation:_0x30fc65,annotations:_0x13c035}){const _0x4902c9=[],_0x1f71ab=this['editor']['model'][_0x1d9e('0x2d')][_0x1d9e('0xf')],_0x120e66=Array[_0x1d9e('0x2a')](_0x1f71ab['getRanges']());for(const [_0x2e018e,_0x24349c]of this[_0x1d9e('0x1c')]){const _0x4ac706=_0x2da11a(_0x24349c),_0x501c27=_0x13c035[_0x1d9e('0x14')](_0x2e018e);_0x4ac706&&_0x501c27&&_0x4902c9[_0x1d9e('0x2b')]({'annotation':_0x501c27,'range':_0x4ac706});}function _0x2da11a(_0x5e253b){for(const _0x5abaa2 of _0x5e253b)for(const _0x10c06f of _0x120e66)if(_0x5abaa2[_0x1d9e('0x4')](_0x10c06f,!_0x1f71ab[_0x1d9e('0xc')]))return _0x5abaa2;return null;}return _0x4902c9[_0x1d9e('0xe')]((_0x372203,_0x466db6)=>{const _0x223b34=_0x372203[_0x1d9e('0xd')],_0x42543a=_0x466db6[_0x1d9e('0xd')];if(!_0x223b34[_0x1d9e('0xa')](_0x42543a)){if(_0x223b34['containsRange'](_0x42543a,!0x0))return 0x1;if(_0x42543a['containsRange'](_0x223b34,!0x0))return-0x1;}return _0x372203[_0x1d9e('0x18')]==_0x30fc65?-0x1:_0x466db6[_0x1d9e('0x18')]==_0x30fc65?0x1:0x0;})[_0x1d9e('0x1')](_0x5d695d=>_0x5d695d[_0x1d9e('0x18')]);}get[_0x1d9e('0x1c')](){const _0x190e48=new Map();for(const _0x13626c of Array[_0x1d9e('0x2a')](this['_dataCollectors']))for(const [_0x433998,_0x1ba5ca]of _0x13626c())_0x190e48[_0x1d9e('0x10')](_0x433998,_0x1ba5ca);return _0x190e48;}}
23
+ const _0x4e1d=['editorannotations-invalid-source-callback','element','init','_dataCollectors','selection','change:isFocused','isCollapsed','listenTo','isReadOnly','delete','plugins','annotation','getRanges','editing','from','getByInnerView','focusTracker','directChange','model','document','hasDomSelection','uiUpdate','cancel','view','set','range','update','_editorAnnotationsData','editor','add','fire','has','addSourceCollector','isEqual','push','refresh','_editorAnnotations','getOrderedSelectedAnnotations','containsRange','innerView','sort'];(function(_0x43ca6b,_0x4e1d5b){const _0x5c79a7=function(_0xa31a7b){while(--_0xa31a7b){_0x43ca6b['push'](_0x43ca6b['shift']());}};_0x5c79a7(++_0x4e1d5b);}(_0x4e1d,0x181));const _0x5c79=function(_0x43ca6b,_0x4e1d5b){_0x43ca6b=_0x43ca6b-0x0;let _0x5c79a7=_0x4e1d[_0x43ca6b];return _0x5c79a7;};import{Plugin as _0x278680}from'ckeditor5/src/core';import{CKEditorError as _0x472294}from'ckeditor5/src/utils';import{debounce as _0x5d444a}from'lodash-es';import _0xbc40e5 from'./annotations';export default class k extends _0x278680{static get['requires'](){return[_0xbc40e5];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x3a5217){super(_0x3a5217),this[_0x5c79('0x1c')]=new Set(),this[_0x5c79('0x14')]=new Set();}[_0x5c79('0x1b')](){const _0x2aeadf=this[_0x5c79('0xc')],_0xf1d4e8=_0x2aeadf[_0x5c79('0x2')][_0x5c79('0x3')][_0x5c79('0x1d')],_0x2c9bd4=_0x5d444a(()=>this['refreshSelectedViews'](),0xa);_0xf1d4e8['on']('change:range',(_0xa37be5,_0x409c67)=>{_0x409c67[_0x5c79('0x1')]&&(_0x2c9bd4[_0x5c79('0x6')](),this['refreshSelectedViews']());}),this[_0x5c79('0x20')](_0x2aeadf[_0x5c79('0x26')]['view'][_0x5c79('0x3')],_0x5c79('0x1e'),(_0x449060,_0x53ea19,_0x48e8ec)=>{_0x48e8ec&&_0x2c9bd4();}),this[_0x5c79('0x20')](_0x2aeadf['ui']['focusTracker'],_0x5c79('0x1e'),(_0x3a5339,_0x3658a3,_0x40731c)=>{_0x40731c||_0x2aeadf[_0x5c79('0x21')]||this[_0x5c79('0xe')]('blur',{'isAnnotationTracked':_0x30630e=>this['_editorAnnotationsData'][_0x5c79('0xf')](_0x30630e[_0x5c79('0x17')])});}),this[_0x5c79('0x20')](this[_0x5c79('0xc')]['ui'],_0x5c79('0xa'),()=>this[_0x5c79('0xe')](_0x5c79('0x5')));}['registerAnnotation'](_0x41d767){if(this[_0x5c79('0x14')][_0x5c79('0xf')](_0x41d767))return;this['_editorAnnotations'][_0x5c79('0xd')](_0x41d767[_0x5c79('0x7')]),this[_0x5c79('0xc')]['ui'][_0x5c79('0x0')][_0x5c79('0xd')](_0x41d767[_0x5c79('0x7')][_0x5c79('0x1a')]);const _0x6ec069=this[_0x5c79('0xc')][_0x5c79('0x23')]['get'](_0xbc40e5);this['listenTo'](_0x6ec069['collection'],'remove',(_0x4c82c6,_0x14a565)=>{this[_0x5c79('0xc')]['ui'][_0x5c79('0x0')]['remove'](_0x14a565[_0x5c79('0x7')][_0x5c79('0x1a')]),this[_0x5c79('0x14')][_0x5c79('0x22')](_0x14a565['view']);});}['hasDomSelection'](){return this[_0x5c79('0xc')][_0x5c79('0x26')][_0x5c79('0x7')][_0x5c79('0x4')];}[_0x5c79('0x10')](_0x54e2af){if('function'!=typeof _0x54e2af)throw new _0x472294(_0x5c79('0x19'));this[_0x5c79('0x1c')][_0x5c79('0xd')](_0x54e2af);}['refreshSelectedViews'](){this[_0x5c79('0xe')](_0x5c79('0x13'));}[_0x5c79('0x15')]({activeAnnotation:_0x337a89,annotations:_0x110093}){const _0x2822d1=[],_0x57d36e=this[_0x5c79('0xc')][_0x5c79('0x2')]['document']['selection'],_0x3c01ec=Array[_0x5c79('0x27')](_0x57d36e[_0x5c79('0x25')]());for(const [_0xe17208,_0x4d8261]of this['_editorAnnotationsData']){const _0x576c1c=_0xbd5876(_0x4d8261),_0x2d8f4d=_0x110093[_0x5c79('0x28')](_0xe17208);_0x576c1c&&_0x2d8f4d&&_0x2822d1[_0x5c79('0x12')]({'annotation':_0x2d8f4d,'range':_0x576c1c});}function _0xbd5876(_0x5663d0){for(const _0x26c4ab of _0x5663d0)for(const _0x59050d of _0x3c01ec)if(_0x26c4ab[_0x5c79('0x16')](_0x59050d,!_0x57d36e[_0x5c79('0x1f')]))return _0x26c4ab;return null;}return _0x2822d1[_0x5c79('0x18')]((_0x4686b1,_0x4ff8a0)=>{const _0x22f224=_0x4686b1[_0x5c79('0x9')],_0x519a00=_0x4ff8a0[_0x5c79('0x9')];if(!_0x22f224[_0x5c79('0x11')](_0x519a00)){if(_0x22f224[_0x5c79('0x16')](_0x519a00,!0x0))return 0x1;if(_0x519a00[_0x5c79('0x16')](_0x22f224,!0x0))return-0x1;}return _0x4686b1[_0x5c79('0x24')]==_0x337a89?-0x1:_0x4ff8a0['annotation']==_0x337a89?0x1:0x0;})['map'](_0x2406ab=>_0x2406ab[_0x5c79('0x24')]);}get[_0x5c79('0xb')](){const _0x375cb7=new Map();for(const _0x1fdcfe of Array[_0x5c79('0x27')](this[_0x5c79('0x1c')]))for(const [_0x2930f7,_0xd24a53]of _0x1fdcfe())_0x375cb7[_0x5c79('0x8')](_0x2930f7,_0xd24a53);return _0x375cb7;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x40bf=['set','afterInit','focusTracker','has','inlineannotations-not-allowed-with-context','focus','inline','setActiveAnnotation','isFocused','_setSelectedAnnotations','visibleView','get','getSelection','mousedown','change:isFocused','switchTo','updatePosition','EditorAnnotations','update','_addedAnnotations','register','Esc','_selectedAnnotations','includes','destroy','init','requires','getRangeAt','every','editableElement','length','annotations','detach','target','InlineAnnotations','listenTo','activeAnnotation','stopListening','delete','attach','addObserver','inlineannotations-attach-already-attached','hasView','change:visibleView','plugins','pluginName','document','_manuallyClosed','view','_addAnnotationToBalloon','_balloon','_forceRefresh','_removeAnnotationFromBalloon','refresh','inlineannotations-detach-not-attached','editor','_closeAnnotation','blur','getByView','isAttached','context','selection','keystrokes','add','getOrderedSelectedAnnotations','editing','isActive','remove'];(function(_0x91cc1a,_0x40bf78){const _0x29eed3=function(_0x32654e){while(--_0x32654e){_0x91cc1a['push'](_0x91cc1a['shift']());}};_0x29eed3(++_0x40bf78);}(_0x40bf,0x8a));const _0x29ee=function(_0x91cc1a,_0x40bf78){_0x91cc1a=_0x91cc1a-0x0;let _0x29eed3=_0x40bf[_0x91cc1a];return _0x29eed3;};import{Plugin as _0x1151ca}from'ckeditor5/src/core';import _0xfb4ccc from'./annotationsuis';import _0xd6a0d8 from'./editorannotations';import{ContextualBalloon as _0x4e0336}from'ckeditor5/src/ui';import{MouseObserver as _0x1f9d5c}from'ckeditor5/src/engine';import{CKEditorError as _0x2a2f33}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1151ca{static get[_0x29ee('0x18')](){return[_0xd6a0d8,_0x4e0336,_0xfb4ccc];}static get[_0x29ee('0x2b')](){return _0x29ee('0x20');}constructor(_0x1ad473){super(_0x1ad473),_0x1ad473['editing'][_0x29ee('0x2e')][_0x29ee('0x26')](_0x1f9d5c),this[_0x29ee('0x39')]=!0x1,this[_0x29ee('0x42')](_0x29ee('0x22'),null),this[_0x29ee('0x1d')]=null,this[_0x29ee('0x2d')]=new Set(),this['_balloon']=_0x1ad473[_0x29ee('0x2a')][_0x29ee('0x9')](_0x4e0336),this[_0x29ee('0x11')]=new Set(),this[_0x29ee('0x14')]=[],this[_0x29ee('0x31')]=!0x1;}[_0x29ee('0x17')](){const _0x2d618f=this[_0x29ee('0x35')][_0x29ee('0x2a')]['get'](_0xfb4ccc);_0x2d618f['context']===this['editor']&&(_0x2d618f[_0x29ee('0x12')]('inline',this),this['editor'][_0x29ee('0x3c')]['set'](_0x29ee('0x13'),(_0x1ef033,_0x523711)=>{const _0x5168df=this['_balloon'];if(this[_0x29ee('0x39')]&&_0x5168df[_0x29ee('0x8')]){const _0x5a025e=this[_0x29ee('0x1d')]['getByView'](_0x5168df[_0x29ee('0x8')]);this[_0x29ee('0x36')](_0x5a025e),_0x523711();}}));}[_0x29ee('0x43')](){const _0xf54310=this[_0x29ee('0x35')]['plugins'][_0x29ee('0x9')](_0xfb4ccc);_0xf54310[_0x29ee('0x3a')]===this[_0x29ee('0x35')]&&(_0xf54310['hasActive']()||_0xf54310[_0x29ee('0xd')](_0x29ee('0x4')));}[_0x29ee('0x5')](_0x119775){_0x119775!==this[_0x29ee('0x22')]&&(this[_0x29ee('0x22')]&&(this[_0x29ee('0x22')]['isActive']=!0x1),_0x119775&&this[_0x29ee('0x35')]['ui'][_0x29ee('0x0')][_0x29ee('0x6')]&&(this[_0x29ee('0x2f')](_0x119775,!0x0),_0x119775[_0x29ee('0x40')]=!0x0),_0x119775||this['_setSelectedAnnotations']([]),this[_0x29ee('0x22')]=_0x119775);}[_0x29ee('0x25')](_0x338b2b){this[_0x29ee('0x1d')]=_0x338b2b;const _0x23dce8=this[_0x29ee('0x35')][_0x29ee('0x2a')][_0x29ee('0x9')](_0xfb4ccc),_0x5c7c47=this['_balloon'];if(this[_0x29ee('0x39')])throw new _0x2a2f33(_0x29ee('0x27'),this);if(_0x23dce8['context']!==this['editor'])throw new _0x2a2f33(_0x29ee('0x2'),this);const _0x46db45=this[_0x29ee('0x35')][_0x29ee('0x2a')][_0x29ee('0x9')](_0x29ee('0xf'));this[_0x29ee('0x21')](_0x46db45,_0x29ee('0x33'),function(){const _0x354508=_0x46db45[_0x29ee('0x3e')]({'activeAnnotation':this[_0x29ee('0x22')],'annotations':this['annotations']});if(!this[_0x29ee('0x31')]&&(_0x1f5776=_0x354508,_0x448789=this[_0x29ee('0x14')],_0x1f5776['length']===_0x448789[_0x29ee('0x1c')]&&_0x1f5776[_0x29ee('0x1a')](_0x2f055f=>_0x448789[_0x29ee('0x15')](_0x2f055f))))return;var _0x1f5776,_0x448789;this[_0x29ee('0x31')]=!0x1,this[_0x29ee('0x7')](_0x354508),this[_0x29ee('0x5')](_0x354508[0x0]||null);}['bind'](this)),this[_0x29ee('0x21')](_0x46db45,_0x29ee('0x37'),(_0x531d55,{isAnnotationTracked:_0x3b17e6})=>{this[_0x29ee('0x22')]&&_0x3b17e6(this['activeAnnotation'])&&(this[_0x29ee('0x7')]([]),this[_0x29ee('0x5')](null));}),this[_0x29ee('0x21')](this[_0x29ee('0x35')]['ui']['focusTracker'],_0x29ee('0xc'),(_0x4dc09d,_0x5c4218,_0x378d11)=>{_0x378d11||this[_0x29ee('0x5')](null);}),this[_0x29ee('0x21')](_0x338b2b,_0x29ee('0x41'),(_0x4548d9,_0x1a1664)=>{this[_0x29ee('0x32')](_0x1a1664),_0x1a1664===this[_0x29ee('0x22')]&&this[_0x29ee('0x5')](null);}),this['listenTo'](_0x5c7c47,_0x29ee('0x29'),(_0x553b1f,_0x2b5d0c,_0x46c797,_0x907bd3)=>{if(_0x907bd3&&this[_0x29ee('0x23')](_0x907bd3),!_0x46c797||!_0x338b2b[_0x29ee('0x38')](_0x46c797))return;const _0x3c17d3=_0x338b2b['getByView'](_0x46c797);this[_0x29ee('0x21')](_0x46c797,'change:height',()=>{_0x5c7c47[_0x29ee('0xe')]();}),this['listenTo'](_0x46c797,'Esc',()=>{this[_0x29ee('0x36')](_0x3c17d3),this[_0x29ee('0x35')][_0x29ee('0x3f')]['view'][_0x29ee('0x3')]();}),this['activeAnnotation']!==_0x3c17d3&&this[_0x29ee('0x5')](_0x3c17d3);}),this[_0x29ee('0x21')](this['editor']['ui'],_0x29ee('0x10'),()=>{_0x5c7c47[_0x29ee('0x8')]&&(_0x338b2b[_0x29ee('0x38')](_0x5c7c47[_0x29ee('0x8')])&&_0x5c7c47[_0x29ee('0xe')]());}),this[_0x29ee('0x21')](this[_0x29ee('0x35')]['editing'][_0x29ee('0x2e')][_0x29ee('0x2c')],_0x29ee('0xb'),()=>{this[_0x29ee('0x31')]=!0x0,this[_0x29ee('0x2d')]['clear']();}),this[_0x29ee('0x35')][_0x29ee('0x3f')][_0x29ee('0x2e')][_0x29ee('0x2c')][_0x29ee('0x3b')][_0x29ee('0x1b')]&&this[_0x29ee('0x35')][_0x29ee('0x3f')][_0x29ee('0x2e')][_0x29ee('0x3')](),this[_0x29ee('0x39')]=!0x0;}['detach'](){if(!this[_0x29ee('0x39')])throw new _0x2a2f33(_0x29ee('0x34'),this);this[_0x29ee('0x5')](null);for(const _0x158293 of this['_addedAnnotations'])this[_0x29ee('0x32')](_0x158293);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x29ee('0x16')](){this[_0x29ee('0x39')]&&this[_0x29ee('0x1e')]();}[_0x29ee('0x7')](_0x14107f){for(const _0xbf06eb of this[_0x29ee('0x14')])_0x14107f[_0x29ee('0x15')](_0xbf06eb)||this[_0x29ee('0x2d')][_0x29ee('0x24')](_0xbf06eb);for(const _0x7d65ad of this[_0x29ee('0x1d')])_0x14107f[_0x29ee('0x15')](_0x7d65ad)||this[_0x29ee('0x32')](_0x7d65ad);if(this[_0x29ee('0x35')]['ui'][_0x29ee('0x0')][_0x29ee('0x6')])for(const _0x381b36 of _0x14107f)this[_0x29ee('0x2f')](_0x381b36);this['_selectedAnnotations']=_0x14107f;}[_0x29ee('0x2f')](_0x26eb3e,_0x313e42){this[_0x29ee('0x2d')]['has'](_0x26eb3e)||(this['_addedAnnotations'][_0x29ee('0x1')](_0x26eb3e)||this['_balloon'][_0x29ee('0x28')](_0x26eb3e[_0x29ee('0x2e')])||(this[_0x29ee('0x11')][_0x29ee('0x3d')](_0x26eb3e),this[_0x29ee('0x30')][_0x29ee('0x3d')]({'stackId':_0x26eb3e['view']['id'],'view':_0x26eb3e['view'],'position':{'target':()=>_0x26eb3e[_0x29ee('0x1f')]||_0x26eb3e['targetRect']||document[_0x29ee('0xa')]()[_0x29ee('0x19')](0x0)}})),_0x313e42&&this[_0x29ee('0x30')]['showStack'](_0x26eb3e['view']['id']));}['_removeAnnotationFromBalloon'](_0x2dbe76){this[_0x29ee('0x11')]['has'](_0x2dbe76)&&this[_0x29ee('0x30')][_0x29ee('0x28')](_0x2dbe76[_0x29ee('0x2e')])&&(this['_addedAnnotations'][_0x29ee('0x24')](_0x2dbe76),this[_0x29ee('0x30')][_0x29ee('0x41')](_0x2dbe76['view']));}[_0x29ee('0x36')](_0x5068f0){this[_0x29ee('0x2d')][_0x29ee('0x3d')](_0x5068f0),this[_0x29ee('0x32')](_0x5068f0);}}
23
+ const _0x40b7=['_getBalloonTargetForAnnotation','from','view','_removeAnnotationFromBalloon','editing','EditorAnnotations','left','_balloon','width','_addAnnotationToBalloon','right','clear','init','editor','switchTo','update','activeAnnotation','fromRect','getByView','push','inline','focusTracker','bind','destroy','InlineAnnotations','_addedAnnotations','_manuallyClosed','plugins','register','getClientRects','change:isFocused','setActiveAnnotation','hasActive','context','detach','stopListening','_selectedAnnotations','targetRect','getBoundingClientRect','inlineannotations-detach-not-attached','delete','_setSelectedAnnotations','hasView','_forceRefresh','isActive','change:height','isFocused','add','refresh','collapse','domConverter','isAttached','target','_closeAnnotation','focus','top','viewRangeToDom','map','inlineannotations-not-allowed-with-context','document','getOrderedSelectedAnnotations','blur','get','includes','editableElement','remove','length','getFirstRange','addObserver','has','bottom','updatePosition','Esc','annotations','mousedown','set','listenTo','change:visibleView','visibleView','requires'];(function(_0x54c76e,_0x40b76e){const _0x38ef2d=function(_0x424850){while(--_0x424850){_0x54c76e['push'](_0x54c76e['shift']());}};_0x38ef2d(++_0x40b76e);}(_0x40b7,0x1c8));const _0x38ef=function(_0x54c76e,_0x40b76e){_0x54c76e=_0x54c76e-0x0;let _0x38ef2d=_0x40b7[_0x54c76e];return _0x38ef2d;};import{Plugin as _0x18bedf}from'ckeditor5/src/core';import _0x2f6758 from'./annotationsuis';import _0xe0051d from'./editorannotations';import{ContextualBalloon as _0x398762}from'ckeditor5/src/ui';import{MouseObserver as _0x3ba011}from'ckeditor5/src/engine';import{CKEditorError as _0x411c6e,Rect as _0x5361ff}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x18bedf{static get[_0x38ef('0x17')](){return[_0xe0051d,_0x398762,_0x2f6758];}static get['pluginName'](){return _0x38ef('0x30');}constructor(_0x1dabc5){super(_0x1dabc5),_0x1dabc5[_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0xc')](_0x3ba011),this[_0x38ef('0x4b')]=!0x1,this[_0x38ef('0x13')](_0x38ef('0x28'),null),this[_0x38ef('0x11')]=null,this[_0x38ef('0x32')]=new Set(),this[_0x38ef('0x1f')]=_0x1dabc5[_0x38ef('0x33')]['get'](_0x398762),this[_0x38ef('0x31')]=new Set(),this['_selectedAnnotations']=[],this[_0x38ef('0x43')]=!0x1;}[_0x38ef('0x24')](){const _0xd93ce5=this[_0x38ef('0x25')]['plugins'][_0x38ef('0x6')](_0x2f6758);_0xd93ce5[_0x38ef('0x39')]===this[_0x38ef('0x25')]&&(_0xd93ce5[_0x38ef('0x34')]('inline',this),this[_0x38ef('0x25')]['keystrokes'][_0x38ef('0x13')](_0x38ef('0x10'),(_0x1f32b4,_0x4fd8dc)=>{const _0x1e5f44=this[_0x38ef('0x1f')];if(this[_0x38ef('0x4b')]&&_0x1e5f44[_0x38ef('0x16')]){const _0x3f9441=this[_0x38ef('0x11')][_0x38ef('0x2a')](_0x1e5f44[_0x38ef('0x16')]);this[_0x38ef('0x4d')](_0x3f9441),_0x4fd8dc();}}));}['afterInit'](){const _0xa74c34=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x2f6758);_0xa74c34['context']===this[_0x38ef('0x25')]&&(_0xa74c34[_0x38ef('0x38')]()||_0xa74c34[_0x38ef('0x26')](_0x38ef('0x2c')));}[_0x38ef('0x37')](_0x436e02){_0x436e02!==this[_0x38ef('0x28')]&&(this[_0x38ef('0x28')]&&(this['activeAnnotation']['isActive']=!0x1),_0x436e02&&this['editor']['ui'][_0x38ef('0x2d')][_0x38ef('0x46')]&&(this['_addAnnotationToBalloon'](_0x436e02,!0x0),_0x436e02[_0x38ef('0x44')]=!0x0),_0x436e02||this[_0x38ef('0x41')]([]),this[_0x38ef('0x28')]=_0x436e02);}['attach'](_0x5b18f1){this['annotations']=_0x5b18f1;const _0x73c722=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x2f6758),_0x1a9c99=this['_balloon'];if(this[_0x38ef('0x4b')])throw new _0x411c6e('inlineannotations-attach-already-attached',this);if(_0x73c722['context']!==this[_0x38ef('0x25')])throw new _0x411c6e(_0x38ef('0x2'),this);const _0x5cda68=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x38ef('0x1d'));this[_0x38ef('0x14')](_0x5cda68,_0x38ef('0x48'),function(){const _0x115afe=_0x5cda68[_0x38ef('0x4')]({'activeAnnotation':this[_0x38ef('0x28')],'annotations':this[_0x38ef('0x11')]});if(!this[_0x38ef('0x43')]&&(_0x33ced5=_0x115afe,_0x6f6dc0=this[_0x38ef('0x3c')],_0x33ced5[_0x38ef('0xa')]===_0x6f6dc0[_0x38ef('0xa')]&&_0x33ced5['every'](_0x5d038e=>_0x6f6dc0[_0x38ef('0x7')](_0x5d038e))))return;var _0x33ced5,_0x6f6dc0;this[_0x38ef('0x43')]=!0x1,this[_0x38ef('0x41')](_0x115afe),this['setActiveAnnotation'](_0x115afe[0x0]||null);}[_0x38ef('0x2e')](this)),this['listenTo'](_0x5cda68,_0x38ef('0x5'),(_0x368d26,{isAnnotationTracked:_0x20c005})=>{this[_0x38ef('0x28')]&&_0x20c005(this[_0x38ef('0x28')])&&(this[_0x38ef('0x41')]([]),this['setActiveAnnotation'](null));}),this[_0x38ef('0x14')](this['editor']['ui'][_0x38ef('0x2d')],_0x38ef('0x36'),(_0x341bf5,_0x3679b7,_0x50af51)=>{_0x50af51||this['setActiveAnnotation'](null);}),this[_0x38ef('0x14')](_0x5b18f1,_0x38ef('0x9'),(_0xf19305,_0x3e1674)=>{this[_0x38ef('0x1b')](_0x3e1674),_0x3e1674===this[_0x38ef('0x28')]&&this[_0x38ef('0x37')](null);}),this[_0x38ef('0x14')](_0x1a9c99,_0x38ef('0x15'),(_0x9c8f88,_0xc2aaaf,_0x29a3e6,_0x665785)=>{if(_0x665785&&this[_0x38ef('0x3b')](_0x665785),!_0x29a3e6||!_0x5b18f1[_0x38ef('0x2a')](_0x29a3e6))return;const _0x265384=_0x5b18f1[_0x38ef('0x2a')](_0x29a3e6);this['listenTo'](_0x29a3e6,_0x38ef('0x45'),()=>{_0x1a9c99['updatePosition']();}),this[_0x38ef('0x14')](_0x29a3e6,'Esc',()=>{this[_0x38ef('0x4d')](_0x265384),this['editor'][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x4e')]();}),this[_0x38ef('0x28')]!==_0x265384&&this['setActiveAnnotation'](_0x265384);}),this[_0x38ef('0x14')](this['editor']['ui'],_0x38ef('0x27'),()=>{_0x1a9c99['visibleView']&&(_0x5b18f1[_0x38ef('0x2a')](_0x1a9c99[_0x38ef('0x16')])&&_0x1a9c99[_0x38ef('0xf')]());}),this[_0x38ef('0x14')](this[_0x38ef('0x25')]['editing'][_0x38ef('0x1a')][_0x38ef('0x3')],_0x38ef('0x12'),()=>{this[_0x38ef('0x43')]=!0x0,this[_0x38ef('0x32')][_0x38ef('0x23')]();}),this[_0x38ef('0x25')][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x3')]['selection'][_0x38ef('0x8')]&&this[_0x38ef('0x25')][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x4e')](),this[_0x38ef('0x4b')]=!0x0;}[_0x38ef('0x3a')](){if(!this['isAttached'])throw new _0x411c6e(_0x38ef('0x3f'),this);this['setActiveAnnotation'](null);for(const _0x360fae of this[_0x38ef('0x31')])this[_0x38ef('0x1b')](_0x360fae);this[_0x38ef('0x3b')](),this['isAttached']=!0x1,this[_0x38ef('0x11')]=null;}[_0x38ef('0x2f')](){this[_0x38ef('0x4b')]&&this[_0x38ef('0x3a')]();}[_0x38ef('0x41')](_0x31568b){for(const _0x817894 of this[_0x38ef('0x3c')])_0x31568b[_0x38ef('0x7')](_0x817894)||this['_manuallyClosed']['delete'](_0x817894);for(const _0x3be14f of this[_0x38ef('0x11')])_0x31568b[_0x38ef('0x7')](_0x3be14f)||this[_0x38ef('0x1b')](_0x3be14f);if(this[_0x38ef('0x25')]['ui'][_0x38ef('0x2d')][_0x38ef('0x46')])for(const _0x4aa4dd of _0x31568b)this[_0x38ef('0x21')](_0x4aa4dd);this['_selectedAnnotations']=_0x31568b;}[_0x38ef('0x21')](_0x3cdc31,_0x19359b){this['_manuallyClosed'][_0x38ef('0xd')](_0x3cdc31)||(this[_0x38ef('0x31')][_0x38ef('0xd')](_0x3cdc31)||this[_0x38ef('0x1f')][_0x38ef('0x42')](_0x3cdc31[_0x38ef('0x1a')])||(this[_0x38ef('0x31')][_0x38ef('0x47')](_0x3cdc31),this[_0x38ef('0x1f')][_0x38ef('0x47')]({'stackId':_0x3cdc31[_0x38ef('0x1a')]['id'],'view':_0x3cdc31[_0x38ef('0x1a')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3cdc31)}})),_0x19359b&&this[_0x38ef('0x1f')]['showStack'](_0x3cdc31[_0x38ef('0x1a')]['id']));}[_0x38ef('0x18')](_0x3b1c4d){const _0xa38207=_0x3b1c4d[_0x38ef('0x4c')],_0x3ecb4e=this[_0x38ef('0x25')]['editing']['view'],_0x42549a=_0x3ecb4e[_0x38ef('0x3')]['selection'][_0x38ef('0xb')](),_0x13c74f=_0x3ecb4e[_0x38ef('0x4a')][_0x38ef('0x0')](_0x42549a);if(_0x13c74f[_0x38ef('0x49')](!0x0),_0xa38207){if(_0xa38207 instanceof _0x5361ff)return _0xa38207;let _0x117bd1=[];for(const _0x3e8d9c of _0xa38207)_0x117bd1[_0x38ef('0x2b')](...(_0x12476c=_0x3e8d9c[_0x38ef('0x35')](),Array[_0x38ef('0x19')](_0x12476c)[_0x38ef('0x1')](DOMRect[_0x38ef('0x29')])));_0x117bd1=function(_0x4606e2){const _0x8c0c4=[];let _0x42b478=_0x4606e2[0x0];for(let _0x180e25=0x1;_0x180e25<_0x4606e2[_0x38ef('0xa')];_0x180e25++)E(_0x42b478,_0x4606e2[_0x180e25])?_0x42b478['width']+=_0x4606e2[_0x180e25][_0x38ef('0x20')]:(_0x8c0c4['push'](_0x42b478),_0x42b478=_0x4606e2[_0x180e25]);return _0x8c0c4['push'](_0x42b478),_0x8c0c4;}(_0x117bd1);const _0x5f0da0=_0x13c74f[_0x38ef('0x3e')]();return _0x117bd1['find'](_0x37d6ab=>_0x37d6ab[_0x38ef('0x4f')]<=_0x5f0da0[_0x38ef('0x4f')]&&_0x37d6ab['bottom']>=_0x5f0da0[_0x38ef('0xe')]&&_0x37d6ab[_0x38ef('0x1e')]<=_0x5f0da0[_0x38ef('0x1e')]&&_0x37d6ab[_0x38ef('0x22')]>=_0x5f0da0[_0x38ef('0x22')])||_0x117bd1[0x0];}var _0x12476c;return _0x3b1c4d[_0x38ef('0x3d')]||_0x13c74f;}[_0x38ef('0x1b')](_0x36d5d1){this['_addedAnnotations'][_0x38ef('0xd')](_0x36d5d1)&&this[_0x38ef('0x1f')][_0x38ef('0x42')](_0x36d5d1[_0x38ef('0x1a')])&&(this[_0x38ef('0x31')][_0x38ef('0x40')](_0x36d5d1),this[_0x38ef('0x1f')]['remove'](_0x36d5d1[_0x38ef('0x1a')]));}[_0x38ef('0x4d')](_0x3043a3){this[_0x38ef('0x32')][_0x38ef('0x47')](_0x3043a3),this['_removeAnnotationFromBalloon'](_0x3043a3);}}function E(_0x8fd043,_0x1cab75){return _0x8fd043[_0x38ef('0x4f')]===_0x1cab75[_0x38ef('0x4f')]&&_0x8fd043['bottom']===_0x1cab75[_0x38ef('0xe')]&&_0x8fd043[_0x38ef('0x22')]===_0x1cab75[_0x38ef('0x1e')];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x345e=['_showBalloon','content','add','stopListening','detach','keyCode','refresh','annotationType','isDirty','southArrowNorthWest','_annotationToNarrowView','editors','_setSelectedAnnotations','register','southArrowNorth','bodyCollection','ready','Sidebar','pluginName','setActiveAnnotation','remove','mousedown','set:container','defaultPositions','init','isVisible','_refreshPositioning','removeEventListener','preventDefault','requires','number','attach','isAttached','keydown','create','target','_domEmitter','delete','off','preventClosingBalloon','resize','ck-sidebar--narrow','activeAnnotation','contains','first','_refreshPositioningDebounced','view','addEventListener','unpin','set','attachToDom','element','narrowsidebar-attach-already-attached','_hideBalloon','annotations','stop','locale','_updateBalloonPosition','_attachListeners','pin','destroy','_detachListeners','_annotations','_integrateWithEditorAnnotations','addAnnotation','Esc','_manuallyClosedAnnotationViews','getSidebarItemView','context','northArrowSouthWest','_destroyEditorAnnotationsIntegration','high','type','_attachToContainer','has','NarrowSidebar','balloonPanelView','get','blur','getByView','change:container','from','refreshPositioning','listenTo','plugins','EditorAnnotations','detachFromDom','includes','focus','execute','northArrowSouth','hasDomSelection','_editorAnnotations','narrowsidebar-detach-not-attached','_selectedAnnotations','clear','southArrowNorthEast'];(function(_0x18dfa4,_0x345e1d){const _0x26a996=function(_0x3b00e4){while(--_0x3b00e4){_0x18dfa4['push'](_0x18dfa4['shift']());}};_0x26a996(++_0x345e1d);}(_0x345e,0xcc));const _0x26a9=function(_0x18dfa4,_0x345e1d){_0x18dfa4=_0x18dfa4-0x0;let _0x26a996=_0x345e[_0x18dfa4];return _0x26a996;};import{ContextPlugin as _0x5b5fe7}from'ckeditor5/src/core';import _0x3ceff8 from'./annotationsuis';import _0x135e89 from'./sidebar';import _0x6ba298 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x46efca,BodyCollection as _0x50c2bd}from'ckeditor5/src/ui';import{CKEditorError as _0x5a8c46,DomEmitterMixin as _0x327c70,keyCodes as _0x18baf,Collection as _0x17726f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3891ea}from'lodash-es';export default class s extends _0x5b5fe7{static get[_0x26a9('0x13')](){return[_0x135e89,_0x3ceff8];}static get[_0x26a9('0x8')](){return _0x26a9('0x41');}constructor(_0x32d86c){super(_0x32d86c),this['isAttached']=!0x1,this[_0x26a9('0x38')]=new Set(),this['_domEmitter']=Object[_0x26a9('0x18')](_0x327c70),this[_0x26a9('0x0')]=new Map(),this['set'](_0x26a9('0x20'),null),this[_0x26a9('0x2c')]=null,this['_selectedAnnotations']=[],this[_0x26a9('0x52')]=new _0x17726f(),this[_0x26a9('0x23')]=_0x3891ea(()=>{this[_0x26a9('0x10')]();},0xfa,{'leading':!0x1});}[_0x26a9('0xe')](){this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x3ceff8)[_0x26a9('0x3')]('narrowSidebar',this),this[_0x26a9('0x5')]=new _0x50c2bd(this[_0x26a9('0x3a')][_0x26a9('0x2e')]),this[_0x26a9('0x42')]=new _0x46efca(this['context'][_0x26a9('0x2e')]),this[_0x26a9('0x5')][_0x26a9('0x28')](),this[_0x26a9('0x5')][_0x26a9('0x59')](this[_0x26a9('0x42')]);}[_0x26a9('0x15')](_0x2410f5){this[_0x26a9('0x2c')]=_0x2410f5;const _0x1b9f07=this['context']['plugins'][_0x26a9('0x43')](_0x135e89),_0x4d0e3f=this[_0x26a9('0x42')];if(_0x1b9f07[_0x26a9('0x34')]=_0x2410f5,this['isAttached'])throw new _0x5a8c46(_0x26a9('0x2a'),this);this[_0x26a9('0x16')]=!0x0,this[_0x26a9('0x49')](_0x1b9f07,_0x26a9('0xc'),()=>{this['detach'](),this['listenTo'](_0x1b9f07,_0x26a9('0x46'),_0x31c711=>{_0x31c711[_0x26a9('0x1c')](),this[_0x26a9('0x15')](_0x2410f5);});}),_0x1b9f07[_0x26a9('0x3f')]({'viewClass':_0x26a9('0x1f'),'spaceBetweenItems':0x5});const _0x2e4251=_0x31621d=>{const _0x3efd7e=new _0x6ba298(this[_0x26a9('0x3a')]['locale']);_0x1b9f07[_0x26a9('0x36')](_0x31621d,_0x3efd7e),this['_annotationToNarrowView'][_0x26a9('0x27')](_0x31621d,_0x3efd7e),_0x3efd7e['bind']('isDirty',_0x26a9('0x5e'),_0x26a9('0x14'))['to'](_0x31621d[_0x26a9('0x24')],_0x26a9('0x5f'),_0x26a9('0x3e'),'length'),_0x3efd7e['on'](_0x26a9('0x4f'),()=>{this[_0x26a9('0x38')][_0x26a9('0x55')](),_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]!==_0x31621d[_0x26a9('0x24')]?(this[_0x26a9('0x57')](_0x31621d),_0x31621d[_0x26a9('0x24')][_0x26a9('0x29')][_0x26a9('0x4e')](),this['setActiveAnnotation'](_0x31621d)):this['setActiveAnnotation'](null);});};for(const _0x7f7fcd of _0x2410f5)_0x2e4251(_0x7f7fcd);this[_0x26a9('0x49')](_0x2410f5,'add',(_0x40368b,_0x17ca48)=>{_0x2e4251(_0x17ca48);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0xa'),(_0x36fa0a,_0xd7c4f2,_0x123680)=>{this['_annotationToNarrowView']['get'](_0xd7c4f2)[_0x26a9('0x32')](),this[_0x26a9('0x0')][_0x26a9('0x1b')](_0xd7c4f2),_0x1b9f07['rearrange']({'removedAnnotation':_0xd7c4f2,'previousAnnotation':_0x2410f5['get'](_0x123680-0x1),'nextAnnotation':_0x2410f5['get'](_0x123680+0x1)}),_0xd7c4f2===this['activeAnnotation']&&this[_0x26a9('0x9')](null);},{'priority':'low'}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x4e'),(_0x3c33ea,_0x5c47d3)=>{this['setActiveAnnotation'](_0x5c47d3);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x44'),()=>{this[_0x26a9('0x9')](null);}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0x17'),(_0x4f29eb,_0xeac032)=>{_0xeac032[_0x26a9('0x5c')]===_0x18baf['esc']&&_0x4d0e3f[_0x26a9('0xf')]&&(this['_manuallyClosedAnnotationViews'][_0x26a9('0x59')](_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]),this[_0x26a9('0x2b')](),_0xeac032['stopPropagation'](),_0xeac032[_0x26a9('0x12')]());}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x2c385b,_0x5e2a21)=>{const _0x5d5dde=_0x5e2a21[_0x26a9('0x19')];_0x4d0e3f['isVisible']&&_0x4d0e3f[_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x1b9f07['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x2c385b[_0x26a9('0x1d')]||(this[_0x26a9('0x38')][_0x26a9('0x55')](),this[_0x26a9('0x2b')](),this[_0x26a9('0x9')](null));});const _0x11db78=this['context'][_0x26a9('0x1')]?this[_0x26a9('0x3a')][_0x26a9('0x1')]:new _0x17726f([this[_0x26a9('0x3a')]]);for(const _0x1b03eb of _0x11db78)this[_0x26a9('0x35')](_0x1b03eb);this[_0x26a9('0x49')](_0x11db78,_0x26a9('0x59'),(_0x40c7a7,_0x4d681a)=>{this[_0x26a9('0x49')](_0x4d681a,_0x26a9('0x6'),()=>{this[_0x26a9('0x35')](_0x4d681a);});}),this[_0x26a9('0x49')](_0x11db78,'remove',(_0x500062,_0x470e18)=>{_0x470e18['plugins'][_0x26a9('0x40')](_0x26a9('0x4b'))&&this[_0x26a9('0x3c')](_0x470e18['plugins'][_0x26a9('0x43')](_0x26a9('0x4b')));}),window[_0x26a9('0x25')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioning']();}[_0x26a9('0x9')](_0x2a5a55){if(_0x2a5a55===this['activeAnnotation'])return;const _0x1eab9b=this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x26a9('0x7'));if(_0x1eab9b[_0x26a9('0x5d')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2a5a55,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2a5a55)_0x1eab9b[_0x26a9('0x39')](_0x2a5a55)?this['_showBalloon'](_0x2a5a55):this[_0x26a9('0x2b')]();else this['_hideBalloon']();this[_0x26a9('0x20')]=_0x2a5a55;}[_0x26a9('0x5b')](){if(!this[_0x26a9('0x16')])throw new _0x5a8c46(_0x26a9('0x53'),this);this[_0x26a9('0x9')](null);const _0x407787=this[_0x26a9('0x3a')]['plugins']['get'](_0x26a9('0x7'));this['_hideBalloon'](),Array[_0x26a9('0x47')](this[_0x26a9('0x0')]['values'](),_0x4fbbf9=>_0x4fbbf9[_0x26a9('0x32')]()),this[_0x26a9('0x0')][_0x26a9('0x55')](),_0x407787['_detachFromContainer'](this['annotations']),this[_0x26a9('0x5a')](),this[_0x26a9('0x1a')][_0x26a9('0x5a')](),this[_0x26a9('0x5a')](this[_0x26a9('0x3a')][_0x26a9('0x1')]);for(const _0x34e2ed of Array[_0x26a9('0x47')](this[_0x26a9('0x52')]))this['_destroyEditorAnnotationsIntegration'](_0x34e2ed);window[_0x26a9('0x11')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x26a9('0x54')]=[],this[_0x26a9('0x16')]=!0x1,this[_0x26a9('0x2c')]=null;}[_0x26a9('0x32')](){this[_0x26a9('0x16')]&&this[_0x26a9('0x5b')](),this[_0x26a9('0x5')][_0x26a9('0x4c')]();}['_integrateWithEditorAnnotations'](_0x1f3550){const _0x15fd29=_0x1f3550['plugins'][_0x26a9('0x43')]('EditorAnnotations'),_0x20addf=this[_0x26a9('0x3a')][_0x26a9('0x4a')]['get'](_0x135e89),_0x1c87d8=this[_0x26a9('0x2c')],_0x1be126=this[_0x26a9('0x42')],_0x47f48e=()=>{const _0x44711a=_0x15fd29['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this[_0x26a9('0x2')](_0x44711a),this[_0x26a9('0x9')](_0x44711a[0x0]||null);};this[_0x26a9('0x49')](_0x15fd29,'refresh',_0x47f48e),this[_0x26a9('0x49')](_0x15fd29,_0x26a9('0x44'),(_0x1b0bc1,{isAnnotationTracked:_0x27a143})=>{this[_0x26a9('0x20')]&&_0x27a143(this['activeAnnotation'])&&(this[_0x26a9('0x2')]([]),this[_0x26a9('0x9')](null));}),this[_0x26a9('0x49')](_0x15fd29,'uiUpdate',()=>{this[_0x26a9('0x23')]();}),this['listenTo'](_0x1c87d8,_0x26a9('0x44'),_0x444f6f=>{_0x15fd29[_0x26a9('0x51')]()&&_0x444f6f[_0x26a9('0x2d')]();},{'priority':_0x26a9('0x3d')}),this['_domEmitter'][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x5ac51d,_0x5d5232)=>{const _0x44fb36=_0x5d5232[_0x26a9('0x19')];_0x1be126[_0x26a9('0xf')]&&_0x1be126[_0x26a9('0x29')]['contains'](_0x44fb36)||_0x20addf['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x44fb36)||this['activeAnnotation']&&_0x15fd29[_0x26a9('0x51')]()&&(_0x47f48e(),_0x5ac51d[_0x26a9('0x1d')]=!0x0);},{'priority':'high'}),this[_0x26a9('0x52')][_0x26a9('0x59')](_0x15fd29);}['_destroyEditorAnnotationsIntegration'](_0x1e2230){_0x1e2230&&(this['stopListening'](_0x1e2230),this[_0x26a9('0x52')]['remove'](_0x1e2230));}['_setSelectedAnnotations'](_0x355026){for(const _0x38b61f of this[_0x26a9('0x54')])_0x355026[_0x26a9('0x4d')](_0x38b61f)||this[_0x26a9('0x38')][_0x26a9('0x1b')](_0x38b61f[_0x26a9('0x24')]);this['_selectedAnnotations']=_0x355026;}[_0x26a9('0x10')](){const _0x3c9295=this[_0x26a9('0x42')];this[_0x26a9('0x2c')][_0x26a9('0x48')](),_0x3c9295[_0x26a9('0xf')]&&this['_updateBalloonPosition']();}[_0x26a9('0x57')](_0x313a3f){if(this['_manuallyClosedAnnotationViews'][_0x26a9('0x40')](_0x313a3f[_0x26a9('0x24')]))return;const _0x27f873=this['balloonPanelView'][_0x26a9('0x58')][_0x26a9('0x22')];_0x27f873!==_0x313a3f['view']?(_0x27f873&&this[_0x26a9('0x33')](_0x27f873),this['_attachListeners'](_0x313a3f[_0x26a9('0x24')]),this['balloonPanelView']['content'][_0x26a9('0x55')](),this['balloonPanelView']['content'][_0x26a9('0x59')](_0x313a3f[_0x26a9('0x24')]),this[_0x26a9('0x2f')]()):this[_0x26a9('0x2f')]();}[_0x26a9('0x2f')](){const _0x133bbf=this[_0x26a9('0x42')][_0x26a9('0x58')]['first'],_0x2583b1=this[_0x26a9('0x2c')][_0x26a9('0x45')](_0x133bbf);if(!this[_0x26a9('0x0')]['has'](_0x2583b1))return;const _0x5ba942=this['_annotationToNarrowView'][_0x26a9('0x43')](_0x2583b1)[_0x26a9('0x29')],_0x4cd686=function(){const _0x372475=_0x46efca[_0x26a9('0xd')];return[_0x372475[_0x26a9('0x56')],_0x372475['northArrowSouthEast'],_0x372475[_0x26a9('0x4')],_0x372475[_0x26a9('0x50')],_0x372475[_0x26a9('0x60')],_0x372475[_0x26a9('0x3b')]];}();this[_0x26a9('0x42')][_0x26a9('0x31')]({'target':_0x5ba942,'positions':_0x4cd686});}[_0x26a9('0x2b')](){const _0x519721=this[_0x26a9('0x42')],_0x15c110=_0x519721[_0x26a9('0x58')][_0x26a9('0x22')];_0x15c110&&(this[_0x26a9('0x33')](_0x15c110),_0x519721[_0x26a9('0x26')](),_0x519721[_0x26a9('0x58')][_0x26a9('0x55')]());}[_0x26a9('0x30')](_0x4ca639){this[_0x26a9('0x49')](_0x4ca639,'change:height',()=>this[_0x26a9('0x2f')]()),this[_0x26a9('0x49')](_0x4ca639,_0x26a9('0x37'),(_0x29f1a4,_0x6d2479)=>{this[_0x26a9('0x38')]['add'](_0x4ca639),this[_0x26a9('0x2b')](),_0x6d2479();});}[_0x26a9('0x33')](_0x3913e4){this['stopListening'](_0x3913e4);}}
23
+ const _0x2101=['activeAnnotation','keyCode','rearrange','destroy','_detachListeners','balloonPanelView','_attachToContainer','setActiveAnnotation','detachFromDom','refresh','_integrateWithEditorAnnotations','isAttached','NarrowSidebar','_refreshPositioningDebounced','hasDomSelection','attach','_domEmitter','high','refreshPositioning','focus','change:container','attachToDom','pin','ready','_destroyEditorAnnotationsIntegration','uiUpdate','plugins','_updateBalloonPosition','_annotations','resize','editors','from','register','annotationType','number','southArrowNorth','detach','execute','add','_editorAnnotations','Sidebar','type','_setSelectedAnnotations','_showBalloon','delete','clear','preventDefault','isDirty','narrowSidebar','narrowsidebar-attach-already-attached','_selectedAnnotations','content','change:height','keydown','stop','context','northArrowSouthWest','preventClosingBalloon','northArrowSouthEast','bodyCollection','length','view','init','EditorAnnotations','isVisible','has','getSidebarItemView','stopListening','set:container','remove','first','getByView','locale','requires','values','_refreshPositioning','mousedown','blur','get','getOrderedSelectedAnnotations','_attachListeners','unpin','contains','annotations','set','_manuallyClosedAnnotationViews','element','southArrowNorthEast','_hideBalloon','defaultPositions','create','removeEventListener','_annotationToNarrowView','listenTo','stopPropagation','low','target'];(function(_0x4ff4d2,_0x210150){const _0x50a65f=function(_0x2455a8){while(--_0x2455a8){_0x4ff4d2['push'](_0x4ff4d2['shift']());}};_0x50a65f(++_0x210150);}(_0x2101,0x1b4));const _0x50a6=function(_0x4ff4d2,_0x210150){_0x4ff4d2=_0x4ff4d2-0x0;let _0x50a65f=_0x2101[_0x4ff4d2];return _0x50a65f;};import{ContextPlugin as _0x26f94f}from'ckeditor5/src/core';import _0x3118b2 from'./annotationsuis';import _0xbd81b9 from'./sidebar';import _0x29d404 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4d1e5d,BodyCollection as _0x3c37fa}from'ckeditor5/src/ui';import{CKEditorError as _0x1af5dc,DomEmitterMixin as _0x390e02,keyCodes as _0x26718d,Collection as _0x58ba3a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x114b9b}from'lodash-es';export default class s extends _0x26f94f{static get[_0x50a6('0x19')](){return[_0xbd81b9,_0x3118b2];}static get['pluginName'](){return _0x50a6('0x3d');}constructor(_0x5729bc){super(_0x5729bc),this[_0x50a6('0x3c')]=!0x1,this[_0x50a6('0x25')]=new Set(),this[_0x50a6('0x41')]=Object[_0x50a6('0x2a')](_0x390e02),this[_0x50a6('0x2c')]=new Map(),this[_0x50a6('0x24')]('activeAnnotation',null),this[_0x50a6('0x23')]=null,this[_0x50a6('0x2')]=[],this[_0x50a6('0x58')]=new _0x58ba3a(),this[_0x50a6('0x3e')]=_0x114b9b(()=>{this[_0x50a6('0x1b')]();},0xfa,{'leading':!0x1});}[_0x50a6('0xe')](){this['context'][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x3118b2)[_0x50a6('0x51')](_0x50a6('0x0'),this),this[_0x50a6('0xb')]=new _0x3c37fa(this[_0x50a6('0x7')][_0x50a6('0x18')]),this[_0x50a6('0x36')]=new _0x4d1e5d(this[_0x50a6('0x7')][_0x50a6('0x18')]),this[_0x50a6('0xb')][_0x50a6('0x46')](),this[_0x50a6('0xb')][_0x50a6('0x57')](this['balloonPanelView']);}[_0x50a6('0x40')](_0x59b2a4){this[_0x50a6('0x23')]=_0x59b2a4;const _0x4efd05=this['context'][_0x50a6('0x4b')][_0x50a6('0x1e')](_0xbd81b9),_0x4d3527=this[_0x50a6('0x36')];if(_0x4efd05[_0x50a6('0x4d')]=_0x59b2a4,this[_0x50a6('0x3c')])throw new _0x1af5dc(_0x50a6('0x1'),this);this[_0x50a6('0x3c')]=!0x0,this[_0x50a6('0x2d')](_0x4efd05,_0x50a6('0x14'),()=>{this['detach'](),this[_0x50a6('0x2d')](_0x4efd05,_0x50a6('0x45'),_0x53d39a=>{_0x53d39a['off'](),this[_0x50a6('0x40')](_0x59b2a4);});}),_0x4efd05[_0x50a6('0x37')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x29fc69=_0x40ec96=>{const _0x4c2f24=new _0x29d404(this[_0x50a6('0x7')][_0x50a6('0x18')]);_0x4efd05['addAnnotation'](_0x40ec96,_0x4c2f24),this[_0x50a6('0x2c')]['set'](_0x40ec96,_0x4c2f24),_0x4c2f24['bind'](_0x50a6('0x60'),_0x50a6('0x52'),_0x50a6('0x53'))['to'](_0x40ec96[_0x50a6('0xd')],_0x50a6('0x60'),_0x50a6('0x5a'),_0x50a6('0xc')),_0x4c2f24['on'](_0x50a6('0x56'),()=>{this['_manuallyClosedAnnotationViews'][_0x50a6('0x5e')](),_0x4d3527[_0x50a6('0x3')]['first']!==_0x40ec96['view']?(this[_0x50a6('0x5c')](_0x40ec96),_0x40ec96[_0x50a6('0xd')][_0x50a6('0x26')][_0x50a6('0x44')](),this[_0x50a6('0x38')](_0x40ec96)):this[_0x50a6('0x38')](null);});};for(const _0x2b0174 of _0x59b2a4)_0x29fc69(_0x2b0174);this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x57'),(_0x52a7ea,_0xf12b08)=>{_0x29fc69(_0xf12b08);}),this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x15'),(_0xb026f8,_0xa1fac0,_0x4f4b5e)=>{this[_0x50a6('0x2c')]['get'](_0xa1fac0)['destroy'](),this[_0x50a6('0x2c')]['delete'](_0xa1fac0),_0x4efd05[_0x50a6('0x33')]({'removedAnnotation':_0xa1fac0,'previousAnnotation':_0x59b2a4['get'](_0x4f4b5e-0x1),'nextAnnotation':_0x59b2a4[_0x50a6('0x1e')](_0x4f4b5e+0x1)}),_0xa1fac0===this['activeAnnotation']&&this[_0x50a6('0x38')](null);},{'priority':_0x50a6('0x2f')}),this[_0x50a6('0x2d')](_0x59b2a4,'focus',(_0x2e7afe,_0x50b377)=>{this[_0x50a6('0x38')](_0x50b377);}),this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x1d'),()=>{this[_0x50a6('0x38')](null);}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x5'),(_0x418143,_0xad62ee)=>{_0xad62ee[_0x50a6('0x32')]===_0x26718d['esc']&&_0x4d3527[_0x50a6('0x10')]&&(this['_manuallyClosedAnnotationViews'][_0x50a6('0x57')](_0x4d3527['content']['first']),this[_0x50a6('0x28')](),_0xad62ee[_0x50a6('0x2e')](),_0xad62ee[_0x50a6('0x5f')]());}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x1c'),(_0x4e3e81,_0x230db8)=>{const _0x360481=_0x230db8['target'];_0x4d3527['isVisible']&&_0x4d3527[_0x50a6('0x26')][_0x50a6('0x22')](_0x360481)||_0x4efd05[_0x50a6('0xd')][_0x50a6('0x26')][_0x50a6('0x22')](_0x360481)||_0x4e3e81[_0x50a6('0x9')]||(this[_0x50a6('0x25')][_0x50a6('0x5e')](),this['_hideBalloon'](),this[_0x50a6('0x38')](null));});const _0x2638d3=this[_0x50a6('0x7')][_0x50a6('0x4f')]?this[_0x50a6('0x7')][_0x50a6('0x4f')]:new _0x58ba3a([this['context']]);for(const _0x133317 of _0x2638d3)this[_0x50a6('0x3b')](_0x133317);this[_0x50a6('0x2d')](_0x2638d3,'add',(_0x3c51be,_0x3286a4)=>{this['listenTo'](_0x3286a4,_0x50a6('0x48'),()=>{this['_integrateWithEditorAnnotations'](_0x3286a4);});}),this[_0x50a6('0x2d')](_0x2638d3,_0x50a6('0x15'),(_0x260d78,_0x30897c)=>{_0x30897c[_0x50a6('0x4b')]['has'](_0x50a6('0xf'))&&this['_destroyEditorAnnotationsIntegration'](_0x30897c[_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0xf')));}),window['addEventListener'](_0x50a6('0x4e'),this[_0x50a6('0x3e')]),this[_0x50a6('0x1b')]();}[_0x50a6('0x38')](_0x491c48){if(_0x491c48===this[_0x50a6('0x31')])return;const _0x1c5b1b=this[_0x50a6('0x7')][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0x59'));if(_0x1c5b1b[_0x50a6('0x3a')]({'blurredAnnotation':this[_0x50a6('0x31')],'activatedAnnotation':_0x491c48,'disableAnimationOnActivatedAnnotation':!0x0}),_0x491c48)_0x1c5b1b[_0x50a6('0x12')](_0x491c48)?this[_0x50a6('0x5c')](_0x491c48):this[_0x50a6('0x28')]();else this['_hideBalloon']();this[_0x50a6('0x31')]=_0x491c48;}[_0x50a6('0x55')](){if(!this[_0x50a6('0x3c')])throw new _0x1af5dc('narrowsidebar-detach-not-attached',this);this[_0x50a6('0x38')](null);const _0x1e56cb=this[_0x50a6('0x7')][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0x59'));this[_0x50a6('0x28')](),Array[_0x50a6('0x50')](this['_annotationToNarrowView'][_0x50a6('0x1a')](),_0x31405d=>_0x31405d[_0x50a6('0x34')]()),this[_0x50a6('0x2c')][_0x50a6('0x5e')](),_0x1e56cb['_detachFromContainer'](this[_0x50a6('0x23')]),this[_0x50a6('0x13')](),this[_0x50a6('0x41')][_0x50a6('0x13')](),this[_0x50a6('0x13')](this['context'][_0x50a6('0x4f')]);for(const _0x209d0d of Array['from'](this[_0x50a6('0x58')]))this[_0x50a6('0x49')](_0x209d0d);window[_0x50a6('0x2b')]('resize',this[_0x50a6('0x3e')]),this[_0x50a6('0x3e')]['cancel'](),this[_0x50a6('0x2')]=[],this[_0x50a6('0x3c')]=!0x1,this[_0x50a6('0x23')]=null;}[_0x50a6('0x34')](){this['isAttached']&&this[_0x50a6('0x55')](),this['bodyCollection'][_0x50a6('0x39')]();}[_0x50a6('0x3b')](_0x5b52a1){const _0x47fc59=_0x5b52a1[_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0xf')),_0x377211=this[_0x50a6('0x7')]['plugins'][_0x50a6('0x1e')](_0xbd81b9),_0x43d428=this[_0x50a6('0x23')],_0x2e9fa4=this[_0x50a6('0x36')],_0x274473=()=>{const _0x521c97=_0x47fc59[_0x50a6('0x1f')]({'activeAnnotation':this[_0x50a6('0x31')],'annotations':this[_0x50a6('0x23')]});this[_0x50a6('0x5b')](_0x521c97),this[_0x50a6('0x38')](_0x521c97[0x0]||null);};this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x3a'),_0x274473),this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x1d'),(_0x572926,{isAnnotationTracked:_0x2ae38c})=>{this[_0x50a6('0x31')]&&_0x2ae38c(this[_0x50a6('0x31')])&&(this['_setSelectedAnnotations']([]),this[_0x50a6('0x38')](null));}),this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x4a'),()=>{this[_0x50a6('0x3e')]();}),this[_0x50a6('0x2d')](_0x43d428,_0x50a6('0x1d'),_0x30883f=>{_0x47fc59[_0x50a6('0x3f')]()&&_0x30883f[_0x50a6('0x6')]();},{'priority':_0x50a6('0x42')}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x1c'),(_0x5cc423,_0x3b7e9a)=>{const _0x23b673=_0x3b7e9a[_0x50a6('0x30')];_0x2e9fa4[_0x50a6('0x10')]&&_0x2e9fa4['element'][_0x50a6('0x22')](_0x23b673)||_0x377211[_0x50a6('0xd')][_0x50a6('0x26')]['contains'](_0x23b673)||this[_0x50a6('0x31')]&&_0x47fc59[_0x50a6('0x3f')]()&&(_0x274473(),_0x5cc423[_0x50a6('0x9')]=!0x0);},{'priority':_0x50a6('0x42')}),this[_0x50a6('0x58')][_0x50a6('0x57')](_0x47fc59);}[_0x50a6('0x49')](_0x5ce8b6){_0x5ce8b6&&(this[_0x50a6('0x13')](_0x5ce8b6),this[_0x50a6('0x58')][_0x50a6('0x15')](_0x5ce8b6));}[_0x50a6('0x5b')](_0x59719d){for(const _0x546030 of this[_0x50a6('0x2')])_0x59719d['includes'](_0x546030)||this['_manuallyClosedAnnotationViews'][_0x50a6('0x5d')](_0x546030[_0x50a6('0xd')]);this[_0x50a6('0x2')]=_0x59719d;}[_0x50a6('0x1b')](){const _0x21ea93=this[_0x50a6('0x36')];this[_0x50a6('0x23')][_0x50a6('0x43')](),_0x21ea93['isVisible']&&this['_updateBalloonPosition']();}[_0x50a6('0x5c')](_0x51482f){if(this['_manuallyClosedAnnotationViews'][_0x50a6('0x11')](_0x51482f[_0x50a6('0xd')]))return;const _0x26527b=this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x16')];_0x26527b!==_0x51482f[_0x50a6('0xd')]?(_0x26527b&&this['_detachListeners'](_0x26527b),this[_0x50a6('0x20')](_0x51482f[_0x50a6('0xd')]),this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x5e')](),this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x57')](_0x51482f[_0x50a6('0xd')]),this[_0x50a6('0x4c')]()):this[_0x50a6('0x4c')]();}[_0x50a6('0x4c')](){const _0x535990=this[_0x50a6('0x36')][_0x50a6('0x3')]['first'],_0x1efc9a=this['annotations'][_0x50a6('0x17')](_0x535990);if(!this[_0x50a6('0x2c')][_0x50a6('0x11')](_0x1efc9a))return;const _0x40880b=this[_0x50a6('0x2c')][_0x50a6('0x1e')](_0x1efc9a)[_0x50a6('0x26')],_0x401108=function(){const _0x2c812f=_0x4d1e5d[_0x50a6('0x29')];return[_0x2c812f[_0x50a6('0x27')],_0x2c812f[_0x50a6('0xa')],_0x2c812f[_0x50a6('0x54')],_0x2c812f['northArrowSouth'],_0x2c812f['southArrowNorthWest'],_0x2c812f[_0x50a6('0x8')]];}();this[_0x50a6('0x36')][_0x50a6('0x47')]({'target':_0x40880b,'positions':_0x401108});}[_0x50a6('0x28')](){const _0x54636c=this[_0x50a6('0x36')],_0x5935a7=_0x54636c['content']['first'];_0x5935a7&&(this[_0x50a6('0x35')](_0x5935a7),_0x54636c[_0x50a6('0x21')](),_0x54636c[_0x50a6('0x3')]['clear']());}[_0x50a6('0x20')](_0x57d617){this[_0x50a6('0x2d')](_0x57d617,_0x50a6('0x4'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57d617,'Esc',(_0xb1f39,_0x5e3dec)=>{this[_0x50a6('0x25')][_0x50a6('0x57')](_0x57d617),this[_0x50a6('0x28')](),_0x5e3dec();});}[_0x50a6('0x35')](_0x10f8c7){this[_0x50a6('0x13')](_0x10f8c7);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x2761=['container','destroy','get','object','locale','_activeAnnotation','minHeight','_getTargetTop','stopListening','_createSidebarView','_lastItem','change:targetRect','_detachFromContainer','_annotations','clear','list','add','refresh','target','_getItemAfter','set','_getMaxAvailableTop','content','appendChild','bottom','pluginName','_setItemTop','define','render','_alignAfterItem','updateHeight','sidebar.container','_destroySidebarItemView','bind','_alignBeforeItem','top','_attachToContainer','_sidebarItemViewToAnnotation','change:top','getIndex','view','sidebar-attachtocontainer-missing-container','nodeType','context','sidebar.preventScrollOutOfView','push','_annotationToSidebarItemView','_getItemBefore','listenTo','Sidebar','addAnnotation','_alignForTopChange','init','class','_updateLastItem','isAnimationDisabled','delete','change:bottom','_recalculateBuffer','max','remove','isActive','element','_alignToTargetRect','config','sidebar-setcontainer-invalid-element','length','_alignForBottomChange','_recalculate','_spaceBetweenItems','getSidebarItemView'];(function(_0x4ac63d,_0x276192){const _0x5941e5=function(_0x435d89){while(--_0x435d89){_0x4ac63d['push'](_0x4ac63d['shift']());}};_0x5941e5(++_0x276192);}(_0x2761,0x19e));const _0x5941=function(_0x4ac63d,_0x276192){_0x4ac63d=_0x4ac63d-0x0;let _0x5941e5=_0x2761[_0x4ac63d];return _0x5941e5;};import{ContextPlugin as _0x5bc14a}from'ckeditor5/src/core';import _0x59da0a from'./view/sidebarview';import _0x526db4 from'./view/sidebaritemview';import{Rect as _0x535eb9,CKEditorError as _0x3b9abf}from'ckeditor5/src/utils';export default class b extends _0x5bc14a{static get[_0x5941('0x25')](){return _0x5941('0x3d');}constructor(_0x3522f5){super(_0x3522f5),this[_0x5941('0x20')](_0x5941('0x16')),this[_0x5941('0x34')]=this[_0x5941('0x15')](),this[_0x5941('0x20')](_0x5941('0xc'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x5941('0x3a')]=new Map(),this[_0x5941('0x37')]['config'][_0x5941('0x27')](_0x5941('0x38'),!0x1),this[_0x5941('0x19')]=null,this[_0x5941('0x11')]=null,this['_recalculateBuffer']=[];}[_0x5941('0x40')](){const _0x51e30f=this[_0x5941('0x37')][_0x5941('0x5')][_0x5941('0xe')](_0x5941('0x2b'));_0x51e30f&&this['setContainer'](_0x51e30f);}['setContainer'](_0x58db3a){if(!p(_0x58db3a))throw new _0x3b9abf(_0x5941('0x6'));this['container']=_0x58db3a;}[_0x5941('0x30')]({viewClass:_0x5868dc='',spaceBetweenItems:_0x6bf270=0x19}={}){if(!p(this[_0x5941('0xc')]))throw new _0x3b9abf(_0x5941('0x35'),this);this[_0x5941('0xc')][_0x5941('0x23')](this[_0x5941('0x34')][_0x5941('0x3')]),this[_0x5941('0x34')][_0x5941('0x41')]=_0x5868dc,this[_0x5941('0xa')]=_0x6bf270;}['rearrange']({removedAnnotation:_0xf29664,previousAnnotation:_0x34a205,nextAnnotation:_0x2c879e}){const _0x2c4c78=this['getSidebarItemView'](_0xf29664);this['view'][_0x5941('0x1b')][_0x5941('0x1')](_0x2c4c78),this['_destroySidebarItemView'](_0xf29664),_0x34a205&&this[_0x5941('0x4')](this[_0x5941('0xb')](_0x34a205)),_0x2c879e&&this[_0x5941('0x4')](this['getSidebarItemView'](_0x2c879e)),this['_updateLastItem']();}[_0x5941('0x1d')]({blurredAnnotation:_0x1283ec,activatedAnnotation:_0x1a630b,disableAnimationOnActivatedAnnotation:_0x3174a3}){if(this['_activeAnnotation']=_0x1a630b,_0x1283ec){_0x1283ec['isActive']=!0x1;const _0xb5ea90=this['getSidebarItemView'](_0x1283ec);_0xb5ea90&&_0x3174a3&&(_0xb5ea90['isAnimationDisabled']=!0x1);}if(_0x1a630b){const _0x552db9=this[_0x5941('0xb')](_0x1a630b);_0x552db9&&(_0x1a630b[_0x5941('0x2')]=!0x0,_0x3174a3&&(_0x552db9[_0x5941('0x43')]=!0x0,_0x552db9[_0x5941('0x2f')]+=0x1),this[_0x5941('0x4')](_0x552db9));}}[_0x5941('0x18')](_0x5b69a3){this[_0x5941('0x14')](),this[_0x5941('0x34')][_0x5941('0x3')][_0x5941('0x1')]();for(const _0x4a461a of _0x5b69a3)this['_destroySidebarItemView'](_0x4a461a);this[_0x5941('0x34')][_0x5941('0x1b')][_0x5941('0x1a')](),this[_0x5941('0x34')]['class']='',this[_0x5941('0x16')]=null;}[_0x5941('0x3e')](_0x4a648c,_0x4f047f){_0x4f047f||(_0x4f047f=_0x4a648c[_0x5941('0x34')]);const _0x27a0d6=new _0x526db4(this[_0x5941('0x37')][_0x5941('0x10')]);this['_sidebarItemViewToAnnotation']['set'](_0x27a0d6,_0x4a648c),this[_0x5941('0x3a')][_0x5941('0x20')](_0x4a648c,_0x27a0d6),_0x27a0d6['content'][_0x5941('0x1c')](_0x4f047f),this['listenTo'](_0x4a648c[_0x5941('0x34')],_0x5941('0x17'),(_0x1b8908,_0x42e17b,_0x5aa1e7)=>{const _0x5029fd=this['_getTargetTop'](_0x4a648c,_0x5aa1e7);_0x27a0d6['_targetTop']!=_0x5029fd&&(_0x27a0d6['_targetTop']=_0x5029fd,this[_0x5941('0x26')](_0x27a0d6,_0x5029fd));}),this['listenTo'](_0x27a0d6,_0x5941('0x32'),()=>{this[_0x5941('0x9')](_0x27a0d6,'top');}),this[_0x5941('0x3c')](_0x27a0d6,_0x5941('0x45'),()=>{this[_0x5941('0x9')](_0x27a0d6,'bottom');}),this['_alignToTargetRect'](_0x27a0d6);const _0x44bee5=this['_getItemBefore'](_0x27a0d6);if(_0x44bee5)this[_0x5941('0x29')](_0x44bee5,_0x27a0d6)||this['_alignToTargetRect'](_0x27a0d6);else this[_0x5941('0x4')](_0x27a0d6);return this['_updateLastItem'](),this[_0x5941('0x34')]['list'][_0x5941('0x1c')](_0x27a0d6),_0x27a0d6;}[_0x5941('0x3f')](_0x319efe){if(!_0x319efe[_0x5941('0x22')]['length'])return;const _0x1b55c8=this['_getItemBefore'](_0x319efe);if(!_0x1b55c8)return;const _0x22e242=this[_0x5941('0x31')][_0x5941('0xe')](_0x1b55c8),_0x37f470=this[_0x5941('0x11')];_0x37f470&&_0x37f470===_0x22e242?this[_0x5941('0x29')](_0x1b55c8,_0x319efe):this[_0x5941('0x2e')](_0x319efe,_0x1b55c8);}[_0x5941('0x8')](_0x3e6478){if(!_0x3e6478['content'][_0x5941('0x7')])return;const _0x504334=this['_getItemAfter'](_0x3e6478);if(!_0x504334)return;const _0x541201=this[_0x5941('0x31')]['get'](_0x504334),_0x56036c=this[_0x5941('0x37')]['config'][_0x5941('0xe')](_0x5941('0x38')),_0x410f1c=this[_0x5941('0x11')];_0x410f1c&&_0x410f1c===_0x541201&&_0x56036c?(this['_alignBeforeItem'](_0x504334,_0x3e6478),this[_0x5941('0x29')](_0x3e6478,_0x504334)):_0x410f1c&&_0x410f1c===_0x541201?this[_0x5941('0x2e')](_0x504334,_0x3e6478):this['_alignAfterItem'](_0x3e6478,_0x504334);}['_recalculate'](_0xfdcceb,_0xf85080){0x0===this[_0x5941('0x46')][_0x5941('0x7')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4e0ea4,changedProp:_0x277f1c}of this['_recalculateBuffer'])_0x5941('0x2f')===_0x277f1c?this['_alignForTopChange'](_0x4e0ea4):this[_0x5941('0x8')](_0x4e0ea4);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer'][_0x5941('0x39')]({'sidebarItemView':_0xfdcceb,'changedProp':_0xf85080});}[_0x5941('0xb')](_0x11e6ba){return this[_0x5941('0x3a')][_0x5941('0xe')](_0x11e6ba);}['destroy'](){this[_0x5941('0x34')][_0x5941('0xd')]();}[_0x5941('0x2c')](_0x25fb4b){const _0x28b8c5=this[_0x5941('0xb')](_0x25fb4b);this[_0x5941('0x14')](_0x28b8c5),this[_0x5941('0x14')](_0x25fb4b[_0x5941('0x34')]),_0x28b8c5[_0x5941('0xd')](),this[_0x5941('0x3a')][_0x5941('0x44')](_0x25fb4b),this['_sidebarItemViewToAnnotation'][_0x5941('0x44')](_0x28b8c5);}['_createSidebarView'](){const _0x1ae893=new _0x59da0a(this[_0x5941('0x37')][_0x5941('0x10')]);return _0x1ae893[_0x5941('0x28')](),this['on']('change:_lastItem',(_0x2c51f1,_0x401711,_0x1e8e14,_0x585b9c)=>{_0x585b9c&&_0x1ae893['unbind'](_0x5941('0x12')),_0x1e8e14?_0x1ae893[_0x5941('0x2d')](_0x5941('0x12'))['to'](_0x1e8e14,_0x5941('0x24')):_0x1ae893[_0x5941('0x12')]=null;}),_0x1ae893;}[_0x5941('0x42')](){this[_0x5941('0x16')]=this[_0x5941('0xb')](this[_0x5941('0x19')]['last']);}[_0x5941('0x3b')](_0x7e6e14){const _0x3aaec4=this[_0x5941('0x31')]['get'](_0x7e6e14),_0x4ed90a=this[_0x5941('0x19')][_0x5941('0xe')](this[_0x5941('0x19')][_0x5941('0x33')](_0x3aaec4)-0x1);return _0x4ed90a&&this[_0x5941('0xb')](_0x4ed90a);}[_0x5941('0x1f')](_0x43a927){const _0x56ba8a=this['_sidebarItemViewToAnnotation'][_0x5941('0xe')](_0x43a927),_0x223e06=this[_0x5941('0x19')][_0x5941('0xe')](this[_0x5941('0x19')][_0x5941('0x33')](_0x56ba8a)+0x1);return _0x223e06&&this['getSidebarItemView'](_0x223e06);}[_0x5941('0x2e')](_0xe121c4,_0x1e2a43){_0xe121c4[_0x5941('0x2a')]();const _0x249b44=C(_0x1e2a43[_0x5941('0x24')]+this[_0x5941('0xa')],_0xe121c4['top']);return!!_0x249b44&&(this[_0x5941('0x26')](_0x1e2a43,_0x1e2a43[_0x5941('0x2f')]-_0x249b44),!0x0);}['_alignAfterItem'](_0x42e200,_0x21649e){_0x42e200['updateHeight']();const _0x4d5cff=C(_0x42e200[_0x5941('0x24')]+this[_0x5941('0xa')],_0x21649e[_0x5941('0x2f')]);return!!_0x4d5cff&&(this['_setItemTop'](_0x21649e,_0x21649e[_0x5941('0x2f')]+_0x4d5cff,!0x1),!0x0);}[_0x5941('0x4')](_0x504fa6){const _0xf429d4=this['_sidebarItemViewToAnnotation']['get'](_0x504fa6);if(!_0xf429d4||!_0xf429d4[_0x5941('0x1e')])return;const _0x2f932f=this[_0x5941('0x13')](_0xf429d4,_0xf429d4['targetRect']);this[_0x5941('0x26')](_0x504fa6,_0x2f932f);}[_0x5941('0x13')](_0x5591b4,_0x3e022a){if(null===_0x3e022a)return 0x0;if(_0x5591b4[_0x5941('0x1e')]instanceof _0x535eb9)return _0x3e022a['top'];{const _0x314066=new _0x535eb9(this[_0x5941('0x34')]['element'])['top'];return _0x3e022a[_0x5941('0x2f')]-_0x314066;}}[_0x5941('0x26')](_0x2778f6,_0x5662ce,_0x230628=this[_0x5941('0x37')][_0x5941('0x5')][_0x5941('0xe')]('sidebar.preventScrollOutOfView')){_0x230628&&(_0x5662ce=Math[_0x5941('0x0')](_0x5662ce,this['_getMaxAvailableTop'](_0x2778f6))),_0x2778f6[_0x5941('0x2f')]=_0x5662ce;}[_0x5941('0x21')](_0x4d0b1e){let _0x1436a6=this[_0x5941('0x3b')](_0x4d0b1e),_0x5f3c68=0x0;for(;_0x1436a6;)_0x1436a6[_0x5941('0x2a')](),_0x5f3c68+=this[_0x5941('0xa')]+_0x1436a6['height'],_0x1436a6=this[_0x5941('0x3b')](_0x1436a6);return _0x5f3c68;}}function C(_0x17cf70,_0x128783){return Math[_0x5941('0x0')](_0x17cf70-_0x128783,0x0);}function p(_0x447d85){return null!==_0x447d85&&_0x5941('0xf')==typeof _0x447d85&&0x1===_0x447d85[_0x5941('0x36')];}
23
+ const _0x2201=['push','getSidebarItemView','add','addAnnotation','appendChild','refresh','_getMaxAvailableTop','_alignForBottomChange','target','destroy','change:top','_detachFromContainer','setContainer','unbind','length','isAnimationDisabled','top','_getItemBefore','minHeight','sidebar.container','get','_lastItem','_createSidebarView','rearrange','last','_attachToContainer','_targetTop','set','updateHeight','remove','_activeAnnotation','sidebar-attachtocontainer-missing-container','_annotationToSidebarItemView','_spaceBetweenItems','_alignBeforeItem','_destroySidebarItemView','delete','isActive','max','pluginName','list','_getTargetTop','_recalculate','sidebar.preventScrollOutOfView','_recalculateBuffer','render','context','_getItemAfter','object','change:bottom','container','_alignToTargetRect','class','listenTo','_setItemTop','content','view','stopListening','targetRect','getIndex','locale','_alignAfterItem','Sidebar','sidebar-setcontainer-invalid-element','bottom','_updateLastItem','nodeType','_sidebarItemViewToAnnotation','_alignForTopChange','_annotations','init','element','config'];(function(_0x1edbc1,_0x2201dd){const _0xfcb7b6=function(_0x1601e0){while(--_0x1601e0){_0x1edbc1['push'](_0x1edbc1['shift']());}};_0xfcb7b6(++_0x2201dd);}(_0x2201,0xe5));const _0xfcb7=function(_0x1edbc1,_0x2201dd){_0x1edbc1=_0x1edbc1-0x0;let _0xfcb7b6=_0x2201[_0x1edbc1];return _0xfcb7b6;};import{ContextPlugin as _0x3a14b2}from'ckeditor5/src/core';import _0x224b0d from'./view/sidebarview';import _0xe1e09 from'./view/sidebaritemview';import{Rect as _0x314f8d,CKEditorError as _0x169940}from'ckeditor5/src/utils';export default class b extends _0x3a14b2{static get[_0xfcb7('0x1d')](){return _0xfcb7('0x34');}constructor(_0x2f3b93){super(_0x2f3b93),this[_0xfcb7('0x11')](_0xfcb7('0xb')),this['view']=this[_0xfcb7('0xc')](),this[_0xfcb7('0x11')]('container',null),this[_0xfcb7('0x17')]=0x19,this[_0xfcb7('0x39')]=new Map(),this[_0xfcb7('0x16')]=new Map(),this[_0xfcb7('0x24')][_0xfcb7('0x3e')]['define']('sidebar.preventScrollOutOfView',!0x1),this[_0xfcb7('0x3b')]=null,this[_0xfcb7('0x14')]=null,this['_recalculateBuffer']=[];}[_0xfcb7('0x3c')](){const _0xb95e76=this[_0xfcb7('0x24')][_0xfcb7('0x3e')][_0xfcb7('0xa')](_0xfcb7('0x9'));_0xb95e76&&this[_0xfcb7('0x2')](_0xb95e76);}[_0xfcb7('0x2')](_0x28fc59){if(!p(_0x28fc59))throw new _0x169940(_0xfcb7('0x35'));this[_0xfcb7('0x28')]=_0x28fc59;}[_0xfcb7('0xf')]({viewClass:_0x2cb716='',spaceBetweenItems:_0x178b19=0x19}={}){if(!p(this[_0xfcb7('0x28')]))throw new _0x169940(_0xfcb7('0x15'),this);this[_0xfcb7('0x28')][_0xfcb7('0x43')](this[_0xfcb7('0x2e')][_0xfcb7('0x3d')]),this[_0xfcb7('0x2e')][_0xfcb7('0x2a')]=_0x2cb716,this[_0xfcb7('0x17')]=_0x178b19;}[_0xfcb7('0xd')]({removedAnnotation:_0x4cc79c,previousAnnotation:_0x212c0d,nextAnnotation:_0x4e3a1b}){const _0x38dc49=this[_0xfcb7('0x40')](_0x4cc79c);this[_0xfcb7('0x2e')]['list']['remove'](_0x38dc49),this['_destroySidebarItemView'](_0x4cc79c),_0x212c0d&&this[_0xfcb7('0x29')](this[_0xfcb7('0x40')](_0x212c0d)),_0x4e3a1b&&this[_0xfcb7('0x29')](this[_0xfcb7('0x40')](_0x4e3a1b)),this['_updateLastItem']();}[_0xfcb7('0x44')]({blurredAnnotation:_0x4c3bd1,activatedAnnotation:_0x110614,disableAnimationOnActivatedAnnotation:_0x506237}){if(this[_0xfcb7('0x14')]=_0x110614,_0x4c3bd1){_0x4c3bd1['isActive']=!0x1;const _0x2847c3=this['getSidebarItemView'](_0x4c3bd1);_0x2847c3&&_0x506237&&(_0x2847c3[_0xfcb7('0x5')]=!0x1);}if(_0x110614){const _0x363476=this[_0xfcb7('0x40')](_0x110614);_0x363476&&(_0x110614[_0xfcb7('0x1b')]=!0x0,_0x506237&&(_0x363476['isAnimationDisabled']=!0x0,_0x363476[_0xfcb7('0x6')]+=0x1),this[_0xfcb7('0x29')](_0x363476));}}[_0xfcb7('0x1')](_0x32534e){this[_0xfcb7('0x2f')](),this[_0xfcb7('0x2e')]['element'][_0xfcb7('0x13')]();for(const _0x252342 of _0x32534e)this[_0xfcb7('0x19')](_0x252342);this[_0xfcb7('0x2e')][_0xfcb7('0x1e')]['clear'](),this[_0xfcb7('0x2e')][_0xfcb7('0x2a')]='',this[_0xfcb7('0xb')]=null;}[_0xfcb7('0x42')](_0x59b3f5,_0x59f4f3){_0x59f4f3||(_0x59f4f3=_0x59b3f5['view']);const _0x83c881=new _0xe1e09(this['context']['locale']);this['_sidebarItemViewToAnnotation'][_0xfcb7('0x11')](_0x83c881,_0x59b3f5),this[_0xfcb7('0x16')][_0xfcb7('0x11')](_0x59b3f5,_0x83c881),_0x83c881[_0xfcb7('0x2d')][_0xfcb7('0x41')](_0x59f4f3),this[_0xfcb7('0x2b')](_0x59b3f5[_0xfcb7('0x2e')],'change:targetRect',(_0x254266,_0x5eb3ef,_0xc61e1b)=>{const _0x5ea4a5=this[_0xfcb7('0x1f')](_0x59b3f5,_0xc61e1b);_0x83c881[_0xfcb7('0x10')]!=_0x5ea4a5&&(_0x83c881[_0xfcb7('0x10')]=_0x5ea4a5,this[_0xfcb7('0x2c')](_0x83c881,_0x5ea4a5));}),this[_0xfcb7('0x2b')](_0x83c881,_0xfcb7('0x0'),()=>{this[_0xfcb7('0x20')](_0x83c881,'top');}),this[_0xfcb7('0x2b')](_0x83c881,_0xfcb7('0x27'),()=>{this[_0xfcb7('0x20')](_0x83c881,_0xfcb7('0x36'));}),this[_0xfcb7('0x29')](_0x83c881);const _0x307b39=this[_0xfcb7('0x7')](_0x83c881);if(_0x307b39)this[_0xfcb7('0x33')](_0x307b39,_0x83c881)||this['_alignToTargetRect'](_0x83c881);else this[_0xfcb7('0x29')](_0x83c881);return this[_0xfcb7('0x37')](),this['view'][_0xfcb7('0x1e')][_0xfcb7('0x41')](_0x83c881),_0x83c881;}[_0xfcb7('0x3a')](_0x3c17c5){if(!_0x3c17c5[_0xfcb7('0x2d')]['length'])return;const _0x162011=this[_0xfcb7('0x7')](_0x3c17c5);if(!_0x162011)return;const _0x148d37=this[_0xfcb7('0x39')][_0xfcb7('0xa')](_0x162011),_0x413eb2=this[_0xfcb7('0x14')];_0x413eb2&&_0x413eb2===_0x148d37?this['_alignAfterItem'](_0x162011,_0x3c17c5):this[_0xfcb7('0x18')](_0x3c17c5,_0x162011);}['_alignForBottomChange'](_0x5614b8){if(!_0x5614b8[_0xfcb7('0x2d')][_0xfcb7('0x4')])return;const _0x2b8549=this[_0xfcb7('0x25')](_0x5614b8);if(!_0x2b8549)return;const _0x1742a4=this[_0xfcb7('0x39')][_0xfcb7('0xa')](_0x2b8549),_0x31118e=this[_0xfcb7('0x24')][_0xfcb7('0x3e')][_0xfcb7('0xa')](_0xfcb7('0x21')),_0x4d31ea=this[_0xfcb7('0x14')];_0x4d31ea&&_0x4d31ea===_0x1742a4&&_0x31118e?(this[_0xfcb7('0x18')](_0x2b8549,_0x5614b8),this[_0xfcb7('0x33')](_0x5614b8,_0x2b8549)):_0x4d31ea&&_0x4d31ea===_0x1742a4?this[_0xfcb7('0x18')](_0x2b8549,_0x5614b8):this[_0xfcb7('0x33')](_0x5614b8,_0x2b8549);}[_0xfcb7('0x20')](_0x496c3d,_0x1c59c8){0x0===this['_recalculateBuffer'][_0xfcb7('0x4')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5017ea,changedProp:_0x12c9e3}of this['_recalculateBuffer'])_0xfcb7('0x6')===_0x12c9e3?this[_0xfcb7('0x3a')](_0x5017ea):this[_0xfcb7('0x46')](_0x5017ea);this[_0xfcb7('0x22')]=[];},0xa),this[_0xfcb7('0x22')][_0xfcb7('0x3f')]({'sidebarItemView':_0x496c3d,'changedProp':_0x1c59c8});}[_0xfcb7('0x40')](_0x3513fc){return this['_annotationToSidebarItemView'][_0xfcb7('0xa')](_0x3513fc);}[_0xfcb7('0x48')](){this[_0xfcb7('0x2e')]['destroy']();}[_0xfcb7('0x19')](_0x2109ed){const _0x226415=this['getSidebarItemView'](_0x2109ed);this[_0xfcb7('0x2f')](_0x226415),this['stopListening'](_0x2109ed['view']),_0x226415['destroy'](),this[_0xfcb7('0x16')][_0xfcb7('0x1a')](_0x2109ed),this[_0xfcb7('0x39')]['delete'](_0x226415);}[_0xfcb7('0xc')](){const _0x1f6cea=new _0x224b0d(this[_0xfcb7('0x24')][_0xfcb7('0x32')]);return _0x1f6cea[_0xfcb7('0x23')](),this['on']('change:_lastItem',(_0x1a3105,_0x4b81a4,_0x387fd8,_0x57a4b4)=>{_0x57a4b4&&_0x1f6cea[_0xfcb7('0x3')](_0xfcb7('0x8')),_0x387fd8?_0x1f6cea['bind'](_0xfcb7('0x8'))['to'](_0x387fd8,_0xfcb7('0x36')):_0x1f6cea[_0xfcb7('0x8')]=null;}),_0x1f6cea;}[_0xfcb7('0x37')](){this['_lastItem']=this['getSidebarItemView'](this['_annotations'][_0xfcb7('0xe')]);}[_0xfcb7('0x7')](_0x5cf43c){const _0x333e89=this['_sidebarItemViewToAnnotation'][_0xfcb7('0xa')](_0x5cf43c),_0x18ecd1=this[_0xfcb7('0x3b')]['get'](this[_0xfcb7('0x3b')][_0xfcb7('0x31')](_0x333e89)-0x1);return _0x18ecd1&&this[_0xfcb7('0x40')](_0x18ecd1);}[_0xfcb7('0x25')](_0x5f4f1b){const _0x157f8d=this['_sidebarItemViewToAnnotation']['get'](_0x5f4f1b),_0x33b07a=this[_0xfcb7('0x3b')]['get'](this[_0xfcb7('0x3b')][_0xfcb7('0x31')](_0x157f8d)+0x1);return _0x33b07a&&this[_0xfcb7('0x40')](_0x33b07a);}[_0xfcb7('0x18')](_0x4d5897,_0x2c3bf6){_0x4d5897[_0xfcb7('0x12')]();const _0x2553bf=F(_0x2c3bf6[_0xfcb7('0x36')]+this[_0xfcb7('0x17')],_0x4d5897[_0xfcb7('0x6')]);return!!_0x2553bf&&(this['_setItemTop'](_0x2c3bf6,_0x2c3bf6[_0xfcb7('0x6')]-_0x2553bf),!0x0);}['_alignAfterItem'](_0x59f79e,_0x432067){_0x59f79e[_0xfcb7('0x12')]();const _0x40cced=F(_0x59f79e[_0xfcb7('0x36')]+this[_0xfcb7('0x17')],_0x432067[_0xfcb7('0x6')]);return!!_0x40cced&&(this[_0xfcb7('0x2c')](_0x432067,_0x432067['top']+_0x40cced,!0x1),!0x0);}[_0xfcb7('0x29')](_0x265f2c){const _0x41c5dd=this[_0xfcb7('0x39')]['get'](_0x265f2c);if(!_0x41c5dd||!_0x41c5dd[_0xfcb7('0x47')])return;const _0x1e7711=this[_0xfcb7('0x1f')](_0x41c5dd,_0x41c5dd[_0xfcb7('0x30')]);this[_0xfcb7('0x2c')](_0x265f2c,_0x1e7711);}[_0xfcb7('0x1f')](_0x5c0b13,_0x232204){if(null===_0x232204)return 0x0;if(_0x5c0b13[_0xfcb7('0x47')]instanceof _0x314f8d)return _0x232204[_0xfcb7('0x6')];{const _0x450590=new _0x314f8d(this[_0xfcb7('0x2e')]['element'])[_0xfcb7('0x6')];return _0x232204[_0xfcb7('0x6')]-_0x450590;}}[_0xfcb7('0x2c')](_0x41890a,_0x5c81f1,_0x34181d=this['context'][_0xfcb7('0x3e')]['get'](_0xfcb7('0x21'))){_0x34181d&&(_0x5c81f1=Math[_0xfcb7('0x1c')](_0x5c81f1,this[_0xfcb7('0x45')](_0x41890a))),_0x41890a[_0xfcb7('0x6')]=_0x5c81f1;}[_0xfcb7('0x45')](_0xfdd6da){let _0xc03256=this['_getItemBefore'](_0xfdd6da),_0x1b6ac=0x0;for(;_0xc03256;)_0xc03256[_0xfcb7('0x12')](),_0x1b6ac+=this[_0xfcb7('0x17')]+_0xc03256['height'],_0xc03256=this[_0xfcb7('0x7')](_0xc03256);return _0x1b6ac;}}function F(_0x3b9a04,_0x1040e4){return Math['max'](_0x3b9a04-_0x1040e4,0x0);}function p(_0x2559e0){return null!==_0x2559e0&&_0xfcb7('0x26')==typeof _0x2559e0&&0x1===_0x2559e0[_0xfcb7('0x38')];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x4ad0=['counterView','_badge','extendTemplate','set','isDirty','add','children','bind','span','ck-annotation-counter__badge','number','icon','ck-annotation-counter','...','ck-annotation-counter__badge--edit-mode'];(function(_0x439ffb,_0x4ad08a){const _0x130f03=function(_0x15b5b7){while(--_0x15b5b7){_0x439ffb['push'](_0x439ffb['shift']());}};_0x130f03(++_0x4ad08a);}(_0x4ad0,0x180));const _0x130f=function(_0x439ffb,_0x4ad08a){_0x439ffb=_0x439ffb-0x0;let _0x130f03=_0x4ad0[_0x439ffb];return _0x130f03;};import{ButtonView as _0x248161,View as _0x4a1247}from'ckeditor5/src/ui';import _0x3c1ffe from'../../../theme/icons/add-comment.svg';export default class B extends _0x248161{constructor(_0x1abe2a){super(_0x1abe2a);const _0x10dc15=this['bindTemplate'];this[_0x130f('0x9')]('isDirty',!0x1),this[_0x130f('0x9')](_0x130f('0x1'),0x0),this[_0x130f('0xd')](_0x130f('0x7'))['to'](this,_0x130f('0xa'),this,_0x130f('0x1'),(_0x2c62e8,_0x38089d)=>_0x2c62e8?_0x130f('0x4'):_0x38089d),this[_0x130f('0x9')]('annotationType',''),this[_0x130f('0x2')]=_0x3c1ffe,this[_0x130f('0x8')]({'attributes':{'class':[_0x130f('0x3')]}}),this[_0x130f('0x6')]=new _0x4a1247(),this['counterView']['setTemplate']({'tag':_0x130f('0xe'),'attributes':{'class':[_0x130f('0x0'),_0x10dc15['to']('annotationType',_0x3ced65=>'ck-annotation-counter__badge--'+_0x3ced65),_0x10dc15['if'](_0x130f('0xa'),_0x130f('0x5'))]},'children':[{'text':_0x10dc15['to'](_0x130f('0x7'))}]}),this[_0x130f('0xc')][_0x130f('0xb')](this[_0x130f('0x6')]);}}
23
+ const _0x1cb8=['annotationType','number','span','bind','isDirty','_badge','bindTemplate','children','set','...','ck-annotation-counter__badge--','counterView','ck-annotation-counter__badge'];(function(_0x1de759,_0x1cb811){const _0x4302dc=function(_0x405e33){while(--_0x405e33){_0x1de759['push'](_0x1de759['shift']());}};_0x4302dc(++_0x1cb811);}(_0x1cb8,0xe1));const _0x4302=function(_0x1de759,_0x1cb811){_0x1de759=_0x1de759-0x0;let _0x4302dc=_0x1cb8[_0x1de759];return _0x4302dc;};import{ButtonView as _0x484eef,View as _0x19cd86}from'ckeditor5/src/ui';import _0x18981a from'../../../theme/icons/add-comment.svg';export default class z extends _0x484eef{constructor(_0x4a354e){super(_0x4a354e);const _0x4de59d=this[_0x4302('0x2')];this[_0x4302('0x4')](_0x4302('0x0'),!0x1),this[_0x4302('0x4')]('number',0x0),this[_0x4302('0xc')](_0x4302('0x1'))['to'](this,_0x4302('0x0'),this,_0x4302('0xa'),(_0x49abe4,_0x45368f)=>_0x49abe4?_0x4302('0x5'):_0x45368f),this[_0x4302('0x4')](_0x4302('0x9'),''),this['icon']=_0x18981a,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4302('0x7')]=new _0x19cd86(),this[_0x4302('0x7')]['setTemplate']({'tag':_0x4302('0xb'),'attributes':{'class':[_0x4302('0x8'),_0x4de59d['to'](_0x4302('0x9'),_0x518363=>_0x4302('0x6')+_0x518363),_0x4de59d['if'](_0x4302('0x0'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4de59d['to'](_0x4302('0x1'))}]}),this[_0x4302('0x3')]['add'](this[_0x4302('0x7')]);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x56e9=['length','focusTracker','bindTemplate','content','isActive','_mutationObserver','createCollection','setTemplate','div','type','render','add','clientHeight','height','ck-annotation-wrapper--active','clear','Esc','fire','focus','detach','keystrokes','_updateHeight','listenTo','element','isDirty','destroy','mainView','ck-annotation-wrapper','set','attach'];(function(_0xc09b33,_0x56e9f5){const _0x1d8131=function(_0x16088){while(--_0x16088){_0xc09b33['push'](_0xc09b33['shift']());}};_0x1d8131(++_0x56e9f5);}(_0x56e9,0x96));const _0x1d81=function(_0xc09b33,_0x56e9f5){_0xc09b33=_0xc09b33-0x0;let _0x1d8131=_0x56e9[_0xc09b33];return _0x1d8131;};import{View as _0x2457fd}from'ckeditor5/src/ui';import{FocusTracker as _0x4b3985,KeystrokeHandler as _0x1b80cb,uid as _0x1a9cd3}from'ckeditor5/src/utils';import _0x4490af from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x2457fd{constructor(_0x4889a2,_0x592a0a){super(_0x4889a2),this['id']=_0x1a9cd3(),this[_0x1d81('0x1')]=new _0x4b3985(),this[_0x1d81('0x14')]=new _0x1b80cb(),this[_0x1d81('0x14')]['set'](_0x1d81('0x10'),(_0xbf2ece,_0x2242b9)=>this[_0x1d81('0x11')](_0x1d81('0x10'),_0x2242b9)),this[_0x1d81('0x1c')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1d81('0x1c')](_0x1d81('0xd'),0x0),this[_0x1d81('0x1c')](_0x1d81('0x4'),!0x1),this[_0x1d81('0x1c')](_0x1d81('0x18'),!0x1),this[_0x1d81('0x1c')](_0x1d81('0x0'),0x0),this[_0x1d81('0x1c')](_0x1d81('0x9'),''),this[_0x1d81('0x5')]=_0x4490af(()=>this['_updateHeight']()),this['content']=this[_0x1d81('0x6')](),this[_0x1d81('0x3')][_0x1d81('0xb')](_0x592a0a),this[_0x1d81('0x1a')]=_0x592a0a;const _0x1d75bc=this[_0x1d81('0x2')];this[_0x1d81('0x7')]({'tag':_0x1d81('0x8'),'attributes':{'class':['ck',_0x1d81('0x1b'),'ck-rounded-corners',_0x1d75bc['if'](_0x1d81('0x4'),_0x1d81('0xe'))],'tabindex':-0x1},'children':this[_0x1d81('0x3')]});}[_0x1d81('0xa')](){super[_0x1d81('0xa')](),this['focusTracker']['add'](this[_0x1d81('0x17')]),this[_0x1d81('0x14')][_0x1d81('0x16')](this[_0x1d81('0x17')]),this['_mutationObserver'][_0x1d81('0x1d')](this[_0x1d81('0x17')]);}[_0x1d81('0x19')](){this[_0x1d81('0x3')][_0x1d81('0xf')](),this[_0x1d81('0x14')][_0x1d81('0x19')](),this[_0x1d81('0x1')]['destroy'](),this['_mutationObserver'][_0x1d81('0x13')](),super[_0x1d81('0x19')]();}[_0x1d81('0x12')](){this['element']['focus']();}[_0x1d81('0x15')](){const _0x2aa3b7=this[_0x1d81('0x17')][_0x1d81('0xc')];_0x2aa3b7&&(this[_0x1d81('0xd')]=_0x2aa3b7);}}
23
+ const _0x15ed=['focus','div','_mutationObserver','focusTracker','isActive','fire','ck-rounded-corners','set','listenTo','height','ck-annotation-wrapper','mainView','setTemplate','type','bindTemplate','add','attach','content','clientHeight','keystrokes','_updateHeight','isDirty','element','targetRect','clear','destroy'];(function(_0x18703b,_0x15ed30){const _0x39c455=function(_0x2d2036){while(--_0x2d2036){_0x18703b['push'](_0x18703b['shift']());}};_0x39c455(++_0x15ed30);}(_0x15ed,0xca));const _0x39c4=function(_0x18703b,_0x15ed30){_0x18703b=_0x18703b-0x0;let _0x39c455=_0x15ed[_0x18703b];return _0x39c455;};import{View as _0x130931}from'ckeditor5/src/ui';import{FocusTracker as _0x64337e,KeystrokeHandler as _0x30cfd2,uid as _0x18a62e}from'ckeditor5/src/utils';import _0x500ee8 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x130931{constructor(_0x34d851,_0x43a980){super(_0x34d851),this['id']=_0x18a62e(),this['focusTracker']=new _0x64337e(),this['keystrokes']=new _0x30cfd2(),this[_0x39c4('0x19')]['set']('Esc',(_0x77c141,_0x3a8885)=>this[_0x39c4('0xb')]('Esc',_0x3a8885)),this[_0x39c4('0xd')](_0x39c4('0x3'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x39c4('0xd')](_0x39c4('0xf'),0x0),this[_0x39c4('0xd')]('isActive',!0x1),this[_0x39c4('0xd')](_0x39c4('0x1'),!0x1),this['set']('length',0x0),this[_0x39c4('0xd')](_0x39c4('0x13'),''),this[_0x39c4('0x8')]=_0x500ee8(()=>this[_0x39c4('0x0')]()),this[_0x39c4('0x17')]=this['createCollection'](),this[_0x39c4('0x17')][_0x39c4('0x15')](_0x43a980),this[_0x39c4('0x11')]=_0x43a980;const _0x3d1e42=this[_0x39c4('0x14')];this[_0x39c4('0x12')]({'tag':_0x39c4('0x7'),'attributes':{'class':['ck',_0x39c4('0x10'),_0x39c4('0xc'),_0x3d1e42['if'](_0x39c4('0xa'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this['focusTracker'][_0x39c4('0x15')](this[_0x39c4('0x2')]),this[_0x39c4('0x19')][_0x39c4('0xe')](this[_0x39c4('0x2')]),this[_0x39c4('0x8')][_0x39c4('0x16')](this['element']);}[_0x39c4('0x5')](){this[_0x39c4('0x17')][_0x39c4('0x4')](),this[_0x39c4('0x19')][_0x39c4('0x5')](),this[_0x39c4('0x9')][_0x39c4('0x5')](),this[_0x39c4('0x8')]['detach'](),super[_0x39c4('0x5')]();}[_0x39c4('0x6')](){this[_0x39c4('0x2')][_0x39c4('0x6')]();}[_0x39c4('0x0')](){const _0x36a221=this[_0x39c4('0x2')][_0x39c4('0x18')];_0x36a221&&(this[_0x39c4('0xf')]=_0x36a221);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x26e1=['bindTemplate','_mutationObserver','createCollection','height','set','top','element','destroy','ck-sidebar-item','content','detach','ck-sidebar-item--no-animation','updateHeight','clientHeight','setTemplate','_targetTop','attach','render','bottom','bind','isAnimationDisabled'];(function(_0x2cc69b,_0x26e168){const _0x921098=function(_0x42d84f){while(--_0x42d84f){_0x2cc69b['push'](_0x2cc69b['shift']());}};_0x921098(++_0x26e168);}(_0x26e1,0x120));const _0x9210=function(_0x2cc69b,_0x26e168){_0x2cc69b=_0x2cc69b-0x0;let _0x921098=_0x26e1[_0x2cc69b];return _0x921098;};import{View as _0xb5f0e3}from'ckeditor5/src/ui';import{toUnit as _0x15b978}from'ckeditor5/src/utils';import _0x302b5b from'../../utils/createmutationobserver';const gt=_0x15b978('px');export default class O extends _0xb5f0e3{constructor(_0x56e1fb){super(_0x56e1fb),this[_0x9210('0xa')]('top'),this[_0x9210('0xa')](_0x9210('0x9'),0x0),this[_0x9210('0x4')](_0x9210('0x3'))['to'](this,_0x9210('0xb'),this,_0x9210('0x9'),(_0x403d19,_0x2b1479)=>(_0x403d19||0x0)+_0x2b1479),this['set'](_0x9210('0x5'),!0x1),this[_0x9210('0x7')]=_0x302b5b(()=>this[_0x9210('0x12')]()),this[_0x9210('0x0')]=null,this[_0x9210('0xf')]=this[_0x9210('0x8')]();const _0x3b952f=this[_0x9210('0x6')];this[_0x9210('0x14')]({'tag':'div','attributes':{'class':[_0x9210('0xe'),_0x3b952f['to'](_0x9210('0x5'),_0x4e4319=>_0x4e4319?_0x9210('0x11'):'')],'style':{'top':_0x3b952f['to']('top',gt)}},'children':this[_0x9210('0xf')]});}[_0x9210('0x2')](){super[_0x9210('0x2')](),this[_0x9210('0x7')][_0x9210('0x1')](this[_0x9210('0xc')]);}[_0x9210('0x12')](){const _0x898c33=this[_0x9210('0xc')][_0x9210('0x13')];_0x898c33&&(this['height']=_0x898c33);}[_0x9210('0xd')](){this[_0x9210('0xf')]['clear'](),this[_0x9210('0x7')][_0x9210('0x10')](),super[_0x9210('0xd')]();}}
23
+ const _0x5af2=['top','ck-sidebar-item','attach','setTemplate','_targetTop','createCollection','height','bindTemplate','_mutationObserver','content','bottom','isAnimationDisabled','element','clientHeight','render','destroy','set'];(function(_0x39c9e3,_0x5af216){const _0x103a7d=function(_0x14684e){while(--_0x14684e){_0x39c9e3['push'](_0x39c9e3['shift']());}};_0x103a7d(++_0x5af216);}(_0x5af2,0x156));const _0x103a=function(_0x39c9e3,_0x5af216){_0x39c9e3=_0x39c9e3-0x0;let _0x103a7d=_0x5af2[_0x39c9e3];return _0x103a7d;};import{View as _0x15f06b}from'ckeditor5/src/ui';import{toUnit as _0x20ce9e}from'ckeditor5/src/utils';import _0x52f7bb from'../../utils/createmutationobserver';const kt=_0x20ce9e('px');export default class C extends _0x15f06b{constructor(_0x291a64){super(_0x291a64),this['set'](_0x103a('0xf')),this[_0x103a('0xe')](_0x103a('0x4'),0x0),this['bind'](_0x103a('0x8'))['to'](this,'top',this,'height',(_0xc798b8,_0x414746)=>(_0xc798b8||0x0)+_0x414746),this['set'](_0x103a('0x9'),!0x1),this['_mutationObserver']=_0x52f7bb(()=>this['updateHeight']()),this[_0x103a('0x2')]=null,this[_0x103a('0x7')]=this[_0x103a('0x3')]();const _0x3f33e8=this[_0x103a('0x5')];this[_0x103a('0x1')]({'tag':'div','attributes':{'class':[_0x103a('0x10'),_0x3f33e8['to'](_0x103a('0x9'),_0x2e07a7=>_0x2e07a7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3f33e8['to'](_0x103a('0xf'),kt)}},'children':this[_0x103a('0x7')]});}[_0x103a('0xc')](){super[_0x103a('0xc')](),this[_0x103a('0x6')][_0x103a('0x0')](this['element']);}['updateHeight'](){const _0x4819ff=this[_0x103a('0xa')][_0x103a('0xb')];_0x4819ff&&(this[_0x103a('0x4')]=_0x4819ff);}[_0x103a('0xd')](){this['content']['clear'](),this[_0x103a('0x6')]['detach'](),super[_0x103a('0xd')]();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x3060=['div','setTemplate','class','minHeight','set','list','bindTemplate','createCollection','ck-reset'];(function(_0x1488a0,_0x3060d8){const _0x29c420=function(_0x2bc9cf){while(--_0x2bc9cf){_0x1488a0['push'](_0x1488a0['shift']());}};_0x29c420(++_0x3060d8);}(_0x3060,0xba));const _0x29c4=function(_0x1488a0,_0x3060d8){_0x1488a0=_0x1488a0-0x0;let _0x29c420=_0x3060[_0x1488a0];return _0x29c420;};import{View as _0x3ce763}from'ckeditor5/src/ui';import{toUnit as _0x1a4dbb}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x1a4dbb('px');export default class T extends _0x3ce763{constructor(_0x47b4c3){super(_0x47b4c3);const _0x5cc8aa=this[_0x29c4('0x0')];this[_0x29c4('0x7')](_0x29c4('0x6'),0x0),this[_0x29c4('0x7')](_0x29c4('0x5'),''),this[_0x29c4('0x8')]=this[_0x29c4('0x1')](),this[_0x29c4('0x4')]({'tag':_0x29c4('0x3'),'attributes':{'class':['ck','ck-sidebar',_0x29c4('0x2'),_0x5cc8aa['to'](_0x29c4('0x5'))],'style':{'minHeight':_0x5cc8aa['to'](_0x29c4('0x6'),_0x1aa9e0=>_0x1aa9e0?gt(_0x1aa9e0+0xa):null)}},'children':this[_0x29c4('0x8')]});}}
23
+ const _0x248a=['ck-reset','minHeight','div','list','set','setTemplate','class'];(function(_0x8046c3,_0x248a2d){const _0x4d4f59=function(_0x14da54){while(--_0x14da54){_0x8046c3['push'](_0x8046c3['shift']());}};_0x4d4f59(++_0x248a2d);}(_0x248a,0x85));const _0x4d4f=function(_0x8046c3,_0x248a2d){_0x8046c3=_0x8046c3-0x0;let _0x4d4f59=_0x248a[_0x8046c3];return _0x4d4f59;};import{View as _0x49fd4a}from'ckeditor5/src/ui';import{toUnit as _0x1b4420}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x1b4420('px');export default class T extends _0x49fd4a{constructor(_0x408e0b){super(_0x408e0b);const _0x510f4d=this['bindTemplate'];this['set'](_0x4d4f('0x1'),0x0),this[_0x4d4f('0x4')]('class',''),this[_0x4d4f('0x3')]=this['createCollection'](),this[_0x4d4f('0x5')]({'tag':_0x4d4f('0x2'),'attributes':{'class':['ck','ck-sidebar',_0x4d4f('0x0'),_0x510f4d['to'](_0x4d4f('0x6'))],'style':{'minHeight':_0x510f4d['to'](_0x4d4f('0x1'),_0x292792=>_0x292792?kt(_0x292792+0xa):null)}},'children':this['list']});}}