@ckeditor/ckeditor5-comments 35.4.0 → 36.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x5842=['remove','deactivateAll','has','_visibleAnnotations','refreshVisibility','collection','destroy','pluginName','source','getByInnerView','_bindAnnotationsToVisibleAnnotations','delete','stopListening','set','fire','_addActiveAnnotation','activeAnnotations','refreshPositioning','change:isVisible','isVisible','createAnnotationView','_deactivateAllAnnotations','listenTo','add'];(function(_0x5ae431,_0x58422c){const _0x21efb3=function(_0x8073c6){while(--_0x8073c6){_0x5ae431['push'](_0x5ae431['shift']());}};_0x21efb3(++_0x58422c);}(_0x5842,0x1e2));const _0x21ef=function(_0x5ae431,_0x58422c){_0x5ae431=_0x5ae431-0x0;let _0x21efb3=_0x5842[_0x5ae431];return _0x21efb3;};import{ContextPlugin as _0x36be73}from'ckeditor5/src/core';import _0x3698b7 from'./annotation';import _0x34080d from'./annotationcollection';import _0x1ddde2 from'./view/annotationview';export default class V extends _0x36be73{static get[_0x21ef('0x5')](){return'Annotations';}constructor(_0x183dd9){super(_0x183dd9),this[_0x21ef('0x3')]=new _0x34080d(),this[_0x21ef('0x1')]=new _0x34080d(),this[_0x21ef('0xb')](_0x21ef('0xe'),new Set()),this[_0x21ef('0x8')]();}['add'](_0x51af85){this[_0x21ef('0x3')][_0x21ef('0x15')](_0x51af85);}['remove'](_0xb13804){this['collection'][_0x21ef('0x16')](_0xb13804),_0xb13804[_0x21ef('0x4')]();}[_0x21ef('0x2')](){for(const _0x2d834e of this[_0x21ef('0x3')])_0x2d834e['refreshVisibility']();}['refreshPositioning'](){this[_0x21ef('0x1')][_0x21ef('0xf')]();}[_0x21ef('0x7')](_0x1abc05){return this[_0x21ef('0x3')]['getByInnerView'](_0x1abc05);}[_0x21ef('0x17')](){this[_0x21ef('0xc')](_0x21ef('0x13'));}['destroy'](){for(const _0x2e6665 of this[_0x21ef('0x3')])_0x2e6665[_0x21ef('0x4')]();this['_visibleAnnotations']['destroy'](),this[_0x21ef('0x3')][_0x21ef('0x4')](),super[_0x21ef('0x4')]();}['activate'](_0x16d6dd){this[_0x21ef('0xc')]('_activateAnnotation',_0x16d6dd);}['createAnnotation'](_0x52402b){return new _0x3698b7(_0x52402b);}[_0x21ef('0x12')](_0x3e3ce4,_0x1f836a){return new _0x1ddde2(_0x3e3ce4,_0x1f836a);}[_0x21ef('0xd')](_0x54fef6){const _0x34b877=new Set(this[_0x21ef('0xe')]);_0x34b877[_0x21ef('0x15')](_0x54fef6),this['activeAnnotations']=_0x34b877;}['_removeActiveAnnotation'](_0x280d14){const _0x290853=new Set(this['activeAnnotations']);_0x290853[_0x21ef('0x9')](_0x280d14),this[_0x21ef('0xe')]=_0x290853;}[_0x21ef('0x8')](){const _0x3cfd2f=this[_0x21ef('0x3')],_0xd333b4=this[_0x21ef('0x1')];function _0x31c03f(_0x15af72){const _0x1bb0c9=_0x15af72[_0x21ef('0x6')];_0x1bb0c9[_0x21ef('0x11')]&&!_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)?_0xd333b4['add'](_0x1bb0c9):!_0x1bb0c9['isVisible']&&_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)&&_0xd333b4['remove'](_0x1bb0c9);}this['listenTo'](_0x3cfd2f,_0x21ef('0x15'),(_0xcaed09,_0x18b82c)=>{_0x18b82c['isVisible']&&_0xd333b4[_0x21ef('0x15')](_0x18b82c),this[_0x21ef('0x14')](_0x18b82c,_0x21ef('0x10'),_0x31c03f);}),this[_0x21ef('0x14')](_0x3cfd2f,_0x21ef('0x16'),(_0x18018a,_0x224be8)=>{_0xd333b4[_0x21ef('0x0')](_0x224be8)&&_0xd333b4[_0x21ef('0x16')](_0x224be8),this[_0x21ef('0xa')](_0x224be8,_0x21ef('0x10'),_0x31c03f);});}}
@@ -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 _0x3dc1=['deactivateAll','detach','context','has','plugins','hasActive','annotationsuis-register-already-registered','activeUIs','stopListening','pluginName','init','remove','_removeActiveAnnotation','function','find','delete','_activateAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','from','length','activate','switchTo','annotationsuis-activate-missing-ui','collection','_deactivateAllAnnotations','_uisData','isActive','deactivate','listenTo','set','requires','push','filter','_uis','setActiveAnnotation','_addActiveAnnotation','add','_visibleAnnotations','register','destroy','_setSelectedAnnotations','attach','get','change:activeAnnotation'];(function(_0x468b57,_0x3dc14f){const _0x3279e2=function(_0xefba30){while(--_0xefba30){_0x468b57['push'](_0x468b57['shift']());}};_0x3279e2(++_0x3dc14f);}(_0x3dc1,0x18c));const _0x3279=function(_0x468b57,_0x3dc14f){_0x468b57=_0x468b57-0x0;let _0x3279e2=_0x3dc1[_0x468b57];return _0x3279e2;};import{ContextPlugin as _0x1f9a68}from'ckeditor5/src/core';import{CKEditorError as _0x562f3a}from'ckeditor5/src/utils';import _0x4b240f,{bindAnnotationCollections as _0x1da3cd}from'./annotationcollection';import _0x4eaeb2 from'./annotations';export default class I extends _0x1f9a68{static get[_0x3279('0x1e')](){return[_0x4eaeb2];}static get[_0x3279('0x9')](){return'AnnotationsUIs';}constructor(_0xd0e870){super(_0xd0e870),this[_0x3279('0x7')]=new Set(),this[_0x3279('0x21')]=new Map(),this[_0x3279('0x19')]=new Map();}[_0x3279('0xa')](){const _0x45cc69=this[_0x3279('0x2')]['plugins'][_0x3279('0x2a')](_0x4eaeb2);this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x10'),(_0x120e8d,_0x481394)=>{for(const _0x2c4d05 of this[_0x3279('0x7')]){const _0x1d8cf1=this['_uis'][_0x3279('0x2a')](_0x2c4d05);(0x0,this['_uisData'][_0x3279('0x2a')](_0x2c4d05)[_0x3279('0x20')])(_0x481394)&&_0x1d8cf1[_0x3279('0x22')](_0x481394);}}),this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x18'),()=>{for(const _0x2b2495 of this[_0x3279('0x7')]){this[_0x3279('0x21')][_0x3279('0x2a')](_0x2b2495)[_0x3279('0x22')](null);}}),this[_0x3279('0x1c')](_0x45cc69['_visibleAnnotations'],_0x3279('0x24'),(_0x445d05,_0x2f1717)=>{this[_0x3279('0x11')](_0x2f1717);});}[_0x3279('0x5')](){return this[_0x3279('0x7')]['size']>0x0;}[_0x3279('0x1a')](_0x3894fb){return this['activeUIs'][_0x3279('0x3')](_0x3894fb);}[_0x3279('0x14')](_0x3e4dbb,_0x3aa44f=()=>!0x0){const _0x1b577a=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2);if(!this['_uis'][_0x3279('0x3')](_0x3e4dbb))throw new _0x562f3a(_0x3279('0x16'),this,{'uiName':_0x3e4dbb});this[_0x3279('0x1a')](_0x3e4dbb)&&this['deactivate'](_0x3e4dbb),this[_0x3279('0x7')][_0x3279('0x24')](_0x3e4dbb);const _0x549d1e=new _0x4b240f(),_0x3edf12=_0x1b577a[_0x3279('0x25')];_0x1da3cd({'source':_0x3edf12,'target':_0x549d1e,'filter':_0x3aa44f}),this[_0x3279('0x19')]['set'](_0x3e4dbb,{'collection':_0x549d1e,'filter':_0x3aa44f});const _0x5ae9c2=this['_uis'][_0x3279('0x2a')](_0x3e4dbb);_0x5ae9c2[_0x3279('0x29')](_0x549d1e),this[_0x3279('0x1c')](_0x5ae9c2,_0x3279('0x2b'),(_0x445ebe,_0x4111be,_0x42d8fa,_0x1a1e01)=>{_0x1a1e01&&_0x1b577a[_0x3279('0xc')](_0x1a1e01),_0x42d8fa&&_0x1b577a[_0x3279('0x23')](_0x42d8fa);});}[_0x3279('0x1b')](_0x1c87cd){this[_0x3279('0x7')][_0x3279('0xf')](_0x1c87cd);const _0x42df47=this[_0x3279('0x21')][_0x3279('0x2a')](_0x1c87cd);_0x42df47[_0x3279('0x1')](),this[_0x3279('0x8')](_0x42df47),this[_0x3279('0x19')][_0x3279('0x2a')](_0x1c87cd)[_0x3279('0x17')][_0x3279('0x27')](),this[_0x3279('0x19')][_0x3279('0xf')](_0x1c87cd);}[_0x3279('0x15')](_0x22bec5){const _0x3a5cab=this['context'][_0x3279('0x4')][_0x3279('0x2a')](_0x4eaeb2),_0x3318b1=Array[_0x3279('0x12')](_0x3a5cab['activeAnnotations'])[0x0]||null;this[_0x3279('0x0')](),this[_0x3279('0x14')](_0x22bec5);const _0x30f5e2=this[_0x3279('0x21')]['get'](_0x22bec5);_0x30f5e2[_0x3279('0x22')](_0x3318b1),_0x30f5e2[_0x3279('0x28')]&&_0x3318b1&&_0x30f5e2[_0x3279('0x28')]([_0x3318b1]);}[_0x3279('0x0')](){for(const _0x4b6e2e of this[_0x3279('0x7')])this[_0x3279('0x1b')](_0x4b6e2e);}[_0x3279('0x26')](_0x1e8d1b,_0x3156c5){if(this[_0x3279('0x21')][_0x3279('0x3')](_0x1e8d1b))throw new _0x562f3a(_0x3279('0x6'));if(_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x29')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x1')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x22')])throw new _0x562f3a('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1e8d1b,_0x3156c5);}['refilterAnnotations'](){const _0x376d6f=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2)[_0x3279('0x17')],_0x457ad1=new Map(),_0x1e9345=Array[_0x3279('0x12')](this[_0x3279('0x7')]);for(const _0x1b249f of this[_0x3279('0x7')]){const _0xb4e296=this[_0x3279('0x19')]['get'](_0x1b249f)[_0x3279('0x17')];for(const _0x6c1b10 of _0xb4e296)_0x457ad1[_0x3279('0x1d')](_0x6c1b10,_0x1b249f);}for(const _0x23aea4 of _0x376d6f){const _0x54ac7a=_0x457ad1[_0x3279('0x2a')](_0x23aea4);this[_0x3279('0x11')](_0x23aea4);const _0x26faf4=_0x1e9345[_0x3279('0xe')](_0x5dd1f8=>this[_0x3279('0x19')][_0x3279('0x2a')](_0x5dd1f8)[_0x3279('0x20')](_0x23aea4));_0x54ac7a!==_0x26faf4&&(_0x54ac7a&&this['_uisData'][_0x3279('0x2a')](_0x54ac7a)[_0x3279('0x17')][_0x3279('0xb')](_0x23aea4),_0x26faf4&&this[_0x3279('0x19')]['get'](_0x26faf4)[_0x3279('0x17')]['add'](_0x23aea4));}}[_0x3279('0x27')](){this[_0x3279('0x0')](),super[_0x3279('0x27')]();}[_0x3279('0x11')](_0x2921a7){const _0x42d493=[];for(const _0x34224a of this[_0x3279('0x7')]){(0x0,this[_0x3279('0x19')][_0x3279('0x2a')](_0x34224a)[_0x3279('0x20')])(_0x2921a7)&&_0x42d493[_0x3279('0x1f')](_0x34224a);}if(_0x42d493[_0x3279('0x13')]>0x1)throw new _0x562f3a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x42d493,'annotationType':_0x2921a7['type']});}}
@@ -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 _0x11ac=['update','refreshSelectedViews','registerAnnotation','listenTo','_editorAnnotations','refresh','view','editing','selection','add','_dataCollectors','getByInnerView','element','getRanges','editorannotations-invalid-source-callback','innerView','requires','has','getOrderedSelectedAnnotations','function','remove','push','_editorAnnotationsData','fire','isCollapsed','set','editor','range','model','document','get','blur','hasDomSelection','annotation','focusTracker','EditorAnnotations','isReadOnly','collection','delete','from','change:isFocused','pluginName'];(function(_0x5cadf7,_0x11ac2b){const _0x1a532b=function(_0x3d7f06){while(--_0x3d7f06){_0x5cadf7['push'](_0x5cadf7['shift']());}};_0x1a532b(++_0x11ac2b);}(_0x11ac,0x1e9));const _0x1a53=function(_0x5cadf7,_0x11ac2b){_0x5cadf7=_0x5cadf7-0x0;let _0x1a532b=_0x11ac[_0x5cadf7];return _0x1a532b;};import{Plugin as _0x360b8c}from'ckeditor5/src/core';import{CKEditorError as _0x519dd1}from'ckeditor5/src/utils';import{debounce as _0x58cb69}from'lodash-es';import _0x27a99c from'./annotations';export default class k extends _0x360b8c{static get[_0x1a53('0x1f')](){return[_0x27a99c];}static get[_0x1a53('0xe')](){return _0x1a53('0x8');}constructor(_0x51a8b0){super(_0x51a8b0),this[_0x1a53('0x19')]=new Set(),this[_0x1a53('0x13')]=new Set();}['init'](){const _0x2bf161=this[_0x1a53('0x29')],_0x349887=_0x2bf161[_0x1a53('0x1')][_0x1a53('0x2')][_0x1a53('0x17')],_0x588b60=_0x58cb69(()=>this['refreshSelectedViews'](),0xa);_0x349887['on']('change:range',(_0x41e279,_0x5bddde)=>{_0x5bddde['directChange']&&(_0x588b60['cancel'](),this[_0x1a53('0x10')]());}),this[_0x1a53('0x12')](_0x2bf161[_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x2')],_0x1a53('0xd'),(_0x2ec7b7,_0x46544b,_0x3e35c0)=>{_0x3e35c0&&_0x588b60();}),this[_0x1a53('0x12')](_0x2bf161['ui'][_0x1a53('0x7')],_0x1a53('0xd'),(_0x5eb8f0,_0x4b5fcf,_0x37f955)=>{_0x37f955||_0x2bf161[_0x1a53('0x9')]||this[_0x1a53('0x26')](_0x1a53('0x4'),{'isAnnotationTracked':_0x1476b4=>this[_0x1a53('0x25')][_0x1a53('0x20')](_0x1476b4[_0x1a53('0x1e')])});}),this[_0x1a53('0x12')](this[_0x1a53('0x29')]['ui'],_0x1a53('0xf'),()=>this[_0x1a53('0x26')]('uiUpdate'));}[_0x1a53('0x11')](_0x14b7bd){if(this[_0x1a53('0x13')][_0x1a53('0x20')](_0x14b7bd))return;this[_0x1a53('0x13')]['add'](_0x14b7bd['view']),this[_0x1a53('0x29')]['ui']['focusTracker']['add'](_0x14b7bd[_0x1a53('0x15')][_0x1a53('0x1b')]);const _0x46022d=this[_0x1a53('0x29')]['plugins'][_0x1a53('0x3')](_0x27a99c);this['listenTo'](_0x46022d[_0x1a53('0xa')],_0x1a53('0x23'),(_0x4f1c01,_0x139296)=>{this['editor']['ui']['focusTracker'][_0x1a53('0x23')](_0x139296[_0x1a53('0x15')][_0x1a53('0x1b')]),this[_0x1a53('0x13')][_0x1a53('0xb')](_0x139296[_0x1a53('0x15')]);});}[_0x1a53('0x5')](){return this[_0x1a53('0x29')][_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x5')];}['addSourceCollector'](_0x260b9e){if(_0x1a53('0x22')!=typeof _0x260b9e)throw new _0x519dd1(_0x1a53('0x1d'));this[_0x1a53('0x19')][_0x1a53('0x18')](_0x260b9e);}['refreshSelectedViews'](){this[_0x1a53('0x26')](_0x1a53('0x14'));}[_0x1a53('0x21')]({activeAnnotation:_0x53ed40,annotations:_0x507042}){const _0x2b2819=[],_0x178077=this['editor'][_0x1a53('0x1')]['document']['selection'],_0xae70df=Array[_0x1a53('0xc')](_0x178077[_0x1a53('0x1c')]());for(const [_0x10ffc7,_0x21723d]of this[_0x1a53('0x25')]){const _0x4ab986=_0x3c6f73(_0x21723d),_0x5223e7=_0x507042[_0x1a53('0x1a')](_0x10ffc7);_0x4ab986&&_0x5223e7&&_0x2b2819[_0x1a53('0x24')]({'annotation':_0x5223e7,'range':_0x4ab986});}function _0x3c6f73(_0x1016a1){for(const _0x2d36a6 of _0x1016a1)for(const _0x57ec67 of _0xae70df)if(_0x2d36a6['containsRange'](_0x57ec67,!_0x178077[_0x1a53('0x27')]))return _0x2d36a6;return null;}return _0x2b2819['sort']((_0x203315,_0x4530b6)=>{const _0x49416d=_0x203315[_0x1a53('0x0')],_0x444836=_0x4530b6[_0x1a53('0x0')];if(!_0x49416d['isEqual'](_0x444836)){if(_0x49416d['containsRange'](_0x444836,!0x0))return 0x1;if(_0x444836['containsRange'](_0x49416d,!0x0))return-0x1;}return _0x203315['annotation']==_0x53ed40?-0x1:_0x4530b6['annotation']==_0x53ed40?0x1:0x0;})['map'](_0x2010cc=>_0x2010cc[_0x1a53('0x6')]);}get[_0x1a53('0x25')](){const _0x15d1fc=new Map();for(const _0xeb00c5 of Array[_0x1a53('0xc')](this['_dataCollectors']))for(const [_0x2771aa,_0x447ac2]of _0xeb00c5())_0x15d1fc[_0x1a53('0x28')](_0x2771aa,_0x447ac2);return _0x15d1fc;}}
@@ -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 _0x2236=['hasActive','left','has','_forceRefresh','_manuallyClosed','pluginName','editableElement','Esc','attach','get','width','hasView','getBoundingClientRect','editor','afterInit','focus','switchTo','_addAnnotationToBalloon','top','requires','inlineannotations-detach-not-attached','isFocused','focusTracker','updatePosition','context','change:height','_closeAnnotation','every','plugins','inlineannotations-not-allowed-with-context','_balloon','init','_getBalloonTargetForAnnotation','update','refresh','includes','_removeAnnotationFromBalloon','selection','getFirstRange','view','change:visibleView','_addedAnnotations','find','getClientRects','setActiveAnnotation','register','map','mousedown','inline','annotations','isAttached','editing','length','clear','domConverter','fromRect','showStack','_selectedAnnotations','viewRangeToDom','activeAnnotation','bottom','_setSelectedAnnotations','push','targetRect','remove','getByView','isActive','from','document','getOrderedSelectedAnnotations','add','detach','destroy','visibleView','right','inlineannotations-attach-already-attached','change:isFocused','target','keystrokes','listenTo'];(function(_0x488c71,_0x223642){const _0x49a428=function(_0x20f5f3){while(--_0x20f5f3){_0x488c71['push'](_0x488c71['shift']());}};_0x49a428(++_0x223642);}(_0x2236,0x195));const _0x49a4=function(_0x488c71,_0x223642){_0x488c71=_0x488c71-0x0;let _0x49a428=_0x2236[_0x488c71];return _0x49a428;};import{Plugin as _0x570b26}from'ckeditor5/src/core';import _0x4c0da4 from'./annotationsuis';import _0x4e6973 from'./editorannotations';import{ContextualBalloon as _0x3375ef}from'ckeditor5/src/ui';import{MouseObserver as _0x3aede7}from'ckeditor5/src/engine';import{CKEditorError as _0x54a435,Rect as _0x16318c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x570b26{static get[_0x49a4('0xe')](){return[_0x4e6973,_0x3375ef,_0x4c0da4];}static get[_0x49a4('0x0')](){return'InlineAnnotations';}constructor(_0x396865){super(_0x396865),_0x396865[_0x49a4('0x2e')][_0x49a4('0x22')]['addObserver'](_0x3aede7),this['isAttached']=!0x1,this['set'](_0x49a4('0x36'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x49a4('0x19')]=_0x396865['plugins'][_0x49a4('0x4')](_0x3375ef),this[_0x49a4('0x24')]=new Set(),this['_selectedAnnotations']=[],this[_0x49a4('0x4e')]=!0x1;}[_0x49a4('0x1a')](){const _0x49fdad=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4);_0x49fdad[_0x49a4('0x13')]===this[_0x49a4('0x8')]&&(_0x49fdad[_0x49a4('0x28')](_0x49a4('0x2b'),this),this[_0x49a4('0x8')][_0x49a4('0x49')]['set']('Esc',(_0x52a247,_0x216b1d)=>{const _0x596f3=this[_0x49a4('0x19')];if(this[_0x49a4('0x2d')]&&_0x596f3[_0x49a4('0x44')]){const _0x57fe3a=this[_0x49a4('0x2c')][_0x49a4('0x3c')](_0x596f3['visibleView']);this[_0x49a4('0x15')](_0x57fe3a),_0x216b1d();}}));}[_0x49a4('0x9')](){const _0x5a1312=this[_0x49a4('0x8')][_0x49a4('0x17')]['get'](_0x4c0da4);_0x5a1312[_0x49a4('0x13')]===this['editor']&&(_0x5a1312[_0x49a4('0x4b')]()||_0x5a1312[_0x49a4('0xb')]('inline'));}[_0x49a4('0x27')](_0x477990){_0x477990!==this[_0x49a4('0x36')]&&(this[_0x49a4('0x36')]&&(this['activeAnnotation'][_0x49a4('0x3d')]=!0x1),_0x477990&&this[_0x49a4('0x8')]['ui'][_0x49a4('0x11')][_0x49a4('0x10')]&&(this[_0x49a4('0xc')](_0x477990,!0x0),_0x477990['isActive']=!0x0),_0x477990||this['_setSelectedAnnotations']([]),this[_0x49a4('0x36')]=_0x477990);}[_0x49a4('0x3')](_0x3f770b){this['annotations']=_0x3f770b;const _0x236bd7=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4),_0x544378=this['_balloon'];if(this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0x46'),this);if(_0x236bd7['context']!==this[_0x49a4('0x8')])throw new _0x54a435(_0x49a4('0x18'),this);const _0x5871c9=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')]('EditorAnnotations');this[_0x49a4('0x4a')](_0x5871c9,_0x49a4('0x1d'),function(){const _0x4837e8=_0x5871c9[_0x49a4('0x40')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x49a4('0x2c')]});if(!this['_forceRefresh']&&(_0x3e9396=_0x4837e8,_0x425a4f=this[_0x49a4('0x34')],_0x3e9396[_0x49a4('0x2f')]===_0x425a4f[_0x49a4('0x2f')]&&_0x3e9396[_0x49a4('0x16')](_0x2d87be=>_0x425a4f[_0x49a4('0x1e')](_0x2d87be))))return;var _0x3e9396,_0x425a4f;this[_0x49a4('0x4e')]=!0x1,this[_0x49a4('0x38')](_0x4837e8),this[_0x49a4('0x27')](_0x4837e8[0x0]||null);}['bind'](this)),this[_0x49a4('0x4a')](_0x5871c9,'blur',(_0x2ae2cd,{isAnnotationTracked:_0x400f5d})=>{this[_0x49a4('0x36')]&&_0x400f5d(this['activeAnnotation'])&&(this[_0x49a4('0x38')]([]),this[_0x49a4('0x27')](null));}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')]['ui']['focusTracker'],_0x49a4('0x47'),(_0x21f021,_0xd623c2,_0x5a3f7a)=>{_0x5a3f7a||this['setActiveAnnotation'](null);}),this[_0x49a4('0x4a')](_0x3f770b,_0x49a4('0x3b'),(_0x3a609c,_0x68813e)=>{this[_0x49a4('0x1f')](_0x68813e),_0x68813e===this[_0x49a4('0x36')]&&this[_0x49a4('0x27')](null);}),this['listenTo'](_0x544378,_0x49a4('0x23'),(_0x8b9687,_0x51e5d5,_0x30d708,_0x5a2f7f)=>{if(_0x5a2f7f&&this['stopListening'](_0x5a2f7f),!_0x30d708||!_0x3f770b['getByView'](_0x30d708))return;const _0x5c8f24=_0x3f770b[_0x49a4('0x3c')](_0x30d708);this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x14'),()=>{_0x544378[_0x49a4('0x12')]();}),this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x2'),()=>{this[_0x49a4('0x15')](_0x5c8f24),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')]();}),this['activeAnnotation']!==_0x5c8f24&&this[_0x49a4('0x27')](_0x5c8f24);}),this['listenTo'](this[_0x49a4('0x8')]['ui'],_0x49a4('0x1c'),()=>{_0x544378['visibleView']&&(_0x3f770b[_0x49a4('0x3c')](_0x544378[_0x49a4('0x44')])&&_0x544378[_0x49a4('0x12')]());}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')][_0x49a4('0x2e')]['view'][_0x49a4('0x3f')],_0x49a4('0x2a'),()=>{this[_0x49a4('0x4e')]=!0x0,this[_0x49a4('0x4f')][_0x49a4('0x30')]();}),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')]['document'][_0x49a4('0x20')][_0x49a4('0x1')]&&this[_0x49a4('0x8')][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')](),this[_0x49a4('0x2d')]=!0x0;}[_0x49a4('0x42')](){if(!this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0xf'),this);this[_0x49a4('0x27')](null);for(const _0x48813f of this['_addedAnnotations'])this[_0x49a4('0x1f')](_0x48813f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x49a4('0x43')](){this['isAttached']&&this[_0x49a4('0x42')]();}[_0x49a4('0x38')](_0x90d7a7){for(const _0x526d30 of this[_0x49a4('0x34')])_0x90d7a7[_0x49a4('0x1e')](_0x526d30)||this['_manuallyClosed']['delete'](_0x526d30);for(const _0x4ef536 of this[_0x49a4('0x2c')])_0x90d7a7[_0x49a4('0x1e')](_0x4ef536)||this[_0x49a4('0x1f')](_0x4ef536);if(this['editor']['ui']['focusTracker'][_0x49a4('0x10')])for(const _0x34664f of _0x90d7a7)this[_0x49a4('0xc')](_0x34664f);this[_0x49a4('0x34')]=_0x90d7a7;}[_0x49a4('0xc')](_0x5d4f78,_0x3668be){this[_0x49a4('0x4f')][_0x49a4('0x4d')](_0x5d4f78)||(this['_addedAnnotations'][_0x49a4('0x4d')](_0x5d4f78)||this[_0x49a4('0x19')][_0x49a4('0x6')](_0x5d4f78[_0x49a4('0x22')])||(this[_0x49a4('0x24')]['add'](_0x5d4f78),this[_0x49a4('0x19')]['add']({'stackId':_0x5d4f78[_0x49a4('0x22')]['id'],'view':_0x5d4f78['view'],'position':{'target':()=>this[_0x49a4('0x1b')](_0x5d4f78)}})),_0x3668be&&this[_0x49a4('0x19')][_0x49a4('0x33')](_0x5d4f78[_0x49a4('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x34b6b9){const _0xac1413=_0x34b6b9[_0x49a4('0x48')],_0xfc5c31=this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')],_0x31781c=_0xfc5c31['document'][_0x49a4('0x20')][_0x49a4('0x21')](),_0x2fe2c8=_0xfc5c31[_0x49a4('0x31')][_0x49a4('0x35')](_0x31781c);if(_0x2fe2c8['collapse'](!0x0),_0xac1413){if(_0xac1413 instanceof _0x16318c)return _0xac1413;let _0x577d1b=[];for(const _0x3af685 of _0xac1413)_0x577d1b['push'](...(_0x2298e4=_0x3af685[_0x49a4('0x26')](),Array[_0x49a4('0x3e')](_0x2298e4)[_0x49a4('0x29')](DOMRect[_0x49a4('0x32')])));_0x577d1b=function(_0x2a2694){const _0x6a7886=[];let _0x361402=_0x2a2694[0x0];for(let _0x4b68fd=0x1;_0x4b68fd<_0x2a2694[_0x49a4('0x2f')];_0x4b68fd++)E(_0x361402,_0x2a2694[_0x4b68fd])?_0x361402['width']+=_0x2a2694[_0x4b68fd][_0x49a4('0x5')]:(_0x6a7886[_0x49a4('0x39')](_0x361402),_0x361402=_0x2a2694[_0x4b68fd]);return _0x6a7886['push'](_0x361402),_0x6a7886;}(_0x577d1b);const _0x180488=_0x2fe2c8[_0x49a4('0x7')]();return _0x577d1b[_0x49a4('0x25')](_0x46894b=>_0x46894b[_0x49a4('0xd')]<=_0x180488[_0x49a4('0xd')]&&_0x46894b[_0x49a4('0x37')]>=_0x180488[_0x49a4('0x37')]&&_0x46894b['left']<=_0x180488[_0x49a4('0x4c')]&&_0x46894b[_0x49a4('0x45')]>=_0x180488['right'])||_0x577d1b[0x0];}var _0x2298e4;return _0x34b6b9[_0x49a4('0x3a')]||_0x2fe2c8;}['_removeAnnotationFromBalloon'](_0x480532){this[_0x49a4('0x24')][_0x49a4('0x4d')](_0x480532)&&this[_0x49a4('0x19')][_0x49a4('0x6')](_0x480532[_0x49a4('0x22')])&&(this[_0x49a4('0x24')]['delete'](_0x480532),this[_0x49a4('0x19')][_0x49a4('0x3b')](_0x480532['view']));}[_0x49a4('0x15')](_0x5d3286){this[_0x49a4('0x4f')][_0x49a4('0x41')](_0x5d3286),this[_0x49a4('0x1f')](_0x5d3286);}}function E(_0x57755b,_0x152910){return _0x57755b[_0x49a4('0xd')]===_0x152910['top']&&_0x57755b[_0x49a4('0x37')]===_0x152910[_0x49a4('0x37')]&&_0x57755b[_0x49a4('0x45')]===_0x152910[_0x49a4('0x4c')];}
@@ -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 _0x2ee8=['context','change:height','activeAnnotation','contains','EditorAnnotations','first','keydown','uiUpdate','_editorAnnotations','content','_refreshPositioningDebounced','unpin','delete','keyCode','_detachListeners','narrowSidebar','editors','listenTo','annotations','off','element','ck-sidebar--narrow','type','narrowsidebar-attach-already-attached','set','init','annotationType','_hideBalloon','_refreshPositioning','rearrange','detachFromDom','getSidebarItemView','isAttached','get','preventClosingBalloon','getOrderedSelectedAnnotations','stopPropagation','southArrowNorthEast','_attachListeners','_destroyEditorAnnotationsIntegration','defaultPositions','NarrowSidebar','resize','_integrateWithEditorAnnotations','bind','addAnnotation','_annotationToNarrowView','balloonPanelView','has','length','stop','_setSelectedAnnotations','view','narrowsidebar-detach-not-attached','high','getByView','_detachFromContainer','plugins','attach','Esc','_showBalloon','bodyCollection','add','removeEventListener','focus','isDirty','execute','low','preventDefault','_selectedAnnotations','ready','change:container','stopListening','target','detach','pin','_manuallyClosedAnnotationViews','requires','cancel','number','includes','remove','Sidebar','_updateBalloonPosition','hasDomSelection','locale','destroy','clear','blur','create','isVisible','setActiveAnnotation','_domEmitter','refresh'];(function(_0x21b1d9,_0x2ee85d){const _0x9ea00=function(_0x365859){while(--_0x365859){_0x21b1d9['push'](_0x21b1d9['shift']());}};_0x9ea00(++_0x2ee85d);}(_0x2ee8,0xf1));const _0x9ea0=function(_0x21b1d9,_0x2ee85d){_0x21b1d9=_0x21b1d9-0x0;let _0x9ea00=_0x2ee8[_0x21b1d9];return _0x9ea00;};import{ContextPlugin as _0x3a5597}from'ckeditor5/src/core';import _0x465548 from'./annotationsuis';import _0x250618 from'./sidebar';import _0x43d1ed from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2b59da,BodyCollection as _0x41bf5e}from'ckeditor5/src/ui';import{CKEditorError as _0x2dffc6,DomEmitterMixin as _0x1b0d2d,keyCodes as _0x38f2e4,Collection as _0x24df3d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3cbe4e}from'lodash-es';export default class s extends _0x3a5597{static get[_0x9ea0('0x18')](){return[_0x250618,_0x465548];}static get['pluginName'](){return _0x9ea0('0x52');}constructor(_0x3794b1){super(_0x3794b1),this[_0x9ea0('0x49')]=!0x1,this[_0x9ea0('0x17')]=new Set(),this['_domEmitter']=Object[_0x9ea0('0x24')](_0x1b0d2d),this[_0x9ea0('0x57')]=new Map(),this[_0x9ea0('0x41')](_0x9ea0('0x2b'),null),this[_0x9ea0('0x3b')]=null,this['_selectedAnnotations']=[],this[_0x9ea0('0x31')]=new _0x24df3d(),this[_0x9ea0('0x33')]=_0x3cbe4e(()=>{this[_0x9ea0('0x45')]();},0xfa,{'leading':!0x1});}[_0x9ea0('0x42')](){this['context'][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x465548)['register'](_0x9ea0('0x38'),this),this[_0x9ea0('0x8')]=new _0x41bf5e(this[_0x9ea0('0x29')][_0x9ea0('0x20')]),this['balloonPanelView']=new _0x2b59da(this['context'][_0x9ea0('0x20')]),this[_0x9ea0('0x8')]['attachToDom'](),this[_0x9ea0('0x8')][_0x9ea0('0x9')](this[_0x9ea0('0x58')]);}[_0x9ea0('0x5')](_0x243078){this[_0x9ea0('0x3b')]=_0x243078;const _0x2b0d8b=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x250618),_0x31c1f0=this[_0x9ea0('0x58')];if(_0x2b0d8b['_annotations']=_0x243078,this[_0x9ea0('0x49')])throw new _0x2dffc6(_0x9ea0('0x40'),this);this[_0x9ea0('0x49')]=!0x0,this[_0x9ea0('0x3a')](_0x2b0d8b,'set:container',()=>{this[_0x9ea0('0x15')](),this[_0x9ea0('0x3a')](_0x2b0d8b,_0x9ea0('0x12'),_0x36b1b0=>{_0x36b1b0[_0x9ea0('0x3c')](),this[_0x9ea0('0x5')](_0x243078);});}),_0x2b0d8b['_attachToContainer']({'viewClass':_0x9ea0('0x3e'),'spaceBetweenItems':0x5});const _0x506f73=_0x640431=>{const _0x52027f=new _0x43d1ed(this[_0x9ea0('0x29')][_0x9ea0('0x20')]);_0x2b0d8b[_0x9ea0('0x56')](_0x640431,_0x52027f),this[_0x9ea0('0x57')]['set'](_0x640431,_0x52027f),_0x52027f[_0x9ea0('0x55')]('isDirty',_0x9ea0('0x43'),_0x9ea0('0x1a'))['to'](_0x640431[_0x9ea0('0x5d')],_0x9ea0('0xc'),_0x9ea0('0x3f'),_0x9ea0('0x5a')),_0x52027f['on'](_0x9ea0('0xd'),()=>{this[_0x9ea0('0x17')]['clear'](),_0x31c1f0[_0x9ea0('0x32')][_0x9ea0('0x2e')]!==_0x640431[_0x9ea0('0x5d')]?(this['_showBalloon'](_0x640431),_0x640431[_0x9ea0('0x5d')][_0x9ea0('0x3d')][_0x9ea0('0xb')](),this[_0x9ea0('0x26')](_0x640431)):this[_0x9ea0('0x26')](null);});};for(const _0x1249c7 of _0x243078)_0x506f73(_0x1249c7);this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0x9'),(_0x4910ad,_0x1f0387)=>{_0x506f73(_0x1f0387);}),this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0x1c'),(_0x247168,_0x2fbf00,_0x411162)=>{this[_0x9ea0('0x57')][_0x9ea0('0x4a')](_0x2fbf00)[_0x9ea0('0x21')](),this[_0x9ea0('0x57')][_0x9ea0('0x35')](_0x2fbf00),_0x2b0d8b[_0x9ea0('0x46')]({'removedAnnotation':_0x2fbf00,'previousAnnotation':_0x243078[_0x9ea0('0x4a')](_0x411162-0x1),'nextAnnotation':_0x243078[_0x9ea0('0x4a')](_0x411162+0x1)}),_0x2fbf00===this[_0x9ea0('0x2b')]&&this[_0x9ea0('0x26')](null);},{'priority':_0x9ea0('0xe')}),this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0xb'),(_0x34f13b,_0x1233f9)=>{this[_0x9ea0('0x26')](_0x1233f9);}),this[_0x9ea0('0x3a')](_0x243078,_0x9ea0('0x23'),()=>{this[_0x9ea0('0x26')](null);}),this[_0x9ea0('0x27')][_0x9ea0('0x3a')](document,_0x9ea0('0x2f'),(_0x2d01f4,_0x6c7e87)=>{_0x6c7e87[_0x9ea0('0x36')]===_0x38f2e4['esc']&&_0x31c1f0[_0x9ea0('0x25')]&&(this[_0x9ea0('0x17')]['add'](_0x31c1f0['content'][_0x9ea0('0x2e')]),this['_hideBalloon'](),_0x6c7e87[_0x9ea0('0x4d')](),_0x6c7e87[_0x9ea0('0xf')]());}),this[_0x9ea0('0x27')]['listenTo'](document,'mousedown',(_0x5d717c,_0x5f0fcd)=>{const _0x2d9379=_0x5f0fcd[_0x9ea0('0x14')];_0x31c1f0[_0x9ea0('0x25')]&&_0x31c1f0[_0x9ea0('0x3d')][_0x9ea0('0x2c')](_0x2d9379)||_0x2b0d8b[_0x9ea0('0x5d')][_0x9ea0('0x3d')][_0x9ea0('0x2c')](_0x2d9379)||_0x5d717c[_0x9ea0('0x4b')]||(this[_0x9ea0('0x17')][_0x9ea0('0x22')](),this[_0x9ea0('0x44')](),this[_0x9ea0('0x26')](null));});const _0x423a99=this[_0x9ea0('0x29')][_0x9ea0('0x39')]?this[_0x9ea0('0x29')][_0x9ea0('0x39')]:new _0x24df3d([this['context']]);for(const _0x6e373b of _0x423a99)this[_0x9ea0('0x54')](_0x6e373b);this[_0x9ea0('0x3a')](_0x423a99,_0x9ea0('0x9'),(_0x4a390a,_0x56f32b)=>{this[_0x9ea0('0x3a')](_0x56f32b,_0x9ea0('0x11'),()=>{this['_integrateWithEditorAnnotations'](_0x56f32b);});}),this[_0x9ea0('0x3a')](_0x423a99,_0x9ea0('0x1c'),(_0x41c080,_0x32f7cb)=>{_0x32f7cb['plugins'][_0x9ea0('0x59')](_0x9ea0('0x2d'))&&this[_0x9ea0('0x50')](_0x32f7cb[_0x9ea0('0x4')][_0x9ea0('0x4a')]('EditorAnnotations'));}),window['addEventListener'](_0x9ea0('0x53'),this[_0x9ea0('0x33')]),this['_refreshPositioning']();}[_0x9ea0('0x26')](_0x43015b){if(_0x43015b===this[_0x9ea0('0x2b')])return;const _0x2b7d4f=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x9ea0('0x1d'));if(_0x2b7d4f[_0x9ea0('0x28')]({'blurredAnnotation':this[_0x9ea0('0x2b')],'activatedAnnotation':_0x43015b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x43015b)_0x2b7d4f[_0x9ea0('0x48')](_0x43015b)?this[_0x9ea0('0x7')](_0x43015b):this['_hideBalloon']();else this['_hideBalloon']();this[_0x9ea0('0x2b')]=_0x43015b;}[_0x9ea0('0x15')](){if(!this[_0x9ea0('0x49')])throw new _0x2dffc6(_0x9ea0('0x0'),this);this['setActiveAnnotation'](null);const _0x5d2f80=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x9ea0('0x1d'));this[_0x9ea0('0x44')](),Array['from'](this[_0x9ea0('0x57')]['values'](),_0x6829c3=>_0x6829c3[_0x9ea0('0x21')]()),this[_0x9ea0('0x57')][_0x9ea0('0x22')](),_0x5d2f80[_0x9ea0('0x3')](this[_0x9ea0('0x3b')]),this[_0x9ea0('0x13')](),this[_0x9ea0('0x27')][_0x9ea0('0x13')](),this['stopListening'](this[_0x9ea0('0x29')][_0x9ea0('0x39')]);for(const _0x5ee777 of Array['from'](this[_0x9ea0('0x31')]))this[_0x9ea0('0x50')](_0x5ee777);window[_0x9ea0('0xa')]('resize',this['_refreshPositioningDebounced']),this[_0x9ea0('0x33')][_0x9ea0('0x19')](),this['_selectedAnnotations']=[],this[_0x9ea0('0x49')]=!0x1,this[_0x9ea0('0x3b')]=null;}[_0x9ea0('0x21')](){this['isAttached']&&this[_0x9ea0('0x15')](),this[_0x9ea0('0x8')][_0x9ea0('0x47')]();}[_0x9ea0('0x54')](_0xf2af5c){const _0x581ec2=_0xf2af5c[_0x9ea0('0x4')][_0x9ea0('0x4a')]('EditorAnnotations'),_0x527c3d=this[_0x9ea0('0x29')][_0x9ea0('0x4')][_0x9ea0('0x4a')](_0x250618),_0x5382fc=this[_0x9ea0('0x3b')],_0x33da23=this[_0x9ea0('0x58')],_0x2bc451=()=>{const _0x26c964=_0x581ec2[_0x9ea0('0x4c')]({'activeAnnotation':this[_0x9ea0('0x2b')],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x26c964),this[_0x9ea0('0x26')](_0x26c964[0x0]||null);};this[_0x9ea0('0x3a')](_0x581ec2,_0x9ea0('0x28'),_0x2bc451),this['listenTo'](_0x581ec2,'blur',(_0x1d5391,{isAnnotationTracked:_0x5b5015})=>{this[_0x9ea0('0x2b')]&&_0x5b5015(this[_0x9ea0('0x2b')])&&(this['_setSelectedAnnotations']([]),this[_0x9ea0('0x26')](null));}),this[_0x9ea0('0x3a')](_0x581ec2,_0x9ea0('0x30'),()=>{this['_refreshPositioningDebounced']();}),this[_0x9ea0('0x3a')](_0x5382fc,'blur',_0x266833=>{_0x581ec2[_0x9ea0('0x1f')]()&&_0x266833[_0x9ea0('0x5b')]();},{'priority':_0x9ea0('0x1')}),this['_domEmitter'][_0x9ea0('0x3a')](document,'mousedown',(_0x760d7c,_0x28fbb8)=>{const _0x1c82a1=_0x28fbb8[_0x9ea0('0x14')];_0x33da23[_0x9ea0('0x25')]&&_0x33da23['element'][_0x9ea0('0x2c')](_0x1c82a1)||_0x527c3d[_0x9ea0('0x5d')]['element'][_0x9ea0('0x2c')](_0x1c82a1)||this[_0x9ea0('0x2b')]&&_0x581ec2['hasDomSelection']()&&(_0x2bc451(),_0x760d7c[_0x9ea0('0x4b')]=!0x0);},{'priority':_0x9ea0('0x1')}),this['_editorAnnotations'][_0x9ea0('0x9')](_0x581ec2);}[_0x9ea0('0x50')](_0x2168f5){_0x2168f5&&(this['stopListening'](_0x2168f5),this[_0x9ea0('0x31')]['remove'](_0x2168f5));}[_0x9ea0('0x5c')](_0x4f662e){for(const _0x4d08ed of this[_0x9ea0('0x10')])_0x4f662e[_0x9ea0('0x1b')](_0x4d08ed)||this[_0x9ea0('0x17')]['delete'](_0x4d08ed[_0x9ea0('0x5d')]);this['_selectedAnnotations']=_0x4f662e;}[_0x9ea0('0x45')](){const _0x1f8a94=this[_0x9ea0('0x58')];this[_0x9ea0('0x3b')]['refreshPositioning'](),_0x1f8a94[_0x9ea0('0x25')]&&this['_updateBalloonPosition']();}[_0x9ea0('0x7')](_0x1736d4){if(this[_0x9ea0('0x17')]['has'](_0x1736d4[_0x9ea0('0x5d')]))return;const _0x255dba=this['balloonPanelView'][_0x9ea0('0x32')][_0x9ea0('0x2e')];_0x255dba!==_0x1736d4[_0x9ea0('0x5d')]?(_0x255dba&&this['_detachListeners'](_0x255dba),this[_0x9ea0('0x4f')](_0x1736d4['view']),this[_0x9ea0('0x58')]['content'][_0x9ea0('0x22')](),this['balloonPanelView'][_0x9ea0('0x32')]['add'](_0x1736d4['view']),this['_updateBalloonPosition']()):this[_0x9ea0('0x1e')]();}[_0x9ea0('0x1e')](){const _0x27d429=this[_0x9ea0('0x58')][_0x9ea0('0x32')]['first'],_0x425a54=this[_0x9ea0('0x3b')][_0x9ea0('0x2')](_0x27d429);if(!this[_0x9ea0('0x57')][_0x9ea0('0x59')](_0x425a54))return;const _0x5d9b1f=this['_annotationToNarrowView']['get'](_0x425a54)[_0x9ea0('0x3d')],_0x1ae11a=function(){const _0x119a13=_0x2b59da[_0x9ea0('0x51')];return[_0x119a13[_0x9ea0('0x4e')],_0x119a13['northArrowSouthEast'],_0x119a13['southArrowNorth'],_0x119a13['northArrowSouth'],_0x119a13['southArrowNorthWest'],_0x119a13['northArrowSouthWest']];}();this[_0x9ea0('0x58')][_0x9ea0('0x16')]({'target':_0x5d9b1f,'positions':_0x1ae11a});}[_0x9ea0('0x44')](){const _0x4b9328=this[_0x9ea0('0x58')],_0x543802=_0x4b9328[_0x9ea0('0x32')]['first'];_0x543802&&(this[_0x9ea0('0x37')](_0x543802),_0x4b9328[_0x9ea0('0x34')](),_0x4b9328[_0x9ea0('0x32')][_0x9ea0('0x22')]());}[_0x9ea0('0x4f')](_0x115fa1){this[_0x9ea0('0x3a')](_0x115fa1,_0x9ea0('0x2a'),()=>this[_0x9ea0('0x1e')]()),this[_0x9ea0('0x3a')](_0x115fa1,_0x9ea0('0x6'),(_0x4bdd01,_0x74a259)=>{this['_manuallyClosedAnnotationViews'][_0x9ea0('0x9')](_0x115fa1),this[_0x9ea0('0x44')](),_0x74a259();});}[_0x9ea0('0x37')](_0x3f2650){this[_0x9ea0('0x13')](_0x3f2650);}}
@@ -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 _0x8ada=['_activeAnnotation','view','_updateLastItem','listenTo','bind','last','_recalculate','target','container','_getTargetTop','_targetTop','remove','locale','nodeType','_alignToTargetRect','set','destroy','rearrange','_destroySidebarItemView','_setItemTop','delete','sidebar-setcontainer-invalid-element','_alignAfterItem','init','minHeight','class','stopListening','sidebar.preventScrollOutOfView','_attachToContainer','max','render','getIndex','height','getSidebarItemView','element','isAnimationDisabled','_getItemBefore','_lastItem','updateHeight','change:targetRect','length','config','sidebar-attachtocontainer-missing-container','context','add','_getMaxAvailableTop','_alignForTopChange','_createSidebarView','list','top','change:_lastItem','get','_alignBeforeItem','isActive','_sidebarItemViewToAnnotation','push','bottom','_spaceBetweenItems','appendChild','_annotations','_alignForBottomChange','_recalculateBuffer','refresh','sidebar.container','object','targetRect','change:bottom','content','_annotationToSidebarItemView'];(function(_0x3e1bd4,_0x8adaf4){const _0x146dea=function(_0x562de5){while(--_0x562de5){_0x3e1bd4['push'](_0x3e1bd4['shift']());}};_0x146dea(++_0x8adaf4);}(_0x8ada,0x169));const _0x146d=function(_0x3e1bd4,_0x8adaf4){_0x3e1bd4=_0x3e1bd4-0x0;let _0x146dea=_0x8ada[_0x3e1bd4];return _0x146dea;};import{ContextPlugin as _0x1de050}from'ckeditor5/src/core';import _0x25539f from'./view/sidebarview';import _0x238755 from'./view/sidebaritemview';import{Rect as _0x4ed153,CKEditorError as _0x5b7eb3}from'ckeditor5/src/utils';export default class b extends _0x1de050{static get['pluginName'](){return'Sidebar';}constructor(_0x25ba7d){super(_0x25ba7d),this[_0x146d('0x44')](_0x146d('0x15')),this[_0x146d('0x36')]=this[_0x146d('0x1f')](),this[_0x146d('0x44')]('container',null),this[_0x146d('0x29')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x146d('0x1b')][_0x146d('0x19')]['define'](_0x146d('0xb'),!0x1),this[_0x146d('0x2b')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x146d('0x7')](){const _0x5e8079=this[_0x146d('0x1b')]['config'][_0x146d('0x23')](_0x146d('0x2f'));_0x5e8079&&this['setContainer'](_0x5e8079);}['setContainer'](_0x46de98){if(!p(_0x46de98))throw new _0x5b7eb3(_0x146d('0x5'));this[_0x146d('0x3d')]=_0x46de98;}[_0x146d('0xc')]({viewClass:_0x2fee63='',spaceBetweenItems:_0x2acdb0=0x19}={}){if(!p(this[_0x146d('0x3d')]))throw new _0x5b7eb3(_0x146d('0x1a'),this);this[_0x146d('0x3d')][_0x146d('0x2a')](this[_0x146d('0x36')][_0x146d('0x12')]),this[_0x146d('0x36')][_0x146d('0x9')]=_0x2fee63,this['_spaceBetweenItems']=_0x2acdb0;}[_0x146d('0x1')]({removedAnnotation:_0x1ea6f8,previousAnnotation:_0x410208,nextAnnotation:_0x1440f7}){const _0xcec52b=this[_0x146d('0x11')](_0x1ea6f8);this[_0x146d('0x36')][_0x146d('0x20')][_0x146d('0x40')](_0xcec52b),this[_0x146d('0x2')](_0x1ea6f8),_0x410208&&this[_0x146d('0x43')](this['getSidebarItemView'](_0x410208)),_0x1440f7&&this[_0x146d('0x43')](this[_0x146d('0x11')](_0x1440f7)),this[_0x146d('0x37')]();}[_0x146d('0x2e')]({blurredAnnotation:_0x3cca87,activatedAnnotation:_0x68ae86,disableAnimationOnActivatedAnnotation:_0xfd01ea}){if(this[_0x146d('0x35')]=_0x68ae86,_0x3cca87){_0x3cca87[_0x146d('0x25')]=!0x1;const _0x5ca0e5=this['getSidebarItemView'](_0x3cca87);_0x5ca0e5&&_0xfd01ea&&(_0x5ca0e5[_0x146d('0x13')]=!0x1);}if(_0x68ae86){const _0x4835cd=this[_0x146d('0x11')](_0x68ae86);_0x4835cd&&(_0x68ae86[_0x146d('0x25')]=!0x0,_0xfd01ea&&(_0x4835cd[_0x146d('0x13')]=!0x0,_0x4835cd[_0x146d('0x21')]+=0x1),this[_0x146d('0x43')](_0x4835cd));}}['_detachFromContainer'](_0x2f0b52){this[_0x146d('0xa')](),this[_0x146d('0x36')][_0x146d('0x12')][_0x146d('0x40')]();for(const _0x3f2ced of _0x2f0b52)this[_0x146d('0x2')](_0x3f2ced);this[_0x146d('0x36')][_0x146d('0x20')]['clear'](),this[_0x146d('0x36')][_0x146d('0x9')]='',this[_0x146d('0x15')]=null;}['addAnnotation'](_0x32ee34,_0xe00f6e){_0xe00f6e||(_0xe00f6e=_0x32ee34[_0x146d('0x36')]);const _0x19564b=new _0x238755(this[_0x146d('0x1b')][_0x146d('0x41')]);this[_0x146d('0x26')]['set'](_0x19564b,_0x32ee34),this[_0x146d('0x34')][_0x146d('0x44')](_0x32ee34,_0x19564b),_0x19564b[_0x146d('0x33')][_0x146d('0x1c')](_0xe00f6e),this[_0x146d('0x38')](_0x32ee34['view'],_0x146d('0x17'),(_0x1ab4b8,_0x1b2b5e,_0x4fc90c)=>{const _0x5d3c35=this[_0x146d('0x3e')](_0x32ee34,_0x4fc90c);_0x19564b[_0x146d('0x3f')]!=_0x5d3c35&&(_0x19564b[_0x146d('0x3f')]=_0x5d3c35,this[_0x146d('0x3')](_0x19564b,_0x5d3c35));}),this[_0x146d('0x38')](_0x19564b,'change:top',()=>{this[_0x146d('0x3b')](_0x19564b,'top');}),this['listenTo'](_0x19564b,_0x146d('0x32'),()=>{this[_0x146d('0x3b')](_0x19564b,'bottom');}),this['_alignToTargetRect'](_0x19564b);const _0x1e7ee3=this[_0x146d('0x14')](_0x19564b);if(_0x1e7ee3)this[_0x146d('0x6')](_0x1e7ee3,_0x19564b)||this['_alignToTargetRect'](_0x19564b);else this[_0x146d('0x43')](_0x19564b);return this[_0x146d('0x37')](),this[_0x146d('0x36')][_0x146d('0x20')]['add'](_0x19564b),_0x19564b;}[_0x146d('0x1e')](_0x42a3c5){if(!_0x42a3c5[_0x146d('0x33')][_0x146d('0x18')])return;const _0x3150d9=this[_0x146d('0x14')](_0x42a3c5);if(!_0x3150d9)return;const _0x2eaf8b=this['_sidebarItemViewToAnnotation'][_0x146d('0x23')](_0x3150d9),_0x3a9c94=this[_0x146d('0x35')];_0x3a9c94&&_0x3a9c94===_0x2eaf8b?this['_alignAfterItem'](_0x3150d9,_0x42a3c5):this[_0x146d('0x24')](_0x42a3c5,_0x3150d9);}[_0x146d('0x2c')](_0x3fa1f6){if(!_0x3fa1f6[_0x146d('0x33')]['length'])return;const _0x30db27=this['_getItemAfter'](_0x3fa1f6);if(!_0x30db27)return;const _0x14db2f=this[_0x146d('0x26')]['get'](_0x30db27),_0x45a067=this['context'][_0x146d('0x19')][_0x146d('0x23')]('sidebar.preventScrollOutOfView'),_0x54dfa1=this['_activeAnnotation'];_0x54dfa1&&_0x54dfa1===_0x14db2f&&_0x45a067?(this[_0x146d('0x24')](_0x30db27,_0x3fa1f6),this[_0x146d('0x6')](_0x3fa1f6,_0x30db27)):_0x54dfa1&&_0x54dfa1===_0x14db2f?this[_0x146d('0x24')](_0x30db27,_0x3fa1f6):this[_0x146d('0x6')](_0x3fa1f6,_0x30db27);}['_recalculate'](_0x5e2ef6,_0x182e54){0x0===this[_0x146d('0x2d')][_0x146d('0x18')]&&setTimeout(()=>{for(const {sidebarItemView:_0x24e96f,changedProp:_0x29c2ef}of this[_0x146d('0x2d')])_0x146d('0x21')===_0x29c2ef?this['_alignForTopChange'](_0x24e96f):this['_alignForBottomChange'](_0x24e96f);this[_0x146d('0x2d')]=[];},0xa),this[_0x146d('0x2d')][_0x146d('0x27')]({'sidebarItemView':_0x5e2ef6,'changedProp':_0x182e54});}['getSidebarItemView'](_0x2ce442){return this['_annotationToSidebarItemView'][_0x146d('0x23')](_0x2ce442);}['destroy'](){this['view'][_0x146d('0x0')]();}[_0x146d('0x2')](_0x36edb1){const _0x2857c5=this[_0x146d('0x11')](_0x36edb1);this['stopListening'](_0x2857c5),this['stopListening'](_0x36edb1[_0x146d('0x36')]),_0x2857c5[_0x146d('0x0')](),this['_annotationToSidebarItemView'][_0x146d('0x4')](_0x36edb1),this['_sidebarItemViewToAnnotation'][_0x146d('0x4')](_0x2857c5);}[_0x146d('0x1f')](){const _0x1b9f3c=new _0x25539f(this[_0x146d('0x1b')][_0x146d('0x41')]);return _0x1b9f3c[_0x146d('0xe')](),this['on'](_0x146d('0x22'),(_0x30dc67,_0x2410fc,_0x58af5a,_0x436b2d)=>{_0x436b2d&&_0x1b9f3c['unbind'](_0x146d('0x8')),_0x58af5a?_0x1b9f3c[_0x146d('0x39')](_0x146d('0x8'))['to'](_0x58af5a,_0x146d('0x28')):_0x1b9f3c['minHeight']=null;}),_0x1b9f3c;}[_0x146d('0x37')](){this[_0x146d('0x15')]=this[_0x146d('0x11')](this[_0x146d('0x2b')][_0x146d('0x3a')]);}['_getItemBefore'](_0x135a1d){const _0x59553f=this[_0x146d('0x26')][_0x146d('0x23')](_0x135a1d),_0x12cf73=this[_0x146d('0x2b')][_0x146d('0x23')](this[_0x146d('0x2b')][_0x146d('0xf')](_0x59553f)-0x1);return _0x12cf73&&this['getSidebarItemView'](_0x12cf73);}['_getItemAfter'](_0xf0041e){const _0x5391d0=this[_0x146d('0x26')][_0x146d('0x23')](_0xf0041e),_0x1ebad6=this[_0x146d('0x2b')][_0x146d('0x23')](this[_0x146d('0x2b')][_0x146d('0xf')](_0x5391d0)+0x1);return _0x1ebad6&&this[_0x146d('0x11')](_0x1ebad6);}[_0x146d('0x24')](_0x3f42ef,_0x829fc6){_0x3f42ef[_0x146d('0x16')]();const _0x5ef425=F(_0x829fc6[_0x146d('0x28')]+this['_spaceBetweenItems'],_0x3f42ef[_0x146d('0x21')]);return!!_0x5ef425&&(this[_0x146d('0x3')](_0x829fc6,_0x829fc6[_0x146d('0x21')]-_0x5ef425),!0x0);}['_alignAfterItem'](_0x479734,_0x104e51){_0x479734['updateHeight']();const _0x2f3720=F(_0x479734[_0x146d('0x28')]+this[_0x146d('0x29')],_0x104e51['top']);return!!_0x2f3720&&(this[_0x146d('0x3')](_0x104e51,_0x104e51[_0x146d('0x21')]+_0x2f3720,!0x1),!0x0);}[_0x146d('0x43')](_0x300360){const _0x51bd7c=this['_sidebarItemViewToAnnotation'][_0x146d('0x23')](_0x300360);if(!_0x51bd7c||!_0x51bd7c[_0x146d('0x3c')])return;const _0x51000a=this[_0x146d('0x3e')](_0x51bd7c,_0x51bd7c[_0x146d('0x31')]);this[_0x146d('0x3')](_0x300360,_0x51000a);}['_getTargetTop'](_0x677795,_0x25784a){if(null===_0x25784a)return 0x0;if(_0x677795[_0x146d('0x3c')]instanceof _0x4ed153)return _0x25784a['top'];{const _0xb984f3=new _0x4ed153(this[_0x146d('0x36')][_0x146d('0x12')])['top'];return _0x25784a[_0x146d('0x21')]-_0xb984f3;}}[_0x146d('0x3')](_0x1cd37b,_0x2a40c3,_0x514bbc=this['context'][_0x146d('0x19')][_0x146d('0x23')](_0x146d('0xb'))){_0x514bbc&&(_0x2a40c3=Math['max'](_0x2a40c3,this[_0x146d('0x1d')](_0x1cd37b))),_0x1cd37b[_0x146d('0x21')]=_0x2a40c3;}['_getMaxAvailableTop'](_0x4d3588){let _0x4e0b81=this['_getItemBefore'](_0x4d3588),_0x6ef36e=0x0;for(;_0x4e0b81;)_0x4e0b81[_0x146d('0x16')](),_0x6ef36e+=this[_0x146d('0x29')]+_0x4e0b81[_0x146d('0x10')],_0x4e0b81=this[_0x146d('0x14')](_0x4e0b81);return _0x6ef36e;}}function F(_0x32e4eb,_0x12a842){return Math[_0x146d('0xd')](_0x32e4eb-_0x12a842,0x0);}function p(_0x2ccf4f){return null!==_0x2ccf4f&&_0x146d('0x30')==typeof _0x2ccf4f&&0x1===_0x2ccf4f[_0x146d('0x42')];}
@@ -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 _0x351e=['ck-annotation-counter__badge--edit-mode','...','add','counterView','children','ck-annotation-counter__badge--','_badge','annotationType','icon','number','isDirty','extendTemplate','ck-annotation-counter','bind','set'];(function(_0x37a05f,_0x351ed2){const _0x5d35b3=function(_0x2a9091){while(--_0x2a9091){_0x37a05f['push'](_0x37a05f['shift']());}};_0x5d35b3(++_0x351ed2);}(_0x351e,0x14d));const _0x5d35=function(_0x37a05f,_0x351ed2){_0x37a05f=_0x37a05f-0x0;let _0x5d35b3=_0x351e[_0x37a05f];return _0x5d35b3;};import{ButtonView as _0x4f288f,View as _0x1a58b2}from'ckeditor5/src/ui';import _0x2cb0a1 from'../../../theme/icons/add-comment.svg';export default class z extends _0x4f288f{constructor(_0x3b3cfe){super(_0x3b3cfe);const _0x4f8efa=this['bindTemplate'];this[_0x5d35('0xb')](_0x5d35('0x7'),!0x1),this['set'](_0x5d35('0x6'),0x0),this[_0x5d35('0xa')](_0x5d35('0x3'))['to'](this,_0x5d35('0x7'),this,_0x5d35('0x6'),(_0x46cf07,_0x1b5039)=>_0x46cf07?_0x5d35('0xd'):_0x1b5039),this[_0x5d35('0xb')](_0x5d35('0x4'),''),this[_0x5d35('0x5')]=_0x2cb0a1,this[_0x5d35('0x8')]({'attributes':{'class':[_0x5d35('0x9')]}}),this[_0x5d35('0x0')]=new _0x1a58b2(),this[_0x5d35('0x0')]['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4f8efa['to'](_0x5d35('0x4'),_0x56d804=>_0x5d35('0x2')+_0x56d804),_0x4f8efa['if'](_0x5d35('0x7'),_0x5d35('0xc'))]},'children':[{'text':_0x4f8efa['to']('_badge')}]}),this[_0x5d35('0x1')][_0x5d35('0xe')](this[_0x5d35('0x0')]);}}
@@ -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 _0x12f3=['ck-annotation-wrapper','focusTracker','type','mainView','render','setTemplate','Esc','bindTemplate','keystrokes','div','_mutationObserver','isActive','detach','height','element','set','attach','content','length','add','focus','ck-rounded-corners','targetRect','ck-annotation-wrapper--active','destroy','_updateHeight','clientHeight','listenTo'];(function(_0x23e9d0,_0x12f3cb){const _0x19dc07=function(_0x23b752){while(--_0x23b752){_0x23e9d0['push'](_0x23e9d0['shift']());}};_0x19dc07(++_0x12f3cb);}(_0x12f3,0xfa));const _0x19dc=function(_0x23e9d0,_0x12f3cb){_0x23e9d0=_0x23e9d0-0x0;let _0x19dc07=_0x12f3[_0x23e9d0];return _0x19dc07;};import{View as _0x5a6d9f}from'ckeditor5/src/ui';import{FocusTracker as _0x4485c1,KeystrokeHandler as _0x35e035,uid as _0x19d982}from'ckeditor5/src/utils';import _0x5ad404 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x5a6d9f{constructor(_0x43819c,_0x88d993){super(_0x43819c),this['id']=_0x19d982(),this[_0x19dc('0x3')]=new _0x4485c1(),this[_0x19dc('0xa')]=new _0x35e035(),this[_0x19dc('0xa')][_0x19dc('0x11')](_0x19dc('0x8'),(_0x2257e0,_0x27aa7e)=>this['fire']('Esc',_0x27aa7e)),this[_0x19dc('0x11')](_0x19dc('0x18'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x19dc('0x11')](_0x19dc('0xf'),0x0),this[_0x19dc('0x11')]('isActive',!0x1),this[_0x19dc('0x11')]('isDirty',!0x1),this['set'](_0x19dc('0x14'),0x0),this[_0x19dc('0x11')](_0x19dc('0x4'),''),this[_0x19dc('0xc')]=_0x5ad404(()=>this[_0x19dc('0x1b')]()),this[_0x19dc('0x13')]=this['createCollection'](),this[_0x19dc('0x13')][_0x19dc('0x15')](_0x88d993),this[_0x19dc('0x5')]=_0x88d993;const _0x16f275=this[_0x19dc('0x9')];this[_0x19dc('0x7')]({'tag':_0x19dc('0xb'),'attributes':{'class':['ck',_0x19dc('0x2'),_0x19dc('0x17'),_0x16f275['if'](_0x19dc('0xd'),_0x19dc('0x19'))],'tabindex':-0x1},'children':this[_0x19dc('0x13')]});}['render'](){super[_0x19dc('0x6')](),this['focusTracker'][_0x19dc('0x15')](this['element']),this[_0x19dc('0xa')][_0x19dc('0x1')](this['element']),this[_0x19dc('0xc')][_0x19dc('0x12')](this[_0x19dc('0x10')]);}['destroy'](){this[_0x19dc('0x13')]['clear'](),this['keystrokes']['destroy'](),this[_0x19dc('0x3')][_0x19dc('0x1a')](),this['_mutationObserver'][_0x19dc('0xe')](),super[_0x19dc('0x1a')]();}['focus'](){this[_0x19dc('0x10')][_0x19dc('0x16')]();}[_0x19dc('0x1b')](){const _0x226c5b=this[_0x19dc('0x10')][_0x19dc('0x0')];_0x226c5b&&(this[_0x19dc('0xf')]=_0x226c5b);}}
@@ -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 _0x4656=['_targetTop','destroy','height','render','isAnimationDisabled','bottom','_mutationObserver','bind','element','setTemplate','clientHeight','attach','set','top','content','detach','updateHeight','div'];(function(_0x5afca8,_0x46569a){const _0x5d5b73=function(_0x428e7c){while(--_0x428e7c){_0x5afca8['push'](_0x5afca8['shift']());}};_0x5d5b73(++_0x46569a);}(_0x4656,0x1e2));const _0x5d5b=function(_0x5afca8,_0x46569a){_0x5afca8=_0x5afca8-0x0;let _0x5d5b73=_0x4656[_0x5afca8];return _0x5d5b73;};import{View as _0x137472}from'ckeditor5/src/ui';import{toUnit as _0x4737c1}from'ckeditor5/src/utils';import _0x397622 from'../../utils/createmutationobserver';const kt=_0x4737c1('px');export default class C extends _0x137472{constructor(_0x51f46a){super(_0x51f46a),this[_0x5d5b('0x10')](_0x5d5b('0x11')),this[_0x5d5b('0x10')](_0x5d5b('0x6'),0x0),this[_0x5d5b('0xb')](_0x5d5b('0x9'))['to'](this,_0x5d5b('0x11'),this,_0x5d5b('0x6'),(_0x31f5e8,_0x2cf667)=>(_0x31f5e8||0x0)+_0x2cf667),this[_0x5d5b('0x10')]('isAnimationDisabled',!0x1),this[_0x5d5b('0xa')]=_0x397622(()=>this[_0x5d5b('0x2')]()),this[_0x5d5b('0x4')]=null,this['content']=this['createCollection']();const _0x3a9f78=this['bindTemplate'];this[_0x5d5b('0xd')]({'tag':_0x5d5b('0x3'),'attributes':{'class':['ck-sidebar-item',_0x3a9f78['to'](_0x5d5b('0x8'),_0x476fd0=>_0x476fd0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3a9f78['to'](_0x5d5b('0x11'),kt)}},'children':this[_0x5d5b('0x0')]});}[_0x5d5b('0x7')](){super['render'](),this[_0x5d5b('0xa')][_0x5d5b('0xf')](this[_0x5d5b('0xc')]);}[_0x5d5b('0x2')](){const _0x4d4f8f=this[_0x5d5b('0xc')][_0x5d5b('0xe')];_0x4d4f8f&&(this[_0x5d5b('0x6')]=_0x4d4f8f);}[_0x5d5b('0x5')](){this[_0x5d5b('0x0')]['clear'](),this[_0x5d5b('0xa')][_0x5d5b('0x1')](),super['destroy']();}}
@@ -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 _0x406d=['class','div','minHeight','set','setTemplate','list','bindTemplate','createCollection','ck-sidebar'];(function(_0x5ad2b4,_0x406d79){const _0x56684e=function(_0x22eb5a){while(--_0x22eb5a){_0x5ad2b4['push'](_0x5ad2b4['shift']());}};_0x56684e(++_0x406d79);}(_0x406d,0x1e1));const _0x5668=function(_0x5ad2b4,_0x406d79){_0x5ad2b4=_0x5ad2b4-0x0;let _0x56684e=_0x406d[_0x5ad2b4];return _0x56684e;};import{View as _0x486540}from'ckeditor5/src/ui';import{toUnit as _0x4f8c38}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x4f8c38('px');export default class T extends _0x486540{constructor(_0x1cafff){super(_0x1cafff);const _0x4ec8ed=this[_0x5668('0x2')];this[_0x5668('0x8')](_0x5668('0x7'),0x0),this[_0x5668('0x8')](_0x5668('0x5'),''),this[_0x5668('0x1')]=this[_0x5668('0x3')](),this[_0x5668('0x0')]({'tag':_0x5668('0x6'),'attributes':{'class':['ck',_0x5668('0x4'),'ck-reset',_0x4ec8ed['to'](_0x5668('0x5'))],'style':{'minHeight':_0x4ec8ed['to'](_0x5668('0x7'),_0x31de81=>_0x31de81?kt(_0x31de81+0xa):null)}},'children':this[_0x5668('0x1')]});}}