@ckeditor/ckeditor5-comments 31.1.0 → 32.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/translations/bs.po +80 -0
  4. package/lang/translations/cs.po +1 -1
  5. package/lang/translations/da.po +1 -1
  6. package/lang/translations/de-ch.po +1 -1
  7. package/lang/translations/de.po +1 -1
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/en.po +1 -1
  10. package/lang/translations/es.po +1 -1
  11. package/lang/translations/et.po +1 -1
  12. package/lang/translations/fr.po +1 -1
  13. package/lang/translations/gl.po +1 -1
  14. package/lang/translations/hi.po +1 -1
  15. package/lang/translations/hr.po +1 -1
  16. package/lang/translations/hu.po +1 -1
  17. package/lang/translations/id.po +1 -1
  18. package/lang/translations/it.po +1 -1
  19. package/lang/translations/ja.po +1 -1
  20. package/lang/translations/ko.po +1 -1
  21. package/lang/translations/nl.po +1 -1
  22. package/lang/translations/no.po +1 -1
  23. package/lang/translations/pl.po +1 -1
  24. package/lang/translations/pt-br.po +1 -1
  25. package/lang/translations/ro.po +1 -1
  26. package/lang/translations/ru.po +1 -1
  27. package/lang/translations/sk.po +1 -1
  28. package/lang/translations/sr-latn.po +1 -1
  29. package/lang/translations/sr.po +1 -1
  30. package/lang/translations/tk.po +1 -1
  31. package/lang/translations/tr.po +1 -1
  32. package/lang/translations/ug.po +1 -1
  33. package/lang/translations/uk.po +1 -1
  34. package/lang/translations/zh-cn.po +1 -1
  35. package/lang/translations/zh.po +1 -1
  36. package/package.json +8 -8
  37. package/src/annotations/annotation.js +2 -2
  38. package/src/annotations/annotationcollection.js +2 -2
  39. package/src/annotations/annotations.js +2 -2
  40. package/src/annotations/annotationsuis.js +2 -2
  41. package/src/annotations/editorannotations.js +2 -2
  42. package/src/annotations/inlineannotations.js +2 -2
  43. package/src/annotations/narrowsidebar.js +2 -2
  44. package/src/annotations/sidebar.js +2 -2
  45. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  46. package/src/annotations/view/annotationview.js +2 -2
  47. package/src/annotations/view/sidebaritemview.js +2 -2
  48. package/src/annotations/view/sidebarview.js +2 -2
  49. package/src/annotations/widesidebar.js +2 -2
  50. package/src/comments/addcommentthreadcommand.js +2 -2
  51. package/src/comments/commentsediting.js +2 -2
  52. package/src/comments/commentsrepository.js +2 -2
  53. package/src/comments/commentsui.js +2 -2
  54. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  55. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  56. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  57. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  58. package/src/comments/ui/commentthreadcontroller.js +2 -2
  59. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  60. package/src/comments/ui/view/basecommentview.js +2 -2
  61. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  62. package/src/comments/ui/view/commentcontentview.js +2 -2
  63. package/src/comments/ui/view/commentinputview.js +2 -2
  64. package/src/comments/ui/view/commentslistview.js +2 -2
  65. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  66. package/src/comments/ui/view/commentthreadview.js +2 -2
  67. package/src/comments/ui/view/commentview.js +2 -2
  68. package/src/comments/ui/view/confirmmixin.js +2 -2
  69. package/src/comments/ui/view/confirmview.js +2 -2
  70. package/src/comments.js +2 -2
  71. package/src/commentsonly.js +2 -2
  72. package/src/utils/common-translations.js +2 -2
  73. package/src/utils/createmutationobserver.js +2 -2
  74. package/src/utils/getdatetimeformatter.js +2 -2
  75. package/src/utils/getmarkerdomelement.js +2 -2
  76. package/src/utils/trim-html.js +2 -2
  77. package/theme/annotation-inline.css +1 -1
  78. package/theme/annotation.css +1 -1
  79. package/theme/comment.css +1 -1
  80. package/theme/commentinput.css +1 -1
  81. package/theme/commentmarker.css +1 -1
  82. package/theme/commentthread.css +1 -1
  83. package/theme/icons/add-comment.svg +1 -1
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +1 -1
  87. package/theme/sidebar.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4267=['update','refreshSelectedViews','getByInnerView','get','selection','getRanges','document','set','from','model','editorannotations-invalid-source-callback','innerView','pluginName','getOrderedSelectedAnnotations','editor','containsRange','remove','has','requires','fire','uiUpdate','focusTracker','editing','blur','function','isReadOnly','plugins','range','view','annotation','listenTo','_dataCollectors','refresh','_editorAnnotationsData','element','sort','keys','cancel','change:isFocused','EditorAnnotations','collection','map','delete','add'];(function(_0x537b90,_0x426768){const _0x201a66=function(_0x26e1c9){while(--_0x26e1c9){_0x537b90['push'](_0x537b90['shift']());}};_0x201a66(++_0x426768);}(_0x4267,0x1c3));const _0x201a=function(_0x537b90,_0x426768){_0x537b90=_0x537b90-0x0;let _0x201a66=_0x4267[_0x537b90];return _0x201a66;};import{Plugin as _0x29bbb1}from'ckeditor5/src/core';import{CKEditorError as _0x3ec096}from'ckeditor5/src/utils';import{debounce as _0x4716ac}from'lodash-es';import _0x4f0195 from'./annotations';export default class k extends _0x29bbb1{static get[_0x201a('0x7')](){return[_0x4f0195];}static get[_0x201a('0x1')](){return _0x201a('0x1c');}constructor(_0x56c968){super(_0x56c968),this[_0x201a('0x14')]=new Set();}['init'](){const _0x41673a=this[_0x201a('0x3')],_0x1acf86=_0x41673a[_0x201a('0xf')][_0x201a('0x24')](_0x4f0195),_0xb130ae=_0x41673a[_0x201a('0x2a')]['document'][_0x201a('0x25')],_0x111284=_0x4716ac(()=>this[_0x201a('0x22')](),0xa);_0xb130ae['on']('change:range',(_0xbae7c4,_0x108680)=>{_0x108680['directChange']&&(_0x111284[_0x201a('0x1a')](),this[_0x201a('0x22')]());}),this[_0x201a('0x13')](_0x41673a[_0x201a('0xb')][_0x201a('0x11')][_0x201a('0x27')],_0x201a('0x1b'),(_0x42b24e,_0x25f82e,_0x19c5d6)=>{_0x19c5d6&&_0x111284();}),this[_0x201a('0x13')](_0x41673a['ui']['focusTracker'],'change:isFocused',(_0x50b36c,_0x56ade5,_0x39997c)=>{_0x39997c||_0x41673a[_0x201a('0xe')]||this[_0x201a('0x8')](_0x201a('0xc'),{'isAnnotationTracked':_0x3d3dd8=>this[_0x201a('0x16')][_0x201a('0x6')](_0x3d3dd8[_0x201a('0x0')])});}),this[_0x201a('0x13')](this[_0x201a('0x3')]['ui'],_0x201a('0x21'),()=>this[_0x201a('0x8')](_0x201a('0x9')));const _0x512a60=new Set();this['listenTo'](_0x1acf86[_0x201a('0x1d')],_0x201a('0x20'),(_0x4b18f5,_0xd908a3)=>{for(const _0x2a91e9 of this[_0x201a('0x16')][_0x201a('0x19')]())if(_0x2a91e9===_0xd908a3[_0x201a('0x0')]){_0x41673a['ui']['focusTracker'][_0x201a('0x20')](_0xd908a3[_0x201a('0x11')][_0x201a('0x17')]),_0x512a60[_0x201a('0x20')](_0xd908a3[_0x201a('0x11')]);break;}}),this[_0x201a('0x13')](_0x1acf86[_0x201a('0x1d')],_0x201a('0x5'),(_0x547c41,_0x2bbeed)=>{_0x512a60[_0x201a('0x6')](_0x2bbeed[_0x201a('0x11')])&&(_0x41673a['ui'][_0x201a('0xa')][_0x201a('0x5')](_0x2bbeed[_0x201a('0x11')][_0x201a('0x17')]),_0x512a60[_0x201a('0x1f')](_0x2bbeed[_0x201a('0x11')]));});}['hasDomSelection'](){return this['editor'][_0x201a('0xb')][_0x201a('0x11')]['hasDomSelection'];}['addSourceCollector'](_0x469e2c){if(_0x201a('0xd')!=typeof _0x469e2c)throw new _0x3ec096(_0x201a('0x2b'));this[_0x201a('0x14')][_0x201a('0x20')](_0x469e2c);}[_0x201a('0x22')](){this[_0x201a('0x8')](_0x201a('0x15'));}[_0x201a('0x2')]({activeAnnotation:_0x1049a7,annotations:_0x4fa0ab}){const _0xeede43=[],_0x2b2c2e=this[_0x201a('0x3')][_0x201a('0x2a')]['document'][_0x201a('0x25')],_0xeb42a9=Array[_0x201a('0x29')](_0x2b2c2e[_0x201a('0x26')]());for(const [_0x40b019,_0x3936e7]of this[_0x201a('0x16')]){const _0x5299c0=_0xd97ed1(_0x3936e7),_0x5ca381=_0x4fa0ab[_0x201a('0x23')](_0x40b019);_0x5299c0&&_0x5ca381&&_0xeede43['push']({'annotation':_0x5ca381,'range':_0x5299c0});}function _0xd97ed1(_0x51d286){for(const _0x23e8d9 of _0x51d286)for(const _0x23a1ad of _0xeb42a9)if(_0x23e8d9[_0x201a('0x4')](_0x23a1ad,!_0x2b2c2e['isCollapsed']))return _0x23e8d9;return null;}return _0xeede43[_0x201a('0x18')]((_0x49fe50,_0x3de9b4)=>{const _0xe17c61=_0x49fe50['range'],_0x3ab843=_0x3de9b4[_0x201a('0x10')];if(!_0xe17c61['isEqual'](_0x3ab843)){if(_0xe17c61['containsRange'](_0x3ab843,!0x0))return 0x1;if(_0x3ab843[_0x201a('0x4')](_0xe17c61,!0x0))return-0x1;}return _0x49fe50[_0x201a('0x12')]==_0x1049a7?-0x1:_0x3de9b4[_0x201a('0x12')]==_0x1049a7?0x1:0x0;})[_0x201a('0x1e')](_0x311f94=>_0x311f94[_0x201a('0x12')]);}get['_editorAnnotationsData'](){const _0x19ed7d=new Map();for(const _0x89eb9a of Array['from'](this[_0x201a('0x14')]))for(const [_0x1c17c1,_0x1d09b8]of _0x89eb9a())_0x19ed7d[_0x201a('0x28')](_0x1c17c1,_0x1d09b8);return _0x19ed7d;}}
23
+ const _0x7eca=['change:isFocused','view','getRanges','editor','selection','focusTracker','change:range','document','fire','add','innerView','from','uiUpdate','EditorAnnotations','element','isEqual','sort','getOrderedSelectedAnnotations','requires','plugins','blur','model','addSourceCollector','delete','set','map','isReadOnly','editing','annotation','_dataCollectors','_editorAnnotationsData','containsRange','editorannotations-invalid-source-callback','get','cancel','has','hasDomSelection','pluginName','update','range','listenTo','refreshSelectedViews','remove'];(function(_0x57e516,_0x7ecae0){const _0x11f7ff=function(_0x5202c9){while(--_0x5202c9){_0x57e516['push'](_0x57e516['shift']());}};_0x11f7ff(++_0x7ecae0);}(_0x7eca,0x7b));const _0x11f7=function(_0x57e516,_0x7ecae0){_0x57e516=_0x57e516-0x0;let _0x11f7ff=_0x7eca[_0x57e516];return _0x11f7ff;};import{Plugin as _0x5a9420}from'ckeditor5/src/core';import{CKEditorError as _0x334e9a}from'ckeditor5/src/utils';import{debounce as _0x5b42b1}from'lodash-es';import _0x2a978f from'./annotations';export default class k extends _0x5a9420{static get[_0x11f7('0x18')](){return[_0x2a978f];}static get[_0x11f7('0x0')](){return _0x11f7('0x13');}constructor(_0x52ee70){super(_0x52ee70),this[_0x11f7('0x23')]=new Set();}['init'](){const _0x16da2e=this['editor'],_0x292e1e=_0x16da2e[_0x11f7('0x19')][_0x11f7('0x27')](_0x2a978f),_0x4b7472=_0x16da2e[_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x2f5237=_0x5b42b1(()=>this[_0x11f7('0x4')](),0xa);_0x4b7472['on'](_0x11f7('0xc'),(_0x1e0430,_0x2ce74d)=>{_0x2ce74d['directChange']&&(_0x2f5237[_0x11f7('0x28')](),this[_0x11f7('0x4')]());}),this[_0x11f7('0x3')](_0x16da2e[_0x11f7('0x21')][_0x11f7('0x7')][_0x11f7('0xd')],_0x11f7('0x6'),(_0x41481f,_0x49e47e,_0x56917c)=>{_0x56917c&&_0x2f5237();}),this[_0x11f7('0x3')](_0x16da2e['ui'][_0x11f7('0xb')],_0x11f7('0x6'),(_0x26c2f6,_0x13ec77,_0x3dc960)=>{_0x3dc960||_0x16da2e[_0x11f7('0x20')]||this[_0x11f7('0xe')](_0x11f7('0x1a'),{'isAnnotationTracked':_0x3ec2dd=>this['_editorAnnotationsData'][_0x11f7('0x29')](_0x3ec2dd[_0x11f7('0x10')])});}),this[_0x11f7('0x3')](this[_0x11f7('0x9')]['ui'],_0x11f7('0x1'),()=>this[_0x11f7('0xe')](_0x11f7('0x12')));const _0x3fe0b4=new Set();this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0xf'),(_0xa7b415,_0x43f5a5)=>{for(const _0x5613bf of this['_editorAnnotationsData']['keys']())if(_0x5613bf===_0x43f5a5[_0x11f7('0x10')]){_0x16da2e['ui'][_0x11f7('0xb')]['add'](_0x43f5a5['view'][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0xf')](_0x43f5a5['view']);break;}}),this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0x5'),(_0x413679,_0x43d9b1)=>{_0x3fe0b4[_0x11f7('0x29')](_0x43d9b1[_0x11f7('0x7')])&&(_0x16da2e['ui'][_0x11f7('0xb')][_0x11f7('0x5')](_0x43d9b1[_0x11f7('0x7')][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0x1d')](_0x43d9b1[_0x11f7('0x7')]));});}[_0x11f7('0x2a')](){return this['editor']['editing'][_0x11f7('0x7')][_0x11f7('0x2a')];}[_0x11f7('0x1c')](_0x2ae256){if('function'!=typeof _0x2ae256)throw new _0x334e9a(_0x11f7('0x26'));this['_dataCollectors'][_0x11f7('0xf')](_0x2ae256);}[_0x11f7('0x4')](){this['fire']('refresh');}[_0x11f7('0x17')]({activeAnnotation:_0x34671a,annotations:_0x5b3322}){const _0x335dc3=[],_0x568486=this['editor'][_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x16ea55=Array[_0x11f7('0x11')](_0x568486[_0x11f7('0x8')]());for(const [_0x5266c0,_0x189d4d]of this[_0x11f7('0x24')]){const _0x499b37=_0x491c50(_0x189d4d),_0x5b6a7d=_0x5b3322['getByInnerView'](_0x5266c0);_0x499b37&&_0x5b6a7d&&_0x335dc3['push']({'annotation':_0x5b6a7d,'range':_0x499b37});}function _0x491c50(_0x369dae){for(const _0x498b77 of _0x369dae)for(const _0x5017f0 of _0x16ea55)if(_0x498b77['containsRange'](_0x5017f0,!_0x568486['isCollapsed']))return _0x498b77;return null;}return _0x335dc3[_0x11f7('0x16')]((_0x4b75d8,_0x5a3a17)=>{const _0x20413e=_0x4b75d8['range'],_0x1f5e3d=_0x5a3a17[_0x11f7('0x2')];if(!_0x20413e[_0x11f7('0x15')](_0x1f5e3d)){if(_0x20413e[_0x11f7('0x25')](_0x1f5e3d,!0x0))return 0x1;if(_0x1f5e3d[_0x11f7('0x25')](_0x20413e,!0x0))return-0x1;}return _0x4b75d8[_0x11f7('0x22')]==_0x34671a?-0x1:_0x5a3a17['annotation']==_0x34671a?0x1:0x0;})[_0x11f7('0x1f')](_0x405581=>_0x405581[_0x11f7('0x22')]);}get[_0x11f7('0x24')](){const _0x26a1f5=new Map();for(const _0x32a72c of Array['from'](this[_0x11f7('0x23')]))for(const [_0x2efc1f,_0xbda767]of _0x32a72c())_0x26a1f5[_0x11f7('0x1e')](_0x2efc1f,_0xbda767);return _0x26a1f5;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6971=['inlineannotations-detach-not-attached','inlineannotations-attach-already-attached','_balloon','update','showStack','focusTracker','destroy','editor','selection','_annotations','change:isFocused','hasView','isAttached','pluginName','_addAnnotationToBalloon','context','change:visibleView','includes','_setSelectedAnnotations','register','editing','inlineannotations-not-allowed-with-context','clear','visibleView','_selectedAnnotations','activeAnnotation','remove','has','requires','delete','editableElement','get','attach','hasActive','refresh','_addedAnnotations','setActiveAnnotation','plugins','switchTo','change:height','_removeAnnotationFromBalloon','updatePosition','getRangeAt','EditorAnnotations','blur','isActive','getByView','getSelection','addObserver','add','listenTo','focus','isFocused','stopListening','afterInit','_manuallyClosed','bind','document','set','view'];(function(_0x341b40,_0x6971ac){const _0x1cedc2=function(_0x5e0ce6){while(--_0x5e0ce6){_0x341b40['push'](_0x341b40['shift']());}};_0x1cedc2(++_0x6971ac);}(_0x6971,0x13f));const _0x1ced=function(_0x341b40,_0x6971ac){_0x341b40=_0x341b40-0x0;let _0x1cedc2=_0x6971[_0x341b40];return _0x1cedc2;};import{Plugin as _0x769ac7}from'ckeditor5/src/core';import _0x4c6d28 from'./annotationsuis';import _0x5eb499 from'./editorannotations';import{ContextualBalloon as _0x2b5d4a}from'ckeditor5/src/ui';import{MouseObserver as _0x593b5f}from'ckeditor5/src/engine';import{CKEditorError as _0x52b33b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x769ac7{static get[_0x1ced('0x9')](){return[_0x5eb499,_0x2b5d4a,_0x4c6d28];}static get[_0x1ced('0x36')](){return'InlineAnnotations';}constructor(_0x5e6d6c){super(_0x5e6d6c),_0x5e6d6c[_0x1ced('0x1')][_0x1ced('0x28')][_0x1ced('0x1d')](_0x593b5f),this[_0x1ced('0x35')]=!0x1,this[_0x1ced('0x27')]('activeAnnotation',null),this[_0x1ced('0x32')]=null,this[_0x1ced('0x24')]=new Set(),this['_balloon']=_0x5e6d6c[_0x1ced('0x12')]['get'](_0x2b5d4a),this[_0x1ced('0x10')]=new Set(),this[_0x1ced('0x5')]=[];}['init'](){const _0x52a234=this[_0x1ced('0x30')][_0x1ced('0x12')][_0x1ced('0xc')](_0x4c6d28);_0x52a234[_0x1ced('0x38')]===this[_0x1ced('0x30')]&&(_0x52a234[_0x1ced('0x0')]('inline',this),this[_0x1ced('0x30')]['keystrokes']['set']('Esc',(_0x1575cc,_0x49503)=>{const _0x166ac9=this['_balloon'];if(this[_0x1ced('0x35')]&&_0x166ac9['visibleView']){const _0x792ea3=this[_0x1ced('0x32')][_0x1ced('0x1b')](_0x166ac9[_0x1ced('0x4')]);this[_0x1ced('0x24')][_0x1ced('0x1e')](_0x792ea3),this[_0x1ced('0x15')](_0x792ea3),_0x49503();}}));}[_0x1ced('0x23')](){const _0x586f99=this[_0x1ced('0x30')][_0x1ced('0x12')][_0x1ced('0xc')](_0x4c6d28);_0x586f99[_0x1ced('0x38')]===this[_0x1ced('0x30')]&&(_0x586f99[_0x1ced('0xe')]()||_0x586f99[_0x1ced('0x13')]('inline'));}[_0x1ced('0x11')](_0x42dae2){_0x42dae2!==this[_0x1ced('0x6')]&&(this[_0x1ced('0x6')]&&(this['activeAnnotation'][_0x1ced('0x1a')]=!0x1),_0x42dae2&&this['editor']['ui'][_0x1ced('0x2e')][_0x1ced('0x21')]&&(this[_0x1ced('0x37')](_0x42dae2,!0x0),_0x42dae2[_0x1ced('0x1a')]=!0x0),_0x42dae2||this[_0x1ced('0x3b')]([]),this[_0x1ced('0x6')]=_0x42dae2);}[_0x1ced('0xd')](_0x359d0c){this[_0x1ced('0x32')]=_0x359d0c;const _0x483fa6=this[_0x1ced('0x30')]['plugins'][_0x1ced('0xc')](_0x4c6d28),_0x1b8c6f=this[_0x1ced('0x2b')];if(this[_0x1ced('0x35')])throw new _0x52b33b(_0x1ced('0x2a'),this);if(_0x483fa6[_0x1ced('0x38')]!==this[_0x1ced('0x30')])throw new _0x52b33b(_0x1ced('0x2'),this);const _0x50ea9e=this['editor'][_0x1ced('0x12')][_0x1ced('0xc')](_0x1ced('0x18'));this[_0x1ced('0x1f')](_0x50ea9e,_0x1ced('0xf'),function(){const _0x17b72e=_0x50ea9e['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x1ced('0x6')],'annotations':this[_0x1ced('0x32')]});this[_0x1ced('0x3b')](_0x17b72e),this[_0x1ced('0x11')](_0x17b72e[0x0]||null);}[_0x1ced('0x25')](this)),this[_0x1ced('0x1f')](_0x50ea9e,_0x1ced('0x19'),(_0x3ca7b6,{isAnnotationTracked:_0x327eee})=>{this['activeAnnotation']&&_0x327eee(this[_0x1ced('0x6')])&&(this[_0x1ced('0x3b')]([]),this['setActiveAnnotation'](null));}),this[_0x1ced('0x1f')](this['editor']['ui'][_0x1ced('0x2e')],_0x1ced('0x33'),(_0x4e4b89,_0x2d0bce,_0x1b879d)=>{_0x1b879d||this[_0x1ced('0x11')](null);}),this[_0x1ced('0x1f')](_0x359d0c,_0x1ced('0x7'),(_0x7aeae0,_0x588c96)=>{this[_0x1ced('0x15')](_0x588c96),_0x588c96===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x1ced('0x1f')](_0x1b8c6f,_0x1ced('0x39'),(_0xc63c8e,_0x50cbb9,_0x1af3ef,_0x2f4d0d)=>{if(_0x2f4d0d&&this[_0x1ced('0x22')](_0x2f4d0d),!_0x1af3ef||!_0x359d0c['getByView'](_0x1af3ef))return;const _0x1bada5=_0x359d0c[_0x1ced('0x1b')](_0x1af3ef);this[_0x1ced('0x1f')](_0x1af3ef,_0x1ced('0x14'),()=>{_0x1b8c6f[_0x1ced('0x16')]();}),this[_0x1ced('0x1f')](_0x1af3ef,'Esc',()=>{this['_manuallyClosed'][_0x1ced('0x1e')](_0x1bada5),this['_removeAnnotationFromBalloon'](_0x1bada5),this[_0x1ced('0x30')]['editing']['view'][_0x1ced('0x20')]();}),this[_0x1ced('0x6')]!==_0x1bada5&&this['setActiveAnnotation'](_0x1bada5);}),this['listenTo'](this[_0x1ced('0x30')]['ui'],_0x1ced('0x2c'),()=>{_0x1b8c6f[_0x1ced('0x4')]&&(_0x359d0c[_0x1ced('0x1b')](_0x1b8c6f[_0x1ced('0x4')])&&_0x1b8c6f[_0x1ced('0x16')]());}),this[_0x1ced('0x1f')](this[_0x1ced('0x30')][_0x1ced('0x1')][_0x1ced('0x28')][_0x1ced('0x26')],'mousedown',()=>{this[_0x1ced('0x24')][_0x1ced('0x3')]();}),this[_0x1ced('0x30')]['editing'][_0x1ced('0x28')]['document'][_0x1ced('0x31')][_0x1ced('0xb')]&&this['editor'][_0x1ced('0x1')]['view'][_0x1ced('0x20')](),this[_0x1ced('0x35')]=!0x0;}['detach'](){if(!this[_0x1ced('0x35')])throw new _0x52b33b(_0x1ced('0x29'),this);this[_0x1ced('0x11')](null);for(const _0x29e2c0 of this['_addedAnnotations'])this[_0x1ced('0x15')](_0x29e2c0);this['stopListening'](),this[_0x1ced('0x35')]=!0x1;}[_0x1ced('0x2f')](){this[_0x1ced('0x35')]&&this['detach']();}[_0x1ced('0x3b')](_0x4816cb){const _0x2cfe5c=this[_0x1ced('0x5')];for(const _0x1f3d52 of _0x2cfe5c)_0x4816cb[_0x1ced('0x3a')](_0x1f3d52)||this[_0x1ced('0x24')][_0x1ced('0xa')](_0x1f3d52);for(const _0xe3620 of this[_0x1ced('0x32')])_0x4816cb['includes'](_0xe3620)||this[_0x1ced('0x15')](_0xe3620);if(this['editor']['ui']['focusTracker'][_0x1ced('0x21')])for(const _0x1db07e of _0x4816cb)this['_addAnnotationToBalloon'](_0x1db07e);this[_0x1ced('0x5')]=_0x4816cb;}['_addAnnotationToBalloon'](_0x37e021,_0x2c0d09){this[_0x1ced('0x24')][_0x1ced('0x8')](_0x37e021)||(this[_0x1ced('0x10')]['has'](_0x37e021)||this[_0x1ced('0x2b')][_0x1ced('0x34')](_0x37e021[_0x1ced('0x28')])||(this[_0x1ced('0x10')]['add'](_0x37e021),this['_balloon']['add']({'stackId':_0x37e021[_0x1ced('0x28')]['id'],'view':_0x37e021[_0x1ced('0x28')],'position':{'target':()=>_0x37e021['target']||_0x37e021['targetRect']||document[_0x1ced('0x1c')]()[_0x1ced('0x17')](0x0)}})),_0x2c0d09&&this[_0x1ced('0x2b')][_0x1ced('0x2d')](_0x37e021[_0x1ced('0x28')]['id']));}['_removeAnnotationFromBalloon'](_0xab5c3e){this['_addedAnnotations'][_0x1ced('0x8')](_0xab5c3e)&&this[_0x1ced('0x2b')][_0x1ced('0x34')](_0xab5c3e[_0x1ced('0x28')])&&(this[_0x1ced('0x10')][_0x1ced('0xa')](_0xab5c3e),this['_balloon'][_0x1ced('0x7')](_0xab5c3e['view']));}}
23
+ const _0x49a0=['add','plugins','getByView','_manuallyClosed','get','setActiveAnnotation','inlineannotations-not-allowed-with-context','_addedAnnotations','activeAnnotation','stopListening','hasView','change:visibleView','set','targetRect','listenTo','_removeAnnotationFromBalloon','blur','isAttached','hasActive','mousedown','focus','_annotations','editing','visibleView','inline','bind','context','focusTracker','refresh','attach','showStack','has','includes','EditorAnnotations','editor','_selectedAnnotations','remove','requires','Esc','InlineAnnotations','document','inlineannotations-detach-not-attached','keystrokes','change:isFocused','delete','detach','editableElement','init','_addAnnotationToBalloon','register','isActive','isFocused','switchTo','view','_setSelectedAnnotations','_balloon','afterInit','clear','destroy','updatePosition'];(function(_0xfcc72,_0x49a0c6){const _0x4fc040=function(_0x2ec178){while(--_0x2ec178){_0xfcc72['push'](_0xfcc72['shift']());}};_0x4fc040(++_0x49a0c6);}(_0x49a0,0x68));const _0x4fc0=function(_0xfcc72,_0x49a0c6){_0xfcc72=_0xfcc72-0x0;let _0x4fc040=_0x49a0[_0xfcc72];return _0x4fc040;};import{Plugin as _0x387b2a}from'ckeditor5/src/core';import _0x3d314a from'./annotationsuis';import _0x144cb7 from'./editorannotations';import{ContextualBalloon as _0x4c6882}from'ckeditor5/src/ui';import{MouseObserver as _0x378e8d}from'ckeditor5/src/engine';import{CKEditorError as _0x5d95e0}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x387b2a{static get[_0x4fc0('0x35')](){return[_0x144cb7,_0x4c6882,_0x3d314a];}static get['pluginName'](){return _0x4fc0('0x37');}constructor(_0x3ad8a7){super(_0x3ad8a7),_0x3ad8a7['editing']['view']['addObserver'](_0x378e8d),this['isAttached']=!0x1,this[_0x4fc0('0x1c')](_0x4fc0('0x18'),null),this[_0x4fc0('0x25')]=null,this[_0x4fc0('0x13')]=new Set(),this[_0x4fc0('0xb')]=_0x3ad8a7[_0x4fc0('0x11')][_0x4fc0('0x14')](_0x4c6882),this['_addedAnnotations']=new Set(),this[_0x4fc0('0x33')]=[];}[_0x4fc0('0x3')](){const _0xce2646=this[_0x4fc0('0x32')][_0x4fc0('0x11')]['get'](_0x3d314a);_0xce2646['context']===this['editor']&&(_0xce2646[_0x4fc0('0x5')](_0x4fc0('0x28'),this),this[_0x4fc0('0x32')][_0x4fc0('0x3a')][_0x4fc0('0x1c')]('Esc',(_0x13182f,_0x818708)=>{const _0x375665=this[_0x4fc0('0xb')];if(this[_0x4fc0('0x21')]&&_0x375665['visibleView']){const _0x267caf=this['_annotations'][_0x4fc0('0x12')](_0x375665[_0x4fc0('0x27')]);this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x267caf),this[_0x4fc0('0x1f')](_0x267caf),_0x818708();}}));}[_0x4fc0('0xc')](){const _0x328ba0=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a);_0x328ba0['context']===this[_0x4fc0('0x32')]&&(_0x328ba0[_0x4fc0('0x22')]()||_0x328ba0[_0x4fc0('0x8')](_0x4fc0('0x28')));}[_0x4fc0('0x15')](_0x1a5782){_0x1a5782!==this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')][_0x4fc0('0x6')]=!0x1),_0x1a5782&&this[_0x4fc0('0x32')]['ui']['focusTracker'][_0x4fc0('0x7')]&&(this[_0x4fc0('0x4')](_0x1a5782,!0x0),_0x1a5782['isActive']=!0x0),_0x1a5782||this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x18')]=_0x1a5782);}[_0x4fc0('0x2d')](_0x9a7996){this[_0x4fc0('0x25')]=_0x9a7996;const _0x5b7a99=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a),_0x310253=this[_0x4fc0('0xb')];if(this['isAttached'])throw new _0x5d95e0('inlineannotations-attach-already-attached',this);if(_0x5b7a99[_0x4fc0('0x2a')]!==this[_0x4fc0('0x32')])throw new _0x5d95e0(_0x4fc0('0x16'),this);const _0x2e4aea=this[_0x4fc0('0x32')]['plugins'][_0x4fc0('0x14')](_0x4fc0('0x31'));this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x2c'),function(){const _0x2fc8d5=_0x2e4aea['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x4fc0('0x18')],'annotations':this[_0x4fc0('0x25')]});this[_0x4fc0('0xa')](_0x2fc8d5),this[_0x4fc0('0x15')](_0x2fc8d5[0x0]||null);}[_0x4fc0('0x29')](this)),this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x20'),(_0x2b9d1d,{isAnnotationTracked:_0x10c8c1})=>{this[_0x4fc0('0x18')]&&_0x10c8c1(this[_0x4fc0('0x18')])&&(this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x15')](null));}),this[_0x4fc0('0x1e')](this[_0x4fc0('0x32')]['ui']['focusTracker'],_0x4fc0('0x3b'),(_0x438eb7,_0x22c2d1,_0x465971)=>{_0x465971||this['setActiveAnnotation'](null);}),this[_0x4fc0('0x1e')](_0x9a7996,_0x4fc0('0x34'),(_0x1b74a0,_0x107d4e)=>{this[_0x4fc0('0x1f')](_0x107d4e),_0x107d4e===this[_0x4fc0('0x18')]&&this[_0x4fc0('0x15')](null);}),this[_0x4fc0('0x1e')](_0x310253,_0x4fc0('0x1b'),(_0xeb4b35,_0x410731,_0x5891a3,_0x26428b)=>{if(_0x26428b&&this[_0x4fc0('0x19')](_0x26428b),!_0x5891a3||!_0x9a7996['getByView'](_0x5891a3))return;const _0x46e68c=_0x9a7996[_0x4fc0('0x12')](_0x5891a3);this[_0x4fc0('0x1e')](_0x5891a3,'change:height',()=>{_0x310253[_0x4fc0('0xf')]();}),this[_0x4fc0('0x1e')](_0x5891a3,_0x4fc0('0x36'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x46e68c),this[_0x4fc0('0x1f')](_0x46e68c),this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x24')]();}),this['activeAnnotation']!==_0x46e68c&&this['setActiveAnnotation'](_0x46e68c);}),this[_0x4fc0('0x1e')](this['editor']['ui'],'update',()=>{_0x310253[_0x4fc0('0x27')]&&(_0x9a7996[_0x4fc0('0x12')](_0x310253['visibleView'])&&_0x310253[_0x4fc0('0xf')]());}),this['listenTo'](this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x38')],_0x4fc0('0x23'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0xd')]();}),this[_0x4fc0('0x32')]['editing'][_0x4fc0('0x9')]['document']['selection'][_0x4fc0('0x2')]&&this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x4fc0('0x1')](){if(!this[_0x4fc0('0x21')])throw new _0x5d95e0(_0x4fc0('0x39'),this);this[_0x4fc0('0x15')](null);for(const _0x2aa29b of this[_0x4fc0('0x17')])this['_removeAnnotationFromBalloon'](_0x2aa29b);this[_0x4fc0('0x19')](),this['isAttached']=!0x1;}[_0x4fc0('0xe')](){this[_0x4fc0('0x21')]&&this[_0x4fc0('0x1')]();}[_0x4fc0('0xa')](_0x3081e7){const _0x3e305b=this['_selectedAnnotations'];for(const _0x3700f4 of _0x3e305b)_0x3081e7[_0x4fc0('0x30')](_0x3700f4)||this['_manuallyClosed'][_0x4fc0('0x0')](_0x3700f4);for(const _0x222052 of this[_0x4fc0('0x25')])_0x3081e7[_0x4fc0('0x30')](_0x222052)||this[_0x4fc0('0x1f')](_0x222052);if(this[_0x4fc0('0x32')]['ui'][_0x4fc0('0x2b')][_0x4fc0('0x7')])for(const _0x27195e of _0x3081e7)this[_0x4fc0('0x4')](_0x27195e);this[_0x4fc0('0x33')]=_0x3081e7;}[_0x4fc0('0x4')](_0x4529cb,_0x1e47c6){this[_0x4fc0('0x13')][_0x4fc0('0x2f')](_0x4529cb)||(this['_addedAnnotations'][_0x4fc0('0x2f')](_0x4529cb)||this['_balloon'][_0x4fc0('0x1a')](_0x4529cb[_0x4fc0('0x9')])||(this[_0x4fc0('0x17')][_0x4fc0('0x10')](_0x4529cb),this[_0x4fc0('0xb')][_0x4fc0('0x10')]({'stackId':_0x4529cb[_0x4fc0('0x9')]['id'],'view':_0x4529cb[_0x4fc0('0x9')],'position':{'target':()=>_0x4529cb['target']||_0x4529cb[_0x4fc0('0x1d')]||document['getSelection']()['getRangeAt'](0x0)}})),_0x1e47c6&&this[_0x4fc0('0xb')][_0x4fc0('0x2e')](_0x4529cb['view']['id']));}[_0x4fc0('0x1f')](_0x1e1bb1){this[_0x4fc0('0x17')][_0x4fc0('0x2f')](_0x1e1bb1)&&this[_0x4fc0('0xb')][_0x4fc0('0x1a')](_0x1e1bb1[_0x4fc0('0x9')])&&(this[_0x4fc0('0x17')][_0x4fc0('0x0')](_0x1e1bb1),this[_0x4fc0('0xb')][_0x4fc0('0x34')](_0x1e1bb1[_0x4fc0('0x9')]));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4776=['preventClosingBalloon','element','_throttledRefreshPositioning','_attachListeners','narrowsidebar-detach-not-attached','remove','delete','detachFromDom','EditorAnnotations','_setSelectedAnnotations','hasDomSelection','values','annotationType','_showBalloon','editors','northArrowSouthEast','_hideBalloon','context','contains','_refreshPositioning','change:height','locale','plugins','stop','target','unpin','bodyCollection','activeAnnotation','addAnnotation','attach','mousedown','has','_detachListeners','northArrowSouthWest','bind','create','add','southArrowNorthEast','narrowsidebar-attach-already-attached','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','first','number','_selectedAnnotations','ck-sidebar--narrow','balloonPanelView','_updateBalloonPosition','type','off','refresh','stopListening','esc','change:container','pluginName','isAttached','length','high','ready','view','resize','NarrowSidebar','defaultPositions','getSidebarItemView','requires','Sidebar','preventDefault','focus','removeEventListener','setActiveAnnotation','northArrowSouth','detach','pin','keyCode','addEventListener','isVisible','blur','listenTo','_annotationToNarrowView','rearrange','stopPropagation','register','from','_attachToContainer','_manuallyClosedAnnotationViews','narrowSidebar','includes','destroy','isDirty','get','southArrowNorth','clear','_detachFromContainer','set','content','_domEmitter','Esc','_annotations','keydown','getOrderedSelectedAnnotations','_editorAnnotations','getByView'];(function(_0x537968,_0x4776e6){const _0x26dea4=function(_0x367e3e){while(--_0x367e3e){_0x537968['push'](_0x537968['shift']());}};_0x26dea4(++_0x4776e6);}(_0x4776,0x1c2));const _0x26de=function(_0x537968,_0x4776e6){_0x537968=_0x537968-0x0;let _0x26dea4=_0x4776[_0x537968];return _0x26dea4;};import{ContextPlugin as _0x5559f1}from'ckeditor5/src/core';import _0x166068 from'./annotationsuis';import _0x9ead6d from'./sidebar';import _0xd7441f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x316fa6,BodyCollection as _0x15eca9}from'ckeditor5/src/ui';import{CKEditorError as _0x16975d,DomEmitterMixin as _0x5377c2,keyCodes as _0x51b316,Collection as _0x54159c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x43d226}from'lodash-es';export default class s extends _0x5559f1{static get[_0x26de('0x11')](){return[_0x9ead6d,_0x166068];}static get[_0x26de('0x7')](){return _0x26de('0xe');}constructor(_0x4fe69f){super(_0x4fe69f),this[_0x26de('0x8')]=!0x1,this[_0x26de('0x25')]=new Set(),this[_0x26de('0x30')]=Object[_0x26de('0x5a')](_0x5377c2),this['_annotationToNarrowView']=new Map(),this[_0x26de('0x2e')]('activeAnnotation',null),this[_0x26de('0x32')]=null,this[_0x26de('0x62')]=[],this[_0x26de('0x35')]=new _0x54159c(),this[_0x26de('0x39')]=_0x43d226(()=>{this[_0x26de('0x4a')]();},0x190,{'leading':!0x1});}['init'](){this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x166068)[_0x26de('0x22')](_0x26de('0x26'),this),this[_0x26de('0x51')]=new _0x15eca9(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x64')]=new _0x316fa6(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x51')]['attachToDom'](),this[_0x26de('0x51')][_0x26de('0x5b')](this[_0x26de('0x64')]);}['attach'](_0x3d9f83){this[_0x26de('0x32')]=_0x3d9f83;const _0x509234=this[_0x26de('0x48')]['plugins'][_0x26de('0x2a')](_0x9ead6d),_0x70e693=this[_0x26de('0x64')];if(_0x509234[_0x26de('0x32')]=_0x3d9f83,this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x5d'),this);this[_0x26de('0x8')]=!0x0,this[_0x26de('0x1e')](_0x509234,'set:container',()=>{this[_0x26de('0x18')](),this[_0x26de('0x1e')](_0x509234,_0x26de('0x6'),_0x50b07d=>{_0x50b07d[_0x26de('0x2')](),this[_0x26de('0x54')](_0x3d9f83);});}),_0x509234[_0x26de('0x24')]({'viewClass':_0x26de('0x63'),'spaceBetweenItems':0x5});const _0x59c877=_0x3be6c0=>{const _0x19f217=new _0xd7441f(this[_0x26de('0x48')][_0x26de('0x4c')]);_0x509234[_0x26de('0x53')](_0x3be6c0,_0x19f217),this[_0x26de('0x1f')]['set'](_0x3be6c0,_0x19f217),_0x19f217[_0x26de('0x59')](_0x26de('0x29'),_0x26de('0x43'),_0x26de('0x61'))['to'](_0x3be6c0[_0x26de('0xc')],_0x26de('0x29'),_0x26de('0x1'),_0x26de('0x9')),_0x19f217['on']('execute',()=>{this[_0x26de('0x25')][_0x26de('0x2c')](),_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]!==_0x3be6c0[_0x26de('0xc')]?(this[_0x26de('0x44')](_0x3be6c0),_0x3be6c0['view']['element'][_0x26de('0x14')](),this['setActiveAnnotation'](_0x3be6c0)):this[_0x26de('0x16')](null);});};for(const _0x3deb10 of _0x3d9f83)_0x59c877(_0x3deb10);this['listenTo'](_0x3d9f83,_0x26de('0x5b'),(_0x2d7f37,_0x3e7e07)=>{_0x59c877(_0x3e7e07);}),this[_0x26de('0x1e')](_0x3d9f83,'remove',(_0x4a88b4,_0x537cb1,_0x4782b5)=>{this[_0x26de('0x1f')][_0x26de('0x2a')](_0x537cb1)['destroy'](),this[_0x26de('0x1f')][_0x26de('0x3d')](_0x537cb1),_0x509234[_0x26de('0x20')]({'removedAnnotation':_0x537cb1,'previousAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5-0x1),'nextAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5+0x1)}),_0x537cb1===this[_0x26de('0x52')]&&this[_0x26de('0x16')](null);},{'priority':'low'}),this[_0x26de('0x1e')](_0x3d9f83,'focus',(_0x500b30,_0x2a25af)=>{this['setActiveAnnotation'](_0x2a25af);}),this[_0x26de('0x1e')](_0x3d9f83,_0x26de('0x1d'),()=>{this['setActiveAnnotation'](null);}),this[_0x26de('0x30')][_0x26de('0x1e')](document,_0x26de('0x33'),(_0x140935,_0x370f49)=>{_0x370f49[_0x26de('0x1a')]===_0x51b316[_0x26de('0x5')]&&_0x70e693['isVisible']&&(this[_0x26de('0x25')][_0x26de('0x5b')](_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]),this[_0x26de('0x47')](),_0x370f49[_0x26de('0x21')](),_0x370f49[_0x26de('0x13')]());}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x4af2bf,_0x13a5b0)=>{const _0x16b48f=_0x13a5b0[_0x26de('0x4f')];_0x70e693[_0x26de('0x1c')]&&_0x70e693[_0x26de('0x38')][_0x26de('0x49')](_0x16b48f)||_0x509234[_0x26de('0xc')]['element']['contains'](_0x16b48f)||_0x4af2bf[_0x26de('0x37')]||(this[_0x26de('0x25')][_0x26de('0x2c')](),this[_0x26de('0x47')](),this[_0x26de('0x16')](null));});const _0x4003bc=this[_0x26de('0x48')][_0x26de('0x45')]?this[_0x26de('0x48')][_0x26de('0x45')]:new _0x54159c([this['context']]);for(const _0x539d0e of _0x4003bc)this['_integrateWithEditorAnnotations'](_0x539d0e);this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x5b'),(_0xc7e42b,_0x52c0c5)=>{this[_0x26de('0x1e')](_0x52c0c5,_0x26de('0xb'),()=>{this[_0x26de('0x5f')](_0x52c0c5);});}),this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x3c'),(_0x39c1ed,_0x4b1ce1)=>{_0x4b1ce1[_0x26de('0x4d')]['has'](_0x26de('0x3f'))&&this[_0x26de('0x5e')](_0x4b1ce1[_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x3f')));}),window[_0x26de('0x1b')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x4a')]();}[_0x26de('0x16')](_0x2965cb){if(_0x2965cb===this['activeAnnotation'])return;const _0x21920f=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));if(_0x21920f[_0x26de('0x3')]({'blurredAnnotation':this[_0x26de('0x52')],'activatedAnnotation':_0x2965cb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2965cb)_0x21920f[_0x26de('0x10')](_0x2965cb)?this[_0x26de('0x44')](_0x2965cb):this[_0x26de('0x47')]();else this[_0x26de('0x47')]();this[_0x26de('0x52')]=_0x2965cb;}['detach'](){if(!this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x3b'),this);this['setActiveAnnotation'](null);const _0x152c84=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));this[_0x26de('0x47')](),Array[_0x26de('0x23')](this[_0x26de('0x1f')][_0x26de('0x42')](),_0x478a36=>_0x478a36['destroy']()),this[_0x26de('0x1f')][_0x26de('0x2c')](),_0x152c84[_0x26de('0x2d')](this[_0x26de('0x32')]),this[_0x26de('0x4')](),this[_0x26de('0x30')][_0x26de('0x4')](),this[_0x26de('0x4')](this['context'][_0x26de('0x45')]);for(const _0x1e322e of Array[_0x26de('0x23')](this[_0x26de('0x35')]))this[_0x26de('0x5e')](_0x1e322e);window[_0x26de('0x15')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x39')]['cancel'](),this['_selectedAnnotations']=[],this[_0x26de('0x8')]=!0x1,this['_annotations']=null;}[_0x26de('0x28')](){this[_0x26de('0x8')]&&this[_0x26de('0x18')](),this[_0x26de('0x51')][_0x26de('0x3e')]();}['_integrateWithEditorAnnotations'](_0x3236d2){const _0x19acee=_0x3236d2[_0x26de('0x4d')]['get'](_0x26de('0x3f')),_0x15b78b=this['context'][_0x26de('0x4d')]['get'](_0x9ead6d),_0x214012=this['_annotations'],_0xabe8a0=this[_0x26de('0x64')],_0x247fe4=()=>{const _0x13f2bc=_0x19acee[_0x26de('0x34')]({'activeAnnotation':this[_0x26de('0x52')],'annotations':this[_0x26de('0x32')]});this['_setSelectedAnnotations'](_0x13f2bc),this['setActiveAnnotation'](_0x13f2bc[0x0]||null);};this['listenTo'](_0x19acee,_0x26de('0x3'),_0x247fe4),this[_0x26de('0x1e')](_0x19acee,_0x26de('0x1d'),(_0x10d79a,{isAnnotationTracked:_0x166c07})=>{this[_0x26de('0x52')]&&_0x166c07(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x26de('0x1e')](_0x19acee,'uiUpdate',()=>{this[_0x26de('0x39')]();}),this[_0x26de('0x1e')](_0x214012,'blur',_0x161b68=>{_0x19acee[_0x26de('0x41')]()&&_0x161b68[_0x26de('0x4e')]();},{'priority':'high'}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x1d5404,_0x4b668b)=>{const _0x458779=_0x4b668b[_0x26de('0x4f')];_0xabe8a0[_0x26de('0x1c')]&&_0xabe8a0[_0x26de('0x38')][_0x26de('0x49')](_0x458779)||_0x15b78b[_0x26de('0xc')][_0x26de('0x38')][_0x26de('0x49')](_0x458779)||this['activeAnnotation']&&_0x19acee[_0x26de('0x41')]()&&(_0x247fe4(),_0x1d5404[_0x26de('0x37')]=!0x0);},{'priority':_0x26de('0xa')}),this[_0x26de('0x35')][_0x26de('0x5b')](_0x19acee);}['_destroyEditorAnnotationsIntegration'](_0x4d1e65){_0x4d1e65&&(this['stopListening'](_0x4d1e65),this[_0x26de('0x35')]['remove'](_0x4d1e65));}[_0x26de('0x40')](_0x3f64a3){for(const _0x4cc231 of this[_0x26de('0x62')])_0x3f64a3[_0x26de('0x27')](_0x4cc231)||this['_manuallyClosedAnnotationViews'][_0x26de('0x3d')](_0x4cc231[_0x26de('0xc')]);this[_0x26de('0x62')]=_0x3f64a3;}[_0x26de('0x4a')](){const _0x23e9c9=this[_0x26de('0x64')];this[_0x26de('0x32')]['refreshPositioning'](),_0x23e9c9['isVisible']&&this[_0x26de('0x0')]();}[_0x26de('0x44')](_0x53a087){if(this[_0x26de('0x25')][_0x26de('0x56')](_0x53a087[_0x26de('0xc')]))return;const _0x223315=this[_0x26de('0x64')][_0x26de('0x2f')][_0x26de('0x60')];_0x223315!==_0x53a087[_0x26de('0xc')]?(_0x223315&&this[_0x26de('0x57')](_0x223315),this[_0x26de('0x3a')](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x64')]['content']['clear'](),this[_0x26de('0x64')][_0x26de('0x2f')]['add'](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x0')]()):this['_updateBalloonPosition']();}[_0x26de('0x0')](){const _0x113fc8=this[_0x26de('0x64')]['content']['first'],_0xbae071=this[_0x26de('0x32')][_0x26de('0x36')](_0x113fc8);if(!this[_0x26de('0x1f')][_0x26de('0x56')](_0xbae071))return;const _0x185ebf=this[_0x26de('0x1f')][_0x26de('0x2a')](_0xbae071)[_0x26de('0x38')],_0x73b957=function(){const _0x187360=_0x316fa6[_0x26de('0xf')];return[_0x187360[_0x26de('0x5c')],_0x187360[_0x26de('0x46')],_0x187360[_0x26de('0x2b')],_0x187360[_0x26de('0x17')],_0x187360['southArrowNorthWest'],_0x187360[_0x26de('0x58')]];}();this[_0x26de('0x64')][_0x26de('0x19')]({'target':_0x185ebf,'positions':_0x73b957});}[_0x26de('0x47')](){const _0x1f5dd1=this[_0x26de('0x64')],_0x20a44d=_0x1f5dd1[_0x26de('0x2f')][_0x26de('0x60')];_0x20a44d&&(this['_detachListeners'](_0x20a44d),_0x1f5dd1[_0x26de('0x50')](),_0x1f5dd1[_0x26de('0x2f')]['clear']());}['_attachListeners'](_0x4c5080){this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x4b'),()=>this[_0x26de('0x0')]()),this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x31'),(_0x2f7db,_0x5ca2a2)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4c5080),this['_hideBalloon'](),_0x5ca2a2();});}[_0x26de('0x57')](_0x242324){this[_0x26de('0x4')](_0x242324);}}
23
+ const _0x22c3=['isAttached','plugins','content','hasDomSelection','_detachFromContainer','Sidebar','init','_hideBalloon','preventClosingBalloon','EditorAnnotations','ck-sidebar--narrow','number','removeEventListener','northArrowSouth','_setSelectedAnnotations','resize','stopListening','keyCode','_destroyEditorAnnotationsIntegration','stop','editors','refreshPositioning','_attachListeners','_updateBalloonPosition','activeAnnotation','_domEmitter','target','mousedown','_annotationToNarrowView','balloonPanelView','blur','register','off','getByView','context','change:height','detach','isVisible','pluginName','refresh','narrowSidebar','Esc','listenTo','length','set','_throttledRefreshPositioning','preventDefault','first','set:container','attach','clear','stopPropagation','low','keydown','requires','ready','addEventListener','pin','change:container','high','type','focus','defaultPositions','esc','getSidebarItemView','setActiveAnnotation','_showBalloon','_annotations','cancel','bind','values','destroy','view','annotationType','get','contains','_selectedAnnotations','_detachListeners','element','remove','add','_integrateWithEditorAnnotations','northArrowSouthWest','unpin','delete','has','_editorAnnotations','bodyCollection','_refreshPositioning','_attachToContainer','southArrowNorthWest','locale','rearrange','southArrowNorthEast','_manuallyClosedAnnotationViews','narrowsidebar-attach-already-attached'];(function(_0x152738,_0x22c313){const _0xa3fa0a=function(_0x5a2e8b){while(--_0x5a2e8b){_0x152738['push'](_0x152738['shift']());}};_0xa3fa0a(++_0x22c313);}(_0x22c3,0xbc));const _0xa3fa=function(_0x152738,_0x22c313){_0x152738=_0x152738-0x0;let _0xa3fa0a=_0x22c3[_0x152738];return _0xa3fa0a;};import{ContextPlugin as _0xce22ef}from'ckeditor5/src/core';import _0x3eab28 from'./annotationsuis';import _0xdcc9b0 from'./sidebar';import _0x247ca2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1c66bc,BodyCollection as _0x561f52}from'ckeditor5/src/ui';import{CKEditorError as _0x20a550,DomEmitterMixin as _0x3bc5de,keyCodes as _0x506443,Collection as _0x45798c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x5471ef}from'lodash-es';export default class s extends _0xce22ef{static get[_0xa3fa('0x3a')](){return[_0xdcc9b0,_0x3eab28];}static get[_0xa3fa('0x2a')](){return'NarrowSidebar';}constructor(_0x4b3e6d){super(_0x4b3e6d),this[_0xa3fa('0x4')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xa3fa('0x1d')]=Object['create'](_0x3bc5de),this[_0xa3fa('0x20')]=new Map(),this[_0xa3fa('0x30')](_0xa3fa('0x1c'),null),this[_0xa3fa('0x47')]=null,this[_0xa3fa('0x50')]=[],this['_editorAnnotations']=new _0x45798c(),this[_0xa3fa('0x31')]=_0x5471ef(()=>{this[_0xa3fa('0x5c')]();},0x190,{'leading':!0x1});}[_0xa3fa('0xa')](){this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')](_0x3eab28)[_0xa3fa('0x23')](_0xa3fa('0x2c'),this),this[_0xa3fa('0x5b')]=new _0x561f52(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this[_0xa3fa('0x21')]=new _0x1c66bc(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this[_0xa3fa('0x21')]);}[_0xa3fa('0x35')](_0x163b9c){this['_annotations']=_0x163b9c;const _0x2176fc=this[_0xa3fa('0x26')]['plugins'][_0xa3fa('0x4e')](_0xdcc9b0),_0x15c5ef=this[_0xa3fa('0x21')];if(_0x2176fc[_0xa3fa('0x47')]=_0x163b9c,this[_0xa3fa('0x4')])throw new _0x20a550(_0xa3fa('0x3'),this);this[_0xa3fa('0x4')]=!0x0,this['listenTo'](_0x2176fc,_0xa3fa('0x34'),()=>{this[_0xa3fa('0x28')](),this['listenTo'](_0x2176fc,_0xa3fa('0x3e'),_0x4344dd=>{_0x4344dd[_0xa3fa('0x24')](),this[_0xa3fa('0x35')](_0x163b9c);});}),_0x2176fc[_0xa3fa('0x5d')]({'viewClass':_0xa3fa('0xe'),'spaceBetweenItems':0x5});const _0x5d6d22=_0x1adfed=>{const _0x58905f=new _0x247ca2(this['context'][_0xa3fa('0x5f')]);_0x2176fc['addAnnotation'](_0x1adfed,_0x58905f),this['_annotationToNarrowView'][_0xa3fa('0x30')](_0x1adfed,_0x58905f),_0x58905f[_0xa3fa('0x49')]('isDirty',_0xa3fa('0x4d'),_0xa3fa('0xf'))['to'](_0x1adfed['view'],'isDirty',_0xa3fa('0x40'),_0xa3fa('0x2f')),_0x58905f['on']('execute',()=>{this[_0xa3fa('0x2')][_0xa3fa('0x36')](),_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]!==_0x1adfed[_0xa3fa('0x4c')]?(this[_0xa3fa('0x46')](_0x1adfed),_0x1adfed[_0xa3fa('0x4c')][_0xa3fa('0x52')]['focus'](),this['setActiveAnnotation'](_0x1adfed)):this[_0xa3fa('0x45')](null);});};for(const _0x166106 of _0x163b9c)_0x5d6d22(_0x166106);this['listenTo'](_0x163b9c,'add',(_0x105519,_0x304e7a)=>{_0x5d6d22(_0x304e7a);}),this[_0xa3fa('0x2e')](_0x163b9c,_0xa3fa('0x53'),(_0x72d76,_0x3370e0,_0x558318)=>{this[_0xa3fa('0x20')]['get'](_0x3370e0)[_0xa3fa('0x4b')](),this['_annotationToNarrowView'][_0xa3fa('0x58')](_0x3370e0),_0x2176fc[_0xa3fa('0x0')]({'removedAnnotation':_0x3370e0,'previousAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318-0x1),'nextAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318+0x1)}),_0x3370e0===this[_0xa3fa('0x1c')]&&this[_0xa3fa('0x45')](null);},{'priority':_0xa3fa('0x38')}),this['listenTo'](_0x163b9c,_0xa3fa('0x41'),(_0x43bde2,_0x511568)=>{this[_0xa3fa('0x45')](_0x511568);}),this[_0xa3fa('0x2e')](_0x163b9c,'blur',()=>{this[_0xa3fa('0x45')](null);}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x39'),(_0x277001,_0x38a6d0)=>{_0x38a6d0[_0xa3fa('0x15')]===_0x506443[_0xa3fa('0x43')]&&_0x15c5ef[_0xa3fa('0x29')]&&(this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]),this[_0xa3fa('0xb')](),_0x38a6d0[_0xa3fa('0x37')](),_0x38a6d0[_0xa3fa('0x32')]());}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x1f'),(_0x401ab4,_0x71952f)=>{const _0x33f0cb=_0x71952f[_0xa3fa('0x1e')];_0x15c5ef[_0xa3fa('0x29')]&&_0x15c5ef[_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x2176fc[_0xa3fa('0x4c')][_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x401ab4[_0xa3fa('0xc')]||(this[_0xa3fa('0x2')][_0xa3fa('0x36')](),this['_hideBalloon'](),this[_0xa3fa('0x45')](null));});const _0x150498=this['context']['editors']?this['context'][_0xa3fa('0x18')]:new _0x45798c([this[_0xa3fa('0x26')]]);for(const _0x559692 of _0x150498)this[_0xa3fa('0x55')](_0x559692);this[_0xa3fa('0x2e')](_0x150498,_0xa3fa('0x54'),(_0x46947d,_0x4e4207)=>{this[_0xa3fa('0x2e')](_0x4e4207,_0xa3fa('0x3b'),()=>{this['_integrateWithEditorAnnotations'](_0x4e4207);});}),this[_0xa3fa('0x2e')](_0x150498,'remove',(_0x5a2c97,_0x52caf0)=>{_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x59')](_0xa3fa('0xd'))&&this[_0xa3fa('0x16')](_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x4e')](_0xa3fa('0xd')));}),window[_0xa3fa('0x3c')](_0xa3fa('0x13'),this[_0xa3fa('0x31')]),this[_0xa3fa('0x5c')]();}[_0xa3fa('0x45')](_0x4df7a8){if(_0x4df7a8===this[_0xa3fa('0x1c')])return;const _0x18dd5a=this[_0xa3fa('0x26')]['plugins']['get'](_0xa3fa('0x9'));if(_0x18dd5a[_0xa3fa('0x2b')]({'blurredAnnotation':this[_0xa3fa('0x1c')],'activatedAnnotation':_0x4df7a8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4df7a8)_0x18dd5a[_0xa3fa('0x44')](_0x4df7a8)?this['_showBalloon'](_0x4df7a8):this['_hideBalloon']();else this[_0xa3fa('0xb')]();this['activeAnnotation']=_0x4df7a8;}[_0xa3fa('0x28')](){if(!this[_0xa3fa('0x4')])throw new _0x20a550('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x341020=this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')]('Sidebar');this[_0xa3fa('0xb')](),Array['from'](this[_0xa3fa('0x20')][_0xa3fa('0x4a')](),_0x458d31=>_0x458d31['destroy']()),this[_0xa3fa('0x20')][_0xa3fa('0x36')](),_0x341020[_0xa3fa('0x8')](this[_0xa3fa('0x47')]),this[_0xa3fa('0x14')](),this[_0xa3fa('0x1d')][_0xa3fa('0x14')](),this[_0xa3fa('0x14')](this[_0xa3fa('0x26')]['editors']);for(const _0x63e327 of Array['from'](this[_0xa3fa('0x5a')]))this['_destroyEditorAnnotationsIntegration'](_0x63e327);window[_0xa3fa('0x10')](_0xa3fa('0x13'),this['_throttledRefreshPositioning']),this[_0xa3fa('0x31')][_0xa3fa('0x48')](),this[_0xa3fa('0x50')]=[],this['isAttached']=!0x1,this['_annotations']=null;}[_0xa3fa('0x4b')](){this[_0xa3fa('0x4')]&&this['detach'](),this[_0xa3fa('0x5b')]['detachFromDom']();}[_0xa3fa('0x55')](_0x38a283){const _0x34e3e8=_0x38a283['plugins'][_0xa3fa('0x4e')](_0xa3fa('0xd')),_0x4fb254=this[_0xa3fa('0x26')]['plugins']['get'](_0xdcc9b0),_0xdc292b=this['_annotations'],_0x2f897d=this['balloonPanelView'],_0x376133=()=>{const _0x20abe6=_0x34e3e8['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0xa3fa('0x47')]});this[_0xa3fa('0x12')](_0x20abe6),this['setActiveAnnotation'](_0x20abe6[0x0]||null);};this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x2b'),_0x376133),this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x22'),(_0x242c7c,{isAnnotationTracked:_0x3078fb})=>{this[_0xa3fa('0x1c')]&&_0x3078fb(this[_0xa3fa('0x1c')])&&(this[_0xa3fa('0x12')]([]),this[_0xa3fa('0x45')](null));}),this[_0xa3fa('0x2e')](_0x34e3e8,'uiUpdate',()=>{this[_0xa3fa('0x31')]();}),this[_0xa3fa('0x2e')](_0xdc292b,'blur',_0x154f6b=>{_0x34e3e8[_0xa3fa('0x7')]()&&_0x154f6b[_0xa3fa('0x17')]();},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x1d')]['listenTo'](document,_0xa3fa('0x1f'),(_0x53f636,_0x235d60)=>{const _0x5dfa1b=_0x235d60[_0xa3fa('0x1e')];_0x2f897d[_0xa3fa('0x29')]&&_0x2f897d['element']['contains'](_0x5dfa1b)||_0x4fb254[_0xa3fa('0x4c')]['element'][_0xa3fa('0x4f')](_0x5dfa1b)||this[_0xa3fa('0x1c')]&&_0x34e3e8[_0xa3fa('0x7')]()&&(_0x376133(),_0x53f636[_0xa3fa('0xc')]=!0x0);},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x5a')]['add'](_0x34e3e8);}[_0xa3fa('0x16')](_0x1b0005){_0x1b0005&&(this[_0xa3fa('0x14')](_0x1b0005),this[_0xa3fa('0x5a')][_0xa3fa('0x53')](_0x1b0005));}[_0xa3fa('0x12')](_0x1a3e3c){for(const _0x5a6307 of this['_selectedAnnotations'])_0x1a3e3c['includes'](_0x5a6307)||this[_0xa3fa('0x2')]['delete'](_0x5a6307['view']);this[_0xa3fa('0x50')]=_0x1a3e3c;}[_0xa3fa('0x5c')](){const _0x38f839=this[_0xa3fa('0x21')];this[_0xa3fa('0x47')][_0xa3fa('0x19')](),_0x38f839[_0xa3fa('0x29')]&&this[_0xa3fa('0x1b')]();}[_0xa3fa('0x46')](_0x3e8512){if(this[_0xa3fa('0x2')][_0xa3fa('0x59')](_0x3e8512[_0xa3fa('0x4c')]))return;const _0x4a088c=this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x33')];_0x4a088c!==_0x3e8512[_0xa3fa('0x4c')]?(_0x4a088c&&this[_0xa3fa('0x51')](_0x4a088c),this['_attachListeners'](_0x3e8512[_0xa3fa('0x4c')]),this['balloonPanelView']['content']['clear'](),this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x54')](_0x3e8512[_0xa3fa('0x4c')]),this[_0xa3fa('0x1b')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x298bf4=this[_0xa3fa('0x21')]['content'][_0xa3fa('0x33')],_0x5446f8=this['_annotations'][_0xa3fa('0x25')](_0x298bf4);if(!this[_0xa3fa('0x20')][_0xa3fa('0x59')](_0x5446f8))return;const _0x45b66e=this[_0xa3fa('0x20')][_0xa3fa('0x4e')](_0x5446f8)['element'],_0x32f2fa=function(){const _0x5c8749=_0x1c66bc[_0xa3fa('0x42')];return[_0x5c8749[_0xa3fa('0x1')],_0x5c8749['northArrowSouthEast'],_0x5c8749['southArrowNorth'],_0x5c8749[_0xa3fa('0x11')],_0x5c8749[_0xa3fa('0x5e')],_0x5c8749[_0xa3fa('0x56')]];}();this[_0xa3fa('0x21')][_0xa3fa('0x3d')]({'target':_0x45b66e,'positions':_0x32f2fa});}[_0xa3fa('0xb')](){const _0x2cd591=this[_0xa3fa('0x21')],_0x5b034a=_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x33')];_0x5b034a&&(this[_0xa3fa('0x51')](_0x5b034a),_0x2cd591[_0xa3fa('0x57')](),_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x36')]());}[_0xa3fa('0x1a')](_0x4a317e){this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x27'),()=>this[_0xa3fa('0x1b')]()),this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x2d'),(_0x8b3a0c,_0x11476a)=>{this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x4a317e),this['_hideBalloon'](),_0x11476a();});}[_0xa3fa('0x51')](_0x4915a0){this[_0xa3fa('0x14')](_0x4915a0);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ece=['getIndex','bottom','class','_annotationToSidebarItemView','change:_lastItem','sidebar.preventScrollOutOfView','targetRect','_updateLastItem','_alignBeforeItem','_setItemTop','last','destroy','updateHeight','_attachToContainer','locale','set','remove','content','_getItemAfter','length','sidebar.container','_getMaxAvailableTop','_detachFromContainer','rearrange','clear','isAnimationDisabled','appendChild','pluginName','_destroySidebarItemView','get','setContainer','listenTo','stopListening','add','_targetTop','render','_alignToTargetRect','_sidebarItemViewToAnnotation','_activeAnnotation','_spaceBetweenItems','change:targetRect','target','_getItemBefore','_alignAfterItem','context','_lastItem','top','getSidebarItemView','height','container','addAnnotation','view','list','config','_createSidebarView','refresh','isActive','delete','_annotations','max','element','minHeight','change:top','sidebar-attachtocontainer-missing-container','_getTargetTop','change:bottom'];(function(_0x384d97,_0x4ecead){const _0x5ce96c=function(_0x3dc31f){while(--_0x3dc31f){_0x384d97['push'](_0x384d97['shift']());}};_0x5ce96c(++_0x4ecead);}(_0x4ece,0x150));const _0x5ce9=function(_0x384d97,_0x4ecead){_0x384d97=_0x384d97-0x0;let _0x5ce96c=_0x4ece[_0x384d97];return _0x5ce96c;};import{ContextPlugin as _0x389435}from'ckeditor5/src/core';import _0x2cfea1 from'./view/sidebarview';import _0x1257e0 from'./view/sidebaritemview';import{Rect as _0x37058d,CKEditorError as _0x39b225}from'ckeditor5/src/utils';import{isElement as _0x4eeb5d,throttle as _0x60280b}from'lodash-es';export default class b extends _0x389435{static get[_0x5ce9('0x15')](){return'Sidebar';}constructor(_0x27a256){super(_0x27a256),this[_0x5ce9('0x9')](_0x5ce9('0x27')),this[_0x5ce9('0x2d')]=this[_0x5ce9('0x30')](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x5ce9('0x3f')]=new Map(),this[_0x5ce9('0x26')][_0x5ce9('0x2f')]['define'](_0x5ce9('0x41'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}['init'](){const _0x1abb8d=this['context'][_0x5ce9('0x2f')][_0x5ce9('0x17')](_0x5ce9('0xe'));_0x1abb8d&&this[_0x5ce9('0x18')](_0x1abb8d);}[_0x5ce9('0x18')](_0x179f51){if(!_0x4eeb5d(_0x179f51))throw new _0x39b225('sidebar-setcontainer-invalid-element');this[_0x5ce9('0x2b')]=_0x179f51;}[_0x5ce9('0x7')]({viewClass:_0x4aeb0c='',spaceBetweenItems:_0x259bfd=0x19}={}){if(!_0x4eeb5d(this['container']))throw new _0x39b225(_0x5ce9('0x39'),this);this[_0x5ce9('0x2b')][_0x5ce9('0x14')](this[_0x5ce9('0x2d')][_0x5ce9('0x36')]),this[_0x5ce9('0x2d')][_0x5ce9('0x3e')]=_0x4aeb0c,this['_spaceBetweenItems']=_0x259bfd;}[_0x5ce9('0x11')]({removedAnnotation:_0x295d2e,previousAnnotation:_0x7e4af6,nextAnnotation:_0x2d76e5}){const _0x441a0b=this['getSidebarItemView'](_0x295d2e);this[_0x5ce9('0x2d')][_0x5ce9('0x2e')][_0x5ce9('0xa')](_0x441a0b),this[_0x5ce9('0x16')](_0x295d2e),_0x7e4af6&&this[_0x5ce9('0x1e')](this[_0x5ce9('0x29')](_0x7e4af6)),_0x2d76e5&&this[_0x5ce9('0x1e')](this[_0x5ce9('0x29')](_0x2d76e5)),this['_updateLastItem']();}[_0x5ce9('0x31')]({blurredAnnotation:_0xee2698,activatedAnnotation:_0x2bba7e,disableAnimationOnActivatedAnnotation:_0x4585ef}){if(this['_activeAnnotation']=_0x2bba7e,_0xee2698){_0xee2698[_0x5ce9('0x32')]=!0x1;const _0x4fcc03=this['getSidebarItemView'](_0xee2698);_0x4fcc03&&_0x4585ef&&(_0x4fcc03[_0x5ce9('0x13')]=!0x1);}if(_0x2bba7e){const _0x2f6727=this[_0x5ce9('0x29')](_0x2bba7e);_0x2f6727&&(_0x2bba7e[_0x5ce9('0x32')]=!0x0,_0x4585ef&&(_0x2f6727[_0x5ce9('0x13')]=!0x0,_0x2f6727[_0x5ce9('0x28')]+=0x1),this['_alignToTargetRect'](_0x2f6727));}}[_0x5ce9('0x10')](_0x48c492){this[_0x5ce9('0x1a')](),this[_0x5ce9('0x2d')][_0x5ce9('0x36')][_0x5ce9('0xa')]();for(const _0x168808 of _0x48c492)this[_0x5ce9('0x16')](_0x168808);this['view'][_0x5ce9('0x2e')][_0x5ce9('0x12')](),this['view'][_0x5ce9('0x3e')]='',this[_0x5ce9('0x27')]=null;}[_0x5ce9('0x2c')](_0x5b6ba0,_0xbb7fed){_0xbb7fed||(_0xbb7fed=_0x5b6ba0[_0x5ce9('0x2d')]);const _0x2be544=new _0x1257e0(this[_0x5ce9('0x26')][_0x5ce9('0x8')]);this['_sidebarItemViewToAnnotation'][_0x5ce9('0x9')](_0x2be544,_0x5b6ba0),this[_0x5ce9('0x3f')][_0x5ce9('0x9')](_0x5b6ba0,_0x2be544),_0x2be544[_0x5ce9('0xb')][_0x5ce9('0x1b')](_0xbb7fed),this[_0x5ce9('0x1e')](_0x2be544),this[_0x5ce9('0x19')](_0x5b6ba0[_0x5ce9('0x2d')],_0x5ce9('0x22'),()=>{const _0x15be26=this[_0x5ce9('0x3a')](_0x2be544);_0x2be544['_targetTop']!=_0x15be26&&(_0x2be544[_0x5ce9('0x1c')]=_0x15be26,this['_setItemTop'](_0x2be544,_0x15be26));}),this[_0x5ce9('0x19')](_0x2be544,_0x5ce9('0x38'),_0x60280b(()=>{if(!_0x2be544[_0x5ce9('0xb')][_0x5ce9('0xd')])return;const _0x3e9fd3=this[_0x5ce9('0x24')](_0x2be544);if(!_0x3e9fd3)return;const _0x3a9209=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x3e9fd3),_0x265bac=this[_0x5ce9('0x20')];_0x265bac&&_0x265bac===_0x3a9209?this[_0x5ce9('0x25')](_0x3e9fd3,_0x2be544):this[_0x5ce9('0x2')](_0x2be544,_0x3e9fd3);},0xa,{'leading':!0x1})),this['listenTo'](_0x2be544,_0x5ce9('0x3b'),_0x60280b(()=>{if(!_0x2be544[_0x5ce9('0xb')][_0x5ce9('0xd')])return;const _0x833930=this[_0x5ce9('0xc')](_0x2be544);if(!_0x833930)return;const _0x4f1437=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x833930),_0x2442c5=this[_0x5ce9('0x26')]['config'][_0x5ce9('0x17')]('sidebar.preventScrollOutOfView'),_0x852dac=this['_activeAnnotation'];_0x852dac&&_0x852dac===_0x4f1437&&_0x2442c5?(this[_0x5ce9('0x2')](_0x833930,_0x2be544),this[_0x5ce9('0x25')](_0x2be544,_0x833930)):_0x852dac&&_0x852dac===_0x4f1437?this[_0x5ce9('0x2')](_0x833930,_0x2be544):this['_alignAfterItem'](_0x2be544,_0x833930);},0xa,{'leading':!0x1}));const _0x4cd86b=this[_0x5ce9('0x24')](_0x2be544);if(_0x4cd86b)this[_0x5ce9('0x25')](_0x4cd86b,_0x2be544)||this[_0x5ce9('0x1e')](_0x2be544);else this['_alignToTargetRect'](_0x2be544);return this[_0x5ce9('0x1')](),this['view']['list'][_0x5ce9('0x1b')](_0x2be544),_0x2be544;}[_0x5ce9('0x29')](_0x523bf9){return this['_annotationToSidebarItemView']['get'](_0x523bf9);}[_0x5ce9('0x5')](){this['view']['destroy']();}[_0x5ce9('0x16')](_0x5e17b8){const _0x3d85aa=this[_0x5ce9('0x29')](_0x5e17b8);this['stopListening'](_0x3d85aa),this[_0x5ce9('0x1a')](_0x5e17b8[_0x5ce9('0x2d')]),_0x3d85aa[_0x5ce9('0x5')](),this[_0x5ce9('0x3f')]['delete'](_0x5e17b8),this[_0x5ce9('0x1f')][_0x5ce9('0x33')](_0x3d85aa);}[_0x5ce9('0x30')](){const _0x8b8f03=new _0x2cfea1(this['context'][_0x5ce9('0x8')]);return _0x8b8f03[_0x5ce9('0x1d')](),this['on'](_0x5ce9('0x40'),(_0x4ef33c,_0x1fd508,_0x4af3fa,_0x29a0da)=>{_0x29a0da&&_0x8b8f03['unbind'](_0x5ce9('0x37')),_0x4af3fa?_0x8b8f03['bind']('minHeight')['to'](_0x4af3fa,_0x5ce9('0x3d')):_0x8b8f03[_0x5ce9('0x37')]=null;}),_0x8b8f03;}['_updateLastItem'](){this[_0x5ce9('0x27')]=this[_0x5ce9('0x29')](this[_0x5ce9('0x34')][_0x5ce9('0x4')]);}[_0x5ce9('0x24')](_0x36fbd3){const _0x40c73a=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x36fbd3),_0x4b1fee=this[_0x5ce9('0x34')][_0x5ce9('0x17')](this[_0x5ce9('0x34')][_0x5ce9('0x3c')](_0x40c73a)-0x1);return _0x4b1fee&&this[_0x5ce9('0x29')](_0x4b1fee);}['_getItemAfter'](_0x2b7cd7){const _0x5827ff=this['_sidebarItemViewToAnnotation'][_0x5ce9('0x17')](_0x2b7cd7),_0x24c4ff=this['_annotations'][_0x5ce9('0x17')](this[_0x5ce9('0x34')][_0x5ce9('0x3c')](_0x5827ff)+0x1);return _0x24c4ff&&this[_0x5ce9('0x29')](_0x24c4ff);}[_0x5ce9('0x2')](_0x5cefd4,_0x37e788){_0x5cefd4[_0x5ce9('0x6')]();const _0x134511=V(_0x37e788[_0x5ce9('0x3d')]+this[_0x5ce9('0x21')],_0x5cefd4[_0x5ce9('0x28')]);return!!_0x134511&&(this['_setItemTop'](_0x37e788,_0x37e788[_0x5ce9('0x28')]-_0x134511),!0x0);}[_0x5ce9('0x25')](_0x3d354e,_0x419171){_0x3d354e[_0x5ce9('0x6')]();const _0x59e5aa=V(_0x3d354e[_0x5ce9('0x3d')]+this['_spaceBetweenItems'],_0x419171[_0x5ce9('0x28')]);return!!_0x59e5aa&&(this[_0x5ce9('0x3')](_0x419171,_0x419171['top']+_0x59e5aa,!0x1),!0x0);}['_alignToTargetRect'](_0x812388){const _0x10ca8b=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x812388);if(!_0x10ca8b||!_0x10ca8b[_0x5ce9('0x23')])return;const _0x43402f=this['_getTargetTop'](_0x812388);this[_0x5ce9('0x3')](_0x812388,_0x43402f);}['_getTargetTop'](_0x4b3b1b){const _0x43a682=this[_0x5ce9('0x1f')]['get'](_0x4b3b1b);if(_0x43a682[_0x5ce9('0x23')]instanceof _0x37058d)return _0x43a682[_0x5ce9('0x0')][_0x5ce9('0x28')];{const _0x21f239=new _0x37058d(this[_0x5ce9('0x2d')][_0x5ce9('0x36')])[_0x5ce9('0x28')];return _0x43a682[_0x5ce9('0x0')][_0x5ce9('0x28')]-_0x21f239;}}['_setItemTop'](_0x1ec95e,_0x19f6c7,_0x4ddae6=this[_0x5ce9('0x26')][_0x5ce9('0x2f')][_0x5ce9('0x17')]('sidebar.preventScrollOutOfView')){_0x4ddae6&&(_0x19f6c7=Math[_0x5ce9('0x35')](_0x19f6c7,this['_getMaxAvailableTop'](_0x1ec95e))),_0x1ec95e[_0x5ce9('0x28')]=_0x19f6c7;}[_0x5ce9('0xf')](_0xf4c3f9){let _0x26cefd=this['_getItemBefore'](_0xf4c3f9),_0x4ab82a=0x0;for(;_0x26cefd;)_0x26cefd[_0x5ce9('0x6')](),_0x4ab82a+=this[_0x5ce9('0x21')]+_0x26cefd[_0x5ce9('0x2a')],_0x26cefd=this['_getItemBefore'](_0x26cefd);return _0x4ab82a;}}function V(_0x33373d,_0x47ff05){return Math[_0x5ce9('0x35')](_0x33373d-_0x47ff05,0x0);}
23
+ const _0x2a07=['_spaceBetweenItems','minHeight','length','addAnnotation','_updateLastItem','_annotationToSidebarItemView','_annotations','view','content','delete','_getTargetTop','getIndex','bottom','_getItemAfter','top','updateHeight','_detachFromContainer','rearrange','_getItemBefore','_lastItem','remove','sidebar.preventScrollOutOfView','listenTo','last','_destroySidebarItemView','context','sidebar-setcontainer-invalid-element','target','_attachToContainer','change:_lastItem','getSidebarItemView','add','_setItemTop','bind','config','_activeAnnotation','destroy','_createSidebarView','_sidebarItemViewToAnnotation','list','change:bottom','Sidebar','_alignBeforeItem','container','_alignAfterItem','sidebar-attachtocontainer-missing-container','setContainer','set','_targetTop','max','isAnimationDisabled','pluginName','element','change:top','init','stopListening','class','locale','clear','appendChild','change:targetRect','define','sidebar.container','isActive','get','targetRect','refresh','_getMaxAvailableTop','_alignToTargetRect','height'];(function(_0x4f7cb2,_0x2a0701){const _0x32202f=function(_0x23ba6b){while(--_0x23ba6b){_0x4f7cb2['push'](_0x4f7cb2['shift']());}};_0x32202f(++_0x2a0701);}(_0x2a07,0x1b2));const _0x3220=function(_0x4f7cb2,_0x2a0701){_0x4f7cb2=_0x4f7cb2-0x0;let _0x32202f=_0x2a07[_0x4f7cb2];return _0x32202f;};import{ContextPlugin as _0x30bcc9}from'ckeditor5/src/core';import _0x36d231 from'./view/sidebarview';import _0x31561d from'./view/sidebaritemview';import{Rect as _0x4fa7f3,CKEditorError as _0x5aa609}from'ckeditor5/src/utils';import{isElement as _0x5c2a45,throttle as _0x5cfa75}from'lodash-es';export default class b extends _0x30bcc9{static get[_0x3220('0x25')](){return _0x3220('0x1b');}constructor(_0x107353){super(_0x107353),this[_0x3220('0x21')](_0x3220('0x5')),this[_0x3220('0x3f')]=this[_0x3220('0x17')](),this['set'](_0x3220('0x1d'),null),this[_0x3220('0x38')]=0x19,this[_0x3220('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x3220('0x14')][_0x3220('0x2f')](_0x3220('0x7'),!0x1),this[_0x3220('0x3e')]=null,this[_0x3220('0x15')]=null;}[_0x3220('0x28')](){const _0x490712=this['context'][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x30'));_0x490712&&this[_0x3220('0x20')](_0x490712);}['setContainer'](_0x324f2f){if(!_0x5c2a45(_0x324f2f))throw new _0x5aa609(_0x3220('0xc'));this[_0x3220('0x1d')]=_0x324f2f;}[_0x3220('0xe')]({viewClass:_0xce7e41='',spaceBetweenItems:_0x1fb45a=0x19}={}){if(!_0x5c2a45(this[_0x3220('0x1d')]))throw new _0x5aa609(_0x3220('0x1f'),this);this[_0x3220('0x1d')][_0x3220('0x2d')](this['view'][_0x3220('0x26')]),this[_0x3220('0x3f')][_0x3220('0x2a')]=_0xce7e41,this[_0x3220('0x38')]=_0x1fb45a;}[_0x3220('0x3')]({removedAnnotation:_0x4e5029,previousAnnotation:_0x4b3ca8,nextAnnotation:_0x3307a7}){const _0x30e497=this[_0x3220('0x10')](_0x4e5029);this[_0x3220('0x3f')][_0x3220('0x19')][_0x3220('0x6')](_0x30e497),this[_0x3220('0xa')](_0x4e5029),_0x4b3ca8&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x4b3ca8)),_0x3307a7&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x3307a7)),this['_updateLastItem']();}[_0x3220('0x34')]({blurredAnnotation:_0x5cdeab,activatedAnnotation:_0x19b67e,disableAnimationOnActivatedAnnotation:_0x1a0764}){if(this[_0x3220('0x15')]=_0x19b67e,_0x5cdeab){_0x5cdeab[_0x3220('0x31')]=!0x1;const _0x3e74ee=this[_0x3220('0x10')](_0x5cdeab);_0x3e74ee&&_0x1a0764&&(_0x3e74ee[_0x3220('0x24')]=!0x1);}if(_0x19b67e){const _0x175c7e=this[_0x3220('0x10')](_0x19b67e);_0x175c7e&&(_0x19b67e[_0x3220('0x31')]=!0x0,_0x1a0764&&(_0x175c7e['isAnimationDisabled']=!0x0,_0x175c7e[_0x3220('0x0')]+=0x1),this['_alignToTargetRect'](_0x175c7e));}}[_0x3220('0x2')](_0x377973){this[_0x3220('0x29')](),this[_0x3220('0x3f')][_0x3220('0x26')][_0x3220('0x6')]();for(const _0xc816e0 of _0x377973)this[_0x3220('0xa')](_0xc816e0);this['view'][_0x3220('0x19')][_0x3220('0x2c')](),this['view']['class']='',this[_0x3220('0x5')]=null;}[_0x3220('0x3b')](_0x456072,_0x467621){_0x467621||(_0x467621=_0x456072[_0x3220('0x3f')]);const _0x1f5e25=new _0x31561d(this[_0x3220('0xb')][_0x3220('0x2b')]);this[_0x3220('0x18')][_0x3220('0x21')](_0x1f5e25,_0x456072),this[_0x3220('0x3d')]['set'](_0x456072,_0x1f5e25),_0x1f5e25[_0x3220('0x40')][_0x3220('0x11')](_0x467621),this[_0x3220('0x36')](_0x1f5e25),this['listenTo'](_0x456072[_0x3220('0x3f')],_0x3220('0x2e'),()=>{const _0x421033=this[_0x3220('0x42')](_0x1f5e25);_0x1f5e25[_0x3220('0x22')]!=_0x421033&&(_0x1f5e25[_0x3220('0x22')]=_0x421033,this[_0x3220('0x12')](_0x1f5e25,_0x421033));}),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x27'),_0x5cfa75(()=>{if(!_0x1f5e25[_0x3220('0x40')][_0x3220('0x3a')])return;const _0x594e79=this[_0x3220('0x4')](_0x1f5e25);if(!_0x594e79)return;const _0x2724dc=this[_0x3220('0x18')][_0x3220('0x32')](_0x594e79),_0x56c4a4=this['_activeAnnotation'];_0x56c4a4&&_0x56c4a4===_0x2724dc?this[_0x3220('0x1e')](_0x594e79,_0x1f5e25):this[_0x3220('0x1c')](_0x1f5e25,_0x594e79);},0xa,{'leading':!0x1})),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x1a'),_0x5cfa75(()=>{if(!_0x1f5e25['content'][_0x3220('0x3a')])return;const _0x3f44ee=this[_0x3220('0x45')](_0x1f5e25);if(!_0x3f44ee)return;const _0x26d6d1=this[_0x3220('0x18')][_0x3220('0x32')](_0x3f44ee),_0x28d4ce=this[_0x3220('0xb')][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x7')),_0x5c2cfb=this['_activeAnnotation'];_0x5c2cfb&&_0x5c2cfb===_0x26d6d1&&_0x28d4ce?(this[_0x3220('0x1c')](_0x3f44ee,_0x1f5e25),this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee)):_0x5c2cfb&&_0x5c2cfb===_0x26d6d1?this['_alignBeforeItem'](_0x3f44ee,_0x1f5e25):this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee);},0xa,{'leading':!0x1}));const _0x283c35=this[_0x3220('0x4')](_0x1f5e25);if(_0x283c35)this[_0x3220('0x1e')](_0x283c35,_0x1f5e25)||this['_alignToTargetRect'](_0x1f5e25);else this[_0x3220('0x36')](_0x1f5e25);return this['_updateLastItem'](),this[_0x3220('0x3f')]['list'][_0x3220('0x11')](_0x1f5e25),_0x1f5e25;}[_0x3220('0x10')](_0x1a1496){return this[_0x3220('0x3d')][_0x3220('0x32')](_0x1a1496);}['destroy'](){this[_0x3220('0x3f')][_0x3220('0x16')]();}[_0x3220('0xa')](_0x69917){const _0x4b50aa=this['getSidebarItemView'](_0x69917);this[_0x3220('0x29')](_0x4b50aa),this[_0x3220('0x29')](_0x69917['view']),_0x4b50aa[_0x3220('0x16')](),this[_0x3220('0x3d')][_0x3220('0x41')](_0x69917),this[_0x3220('0x18')][_0x3220('0x41')](_0x4b50aa);}[_0x3220('0x17')](){const _0x46fbd2=new _0x36d231(this[_0x3220('0xb')][_0x3220('0x2b')]);return _0x46fbd2['render'](),this['on'](_0x3220('0xf'),(_0x39761d,_0x2127ce,_0x2c0c1f,_0x41d1b6)=>{_0x41d1b6&&_0x46fbd2['unbind'](_0x3220('0x39')),_0x2c0c1f?_0x46fbd2[_0x3220('0x13')](_0x3220('0x39'))['to'](_0x2c0c1f,_0x3220('0x44')):_0x46fbd2[_0x3220('0x39')]=null;}),_0x46fbd2;}[_0x3220('0x3c')](){this['_lastItem']=this[_0x3220('0x10')](this['_annotations'][_0x3220('0x9')]);}[_0x3220('0x4')](_0x17337f){const _0xbc4708=this[_0x3220('0x18')][_0x3220('0x32')](_0x17337f),_0x137844=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0xbc4708)-0x1);return _0x137844&&this['getSidebarItemView'](_0x137844);}['_getItemAfter'](_0x3d095d){const _0x32e84e=this[_0x3220('0x18')][_0x3220('0x32')](_0x3d095d),_0x4292b9=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0x32e84e)+0x1);return _0x4292b9&&this[_0x3220('0x10')](_0x4292b9);}['_alignBeforeItem'](_0x318bfb,_0x27608e){_0x318bfb[_0x3220('0x1')]();const _0x560500=C(_0x27608e['bottom']+this[_0x3220('0x38')],_0x318bfb[_0x3220('0x0')]);return!!_0x560500&&(this[_0x3220('0x12')](_0x27608e,_0x27608e[_0x3220('0x0')]-_0x560500),!0x0);}['_alignAfterItem'](_0xf7943a,_0x3dfce2){_0xf7943a[_0x3220('0x1')]();const _0x539fea=C(_0xf7943a[_0x3220('0x44')]+this['_spaceBetweenItems'],_0x3dfce2[_0x3220('0x0')]);return!!_0x539fea&&(this[_0x3220('0x12')](_0x3dfce2,_0x3dfce2[_0x3220('0x0')]+_0x539fea,!0x1),!0x0);}[_0x3220('0x36')](_0x131abd){const _0xbc1962=this['_sidebarItemViewToAnnotation'][_0x3220('0x32')](_0x131abd);if(!_0xbc1962||!_0xbc1962[_0x3220('0xd')])return;const _0x72ecc3=this[_0x3220('0x42')](_0x131abd);this[_0x3220('0x12')](_0x131abd,_0x72ecc3);}[_0x3220('0x42')](_0x30fb82){const _0x131b9f=this[_0x3220('0x18')][_0x3220('0x32')](_0x30fb82);if(null===_0x131b9f[_0x3220('0x33')])return 0x0;if(_0x131b9f['target']instanceof _0x4fa7f3)return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')];{const _0x46cdd8=new _0x4fa7f3(this['view'][_0x3220('0x26')])['top'];return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')]-_0x46cdd8;}}[_0x3220('0x12')](_0x1e22d2,_0x31f3ff,_0x5119a5=this[_0x3220('0xb')]['config'][_0x3220('0x32')](_0x3220('0x7'))){_0x5119a5&&(_0x31f3ff=Math['max'](_0x31f3ff,this[_0x3220('0x35')](_0x1e22d2))),_0x1e22d2[_0x3220('0x0')]=_0x31f3ff;}[_0x3220('0x35')](_0x17b881){let _0x14e1c5=this['_getItemBefore'](_0x17b881),_0x4e227d=0x0;for(;_0x14e1c5;)_0x14e1c5[_0x3220('0x1')](),_0x4e227d+=this['_spaceBetweenItems']+_0x14e1c5[_0x3220('0x37')],_0x14e1c5=this[_0x3220('0x4')](_0x14e1c5);return _0x4e227d;}}function C(_0x754e11,_0x19ea72){return Math[_0x3220('0x23')](_0x754e11-_0x19ea72,0x0);}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dee=['extendTemplate','add','counterView','set','ck-annotation-counter__badge--edit-mode','children','...','annotationType','ck-annotation-counter__badge','isDirty','_badge','number','setTemplate','ck-annotation-counter'];(function(_0x17ab87,_0x2deedf){const _0x42d909=function(_0x49c2c7){while(--_0x49c2c7){_0x17ab87['push'](_0x17ab87['shift']());}};_0x42d909(++_0x2deedf);}(_0x2dee,0xc7));const _0x42d9=function(_0x17ab87,_0x2deedf){_0x17ab87=_0x17ab87-0x0;let _0x42d909=_0x2dee[_0x17ab87];return _0x42d909;};import{ButtonView as _0xbf4ef7,View as _0x4f6cb8}from'ckeditor5/src/ui';import _0x47cb7d from'../../../theme/icons/add-comment.svg';export default class _ extends _0xbf4ef7{constructor(_0x4d4dd5){super(_0x4d4dd5);const _0x273259=this['bindTemplate'];this[_0x42d9('0x0')](_0x42d9('0x6'),!0x1),this[_0x42d9('0x0')]('number',0x0),this['bind'](_0x42d9('0x7'))['to'](this,_0x42d9('0x6'),this,_0x42d9('0x8'),(_0x2a0d42,_0x5951c9)=>_0x2a0d42?_0x42d9('0x3'):_0x5951c9),this[_0x42d9('0x0')](_0x42d9('0x4'),''),this['icon']=_0x47cb7d,this[_0x42d9('0xb')]({'attributes':{'class':[_0x42d9('0xa')]}}),this[_0x42d9('0xd')]=new _0x4f6cb8(),this[_0x42d9('0xd')][_0x42d9('0x9')]({'tag':'span','attributes':{'class':[_0x42d9('0x5'),_0x273259['to']('annotationType',_0x660a7a=>'ck-annotation-counter__badge--'+_0x660a7a),_0x273259['if']('isDirty',_0x42d9('0x1'))]},'children':[{'text':_0x273259['to'](_0x42d9('0x7'))}]}),this[_0x42d9('0x2')][_0x42d9('0xc')](this[_0x42d9('0xd')]);}}
23
+ const _0x135b=['annotationType','add','ck-annotation-counter__badge--edit-mode','bind','children','ck-annotation-counter__badge--','ck-annotation-counter','icon','counterView','isDirty','ck-annotation-counter__badge','set','number'];(function(_0x519ce,_0x135b7c){const _0xdfd35=function(_0x482f09){while(--_0x482f09){_0x519ce['push'](_0x519ce['shift']());}};_0xdfd35(++_0x135b7c);}(_0x135b,0x65));const _0xdfd3=function(_0x519ce,_0x135b7c){_0x519ce=_0x519ce-0x0;let _0xdfd35=_0x135b[_0x519ce];return _0xdfd35;};import{ButtonView as _0x1e4576,View as _0x2d718f}from'ckeditor5/src/ui';import _0x360a61 from'../../../theme/icons/add-comment.svg';export default class B extends _0x1e4576{constructor(_0x4056f8){super(_0x4056f8);const _0x48770b=this['bindTemplate'];this[_0xdfd3('0x1')](_0xdfd3('0xc'),!0x1),this[_0xdfd3('0x1')](_0xdfd3('0x2'),0x0),this[_0xdfd3('0x6')]('_badge')['to'](this,_0xdfd3('0xc'),this,_0xdfd3('0x2'),(_0x1d5d67,_0x55524e)=>_0x1d5d67?'...':_0x55524e),this[_0xdfd3('0x1')](_0xdfd3('0x3'),''),this[_0xdfd3('0xa')]=_0x360a61,this['extendTemplate']({'attributes':{'class':[_0xdfd3('0x9')]}}),this[_0xdfd3('0xb')]=new _0x2d718f(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0xdfd3('0x0'),_0x48770b['to'](_0xdfd3('0x3'),_0x3486d2=>_0xdfd3('0x8')+_0x3486d2),_0x48770b['if'](_0xdfd3('0xc'),_0xdfd3('0x5'))]},'children':[{'text':_0x48770b['to']('_badge')}]}),this[_0xdfd3('0x7')][_0xdfd3('0x4')](this[_0xdfd3('0xb')]);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6c73=['keystrokes','focusTracker','ck-annotation-wrapper','destroy','Esc','div','targetRect','clear','set','content','height','setTemplate','focus','mainView','render','_mutationObserver','fire','type','_updateHeight','isDirty','listenTo','detach','add','attach','createCollection','ck-rounded-corners','element','ck-annotation-wrapper--active','length','clientHeight'];(function(_0x167cda,_0x6c737c){const _0x342098=function(_0x5469a0){while(--_0x5469a0){_0x167cda['push'](_0x167cda['shift']());}};_0x342098(++_0x6c737c);}(_0x6c73,0xc2));const _0x3420=function(_0x167cda,_0x6c737c){_0x167cda=_0x167cda-0x0;let _0x342098=_0x6c73[_0x167cda];return _0x342098;};import{View as _0x4e6208}from'ckeditor5/src/ui';import{FocusTracker as _0x52cca7,KeystrokeHandler as _0x387940,uid as _0x1d891c}from'ckeditor5/src/utils';import _0x4b5bc5 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0x4e6208{constructor(_0x38a1d1,_0x1b9340){super(_0x38a1d1),this['id']=_0x1d891c(),this[_0x3420('0x11')]=new _0x52cca7(),this['keystrokes']=new _0x387940(),this[_0x3420('0x10')][_0x3420('0x18')]('Esc',(_0x47eff6,_0x1f4bb3)=>this[_0x3420('0x2')](_0x3420('0x14'),_0x1f4bb3)),this[_0x3420('0x18')](_0x3420('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3420('0x18')](_0x3420('0x1a'),0x0),this[_0x3420('0x18')]('isActive',!0x1),this[_0x3420('0x18')](_0x3420('0x5'),!0x1),this[_0x3420('0x18')](_0x3420('0xe'),0x0),this[_0x3420('0x18')](_0x3420('0x3'),''),this[_0x3420('0x1')]=_0x4b5bc5(()=>this[_0x3420('0x4')]()),this[_0x3420('0x19')]=this[_0x3420('0xa')](),this[_0x3420('0x19')][_0x3420('0x8')](_0x1b9340),this[_0x3420('0x1d')]=_0x1b9340;const _0x3a2086=this['bindTemplate'];this[_0x3420('0x1b')]({'tag':_0x3420('0x15'),'attributes':{'class':['ck',_0x3420('0x12'),_0x3420('0xb'),_0x3a2086['if']('isActive',_0x3420('0xd'))],'tabindex':-0x1},'children':this[_0x3420('0x19')]});}[_0x3420('0x0')](){super[_0x3420('0x0')](),this['focusTracker']['add'](this[_0x3420('0xc')]),this[_0x3420('0x10')][_0x3420('0x6')](this[_0x3420('0xc')]),this[_0x3420('0x1')][_0x3420('0x9')](this['element']);}['destroy'](){this['content'][_0x3420('0x17')](),this[_0x3420('0x10')]['destroy'](),this[_0x3420('0x11')][_0x3420('0x13')](),this[_0x3420('0x1')][_0x3420('0x7')](),super[_0x3420('0x13')]();}['focus'](){this[_0x3420('0xc')][_0x3420('0x1c')]();}[_0x3420('0x4')](){const _0x4cdb70=this[_0x3420('0xc')][_0x3420('0xf')];_0x4cdb70&&(this['height']=_0x4cdb70);}}
23
+ const _0x2e5a=['focusTracker','mainView','clientHeight','div','render','_mutationObserver','add','isActive','focus','detach','bindTemplate','content','element','ck-rounded-corners','keystrokes','listenTo','attach','ck-annotation-wrapper','type','height','Esc','createCollection','isDirty','_updateHeight','destroy','setTemplate','set','fire'];(function(_0x5eb722,_0x2e5a13){const _0x5adf90=function(_0x31752f){while(--_0x31752f){_0x5eb722['push'](_0x5eb722['shift']());}};_0x5adf90(++_0x2e5a13);}(_0x2e5a,0x1f2));const _0x5adf=function(_0x5eb722,_0x2e5a13){_0x5eb722=_0x5eb722-0x0;let _0x5adf90=_0x2e5a[_0x5eb722];return _0x5adf90;};import{View as _0x52f669}from'ckeditor5/src/ui';import{FocusTracker as _0x348e70,KeystrokeHandler as _0x3a5703,uid as _0x5b956f}from'ckeditor5/src/utils';import _0x5ba1b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class it extends _0x52f669{constructor(_0x597702,_0x55c8fb){super(_0x597702),this['id']=_0x5b956f(),this['focusTracker']=new _0x348e70(),this[_0x5adf('0x14')]=new _0x3a5703(),this[_0x5adf('0x14')][_0x5adf('0x4')](_0x5adf('0x1a'),(_0x4608cb,_0x1a190f)=>this[_0x5adf('0x5')](_0x5adf('0x1a'),_0x1a190f)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5adf('0x4')](_0x5adf('0x19'),0x0),this[_0x5adf('0x4')](_0x5adf('0xd'),!0x1),this[_0x5adf('0x4')](_0x5adf('0x0'),!0x1),this[_0x5adf('0x4')]('length',0x0),this[_0x5adf('0x4')](_0x5adf('0x18'),''),this[_0x5adf('0xb')]=_0x5ba1b(()=>this[_0x5adf('0x1')]()),this[_0x5adf('0x11')]=this[_0x5adf('0x1b')](),this['content'][_0x5adf('0xc')](_0x55c8fb),this[_0x5adf('0x7')]=_0x55c8fb;const _0x1d4079=this[_0x5adf('0x10')];this[_0x5adf('0x3')]({'tag':_0x5adf('0x9'),'attributes':{'class':['ck',_0x5adf('0x17'),_0x5adf('0x13'),_0x1d4079['if'](_0x5adf('0xd'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5adf('0x11')]});}[_0x5adf('0xa')](){super['render'](),this[_0x5adf('0x6')]['add'](this[_0x5adf('0x12')]),this[_0x5adf('0x14')][_0x5adf('0x15')](this['element']),this[_0x5adf('0xb')][_0x5adf('0x16')](this[_0x5adf('0x12')]);}[_0x5adf('0x2')](){this[_0x5adf('0x11')]['clear'](),this[_0x5adf('0x14')][_0x5adf('0x2')](),this['focusTracker']['destroy'](),this[_0x5adf('0xb')][_0x5adf('0xf')](),super[_0x5adf('0x2')]();}[_0x5adf('0xe')](){this[_0x5adf('0x12')][_0x5adf('0xe')]();}[_0x5adf('0x1')](){const _0x4e5ec7=this[_0x5adf('0x12')][_0x5adf('0x8')];_0x4e5ec7&&(this[_0x5adf('0x19')]=_0x4e5ec7);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a71=['render','height','clear','set','updateHeight','clientHeight','_mutationObserver','attach','isAnimationDisabled','bottom','div','ck-sidebar-item--no-animation','bind','content','ck-sidebar-item','_targetTop','setTemplate','element','destroy','detach','createCollection','top'];(function(_0x3189df,_0x5a71e1){const _0x1c48cf=function(_0x122508){while(--_0x122508){_0x3189df['push'](_0x3189df['shift']());}};_0x1c48cf(++_0x5a71e1);}(_0x5a71,0x134));const _0x1c48=function(_0x3189df,_0x5a71e1){_0x3189df=_0x3189df-0x0;let _0x1c48cf=_0x5a71[_0x3189df];return _0x1c48cf;};import{View as _0x43aa8d}from'ckeditor5/src/ui';import{toUnit as _0x140a2f}from'ckeditor5/src/utils';import _0x96f7cc from'../../utils/createmutationobserver';const gt=_0x140a2f('px');export default class T extends _0x43aa8d{constructor(_0x572355){super(_0x572355),this['set']('top'),this[_0x1c48('0x3')](_0x1c48('0x1'),0x0),this[_0x1c48('0xc')](_0x1c48('0x9'))['to'](this,_0x1c48('0x15'),this,'height',(_0x5de237,_0x3acdce)=>(_0x5de237||0x0)+_0x3acdce),this[_0x1c48('0x3')](_0x1c48('0x8'),!0x1),this['_mutationObserver']=_0x96f7cc(()=>this[_0x1c48('0x4')]()),this[_0x1c48('0xf')]=null,this[_0x1c48('0xd')]=this[_0x1c48('0x14')]();const _0x599ddb=this['bindTemplate'];this[_0x1c48('0x10')]({'tag':_0x1c48('0xa'),'attributes':{'class':[_0x1c48('0xe'),_0x599ddb['to'](_0x1c48('0x8'),_0x107e68=>_0x107e68?_0x1c48('0xb'):'')],'style':{'top':_0x599ddb['to']('top',gt)}},'children':this['content']});}[_0x1c48('0x0')](){super[_0x1c48('0x0')](),this['_mutationObserver'][_0x1c48('0x7')](this[_0x1c48('0x11')]);}[_0x1c48('0x4')](){const _0x537356=this['element'][_0x1c48('0x5')];_0x537356&&(this['height']=_0x537356);}['destroy'](){this[_0x1c48('0xd')][_0x1c48('0x2')](),this[_0x1c48('0x6')][_0x1c48('0x13')](),super[_0x1c48('0x12')]();}}
23
+ const _0x5d9f=['_mutationObserver','top','bind','set','setTemplate','bottom','render','element','height','content','bindTemplate','createCollection','updateHeight','ck-sidebar-item','destroy','isAnimationDisabled','clientHeight','detach','attach','_targetTop'];(function(_0x1c3a0b,_0x5d9f57){const _0x189dd0=function(_0x4d06b7){while(--_0x4d06b7){_0x1c3a0b['push'](_0x1c3a0b['shift']());}};_0x189dd0(++_0x5d9f57);}(_0x5d9f,0x6b));const _0x189d=function(_0x1c3a0b,_0x5d9f57){_0x1c3a0b=_0x1c3a0b-0x0;let _0x189dd0=_0x5d9f[_0x1c3a0b];return _0x189dd0;};import{View as _0x5a04fc}from'ckeditor5/src/ui';import{toUnit as _0x28f1b0}from'ckeditor5/src/utils';import _0x40690c from'../../utils/createmutationobserver';const gt=_0x28f1b0('px');export default class V extends _0x5a04fc{constructor(_0x4fef88){super(_0x4fef88),this['set']('top'),this[_0x189d('0x10')]('height',0x0),this[_0x189d('0xf')](_0x189d('0x12'))['to'](this,_0x189d('0xe'),this,_0x189d('0x1'),(_0x160580,_0xd3467f)=>(_0x160580||0x0)+_0xd3467f),this[_0x189d('0x10')](_0x189d('0x8'),!0x1),this[_0x189d('0xd')]=_0x40690c(()=>this[_0x189d('0x5')]()),this[_0x189d('0xc')]=null,this[_0x189d('0x2')]=this[_0x189d('0x4')]();const _0x42917e=this[_0x189d('0x3')];this[_0x189d('0x11')]({'tag':'div','attributes':{'class':[_0x189d('0x6'),_0x42917e['to'](_0x189d('0x8'),_0x2f2292=>_0x2f2292?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x42917e['to'](_0x189d('0xe'),gt)}},'children':this[_0x189d('0x2')]});}['render'](){super[_0x189d('0x13')](),this[_0x189d('0xd')][_0x189d('0xb')](this[_0x189d('0x0')]);}[_0x189d('0x5')](){const _0x83fd3d=this['element'][_0x189d('0x9')];_0x83fd3d&&(this[_0x189d('0x1')]=_0x83fd3d);}[_0x189d('0x7')](){this['content']['clear'](),this[_0x189d('0xd')][_0x189d('0xa')](),super[_0x189d('0x7')]();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e76=['set','bindTemplate','minHeight','class','list','ck-sidebar','createCollection'];(function(_0x4d032a,_0x3e7695){const _0x359616=function(_0xb19adb){while(--_0xb19adb){_0x4d032a['push'](_0x4d032a['shift']());}};_0x359616(++_0x3e7695);}(_0x3e76,0x1a7));const _0x3596=function(_0x4d032a,_0x3e7695){_0x4d032a=_0x4d032a-0x0;let _0x359616=_0x3e76[_0x4d032a];return _0x359616;};import{View as _0x2e2264}from'ckeditor5/src/ui';import{toUnit as _0x41f9e6}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x41f9e6('px');export default class O extends _0x2e2264{constructor(_0x21f4f8){super(_0x21f4f8);const _0x3abc97=this[_0x3596('0x5')];this[_0x3596('0x4')]('minHeight',0x0),this[_0x3596('0x4')](_0x3596('0x0'),''),this[_0x3596('0x1')]=this[_0x3596('0x3')](),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3596('0x2'),'ck-reset',_0x3abc97['to'](_0x3596('0x0'))],'style':{'minHeight':_0x3abc97['to'](_0x3596('0x6'),_0x5b1a4f=>_0x5b1a4f?gt(_0x5b1a4f+0xa):null)}},'children':this[_0x3596('0x1')]});}}
23
+ const _0x30c3=['set','class','setTemplate','ck-reset','div','list','createCollection','bindTemplate','minHeight'];(function(_0xed5014,_0x30c38f){const _0x178aa0=function(_0x3ea671){while(--_0x3ea671){_0xed5014['push'](_0xed5014['shift']());}};_0x178aa0(++_0x30c38f);}(_0x30c3,0xa2));const _0x178a=function(_0xed5014,_0x30c38f){_0xed5014=_0xed5014-0x0;let _0x178aa0=_0x30c3[_0xed5014];return _0x178aa0;};import{View as _0x278cfa}from'ckeditor5/src/ui';import{toUnit as _0x6dd516}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x6dd516('px');export default class T extends _0x278cfa{constructor(_0x54db50){super(_0x54db50);const _0x590762=this[_0x178a('0x7')];this['set'](_0x178a('0x8'),0x0),this[_0x178a('0x0')]('class',''),this['list']=this[_0x178a('0x6')](),this[_0x178a('0x2')]({'tag':_0x178a('0x4'),'attributes':{'class':['ck','ck-sidebar',_0x178a('0x3'),_0x590762['to'](_0x178a('0x1'))],'style':{'minHeight':_0x590762['to'](_0x178a('0x8'),_0x1056b2=>_0x1056b2?gt(_0x1056b2+0xa):null)}},'children':this[_0x178a('0x5')]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47c3=['set:container','uiUpdate','isAttached','rearrange','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','refresh','_annotations','refreshPositioning','focus','high','blur','addAnnotation','EditorAnnotations','off','container','wideSidebar','_editorAnnotations','register','init','stopListening','detach','ck-sidebar--wide','destroy','updateTargetRect','pluginName','has','attach','get','removeEventListener','stop','Sidebar','add','ready','remove','_activeAnnotation','editors','_throttledPositioningRefresh','listenTo','plugins','requires','context','cancel','set','activeAnnotation','change:container','setActiveAnnotation','widesidebar-detach-not-attached','WideSidebar'];(function(_0x51733b,_0x47c3eb){const _0x5f284b=function(_0x4d453b){while(--_0x4d453b){_0x51733b['push'](_0x51733b['shift']());}};_0x5f284b(++_0x47c3eb);}(_0x47c3,0x1ba));const _0x5f28=function(_0x51733b,_0x47c3eb){_0x51733b=_0x51733b-0x0;let _0x5f284b=_0x47c3[_0x51733b];return _0x5f284b;};import{ContextPlugin as _0x25bd1d}from'ckeditor5/src/core';import _0x3aadfa from'./annotationsuis';import _0x4841af from'./sidebar';import{CKEditorError as _0x49d77e,Collection as _0x159986}from'ckeditor5/src/utils';import{throttle as _0x1ccf74}from'lodash-es';export default class i extends _0x25bd1d{static get[_0x5f28('0x27')](){return[_0x4841af,_0x3aadfa];}static get[_0x5f28('0x18')](){return _0x5f28('0x2f');}constructor(_0x2909c5){super(_0x2909c5),this[_0x5f28('0x1')]=!0x1,this[_0x5f28('0x2a')](_0x5f28('0x2b'),null),this[_0x5f28('0x6')]=null,this[_0x5f28('0x10')]=new _0x159986(),this[_0x5f28('0x24')]=_0x1ccf74(()=>{this[_0x5f28('0x6')][_0x5f28('0x7')]();},0x190,{'leading':!0x1});}[_0x5f28('0x12')](){const _0x11433b=this[_0x5f28('0x28')][_0x5f28('0x26')]['get'](_0x3aadfa),_0x27d65d=this['context'][_0x5f28('0x26')]['get'](_0x4841af);_0x11433b[_0x5f28('0x11')](_0x5f28('0xf'),this),_0x27d65d[_0x5f28('0xe')]&&_0x11433b['switchTo']('wideSidebar');}[_0x5f28('0x2d')](_0x480bea){if(_0x480bea===this['activeAnnotation'])return;const _0x345b9e=this[_0x5f28('0x28')][_0x5f28('0x26')]['get'](_0x4841af);_0x345b9e[_0x5f28('0x22')]=_0x480bea;const _0x59eeb8=this[_0x5f28('0x2b')];this[_0x5f28('0x2b')]=_0x480bea,_0x345b9e[_0x5f28('0x5')]({'blurredAnnotation':_0x59eeb8,'activatedAnnotation':this[_0x5f28('0x2b')]});}[_0x5f28('0x1a')](_0x43ae49){this[_0x5f28('0x6')]=_0x43ae49;const _0x2487ce=this[_0x5f28('0x28')][_0x5f28('0x26')][_0x5f28('0x1b')](_0x5f28('0x1e'));if(_0x2487ce['_annotations']=_0x43ae49,this[_0x5f28('0x1')])throw new _0x49d77e('widesidebar-attach-already-attached',this);this[_0x5f28('0x1')]=!0x0,this[_0x5f28('0x25')](_0x2487ce,_0x5f28('0x30'),()=>{this['detach'](),this[_0x5f28('0x25')](_0x2487ce,_0x5f28('0x2c'),_0x3fa018=>{_0x3fa018[_0x5f28('0xd')](),this[_0x5f28('0x1a')](_0x43ae49);});}),_0x2487ce['_attachToContainer']({'viewClass':_0x5f28('0x15')});const _0x3e6340=_0x269e83=>{_0x269e83[_0x5f28('0x17')](),_0x2487ce[_0x5f28('0xb')](_0x269e83);};for(const _0x1f37a0 of _0x43ae49)_0x3e6340(_0x1f37a0);this['listenTo'](_0x43ae49,_0x5f28('0x1f'),(_0x301908,_0x51d7e5)=>{_0x3e6340(_0x51d7e5);}),this['listenTo'](_0x43ae49,_0x5f28('0x21'),(_0x39f117,_0x3bd129,_0x941a55)=>{_0x2487ce[_0x5f28('0x2')]({'removedAnnotation':_0x3bd129,'previousAnnotation':_0x43ae49[_0x5f28('0x1b')](_0x941a55-0x1),'nextAnnotation':_0x43ae49[_0x5f28('0x1b')](_0x941a55+0x1)}),_0x3bd129===this[_0x5f28('0x2b')]&&this['setActiveAnnotation'](null);},{'priority':_0x5f28('0x9')}),this[_0x5f28('0x25')](_0x43ae49,_0x5f28('0x8'),(_0x35c867,_0x907d23)=>{this[_0x5f28('0x2d')](_0x907d23);}),this['listenTo'](_0x43ae49,_0x5f28('0xa'),()=>{this[_0x5f28('0x2d')](null);});const _0x467b6a=this['context'][_0x5f28('0x23')]?this[_0x5f28('0x28')][_0x5f28('0x23')]:new _0x159986([this[_0x5f28('0x28')]]);for(const _0x418a4a of _0x467b6a)this[_0x5f28('0x4')](_0x418a4a);this[_0x5f28('0x25')](_0x467b6a,_0x5f28('0x1f'),(_0x120e12,_0x2e47f2)=>{this[_0x5f28('0x25')](_0x2e47f2,_0x5f28('0x20'),()=>{this[_0x5f28('0x4')](_0x2e47f2);});}),this[_0x5f28('0x25')](_0x467b6a,'remove',(_0x3e451f,_0x109700)=>{_0x109700['plugins'][_0x5f28('0x19')](_0x5f28('0xc'))&&this[_0x5f28('0x3')](_0x109700[_0x5f28('0x26')][_0x5f28('0x1b')](_0x5f28('0xc')));}),window['addEventListener']('resize',this[_0x5f28('0x24')]),this[_0x5f28('0x6')][_0x5f28('0x7')]();}['detach'](){if(!this['isAttached'])throw new _0x49d77e(_0x5f28('0x2e'),this);this[_0x5f28('0x2d')](null);const _0x44be1c=this[_0x5f28('0x28')][_0x5f28('0x26')][_0x5f28('0x1b')](_0x4841af);_0x44be1c['_detachFromContainer'](this['_annotations']),this[_0x5f28('0x13')](_0x44be1c),this[_0x5f28('0x13')](this['_annotations']),this[_0x5f28('0x13')](this['context'][_0x5f28('0x23')]);for(const _0x3ddc19 of Array['from'](this['_editorAnnotations']))this[_0x5f28('0x3')](_0x3ddc19);window[_0x5f28('0x1c')]('resize',this[_0x5f28('0x24')]),this['_throttledPositioningRefresh'][_0x5f28('0x29')](),this['activeAnnotation']=null,this[_0x5f28('0x1')]=!0x1;}[_0x5f28('0x16')](){this[_0x5f28('0x1')]&&this[_0x5f28('0x14')]();}[_0x5f28('0x4')](_0xfd8213){const _0x374069=_0xfd8213[_0x5f28('0x26')]['get'](_0x5f28('0xc'));if(!_0x374069)return;const _0x2ae6eb=()=>{const _0x397a52=_0x374069['getOrderedSelectedAnnotations']({'annotations':this['_annotations'],'activeAnnotation':this[_0x5f28('0x2b')]});this[_0x5f28('0x2d')](_0x397a52[0x0]||null);};this[_0x5f28('0x25')](_0x374069,'refresh',_0x2ae6eb),this[_0x5f28('0x25')](_0x374069,_0x5f28('0xa'),(_0x432fb0,{isAnnotationTracked:_0x5b5236})=>{this[_0x5f28('0x2b')]&&_0x5b5236(this[_0x5f28('0x2b')])&&this[_0x5f28('0x2d')](null);}),this[_0x5f28('0x25')](_0x374069,_0x5f28('0x0'),()=>{this[_0x5f28('0x6')][_0x5f28('0x7')]();}),this[_0x5f28('0x25')](this[_0x5f28('0x6')],_0x5f28('0xa'),_0x5cc232=>{_0x374069['hasDomSelection']()&&(_0x2ae6eb(),_0x5cc232[_0x5f28('0x1d')]());},{'priority':_0x5f28('0x9')}),this[_0x5f28('0x10')][_0x5f28('0x1f')](_0x374069);}['_destroyEditorAnnotationsIntegration'](_0x5e6c43){_0x5e6c43&&(this[_0x5f28('0x13')](_0x5e6c43),this[_0x5f28('0x10')][_0x5f28('0x21')](_0x5e6c43));}}
23
+ const _0x169e=['widesidebar-detach-not-attached','activeAnnotation','off','removeEventListener','refresh','stopListening','_annotations','_destroyEditorAnnotationsIntegration','_editorAnnotations','isAttached','ready','set','_integrateWithEditorAnnotations','setActiveAnnotation','requires','_attachToContainer','EditorAnnotations','hasDomSelection','add','register','_throttledPositioningRefresh','WideSidebar','addEventListener','high','pluginName','container','plugins','resize','widesidebar-attach-already-attached','wideSidebar','_detachFromContainer','_activeAnnotation','change:container','stop','context','uiUpdate','listenTo','remove','editors','refreshPositioning','has','blur','switchTo','getOrderedSelectedAnnotations','get','ck-sidebar--wide','detach','updateTargetRect','attach'];(function(_0x5542e7,_0x169e45){const _0x31236d=function(_0x434294){while(--_0x434294){_0x5542e7['push'](_0x5542e7['shift']());}};_0x31236d(++_0x169e45);}(_0x169e,0x1ca));const _0x3123=function(_0x5542e7,_0x169e45){_0x5542e7=_0x5542e7-0x0;let _0x31236d=_0x169e[_0x5542e7];return _0x31236d;};import{ContextPlugin as _0x20b92f}from'ckeditor5/src/core';import _0x2c81a3 from'./annotationsuis';import _0x6f2571 from'./sidebar';import{CKEditorError as _0x7fcb2c,Collection as _0x4d7e75}from'ckeditor5/src/utils';import{throttle as _0x1c865e}from'lodash-es';export default class i extends _0x20b92f{static get[_0x3123('0x2e')](){return[_0x6f2571,_0x2c81a3];}static get[_0x3123('0x7')](){return _0x3123('0x4');}constructor(_0x37a96b){super(_0x37a96b),this[_0x3123('0x29')]=!0x1,this[_0x3123('0x2b')](_0x3123('0x21'),null),this[_0x3123('0x26')]=null,this[_0x3123('0x28')]=new _0x4d7e75(),this[_0x3123('0x3')]=_0x1c865e(()=>{this[_0x3123('0x26')][_0x3123('0x16')]();},0x190,{'leading':!0x1});}['init'](){const _0xdd4cc9=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x2c81a3),_0x34d007=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x6f2571);_0xdd4cc9[_0x3123('0x2')]('wideSidebar',this),_0x34d007[_0x3123('0x8')]&&_0xdd4cc9[_0x3123('0x19')](_0x3123('0xc'));}[_0x3123('0x2d')](_0x21d5ec){if(_0x21d5ec===this[_0x3123('0x21')])return;const _0x511109=this['context'][_0x3123('0x9')]['get'](_0x6f2571);_0x511109[_0x3123('0xe')]=_0x21d5ec;const _0x2ac4cb=this[_0x3123('0x21')];this[_0x3123('0x21')]=_0x21d5ec,_0x511109[_0x3123('0x24')]({'blurredAnnotation':_0x2ac4cb,'activatedAnnotation':this[_0x3123('0x21')]});}[_0x3123('0x1f')](_0x2f4f2b){this['_annotations']=_0x2f4f2b;const _0xbe80cb=this[_0x3123('0x11')]['plugins'][_0x3123('0x1b')]('Sidebar');if(_0xbe80cb[_0x3123('0x26')]=_0x2f4f2b,this[_0x3123('0x29')])throw new _0x7fcb2c(_0x3123('0xb'),this);this[_0x3123('0x29')]=!0x0,this[_0x3123('0x13')](_0xbe80cb,'set:container',()=>{this[_0x3123('0x1d')](),this[_0x3123('0x13')](_0xbe80cb,_0x3123('0xf'),_0x30220b=>{_0x30220b[_0x3123('0x22')](),this['attach'](_0x2f4f2b);});}),_0xbe80cb[_0x3123('0x2f')]({'viewClass':_0x3123('0x1c')});const _0x2490ed=_0x469c10=>{_0x469c10[_0x3123('0x1e')](),_0xbe80cb['addAnnotation'](_0x469c10);};for(const _0x186a58 of _0x2f4f2b)_0x2490ed(_0x186a58);this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x1'),(_0x34f142,_0x56497c)=>{_0x2490ed(_0x56497c);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x14'),(_0x2cec4f,_0x50851b,_0x2a4be8)=>{_0xbe80cb['rearrange']({'removedAnnotation':_0x50851b,'previousAnnotation':_0x2f4f2b['get'](_0x2a4be8-0x1),'nextAnnotation':_0x2f4f2b['get'](_0x2a4be8+0x1)}),_0x50851b===this[_0x3123('0x21')]&&this[_0x3123('0x2d')](null);},{'priority':_0x3123('0x6')}),this[_0x3123('0x13')](_0x2f4f2b,'focus',(_0x1446d3,_0x4792ac)=>{this['setActiveAnnotation'](_0x4792ac);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x18'),()=>{this[_0x3123('0x2d')](null);});const _0x3f4860=this['context'][_0x3123('0x15')]?this[_0x3123('0x11')][_0x3123('0x15')]:new _0x4d7e75([this[_0x3123('0x11')]]);for(const _0x5881ec of _0x3f4860)this[_0x3123('0x2c')](_0x5881ec);this[_0x3123('0x13')](_0x3f4860,_0x3123('0x1'),(_0x16d712,_0x546826)=>{this[_0x3123('0x13')](_0x546826,_0x3123('0x2a'),()=>{this[_0x3123('0x2c')](_0x546826);});}),this[_0x3123('0x13')](_0x3f4860,_0x3123('0x14'),(_0x5abde6,_0x208097)=>{_0x208097[_0x3123('0x9')][_0x3123('0x17')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x208097[_0x3123('0x9')]['get'](_0x3123('0x30')));}),window[_0x3123('0x5')](_0x3123('0xa'),this[_0x3123('0x3')]),this['_annotations'][_0x3123('0x16')]();}[_0x3123('0x1d')](){if(!this['isAttached'])throw new _0x7fcb2c(_0x3123('0x20'),this);this[_0x3123('0x2d')](null);const _0x5061db=this[_0x3123('0x11')][_0x3123('0x9')]['get'](_0x6f2571);_0x5061db[_0x3123('0xd')](this[_0x3123('0x26')]),this[_0x3123('0x25')](_0x5061db),this[_0x3123('0x25')](this[_0x3123('0x26')]),this[_0x3123('0x25')](this['context'][_0x3123('0x15')]);for(const _0x11105f of Array['from'](this[_0x3123('0x28')]))this[_0x3123('0x27')](_0x11105f);window[_0x3123('0x23')](_0x3123('0xa'),this['_throttledPositioningRefresh']),this[_0x3123('0x3')]['cancel'](),this['activeAnnotation']=null,this[_0x3123('0x29')]=!0x1;}['destroy'](){this['isAttached']&&this[_0x3123('0x1d')]();}[_0x3123('0x2c')](_0x238c68){const _0xc1eb75=_0x238c68[_0x3123('0x9')][_0x3123('0x1b')](_0x3123('0x30'));if(!_0xc1eb75)return;const _0x5affe6=()=>{const _0x118e7c=_0xc1eb75[_0x3123('0x1a')]({'annotations':this[_0x3123('0x26')],'activeAnnotation':this[_0x3123('0x21')]});this[_0x3123('0x2d')](_0x118e7c[0x0]||null);};this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x24'),_0x5affe6),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x18'),(_0x45576e,{isAnnotationTracked:_0x14f3c1})=>{this[_0x3123('0x21')]&&_0x14f3c1(this[_0x3123('0x21')])&&this['setActiveAnnotation'](null);}),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x12'),()=>{this[_0x3123('0x26')]['refreshPositioning']();}),this[_0x3123('0x13')](this[_0x3123('0x26')],'blur',_0x12a7c5=>{_0xc1eb75[_0x3123('0x0')]()&&(_0x5affe6(),_0x12a7c5[_0x3123('0x10')]());},{'priority':_0x3123('0x6')}),this['_editorAnnotations'][_0x3123('0x1')](_0xc1eb75);}[_0x3123('0x27')](_0x3d355d){_0x3d355d&&(this[_0x3123('0x25')](_0x3d355d),this[_0x3123('0x28')]['remove'](_0x3d355d));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x75a4=['textProxy','execute','_trimToContent','model','getLastMatchingPosition','selection','_hasContent','tableCell','start','isObject','_itemIsContent','element','comment:','item','backward','addMarker','createRange','change','editor','isEnabled','getRanges','getItems'];(function(_0x3df52f,_0x75a4f5){const _0x1a0e36=function(_0x34546c){while(--_0x34546c){_0x3df52f['push'](_0x3df52f['shift']());}};_0x1a0e36(++_0x75a4f5);}(_0x75a4,0x168));const _0x1a0e=function(_0x3df52f,_0x75a4f5){_0x3df52f=_0x3df52f-0x0;let _0x1a0e36=_0x75a4[_0x3df52f];return _0x1a0e36;};import{Command as _0x3a0969}from'ckeditor5/src/core';import{uid as _0x37852d}from'ckeditor5/src/utils';export default class P extends _0x3a0969{['refresh'](){const _0x143fab=this[_0x1a0e('0xa')][_0x1a0e('0x11')]['document'][_0x1a0e('0x13')];for(const _0xfb11c0 of _0x143fab[_0x1a0e('0xc')]())if(this[_0x1a0e('0x14')](_0xfb11c0))return void(this[_0x1a0e('0xb')]=!0x0);this['isEnabled']=!0x1;}[_0x1a0e('0xf')]({threadId:_0x3805c5=_0x37852d()}={}){const _0x28b41f=this[_0x1a0e('0xa')]['model'],_0x5e98e7=[];for(const _0x53ef2a of _0x28b41f['document']['selection']['getRanges']())this[_0x1a0e('0x14')](_0x53ef2a)&&_0x5e98e7['push'](this['_trimToContent'](_0x53ef2a));_0x28b41f[_0x1a0e('0x9')](_0x31dbc4=>{for(const _0x109def of _0x5e98e7){const _0x4dab43=_0x37852d()['substr'](0x1,0x5),_0x5737b0=_0x1a0e('0x4')+_0x3805c5+':'+_0x4dab43;_0x31dbc4[_0x1a0e('0x7')](_0x5737b0,{'range':_0x109def,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x104307){for(const _0x3a4d60 of _0x104307[_0x1a0e('0xd')]())if(this[_0x1a0e('0x2')](_0x3a4d60))return!0x0;return!0x1;}['_itemIsContent'](_0x268d61){return _0x268d61['is'](_0x1a0e('0xe'))||this[_0x1a0e('0xa')][_0x1a0e('0x11')]['schema'][_0x1a0e('0x1')](_0x268d61)&&!_0x268d61['is'](_0x1a0e('0x3'),_0x1a0e('0x15'));}[_0x1a0e('0x10')](_0x55ed59){const _0x453a2e=_0x44ee7c=>!this['_itemIsContent'](_0x44ee7c[_0x1a0e('0x5')]),_0x4aa48b=_0x55ed59[_0x1a0e('0x0')][_0x1a0e('0x12')](_0x453a2e),_0x39268d=_0x55ed59['end'][_0x1a0e('0x12')](_0x453a2e,{'direction':_0x1a0e('0x6')});return this[_0x1a0e('0xa')][_0x1a0e('0x11')][_0x1a0e('0x8')](_0x4aa48b,_0x39268d);}}
23
+ const _0x1407=['_trimToContent','substr','document','backward','comment:','createRange','getLastMatchingPosition','selection','getItems','model','push','_itemIsContent','_hasContent','addMarker','end','isObject','refresh','tableCell','schema','execute','editor','element','getRanges','isEnabled'];(function(_0x483f47,_0x140754){const _0x5486e3=function(_0x11eb09){while(--_0x11eb09){_0x483f47['push'](_0x483f47['shift']());}};_0x5486e3(++_0x140754);}(_0x1407,0x193));const _0x5486=function(_0x483f47,_0x140754){_0x483f47=_0x483f47-0x0;let _0x5486e3=_0x1407[_0x483f47];return _0x5486e3;};import{Command as _0x525d39}from'ckeditor5/src/core';import{uid as _0x44c44c}from'ckeditor5/src/utils';export default class j extends _0x525d39{[_0x5486('0x15')](){const _0x4c7d96=this[_0x5486('0x1')]['model'][_0x5486('0x7')][_0x5486('0xc')];for(const _0x3fcafa of _0x4c7d96[_0x5486('0x3')]())if(this['_hasContent'](_0x3fcafa))return void(this[_0x5486('0x4')]=!0x0);this[_0x5486('0x4')]=!0x1;}[_0x5486('0x0')]({threadId:_0x4fc6c6=_0x44c44c()}={}){const _0x241e53=this[_0x5486('0x1')][_0x5486('0xe')],_0x5e105e=[];for(const _0x26baba of _0x241e53[_0x5486('0x7')][_0x5486('0xc')]['getRanges']())this[_0x5486('0x11')](_0x26baba)&&_0x5e105e[_0x5486('0xf')](this[_0x5486('0x5')](_0x26baba));_0x241e53['change'](_0xa375c5=>{for(const _0x54a098 of _0x5e105e){const _0x4bbbf1=_0x44c44c()[_0x5486('0x6')](0x1,0x5),_0xbdba4d=_0x5486('0x9')+_0x4fc6c6+':'+_0x4bbbf1;_0xa375c5[_0x5486('0x12')](_0xbdba4d,{'range':_0x54a098,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x5486('0x11')](_0x14df8f){for(const _0x177d72 of _0x14df8f[_0x5486('0xd')]())if(this[_0x5486('0x10')](_0x177d72))return!0x0;return!0x1;}['_itemIsContent'](_0xff764f){return _0xff764f['is']('textProxy')||this[_0x5486('0x1')][_0x5486('0xe')][_0x5486('0x17')][_0x5486('0x14')](_0xff764f)&&!_0xff764f['is'](_0x5486('0x2'),_0x5486('0x16'));}[_0x5486('0x5')](_0x4f214d){const _0x58b78f=_0x22c560=>!this[_0x5486('0x10')](_0x22c560['item']),_0x2432c0=_0x4f214d['start']['getLastMatchingPosition'](_0x58b78f),_0x5aa563=_0x4f214d[_0x5486('0x13')][_0x5486('0xb')](_0x58b78f,{'direction':_0x5486('0x8')});return this[_0x5486('0x1')][_0x5486('0xe')][_0x5486('0xa')](_0x2432c0,_0x5aa563);}}