@ckeditor/ckeditor5-comments 31.0.0 → 33.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 (122) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/ko.js +1 -0
  22. package/build/translations/nl.js +1 -0
  23. package/build/translations/no.js +1 -0
  24. package/build/translations/pl.js +1 -0
  25. package/build/translations/pt-br.js +1 -0
  26. package/build/translations/ro.js +1 -0
  27. package/build/translations/ru.js +1 -0
  28. package/build/translations/sk.js +1 -0
  29. package/build/translations/sr-latn.js +1 -0
  30. package/build/translations/sr.js +1 -0
  31. package/build/translations/tk.js +1 -0
  32. package/build/translations/tr.js +1 -0
  33. package/build/translations/ug.js +1 -0
  34. package/build/translations/uk.js +1 -0
  35. package/build/translations/zh-cn.js +1 -0
  36. package/build/translations/zh.js +1 -0
  37. package/lang/translations/bs.po +80 -0
  38. package/lang/translations/cs.po +1 -1
  39. package/lang/translations/da.po +79 -0
  40. package/lang/translations/de-ch.po +1 -1
  41. package/lang/translations/de.po +1 -1
  42. package/lang/translations/el.po +79 -0
  43. package/lang/translations/en-au.po +1 -1
  44. package/lang/translations/en.po +1 -1
  45. package/lang/translations/es.po +1 -1
  46. package/lang/translations/et.po +1 -1
  47. package/lang/translations/fr.po +1 -1
  48. package/lang/translations/gl.po +1 -1
  49. package/lang/translations/hi.po +1 -1
  50. package/lang/translations/hr.po +1 -1
  51. package/lang/translations/hu.po +1 -1
  52. package/lang/translations/id.po +78 -0
  53. package/lang/translations/it.po +1 -1
  54. package/lang/translations/ja.po +1 -1
  55. package/lang/translations/ko.po +1 -1
  56. package/lang/translations/nl.po +1 -1
  57. package/lang/translations/no.po +1 -1
  58. package/lang/translations/pl.po +1 -1
  59. package/lang/translations/pt-br.po +1 -1
  60. package/lang/translations/ro.po +1 -1
  61. package/lang/translations/ru.po +1 -1
  62. package/lang/translations/sk.po +1 -1
  63. package/lang/translations/sr-latn.po +1 -1
  64. package/lang/translations/sr.po +1 -1
  65. package/lang/translations/tk.po +1 -1
  66. package/lang/translations/tr.po +1 -1
  67. package/lang/translations/ug.po +1 -1
  68. package/lang/translations/uk.po +1 -1
  69. package/lang/translations/zh-cn.po +1 -1
  70. package/lang/translations/zh.po +1 -1
  71. package/package.json +4 -9
  72. package/src/annotations/annotation.js +2 -2
  73. package/src/annotations/annotationcollection.js +2 -2
  74. package/src/annotations/annotations.js +2 -2
  75. package/src/annotations/annotationsuis.js +2 -2
  76. package/src/annotations/editorannotations.js +2 -2
  77. package/src/annotations/inlineannotations.js +2 -2
  78. package/src/annotations/narrowsidebar.js +2 -2
  79. package/src/annotations/sidebar.js +2 -2
  80. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  81. package/src/annotations/view/annotationview.js +2 -2
  82. package/src/annotations/view/sidebaritemview.js +2 -2
  83. package/src/annotations/view/sidebarview.js +2 -2
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/comments/addcommentthreadcommand.js +2 -2
  86. package/src/comments/commentsediting.js +2 -2
  87. package/src/comments/commentsrepository.js +2 -2
  88. package/src/comments/commentsui.js +2 -2
  89. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  90. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  91. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  92. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  93. package/src/comments/ui/commentthreadcontroller.js +2 -2
  94. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  95. package/src/comments/ui/view/basecommentview.js +2 -2
  96. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  97. package/src/comments/ui/view/commentcontentview.js +2 -2
  98. package/src/comments/ui/view/commentinputview.js +2 -2
  99. package/src/comments/ui/view/commentslistview.js +2 -2
  100. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  101. package/src/comments/ui/view/commentthreadview.js +2 -2
  102. package/src/comments/ui/view/commentview.js +2 -2
  103. package/src/comments/ui/view/confirmmixin.js +2 -2
  104. package/src/comments/ui/view/confirmview.js +2 -2
  105. package/src/comments.js +2 -2
  106. package/src/commentsonly.js +2 -2
  107. package/src/{utils/getmarkerdomelement.js → index.js} +2 -2
  108. package/src/utils/common-translations.js +2 -2
  109. package/src/utils/createmutationobserver.js +2 -2
  110. package/theme/annotation-inline.css +1 -1
  111. package/theme/annotation.css +1 -1
  112. package/theme/comment.css +1 -1
  113. package/theme/commentinput.css +1 -1
  114. package/theme/commentmarker.css +1 -1
  115. package/theme/commentthread.css +1 -1
  116. package/theme/icons/add-comment.svg +1 -1
  117. package/theme/icons/edit-comment.svg +1 -1
  118. package/theme/icons/remove-comment.svg +1 -1
  119. package/theme/sidebar-narrow.css +1 -1
  120. package/theme/sidebar.css +1 -1
  121. package/src/utils/getdatetimeformatter.js +0 -23
  122. package/src/utils/trim-html.js +0 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "31.0.0",
3
+ "version": "33.0.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,15 +29,10 @@
29
29
  "discussion",
30
30
  "discussions"
31
31
  ],
32
+ "main": "src/index.js",
32
33
  "dependencies": {
33
- "@ckeditor/ckeditor5-autoformat": "^31.0.0",
34
- "@ckeditor/ckeditor5-basic-styles": "^31.0.0",
35
- "@ckeditor/ckeditor5-collaboration-core": "^31.0.0",
36
- "@ckeditor/ckeditor5-essentials": "^31.0.0",
37
- "@ckeditor/ckeditor5-list": "^31.0.0",
38
- "@ckeditor/ckeditor5-utils": "^31.0.0",
39
- "ckeditor5": "^31.0.0",
40
- "date-fns": "^2.17.0",
34
+ "ckeditor5": "^33.0.0",
35
+ "ckeditor5-collaboration": "^33.0.0",
41
36
  "lodash-es": "^4.17.11"
42
37
  }
43
38
  }
@@ -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 _0x2f90=['add','annotation-invalid-target','_assertCorrectTarget','target','innerView','_target','_id','function','focusTracker','focusableElements','remove','isActive','targetRect','clear','stopListening','view','element','_type'];(function(_0x40114b,_0x2f9014){const _0x541ea0=function(_0x292e17){while(--_0x292e17){_0x40114b['push'](_0x40114b['shift']());}};_0x541ea0(++_0x2f9014);}(_0x2f90,0x171));const _0x541e=function(_0x40114b,_0x2f9014){_0x40114b=_0x40114b-0x0;let _0x541ea0=_0x2f90[_0x40114b];return _0x541ea0;};import{CKEditorError as _0xa0ef9b,Rect as _0x2f1ab9,Collection as _0x57d120}from'ckeditor5/src/utils';import{isElement as _0x1229a1}from'lodash-es';export default class d{constructor({view:_0x4ae8d3,target:_0x241e21,type:_0x2ae738}){this['view']=_0x4ae8d3,this['view'][_0x541e('0x7')]||this[_0x541e('0x6')]['render'](),this['_type']=_0x2ae738,this[_0x541e('0xe')]=_0x241e21,this[_0x541e('0xb')](),this['focusableElements']=new _0x57d120([this[_0x541e('0x6')][_0x541e('0x7')]],{'idProperty':_0x541e('0xf')}),this[_0x541e('0x0')]['on']('add',(_0x5dcf5f,_0x5997f8)=>{this[_0x541e('0x6')][_0x541e('0x11')][_0x541e('0x9')](_0x5997f8);}),this[_0x541e('0x0')]['on']('remove',(_0xbad6f,_0x13d6c1)=>{this[_0x541e('0x6')][_0x541e('0x11')][_0x541e('0x1')](_0x13d6c1);});}get['type'](){return _0x541e('0x10')==typeof this[_0x541e('0x8')]?this[_0x541e('0x8')]():this[_0x541e('0x8')];}get[_0x541e('0xd')](){return this['view']['mainView'];}get['target'](){return _0x541e('0x10')==typeof this[_0x541e('0xe')]?this[_0x541e('0xe')]():this[_0x541e('0xe')];}get['targetRect'](){const _0x34387f=this['target'];return this['_assertCorrectTarget'](),null===_0x34387f?null:new _0x2f1ab9(_0x34387f);}get['isActive'](){return this['view'][_0x541e('0x2')];}set[_0x541e('0x2')](_0x376ad1){this[_0x541e('0x6')]['isActive']=_0x376ad1,this[_0x541e('0x6')]['mainView'][_0x541e('0x2')]=_0x376ad1;}['updateTargetRect'](){this['view'][_0x541e('0x3')]=this[_0x541e('0x3')];}['destroy'](){this[_0x541e('0x0')][_0x541e('0x5')](),this['focusableElements'][_0x541e('0x4')]();}['_assertCorrectTarget'](){const _0x14631d=this[_0x541e('0xc')];if(!(null===_0x14631d||_0x14631d instanceof _0x2f1ab9||_0x1229a1(_0x14631d)))throw new _0xa0ef9b(_0x541e('0xa'),null,{'target':_0x14631d});}}
23
+ const _0x15f1=['clear','isVisible','focusTracker','render','view','type','add','element','_type','_target','focusableElements','_isTargetElementVisible','targetRect','offsetParent','innerView','_assertCorrectTarget','refreshVisibility','getClientRects','target','_id','mainView','isActive','stopListening','set','annotation-invalid-target'];(function(_0xda45d7,_0x15f1f9){const _0x533eeb=function(_0x4893b8){while(--_0x4893b8){_0xda45d7['push'](_0xda45d7['shift']());}};_0x533eeb(++_0x15f1f9);}(_0x15f1,0x9d));const _0x533e=function(_0xda45d7,_0x15f1f9){_0xda45d7=_0xda45d7-0x0;let _0x533eeb=_0x15f1[_0xda45d7];return _0x533eeb;};import{CKEditorError as _0x5ca36a,Rect as _0x55baec,Collection as _0x14b303,mix as _0x2ca081,ObservableMixin as _0x40716d}from'ckeditor5/src/utils';import{isElement as _0x1dd9a2}from'lodash-es';export default class p{constructor({view:_0x347a41,target:_0x34a865,type:_0x431b37,isVisible:_0x4ec95a=!0x0}){this[_0x533e('0x16')]=_0x347a41,this[_0x533e('0x16')][_0x533e('0x0')]||this[_0x533e('0x16')][_0x533e('0x15')](),this[_0x533e('0x1')]=_0x431b37,this['_target']=_0x34a865,this[_0x533e('0x8')](),this[_0x533e('0x3')]=new _0x14b303([this['view'][_0x533e('0x0')]],{'idProperty':_0x533e('0xc')}),this[_0x533e('0x3')]['on'](_0x533e('0x18'),(_0xd88faa,_0x12206f)=>{this[_0x533e('0x16')][_0x533e('0x14')]['add'](_0x12206f);}),this[_0x533e('0x3')]['on']('remove',(_0x4b2901,_0x472c44)=>{this[_0x533e('0x16')][_0x533e('0x14')]['remove'](_0x472c44);}),this[_0x533e('0x10')](_0x533e('0x13'),_0x4ec95a);}get[_0x533e('0x17')](){return'function'==typeof this[_0x533e('0x1')]?this[_0x533e('0x1')]():this['_type'];}get[_0x533e('0x7')](){return this[_0x533e('0x16')]['mainView'];}get['target'](){return'function'==typeof this[_0x533e('0x2')]?this[_0x533e('0x2')]():this['_target'];}get[_0x533e('0x5')](){const _0x29e1dc=this['target'];return this[_0x533e('0x8')](),null!==_0x29e1dc&&this['_isTargetElementVisible']()?new _0x55baec(_0x29e1dc):null;}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4632f0){this[_0x533e('0x16')]['isActive']=_0x4632f0,this[_0x533e('0x16')][_0x533e('0xd')][_0x533e('0xe')]=_0x4632f0;}['updateTargetRect'](){this[_0x533e('0x16')][_0x533e('0x5')]=this[_0x533e('0x5')];}['destroy'](){this['focusableElements'][_0x533e('0xf')](),this[_0x533e('0x3')][_0x533e('0x12')](),this[_0x533e('0xf')]();}[_0x533e('0x9')](){this[_0x533e('0x13')]=this[_0x533e('0x4')]();}[_0x533e('0x4')](){const _0x494b5b=this[_0x533e('0xb')];if(_0x1dd9a2(_0x494b5b)){const _0x65f13f=_0x494b5b[_0x533e('0xa')]()['item'](0x0),_0x10eaa8=_0x494b5b[_0x533e('0x6')];if(!_0x65f13f||!_0x10eaa8)return!0x1;}return!0x0;}[_0x533e('0x8')](){const _0x3a765b=this['target'];if(!(null===_0x3a765b||_0x3a765b instanceof _0x55baec||_0x1dd9a2(_0x3a765b)))throw new _0x5ca36a(_0x533e('0x11'),null,{'target':_0x3a765b});}}_0x2ca081(p,_0x40716d);
@@ -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 _0x3e66=['targetRect','sort','getIndex','left','max','_sort','annotationcollection-not-existing-item','top','refreshPositioning','focus','_innerViewToAnnotation','fire','view','innerView','_focusTracker','annotationcollection-duplicated-item','_viewToAnnotation','focusableElements','has','getByInnerView','updateTargetRect','add','change:isFocused','get','from','delete','length','focusTracker','stopListening','listenTo','destroy','isFocused','blur','remove','_getOrderInContent','target','getByView'];(function(_0x5aee80,_0x3e6645){const _0xd23115=function(_0x1ccd23){while(--_0x1ccd23){_0x5aee80['push'](_0x5aee80['shift']());}};_0xd23115(++_0x3e6645);}(_0x3e66,0x1e2));const _0xd231=function(_0x5aee80,_0x3e6645){_0x5aee80=_0x5aee80-0x0;let _0xd23115=_0x3e66[_0x5aee80];return _0xd23115;};import{CKEditorError as _0x1c0d1e,Collection as _0x1956a1,Rect as _0x3cdfa0,FocusTracker as _0x281796}from'ckeditor5/src/utils';export default class p extends _0x1956a1{constructor(_0x3a11d1=[]){super(),this[_0xd231('0x9')]=new Map(),this[_0xd231('0xf')]=new Map(),this['_focusTracker']=new _0x281796(),this[_0xd231('0xd')]['on'](_0xd231('0x15'),(_0x4227f7,_0x338f2e,_0x1047f4)=>{_0x1047f4||this[_0xd231('0xa')](_0xd231('0x1f'));});for(const _0x34c702 of _0x3a11d1)this[_0xd231('0x14')](_0x34c702);}get[_0xd231('0x1e')](){return this[_0xd231('0xd')]['isFocused'];}['add'](_0x235c06){if(this[_0xd231('0x11')](_0x235c06))throw new _0x1c0d1e(_0xd231('0xe'),null);this[_0xd231('0x9')]['set'](_0x235c06['innerView'],_0x235c06),this['_viewToAnnotation']['set'](_0x235c06[_0xd231('0xb')],_0x235c06);for(const _0x4c080b of _0x235c06[_0xd231('0x10')])this['_focusTracker'][_0xd231('0x14')](_0x4c080b);this[_0xd231('0x1c')](_0x235c06['focusableElements'],_0xd231('0x14'),(_0x237770,_0x2cf41e)=>{this[_0xd231('0xd')][_0xd231('0x14')](_0x2cf41e);}),this[_0xd231('0x1c')](_0x235c06['focusableElements'],_0xd231('0x20'),(_0x587a56,_0x2392f4)=>{this['_focusTracker'][_0xd231('0x20')](_0x2392f4);}),this['listenTo'](_0x235c06[_0xd231('0xb')][_0xd231('0x1a')],_0xd231('0x15'),(_0x173cb5,_0x32b15d,_0x5e4c40)=>{_0x5e4c40&&this[_0xd231('0xa')](_0xd231('0x8'),_0x235c06);});const _0x29246f=this[_0xd231('0x21')](_0x235c06);super[_0xd231('0x14')](_0x235c06,_0x29246f),_0x235c06['updateTargetRect']();}['remove'](_0x56e3f4){if(!this[_0xd231('0x11')](_0x56e3f4))throw new _0x1c0d1e(_0xd231('0x5'),null);this[_0xd231('0x1b')](_0x56e3f4[_0xd231('0xb')][_0xd231('0x1a')]),this[_0xd231('0x1b')](_0x56e3f4[_0xd231('0x10')]);for(const _0x10db4a of _0x56e3f4[_0xd231('0x10')])this[_0xd231('0xd')][_0xd231('0x20')](_0x10db4a);this[_0xd231('0xf')]['delete'](_0x56e3f4[_0xd231('0xb')]),this[_0xd231('0x9')][_0xd231('0x18')](_0x56e3f4[_0xd231('0xc')]),super[_0xd231('0x20')](_0x56e3f4);}[_0xd231('0x12')](_0x46f67a){return this['_innerViewToAnnotation'][_0xd231('0x16')](_0x46f67a);}[_0xd231('0x23')](_0x373238){return this['_viewToAnnotation'][_0xd231('0x16')](_0x373238);}[_0xd231('0x1d')](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']=null,this[_0xd231('0xf')]=null,this['_focusTracker']['destroy']();}[_0xd231('0x7')](){for(const _0x4b11e6 of this)_0x4b11e6[_0xd231('0x13')]();this['_sort']();}[_0xd231('0x4')](){const _0x3d39cf=Array[_0xd231('0x17')](this)[_0xd231('0x0')]((_0x6b331a,_0xc7b182)=>w(_0x6b331a[_0xd231('0x24')],_0xc7b182[_0xd231('0x24')]));for(let _0x5d4177=_0x3d39cf[_0xd231('0x19')]-0x1;_0x5d4177>0x0;_0x5d4177--){const _0x15708d=_0x3d39cf[_0x5d4177];_0x5d4177!==this[_0xd231('0x1')](_0x15708d)&&(this['remove'](_0x15708d),this['add'](_0x15708d,_0x5d4177));}}[_0xd231('0x21')](_0x3ff6ab){let _0x3f13d2=0x0;const _0x5c071e=_0x3ff6ab['targetRect'];for(const _0x291397 of this){const _0x181374=_0x291397[_0xd231('0x22')];if(_0x181374){if(w(_0x5c071e,new _0x3cdfa0(_0x181374))<0x0)return _0x3f13d2;_0x3f13d2++;}}return Math[_0xd231('0x3')](0x0,_0x3f13d2);}}export function bindAnnotationCollections({source:_0x1966ed,target:_0x164c0c,filter:_0x494a0e}){for(const _0x111e5b of _0x1966ed)_0x494a0e(_0x111e5b)&&_0x164c0c[_0xd231('0x14')](_0x111e5b);_0x164c0c['listenTo'](_0x1966ed,_0xd231('0x14'),(_0x5c3277,_0x196569)=>{_0x494a0e(_0x196569)&&_0x164c0c[_0xd231('0x14')](_0x196569);}),_0x164c0c['listenTo'](_0x1966ed,'remove',(_0x308560,_0x443e37)=>{_0x494a0e(_0x443e37)&&_0x164c0c[_0xd231('0x20')](_0x443e37);});}function w(_0xf0a4fe,_0x3d46d5){const _0x32713d=_0xf0a4fe[_0xd231('0x6')]-_0x3d46d5['top'];return 0x0==_0x32713d?_0xf0a4fe[_0xd231('0x2')]-_0x3d46d5['left']:_0x32713d;}
23
+ const _0x1d50=['change:isFocused','fire','_sort','blur','add','_innerViewToAnnotation','remove','getIndex','clear','updateTargetRect','_viewToAnnotation','refreshPositioning','focusTracker','_items','_focusTracker','view','destroy','left','stopListening','has','_getOrderInContent','set','targetRect','listenTo','focusableElements','from','delete','length','get','innerView','top'];(function(_0x326b07,_0x1d50f3){const _0x32020d=function(_0x1e567a){while(--_0x1e567a){_0x326b07['push'](_0x326b07['shift']());}};_0x32020d(++_0x1d50f3);}(_0x1d50,0x137));const _0x3202=function(_0x326b07,_0x1d50f3){_0x326b07=_0x326b07-0x0;let _0x32020d=_0x1d50[_0x326b07];return _0x32020d;};import{CKEditorError as _0x4d9e63,Collection as _0x55dab7,FocusTracker as _0x287de0}from'ckeditor5/src/utils';export default class x extends _0x55dab7{constructor(_0x4f14ae=[]){super(),this[_0x3202('0x4')]=new Map(),this[_0x3202('0x9')]=new Map(),this[_0x3202('0xd')]=new _0x287de0(),this[_0x3202('0xd')]['on'](_0x3202('0x1e'),(_0x3005ee,_0x4fb247,_0x18062f)=>{_0x18062f||this[_0x3202('0x0')](_0x3202('0x2'));});for(const _0xe20619 of _0x4f14ae)this[_0x3202('0x3')](_0xe20619);}get['isFocused'](){return this[_0x3202('0xd')]['isFocused'];}[_0x3202('0x3')](_0x371154){if(this['has'](_0x371154))throw new _0x4d9e63('annotationcollection-duplicated-item',null);this[_0x3202('0x4')][_0x3202('0x14')](_0x371154[_0x3202('0x1c')],_0x371154),this['_viewToAnnotation'][_0x3202('0x14')](_0x371154[_0x3202('0xe')],_0x371154);for(const _0x142025 of _0x371154[_0x3202('0x17')])this['_focusTracker']['add'](_0x142025);this[_0x3202('0x16')](_0x371154[_0x3202('0x17')],_0x3202('0x3'),(_0x1fd6c9,_0x3fc271)=>{this['_focusTracker']['add'](_0x3fc271);}),this[_0x3202('0x16')](_0x371154['focusableElements'],'remove',(_0x2bf33b,_0x178f05)=>{this['_focusTracker'][_0x3202('0x5')](_0x178f05);}),this[_0x3202('0x16')](_0x371154['view'][_0x3202('0xb')],'change:isFocused',(_0x539d2f,_0x4a8485,_0xd71ef)=>{_0xd71ef&&this[_0x3202('0x0')]('focus',_0x371154);});const _0x47a8e5=this['_getOrderInContent'](_0x371154);super[_0x3202('0x3')](_0x371154,_0x47a8e5),_0x371154[_0x3202('0x8')]();}[_0x3202('0x5')](_0x33d6bc){if(!this['has'](_0x33d6bc))throw new _0x4d9e63('annotationcollection-not-existing-item',null);this[_0x3202('0x11')](_0x33d6bc[_0x3202('0xe')][_0x3202('0xb')]),this[_0x3202('0x11')](_0x33d6bc[_0x3202('0x17')]);for(const _0xb821aa of _0x33d6bc[_0x3202('0x17')])this[_0x3202('0xd')][_0x3202('0x5')](_0xb821aa);this['_viewToAnnotation'][_0x3202('0x19')](_0x33d6bc['view']),this['_innerViewToAnnotation'][_0x3202('0x19')](_0x33d6bc[_0x3202('0x1c')]),super['remove'](_0x33d6bc);}['getByInnerView'](_0x199ae4){return this[_0x3202('0x4')][_0x3202('0x1b')](_0x199ae4);}['getByView'](_0xb4adf5){return this[_0x3202('0x9')][_0x3202('0x1b')](_0xb4adf5);}['destroy'](){super['clear'](),this[_0x3202('0x11')](),this[_0x3202('0x4')][_0x3202('0x7')](),this[_0x3202('0x9')][_0x3202('0x7')](),this['_focusTracker'][_0x3202('0xf')]();}[_0x3202('0xa')](){for(const _0x326cc6 of this)_0x326cc6[_0x3202('0x8')]();this[_0x3202('0x1')]();}[_0x3202('0x1')](){const _0x4f0460=Array[_0x3202('0x18')](this)['sort']((_0x4e4d51,_0x4cd5ec)=>y(_0x4e4d51[_0x3202('0x15')],_0x4cd5ec[_0x3202('0x15')]));for(let _0x19dbdb=_0x4f0460['length']-0x1;_0x19dbdb>0x0;_0x19dbdb--){const _0x1c589c=_0x4f0460[_0x19dbdb];_0x19dbdb!==this[_0x3202('0x6')](_0x1c589c)&&(this[_0x3202('0x5')](_0x1c589c),this[_0x3202('0x3')](_0x1c589c,_0x19dbdb));}}[_0x3202('0x13')](_0x597b36){let _0x348899=0x0;const _0x5e4e07=_0x597b36[_0x3202('0x15')];if(!_0x5e4e07)return this[_0x3202('0xc')][_0x3202('0x1a')];for(const _0x10160b of this){const _0x164654=_0x10160b[_0x3202('0x15')];if(_0x164654){if(y(_0x5e4e07,_0x164654)<0x0)return _0x348899;_0x348899++;}}return _0x348899;}}export function bindAnnotationCollections({source:_0x5b8813,target:_0x2df6af,filter:_0x461046}){for(const _0x1061f9 of _0x5b8813)_0x461046(_0x1061f9)&&_0x2df6af['add'](_0x1061f9);_0x2df6af[_0x3202('0x16')](_0x5b8813,_0x3202('0x3'),(_0xf2d9ae,_0x35ba20)=>{_0x461046(_0x35ba20)&&_0x2df6af[_0x3202('0x3')](_0x35ba20);}),_0x2df6af[_0x3202('0x16')](_0x5b8813,_0x3202('0x5'),(_0x420bc6,_0x12a405)=>{_0x2df6af[_0x3202('0x12')](_0x12a405)&&_0x2df6af[_0x3202('0x5')](_0x12a405);});}function y(_0x23f9d9,_0x59c344){if(null===_0x23f9d9&&null===_0x59c344)return 0x0;if(null===_0x23f9d9)return-0x1;if(null===_0x59c344)return 0x1;const _0x404860=_0x23f9d9[_0x3202('0x1d')]-_0x59c344[_0x3202('0x1d')];return 0x0==_0x404860?_0x23f9d9[_0x3202('0x10')]-_0x59c344['left']:_0x404860;}
@@ -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 _0x41c1=['pluginName','activeAnnotations','collection','_addActiveAnnotation','activate','fire','destroy','_activateAnnotation','set','add','remove'];(function(_0x260946,_0x41c1f7){const _0x585011=function(_0x15a6c7){while(--_0x15a6c7){_0x260946['push'](_0x260946['shift']());}};_0x585011(++_0x41c1f7);}(_0x41c1,0x103));const _0x5850=function(_0x260946,_0x41c1f7){_0x260946=_0x260946-0x0;let _0x585011=_0x41c1[_0x260946];return _0x585011;};import{ContextPlugin as _0x536711}from'ckeditor5/src/core';import _0x46c003 from'./annotationcollection';export default class v extends _0x536711{static get[_0x5850('0x5')](){return'Annotations';}constructor(_0x201f3e){super(_0x201f3e),this[_0x5850('0x7')]=new _0x46c003(),this[_0x5850('0x2')](_0x5850('0x6'),new Set());}[_0x5850('0x3')](_0x4b42b6){this[_0x5850('0x7')][_0x5850('0x3')](_0x4b42b6);}[_0x5850('0x4')](_0x4b06d0){this[_0x5850('0x7')][_0x5850('0x4')](_0x4b06d0),_0x4b06d0[_0x5850('0x0')]();}['getByInnerView'](_0x23a23c){return this[_0x5850('0x7')]['getByInnerView'](_0x23a23c);}['deactivateAll'](){this[_0x5850('0xa')]('_deactivateAllAnnotations');}[_0x5850('0x0')](){for(const _0xbc0362 of this[_0x5850('0x7')])_0xbc0362[_0x5850('0x0')]();super[_0x5850('0x0')]();}[_0x5850('0x9')](_0x3e62ff){this[_0x5850('0xa')](_0x5850('0x1'),_0x3e62ff);}[_0x5850('0x8')](_0x5b65cc){const _0x9b4f23=new Set(this['activeAnnotations']);_0x9b4f23[_0x5850('0x3')](_0x5b65cc),this['activeAnnotations']=_0x9b4f23;}['_removeActiveAnnotation'](_0x401382){const _0x18bd1d=new Set(this['activeAnnotations']);_0x18bd1d['delete'](_0x401382),this[_0x5850('0x6')]=_0x18bd1d;}}
23
+ const _0x54ab=['pluginName','delete','createAnnotation','refreshVisibility','stopListening','deactivateAll','destroy','has','activate','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations','remove','add','getByInnerView','collection','fire','_addActiveAnnotation','change:isVisible','activeAnnotations','set','isVisible','refreshPositioning','source','listenTo'];(function(_0x41c1ba,_0x54ab0a){const _0x27d136=function(_0x485c30){while(--_0x485c30){_0x41c1ba['push'](_0x41c1ba['shift']());}};_0x27d136(++_0x54ab0a);}(_0x54ab,0x75));const _0x27d1=function(_0x41c1ba,_0x54ab0a){_0x41c1ba=_0x41c1ba-0x0;let _0x27d136=_0x54ab[_0x41c1ba];return _0x27d136;};import{ContextPlugin as _0x40a6a0}from'ckeditor5/src/core';import _0x433ba9 from'./annotation';import _0x9ae26e from'./annotationcollection';import _0x5c12ae from'./view/annotationview';export default class V extends _0x40a6a0{static get[_0x27d1('0x3')](){return'Annotations';}constructor(_0x10288d){super(_0x10288d),this['collection']=new _0x9ae26e(),this[_0x27d1('0xc')]=new _0x9ae26e(),this[_0x27d1('0x16')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}['add'](_0x2d23f6){this[_0x27d1('0x11')][_0x27d1('0xf')](_0x2d23f6);}[_0x27d1('0xe')](_0x5e805e){this[_0x27d1('0x11')][_0x27d1('0xe')](_0x5e805e),_0x5e805e['destroy']();}[_0x27d1('0x6')](){for(const _0x92c0cf of this['collection'])_0x92c0cf[_0x27d1('0x6')]();}['refreshPositioning'](){this[_0x27d1('0xc')][_0x27d1('0x0')]();}[_0x27d1('0x10')](_0xab7b4b){return this['collection'][_0x27d1('0x10')](_0xab7b4b);}[_0x27d1('0x8')](){this[_0x27d1('0x12')]('_deactivateAllAnnotations');}[_0x27d1('0x9')](){for(const _0x24b233 of this[_0x27d1('0x11')])_0x24b233[_0x27d1('0x9')]();this['_visibleAnnotations'][_0x27d1('0x9')](),this[_0x27d1('0x11')][_0x27d1('0x9')](),super[_0x27d1('0x9')]();}[_0x27d1('0xb')](_0x12b309){this['fire']('_activateAnnotation',_0x12b309);}[_0x27d1('0x5')](_0x232d36){return new _0x433ba9(_0x232d36);}['createAnnotationView'](_0x2c0aa4,_0x1980fc){return new _0x5c12ae(_0x2c0aa4,_0x1980fc);}[_0x27d1('0x13')](_0x225377){const _0x5e6bde=new Set(this['activeAnnotations']);_0x5e6bde[_0x27d1('0xf')](_0x225377),this[_0x27d1('0x15')]=_0x5e6bde;}['_removeActiveAnnotation'](_0x2a0e2b){const _0x18e5d3=new Set(this[_0x27d1('0x15')]);_0x18e5d3[_0x27d1('0x4')](_0x2a0e2b),this[_0x27d1('0x15')]=_0x18e5d3;}[_0x27d1('0xd')](){const _0x38852d=this[_0x27d1('0x11')],_0x1ffcd2=this[_0x27d1('0xc')];function _0x345b87(_0x14b352){const _0x5ab1eb=_0x14b352[_0x27d1('0x1')];_0x5ab1eb[_0x27d1('0x17')]&&!_0x1ffcd2[_0x27d1('0xa')](_0x5ab1eb)?_0x1ffcd2[_0x27d1('0xf')](_0x5ab1eb):!_0x5ab1eb[_0x27d1('0x17')]&&_0x1ffcd2[_0x27d1('0xa')](_0x5ab1eb)&&_0x1ffcd2[_0x27d1('0xe')](_0x5ab1eb);}this[_0x27d1('0x2')](_0x38852d,_0x27d1('0xf'),(_0x57ade6,_0x23fdcf)=>{_0x23fdcf[_0x27d1('0x17')]&&_0x1ffcd2[_0x27d1('0xf')](_0x23fdcf),this['listenTo'](_0x23fdcf,'change:isVisible',_0x345b87);}),this[_0x27d1('0x2')](_0x38852d,_0x27d1('0xe'),(_0x18f2fa,_0x1a7e8e)=>{_0x1ffcd2[_0x27d1('0xa')](_0x1a7e8e)&&_0x1ffcd2['remove'](_0x1a7e8e),this[_0x27d1('0x7')](_0x1a7e8e,_0x27d1('0x14'),_0x345b87);});}}
@@ -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 _0x3bd0=['size','init','activate','_setSelectedAnnotations','context','requires','deactivateAll','detach','add','register','activeUIs','annotationsuis-register-already-registered','_uisData','deactivate','annotationsuis-annotation-mismatch','change:activeAnnotation','length','listenTo','get','_activateAnnotation','set','collection','_deactivateAllAnnotations','isActive','attach','annotationsuis-register-invalid-interface','activeAnnotations','hasActive','push','AnnotationsUIs','setActiveAnnotation','destroy','filter','plugins','_uis','delete','_assertAnnotationDoesNotBelongToMultpleUI','function','pluginName','has','from','stopListening'];(function(_0x59ea17,_0x3bd070){const _0x2728e1=function(_0x52405b){while(--_0x52405b){_0x59ea17['push'](_0x59ea17['shift']());}};_0x2728e1(++_0x3bd070);}(_0x3bd0,0x1de));const _0x2728=function(_0x59ea17,_0x3bd070){_0x59ea17=_0x59ea17-0x0;let _0x2728e1=_0x3bd0[_0x59ea17];return _0x2728e1;};import{ContextPlugin as _0x6110e0}from'ckeditor5/src/core';import{CKEditorError as _0x53c4b2}from'ckeditor5/src/utils';import _0x5df939,{bindAnnotationCollections as _0x340f40}from'./annotationcollection';import _0x33b0d3 from'./annotations';export default class I extends _0x6110e0{static get[_0x2728('0x1f')](){return[_0x33b0d3];}static get[_0x2728('0x16')](){return _0x2728('0xd');}constructor(_0x482789){super(_0x482789),this['activeUIs']=new Set(),this[_0x2728('0x12')]=new Map(),this[_0x2728('0x26')]=new Map();}[_0x2728('0x1b')](){const _0x5c25d7=this['context']['plugins'][_0x2728('0x2')](_0x33b0d3);this[_0x2728('0x1')](_0x5c25d7,_0x2728('0x3'),(_0x397b9b,_0x20c6e5)=>{for(const _0x6a7459 of this[_0x2728('0x24')]){const _0x2b7dc5=this[_0x2728('0x12')]['get'](_0x6a7459);(0x0,this[_0x2728('0x26')][_0x2728('0x2')](_0x6a7459)[_0x2728('0x10')])(_0x20c6e5)&&_0x2b7dc5[_0x2728('0xe')](_0x20c6e5);}}),this['listenTo'](_0x5c25d7,_0x2728('0x6'),()=>{for(const _0x5311e of this[_0x2728('0x24')]){this[_0x2728('0x12')][_0x2728('0x2')](_0x5311e)[_0x2728('0xe')](null);}}),this[_0x2728('0x1')](_0x5c25d7['collection'],_0x2728('0x22'),(_0x3e5880,_0x3afee7)=>{this[_0x2728('0x14')](_0x3afee7);});}[_0x2728('0xb')](){return this[_0x2728('0x24')][_0x2728('0x1a')]>0x0;}[_0x2728('0x7')](_0xa7dfdd){return this[_0x2728('0x24')]['has'](_0xa7dfdd);}[_0x2728('0x1c')](_0x43b83a,_0x20f9fe=()=>!0x0){const _0xd26d82=this['context'][_0x2728('0x11')][_0x2728('0x2')](_0x33b0d3);if(!this[_0x2728('0x12')]['has'](_0x43b83a))throw new _0x53c4b2('annotationsuis-activate-missing-ui',this,{'uiName':_0x43b83a});this[_0x2728('0x7')](_0x43b83a)&&this[_0x2728('0x27')](_0x43b83a),this[_0x2728('0x24')]['add'](_0x43b83a);const _0x27e444=new _0x5df939(),_0x34d639=_0xd26d82[_0x2728('0x5')];_0x340f40({'source':_0x34d639,'target':_0x27e444,'filter':_0x20f9fe}),this[_0x2728('0x26')][_0x2728('0x4')](_0x43b83a,{'collection':_0x27e444,'filter':_0x20f9fe});const _0x1bcb08=this[_0x2728('0x12')][_0x2728('0x2')](_0x43b83a);_0x1bcb08[_0x2728('0x8')](_0x27e444),this[_0x2728('0x1')](_0x1bcb08,_0x2728('0x29'),(_0x3536ec,_0x860ffd,_0x3df724,_0x395f5c)=>{_0x395f5c&&_0xd26d82['_removeActiveAnnotation'](_0x395f5c),_0x3df724&&_0xd26d82['_addActiveAnnotation'](_0x3df724);});}[_0x2728('0x27')](_0x300739){this[_0x2728('0x24')][_0x2728('0x13')](_0x300739);const _0x2286d6=this[_0x2728('0x12')][_0x2728('0x2')](_0x300739);_0x2286d6[_0x2728('0x21')](),this[_0x2728('0x19')](_0x2286d6),this[_0x2728('0x26')]['get'](_0x300739)[_0x2728('0x5')][_0x2728('0xf')](),this[_0x2728('0x26')][_0x2728('0x13')](_0x300739);}['switchTo'](_0x4dfb0c){const _0x245f1a=this[_0x2728('0x1e')][_0x2728('0x11')]['get'](_0x33b0d3),_0xa33ff9=Array[_0x2728('0x18')](_0x245f1a[_0x2728('0xa')])[0x0]||null;this[_0x2728('0x20')](),this[_0x2728('0x1c')](_0x4dfb0c);const _0x62b2bb=this['_uis'][_0x2728('0x2')](_0x4dfb0c);_0x62b2bb[_0x2728('0xe')](_0xa33ff9),_0x62b2bb[_0x2728('0x1d')]&&_0xa33ff9&&_0x62b2bb['_setSelectedAnnotations']([_0xa33ff9]);}['deactivateAll'](){for(const _0x3b5750 of this[_0x2728('0x24')])this[_0x2728('0x27')](_0x3b5750);}[_0x2728('0x23')](_0x292e8a,_0x25ca57){if(this[_0x2728('0x12')][_0x2728('0x17')](_0x292e8a))throw new _0x53c4b2(_0x2728('0x25'));if(_0x2728('0x15')!=typeof _0x25ca57[_0x2728('0x8')]||'function'!=typeof _0x25ca57[_0x2728('0x21')]||_0x2728('0x15')!=typeof _0x25ca57[_0x2728('0xe')])throw new _0x53c4b2(_0x2728('0x9'),null);this[_0x2728('0x12')][_0x2728('0x4')](_0x292e8a,_0x25ca57);}['destroy'](){this[_0x2728('0x20')](),super[_0x2728('0xf')]();}[_0x2728('0x14')](_0x3b543d){const _0x241f54=[];for(const _0x26272c of this[_0x2728('0x24')]){(0x0,this['_uisData'][_0x2728('0x2')](_0x26272c)[_0x2728('0x10')])(_0x3b543d)&&_0x241f54[_0x2728('0xc')](_0x26272c);}if(_0x241f54[_0x2728('0x0')]>0x1)throw new _0x53c4b2(_0x2728('0x28'),null,{'matchedUIs':_0x241f54});}}
23
+ const _0x5443=['switchTo','isActive','refilterAnnotations','attach','length','setActiveAnnotation','_uisData','get','hasActive','_uis','annotationsuis-register-invalid-interface','_activateAnnotation','annotationsuis-register-already-registered','from','size','context','register','_deactivateAllAnnotations','listenTo','activeUIs','plugins','_removeActiveAnnotation','_visibleAnnotations','requires','set','filter','function','_setSelectedAnnotations','detach','pluginName','has','destroy','annotationsuis-activate-missing-ui','add','collection','delete','AnnotationsUIs','deactivateAll','init','activeAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','deactivate','type','activate'];(function(_0xe81566,_0x5443ba){const _0x1c4949=function(_0x4444c0){while(--_0x4444c0){_0xe81566['push'](_0xe81566['shift']());}};_0x1c4949(++_0x5443ba);}(_0x5443,0xa0));const _0x1c49=function(_0xe81566,_0x5443ba){_0xe81566=_0xe81566-0x0;let _0x1c4949=_0x5443[_0xe81566];return _0x1c4949;};import{ContextPlugin as _0x34fb0d}from'ckeditor5/src/core';import{CKEditorError as _0x4b8f6e}from'ckeditor5/src/utils';import _0x2abb73,{bindAnnotationCollections as _0x1557f6}from'./annotationcollection';import _0x1c1b10 from'./annotations';export default class I extends _0x34fb0d{static get[_0x1c49('0x27')](){return[_0x1c1b10];}static get[_0x1c49('0x1')](){return _0x1c49('0x8');}constructor(_0x27f275){super(_0x27f275),this[_0x1c49('0x23')]=new Set(),this[_0x1c49('0x19')]=new Map(),this[_0x1c49('0x16')]=new Map();}[_0x1c49('0xa')](){const _0xbf43a7=this[_0x1c49('0x1f')][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10);this[_0x1c49('0x22')](_0xbf43a7,_0x1c49('0x1b'),(_0x531bc0,_0xe7f247)=>{for(const _0x1a8a34 of this[_0x1c49('0x23')]){const _0x260fea=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x1a8a34);(0x0,this[_0x1c49('0x16')]['get'](_0x1a8a34)['filter'])(_0xe7f247)&&_0x260fea['setActiveAnnotation'](_0xe7f247);}}),this[_0x1c49('0x22')](_0xbf43a7,_0x1c49('0x21'),()=>{for(const _0xc3e629 of this[_0x1c49('0x23')]){this[_0x1c49('0x19')][_0x1c49('0x17')](_0xc3e629)[_0x1c49('0x15')](null);}}),this[_0x1c49('0x22')](_0xbf43a7[_0x1c49('0x26')],_0x1c49('0x5'),(_0x5143f2,_0x38fbe5)=>{this[_0x1c49('0xc')](_0x38fbe5);});}[_0x1c49('0x18')](){return this[_0x1c49('0x23')][_0x1c49('0x1e')]>0x0;}[_0x1c49('0x11')](_0x1e5b8c){return this[_0x1c49('0x23')][_0x1c49('0x2')](_0x1e5b8c);}['activate'](_0x252e0c,_0x1f5d1f=()=>!0x0){const _0x15d8e8=this[_0x1c49('0x1f')][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10);if(!this[_0x1c49('0x19')][_0x1c49('0x2')](_0x252e0c))throw new _0x4b8f6e(_0x1c49('0x4'),this,{'uiName':_0x252e0c});this[_0x1c49('0x11')](_0x252e0c)&&this[_0x1c49('0xd')](_0x252e0c),this[_0x1c49('0x23')][_0x1c49('0x5')](_0x252e0c);const _0x355efe=new _0x2abb73(),_0x21f98e=_0x15d8e8[_0x1c49('0x26')];_0x1557f6({'source':_0x21f98e,'target':_0x355efe,'filter':_0x1f5d1f}),this[_0x1c49('0x16')][_0x1c49('0x28')](_0x252e0c,{'collection':_0x355efe,'filter':_0x1f5d1f});const _0x442925=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x252e0c);_0x442925[_0x1c49('0x13')](_0x355efe),this[_0x1c49('0x22')](_0x442925,'change:activeAnnotation',(_0x5d2c46,_0x362b04,_0x179aef,_0x5949b4)=>{_0x5949b4&&_0x15d8e8[_0x1c49('0x25')](_0x5949b4),_0x179aef&&_0x15d8e8['_addActiveAnnotation'](_0x179aef);});}[_0x1c49('0xd')](_0x1cabd8){this[_0x1c49('0x23')][_0x1c49('0x7')](_0x1cabd8);const _0x2ccbe2=this[_0x1c49('0x19')]['get'](_0x1cabd8);_0x2ccbe2[_0x1c49('0x0')](),this['stopListening'](_0x2ccbe2),this[_0x1c49('0x16')][_0x1c49('0x17')](_0x1cabd8)[_0x1c49('0x6')][_0x1c49('0x3')](),this[_0x1c49('0x16')][_0x1c49('0x7')](_0x1cabd8);}[_0x1c49('0x10')](_0x294a06){const _0x15526e=this['context'][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10),_0x59de97=Array[_0x1c49('0x1d')](_0x15526e[_0x1c49('0xb')])[0x0]||null;this[_0x1c49('0x9')](),this[_0x1c49('0xf')](_0x294a06);const _0x3054c1=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x294a06);_0x3054c1['setActiveAnnotation'](_0x59de97),_0x3054c1['_setSelectedAnnotations']&&_0x59de97&&_0x3054c1[_0x1c49('0x2b')]([_0x59de97]);}[_0x1c49('0x9')](){for(const _0x5cfbda of this[_0x1c49('0x23')])this[_0x1c49('0xd')](_0x5cfbda);}[_0x1c49('0x20')](_0x441ebc,_0x2954b8){if(this[_0x1c49('0x19')]['has'](_0x441ebc))throw new _0x4b8f6e(_0x1c49('0x1c'));if('function'!=typeof _0x2954b8[_0x1c49('0x13')]||'function'!=typeof _0x2954b8[_0x1c49('0x0')]||_0x1c49('0x2a')!=typeof _0x2954b8[_0x1c49('0x15')])throw new _0x4b8f6e(_0x1c49('0x1a'),null);this[_0x1c49('0x19')][_0x1c49('0x28')](_0x441ebc,_0x2954b8);}[_0x1c49('0x12')](){const _0x54fba0=this['context'][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10)['collection'],_0x4e996e=new Map(),_0x24f6be=Array['from'](this[_0x1c49('0x23')]);for(const _0x960a04 of this[_0x1c49('0x23')]){const _0x4ea3e5=this[_0x1c49('0x16')][_0x1c49('0x17')](_0x960a04)[_0x1c49('0x6')];for(const _0x1871c9 of _0x4ea3e5)_0x4e996e[_0x1c49('0x28')](_0x1871c9,_0x960a04);}for(const _0x20aee8 of _0x54fba0){const _0x1e98f7=_0x4e996e[_0x1c49('0x17')](_0x20aee8);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x20aee8);const _0x3919e1=_0x24f6be['find'](_0x53688e=>this[_0x1c49('0x16')][_0x1c49('0x17')](_0x53688e)[_0x1c49('0x29')](_0x20aee8));_0x1e98f7!==_0x3919e1&&(_0x1e98f7&&this[_0x1c49('0x16')][_0x1c49('0x17')](_0x1e98f7)[_0x1c49('0x6')]['remove'](_0x20aee8),_0x3919e1&&this['_uisData'][_0x1c49('0x17')](_0x3919e1)['collection']['add'](_0x20aee8));}}['destroy'](){this[_0x1c49('0x9')](),super[_0x1c49('0x3')]();}[_0x1c49('0xc')](_0x565a3d){const _0x59d432=[];for(const _0x330775 of this[_0x1c49('0x23')]){(0x0,this[_0x1c49('0x16')][_0x1c49('0x17')](_0x330775)[_0x1c49('0x29')])(_0x565a3d)&&_0x59d432['push'](_0x330775);}if(_0x59d432[_0x1c49('0x14')]>0x1)throw new _0x4b8f6e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x59d432,'annotationType':_0x565a3d[_0x1c49('0xe')]});}}
@@ -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 _0x4f6e=['has','set','add','EditorAnnotations','fire','change:isFocused','isCollapsed','refresh','change:range','range','document','addSourceCollector','blur','function','init','view','remove','getRanges','_editorAnnotationsData','refreshSelectedViews','editor','model','update','editing','keys','cancel','sort','uiUpdate','delete','listenTo','_dataCollectors','containsRange','annotation','map','push','from','innerView','collection','element','requires','hasDomSelection','focusTracker'];(function(_0x398f40,_0x4f6e7c){const _0x4fe171=function(_0x5bcec1){while(--_0x5bcec1){_0x398f40['push'](_0x398f40['shift']());}};_0x4fe171(++_0x4f6e7c);}(_0x4f6e,0x156));const _0x4fe1=function(_0x398f40,_0x4f6e7c){_0x398f40=_0x398f40-0x0;let _0x4fe171=_0x4f6e[_0x398f40];return _0x4fe171;};import{Plugin as _0xb18491}from'ckeditor5/src/core';import{CKEditorError as _0xe2a257}from'ckeditor5/src/utils';import{debounce as _0x4cc2f5}from'lodash-es';import _0x254fc0 from'./annotations';export default class k extends _0xb18491{static get[_0x4fe1('0x21')](){return[_0x254fc0];}static get['pluginName'](){return _0x4fe1('0x27');}constructor(_0x43ddbd){super(_0x43ddbd),this[_0x4fe1('0x18')]=new Set();}[_0x4fe1('0x8')](){const _0x586da5=this['editor'],_0x5e5d43=_0x586da5['plugins']['get'](_0x254fc0),_0x56421c=_0x586da5[_0x4fe1('0xf')]['document']['selection'],_0x4c66f0=_0x4cc2f5(()=>this['refreshSelectedViews'](),0xa);_0x56421c['on'](_0x4fe1('0x2'),(_0x484fa2,_0x42210c)=>{_0x42210c['directChange']&&(_0x4c66f0[_0x4fe1('0x13')](),this[_0x4fe1('0xd')]());}),this[_0x4fe1('0x17')](_0x586da5['editing']['view'][_0x4fe1('0x4')],'change:isFocused',(_0x57766a,_0xf40d99,_0x343bfe)=>{_0x343bfe&&_0x4c66f0();}),this['listenTo'](_0x586da5['ui'][_0x4fe1('0x23')],_0x4fe1('0x29'),(_0x494524,_0x5285d8,_0x435cf5)=>{_0x435cf5||_0x586da5['isReadOnly']||this[_0x4fe1('0x28')](_0x4fe1('0x6'),{'isAnnotationTracked':_0x5e675a=>this[_0x4fe1('0xc')]['has'](_0x5e675a[_0x4fe1('0x1e')])});}),this[_0x4fe1('0x17')](this[_0x4fe1('0xe')]['ui'],_0x4fe1('0x10'),()=>this['fire'](_0x4fe1('0x15')));const _0x1fe075=new Set();this[_0x4fe1('0x17')](_0x5e5d43[_0x4fe1('0x1f')],'add',(_0x48ca22,_0xde9548)=>{for(const _0xc63ae7 of this[_0x4fe1('0xc')][_0x4fe1('0x12')]())if(_0xc63ae7===_0xde9548[_0x4fe1('0x1e')]){_0x586da5['ui'][_0x4fe1('0x23')]['add'](_0xde9548[_0x4fe1('0x9')][_0x4fe1('0x20')]),_0x1fe075[_0x4fe1('0x26')](_0xde9548['view']);break;}}),this['listenTo'](_0x5e5d43[_0x4fe1('0x1f')],'remove',(_0x662d74,_0x129927)=>{_0x1fe075[_0x4fe1('0x24')](_0x129927[_0x4fe1('0x9')])&&(_0x586da5['ui'][_0x4fe1('0x23')][_0x4fe1('0xa')](_0x129927['view'][_0x4fe1('0x20')]),_0x1fe075[_0x4fe1('0x16')](_0x129927[_0x4fe1('0x9')]));});}['hasDomSelection'](){return this[_0x4fe1('0xe')][_0x4fe1('0x11')]['view'][_0x4fe1('0x22')];}[_0x4fe1('0x5')](_0x59f4e0){if(_0x4fe1('0x7')!=typeof _0x59f4e0)throw new _0xe2a257('editorannotations-invalid-source-callback');this[_0x4fe1('0x18')][_0x4fe1('0x26')](_0x59f4e0);}[_0x4fe1('0xd')](){this[_0x4fe1('0x28')](_0x4fe1('0x1'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2c3b1e,annotations:_0x2c46e9}){const _0x111377=[],_0x47f5e9=this['editor']['model'][_0x4fe1('0x4')]['selection'],_0x2d7dbe=Array[_0x4fe1('0x1d')](_0x47f5e9[_0x4fe1('0xb')]());for(const [_0x355858,_0xf55cb]of this[_0x4fe1('0xc')]){const _0x23eac7=_0x4f29eb(_0xf55cb),_0x264aa=_0x2c46e9['getByInnerView'](_0x355858);_0x23eac7&&_0x264aa&&_0x111377[_0x4fe1('0x1c')]({'annotation':_0x264aa,'range':_0x23eac7});}function _0x4f29eb(_0x37ccae){for(const _0xc29e21 of _0x37ccae)for(const _0x1437a3 of _0x2d7dbe)if(_0xc29e21[_0x4fe1('0x19')](_0x1437a3,!_0x47f5e9[_0x4fe1('0x0')]))return _0xc29e21;return null;}return _0x111377[_0x4fe1('0x14')]((_0x1d8817,_0x10e054)=>{const _0xb4c8ce=_0x1d8817[_0x4fe1('0x3')],_0x346da4=_0x10e054['range'];if(!_0xb4c8ce['isEqual'](_0x346da4)){if(_0xb4c8ce[_0x4fe1('0x19')](_0x346da4,!0x0))return 0x1;if(_0x346da4[_0x4fe1('0x19')](_0xb4c8ce,!0x0))return-0x1;}return _0x1d8817[_0x4fe1('0x1a')]==_0x2c3b1e?-0x1:_0x10e054[_0x4fe1('0x1a')]==_0x2c3b1e?0x1:0x0;})[_0x4fe1('0x1b')](_0x32f410=>_0x32f410[_0x4fe1('0x1a')]);}get[_0x4fe1('0xc')](){const _0x5e46de=new Map();for(const _0x5a1d3b of Array['from'](this['_dataCollectors']))for(const [_0x13f1cb,_0x10845a]of _0x5a1d3b())_0x5e46de[_0x4fe1('0x25')](_0x13f1cb,_0x10845a);return _0x5e46de;}}
23
+ const _0x1855=['annotation','remove','collection','editing','model','element','push','document','view','plugins','has','change:isFocused','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','refresh','sort','innerView','range','change:range','directChange','add','from','_dataCollectors','hasDomSelection','map','containsRange','refreshSelectedViews','isCollapsed','addSourceCollector','pluginName','getByInnerView','keys','init','get','editor','isReadOnly','listenTo','selection','delete','_editorAnnotationsData','fire','cancel','set','requires','focusTracker'];(function(_0x362386,_0x1855cd){const _0x3bb80c=function(_0x3f8122){while(--_0x3f8122){_0x362386['push'](_0x362386['shift']());}};_0x3bb80c(++_0x1855cd);}(_0x1855,0x147));const _0x3bb8=function(_0x362386,_0x1855cd){_0x362386=_0x362386-0x0;let _0x3bb80c=_0x1855[_0x362386];return _0x3bb80c;};import{Plugin as _0x558b1d}from'ckeditor5/src/core';import{CKEditorError as _0x227259}from'ckeditor5/src/utils';import{debounce as _0x223d77}from'lodash-es';import _0x564171 from'./annotations';export default class k extends _0x558b1d{static get[_0x3bb8('0x1f')](){return[_0x564171];}static get[_0x3bb8('0x11')](){return'EditorAnnotations';}constructor(_0x42fe20){super(_0x42fe20),this['_dataCollectors']=new Set();}[_0x3bb8('0x14')](){const _0x49110a=this[_0x3bb8('0x16')],_0x1764f6=_0x49110a[_0x3bb8('0x2a')][_0x3bb8('0x15')](_0x564171),_0xa4c2d8=_0x49110a[_0x3bb8('0x25')][_0x3bb8('0x28')]['selection'],_0x1a93c4=_0x223d77(()=>this[_0x3bb8('0xe')](),0xa);_0xa4c2d8['on'](_0x3bb8('0x6'),(_0x3610cb,_0xde067a)=>{_0xde067a[_0x3bb8('0x7')]&&(_0x1a93c4[_0x3bb8('0x1d')](),this[_0x3bb8('0xe')]());}),this[_0x3bb8('0x18')](_0x49110a[_0x3bb8('0x24')][_0x3bb8('0x29')][_0x3bb8('0x28')],'change:isFocused',(_0x2750c7,_0x36f6aa,_0x3b722a)=>{_0x3b722a&&_0x1a93c4();}),this[_0x3bb8('0x18')](_0x49110a['ui']['focusTracker'],_0x3bb8('0x2c'),(_0x1e7787,_0x774f94,_0x2336d9)=>{_0x2336d9||_0x49110a[_0x3bb8('0x17')]||this[_0x3bb8('0x1c')]('blur',{'isAnnotationTracked':_0x178db3=>this[_0x3bb8('0x1b')][_0x3bb8('0x2b')](_0x178db3[_0x3bb8('0x4')])});}),this[_0x3bb8('0x18')](this[_0x3bb8('0x16')]['ui'],'update',()=>this[_0x3bb8('0x1c')]('uiUpdate'));const _0x4d5e3b=new Set();this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x8'),(_0x443b98,_0x36e805)=>{for(const _0x1a7fcd of this[_0x3bb8('0x1b')][_0x3bb8('0x13')]())if(_0x1a7fcd===_0x36e805['innerView']){_0x49110a['ui'][_0x3bb8('0x20')][_0x3bb8('0x8')](_0x36e805[_0x3bb8('0x29')][_0x3bb8('0x26')]),_0x4d5e3b['add'](_0x36e805['view']);break;}}),this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x22'),(_0x2bb5c0,_0xe6d3b0)=>{_0x4d5e3b[_0x3bb8('0x2b')](_0xe6d3b0['view'])&&(_0x49110a['ui'][_0x3bb8('0x20')]['remove'](_0xe6d3b0[_0x3bb8('0x29')]['element']),_0x4d5e3b[_0x3bb8('0x1a')](_0xe6d3b0['view']));});}[_0x3bb8('0xb')](){return this[_0x3bb8('0x16')][_0x3bb8('0x24')][_0x3bb8('0x29')]['hasDomSelection'];}[_0x3bb8('0x10')](_0x3d2530){if('function'!=typeof _0x3d2530)throw new _0x227259(_0x3bb8('0x1'));this['_dataCollectors']['add'](_0x3d2530);}[_0x3bb8('0xe')](){this[_0x3bb8('0x1c')](_0x3bb8('0x2'));}[_0x3bb8('0x0')]({activeAnnotation:_0x33fc1e,annotations:_0x4f3856}){const _0x509b7c=[],_0x2c15ac=this[_0x3bb8('0x16')][_0x3bb8('0x25')]['document'][_0x3bb8('0x19')],_0xe565ca=Array[_0x3bb8('0x9')](_0x2c15ac['getRanges']());for(const [_0x713807,_0x196f11]of this[_0x3bb8('0x1b')]){const _0x480e26=_0x241ee1(_0x196f11),_0x1c31fe=_0x4f3856[_0x3bb8('0x12')](_0x713807);_0x480e26&&_0x1c31fe&&_0x509b7c[_0x3bb8('0x27')]({'annotation':_0x1c31fe,'range':_0x480e26});}function _0x241ee1(_0x2c8564){for(const _0x17fd46 of _0x2c8564)for(const _0x42518d of _0xe565ca)if(_0x17fd46[_0x3bb8('0xd')](_0x42518d,!_0x2c15ac[_0x3bb8('0xf')]))return _0x17fd46;return null;}return _0x509b7c[_0x3bb8('0x3')]((_0x3cf163,_0x108144)=>{const _0x12cb56=_0x3cf163['range'],_0x537e79=_0x108144[_0x3bb8('0x5')];if(!_0x12cb56['isEqual'](_0x537e79)){if(_0x12cb56['containsRange'](_0x537e79,!0x0))return 0x1;if(_0x537e79[_0x3bb8('0xd')](_0x12cb56,!0x0))return-0x1;}return _0x3cf163[_0x3bb8('0x21')]==_0x33fc1e?-0x1:_0x108144[_0x3bb8('0x21')]==_0x33fc1e?0x1:0x0;})[_0x3bb8('0xc')](_0x408d4e=>_0x408d4e[_0x3bb8('0x21')]);}get[_0x3bb8('0x1b')](){const _0x685736=new Map();for(const _0x5141e2 of Array[_0x3bb8('0x9')](this[_0x3bb8('0xa')]))for(const [_0x2d8210,_0x25aebf]of _0x5141e2())_0x685736[_0x3bb8('0x1e')](_0x2d8210,_0x25aebf);return _0x685736;}}
@@ -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 _0x5d24=['change:height','inline','_selectedAnnotations','editableElement','isActive','_addedAnnotations','plugins','_removeAnnotationFromBalloon','addObserver','isAttached','hasActive','requires','includes','clear','Esc','getSelection','destroy','set','getOrderedSelectedAnnotations','getByView','updatePosition','editing','selection','EditorAnnotations','remove','isFocused','setActiveAnnotation','register','detach','view','focusTracker','_annotations','visibleView','afterInit','context','blur','targetRect','InlineAnnotations','change:visibleView','has','activeAnnotation','delete','_balloon','mousedown','add','init','refresh','focus','get','attach','_setSelectedAnnotations','inlineannotations-attach-already-attached','hasView','_manuallyClosed','bind','_addAnnotationToBalloon','inlineannotations-detach-not-attached','listenTo','keystrokes','stopListening','editor'];(function(_0x18a836,_0x5d2427){const _0x11b8d0=function(_0x29abd7){while(--_0x29abd7){_0x18a836['push'](_0x18a836['shift']());}};_0x11b8d0(++_0x5d2427);}(_0x5d24,0xcb));const _0x11b8=function(_0x18a836,_0x5d2427){_0x18a836=_0x18a836-0x0;let _0x11b8d0=_0x5d24[_0x18a836];return _0x11b8d0;};import{Plugin as _0x4e6018}from'ckeditor5/src/core';import _0x44197d from'./annotationsuis';import _0x3c597a from'./editorannotations';import{ContextualBalloon as _0x5a940e}from'ckeditor5/src/ui';import{MouseObserver as _0x2597b1}from'ckeditor5/src/engine';import{CKEditorError as _0x4376c5}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4e6018{static get[_0x11b8('0x34')](){return[_0x3c597a,_0x5a940e,_0x44197d];}static get['pluginName'](){return _0x11b8('0x11');}constructor(_0x244877){super(_0x244877),_0x244877[_0x11b8('0x1')][_0x11b8('0x9')][_0x11b8('0x31')](_0x2597b1),this[_0x11b8('0x32')]=!0x1,this[_0x11b8('0x3a')]('activeAnnotation',null),this[_0x11b8('0xb')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x244877[_0x11b8('0x2f')][_0x11b8('0x1c')](_0x5a940e),this[_0x11b8('0x2e')]=new Set(),this['_selectedAnnotations']=[];}[_0x11b8('0x19')](){const _0x5e7e35=this[_0x11b8('0x28')][_0x11b8('0x2f')]['get'](_0x44197d);_0x5e7e35[_0x11b8('0xe')]===this[_0x11b8('0x28')]&&(_0x5e7e35[_0x11b8('0x7')](_0x11b8('0x2a'),this),this[_0x11b8('0x28')][_0x11b8('0x26')][_0x11b8('0x3a')](_0x11b8('0x37'),(_0x487c70,_0x26508e)=>{const _0x3eb4e9=this[_0x11b8('0x16')];if(this[_0x11b8('0x32')]&&_0x3eb4e9[_0x11b8('0xc')]){const _0x3271b2=this[_0x11b8('0xb')][_0x11b8('0x3c')](_0x3eb4e9[_0x11b8('0xc')]);this[_0x11b8('0x21')]['add'](_0x3271b2),this['_removeAnnotationFromBalloon'](_0x3271b2),_0x26508e();}}));}[_0x11b8('0xd')](){const _0x21b08c=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x44197d);_0x21b08c[_0x11b8('0xe')]===this['editor']&&(_0x21b08c[_0x11b8('0x33')]()||_0x21b08c['switchTo'](_0x11b8('0x2a')));}[_0x11b8('0x6')](_0xc92332){_0xc92332!==this[_0x11b8('0x14')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x11b8('0x2d')]=!0x1),_0xc92332&&this[_0x11b8('0x28')]['ui'][_0x11b8('0xa')]['isFocused']&&(this[_0x11b8('0x23')](_0xc92332,!0x0),_0xc92332[_0x11b8('0x2d')]=!0x0),_0xc92332||this[_0x11b8('0x1e')]([]),this[_0x11b8('0x14')]=_0xc92332);}[_0x11b8('0x1d')](_0x3bd63e){this[_0x11b8('0xb')]=_0x3bd63e;const _0x16bbaa=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x44197d),_0x3d63a2=this[_0x11b8('0x16')];if(this[_0x11b8('0x32')])throw new _0x4376c5(_0x11b8('0x1f'),this);if(_0x16bbaa[_0x11b8('0xe')]!==this[_0x11b8('0x28')])throw new _0x4376c5('inlineannotations-not-allowed-with-context',this);const _0x27e25f=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x11b8('0x3'));this[_0x11b8('0x25')](_0x27e25f,_0x11b8('0x1a'),function(){const _0x400092=_0x27e25f[_0x11b8('0x3b')]({'activeAnnotation':this[_0x11b8('0x14')],'annotations':this[_0x11b8('0xb')]});this[_0x11b8('0x1e')](_0x400092),this[_0x11b8('0x6')](_0x400092[0x0]||null);}[_0x11b8('0x22')](this)),this['listenTo'](_0x27e25f,_0x11b8('0xf'),(_0x1d1f8e,{isAnnotationTracked:_0xaa81fd})=>{this['activeAnnotation']&&_0xaa81fd(this[_0x11b8('0x14')])&&(this['_setSelectedAnnotations']([]),this[_0x11b8('0x6')](null));}),this[_0x11b8('0x25')](this[_0x11b8('0x28')]['ui'][_0x11b8('0xa')],'change:isFocused',(_0x2c884d,_0x20b332,_0x37395a)=>{_0x37395a||this[_0x11b8('0x6')](null);}),this[_0x11b8('0x25')](_0x3bd63e,'remove',(_0x20ab5c,_0x38ce7a)=>{this[_0x11b8('0x30')](_0x38ce7a),_0x38ce7a===this[_0x11b8('0x14')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3d63a2,_0x11b8('0x12'),(_0x25260e,_0x387226,_0x1f1bdf,_0x5aac64)=>{if(_0x5aac64&&this[_0x11b8('0x27')](_0x5aac64),!_0x1f1bdf||!_0x3bd63e['getByView'](_0x1f1bdf))return;const _0x59274d=_0x3bd63e['getByView'](_0x1f1bdf);this['listenTo'](_0x1f1bdf,_0x11b8('0x29'),()=>{_0x3d63a2[_0x11b8('0x0')]();}),this[_0x11b8('0x25')](_0x1f1bdf,_0x11b8('0x37'),()=>{this[_0x11b8('0x21')][_0x11b8('0x18')](_0x59274d),this[_0x11b8('0x30')](_0x59274d),this[_0x11b8('0x28')][_0x11b8('0x1')]['view'][_0x11b8('0x1b')]();}),this['activeAnnotation']!==_0x59274d&&this[_0x11b8('0x6')](_0x59274d);}),this[_0x11b8('0x25')](this[_0x11b8('0x28')]['ui'],'update',()=>{_0x3d63a2['visibleView']&&(_0x3bd63e[_0x11b8('0x3c')](_0x3d63a2[_0x11b8('0xc')])&&_0x3d63a2['updatePosition']());}),this[_0x11b8('0x25')](this['editor'][_0x11b8('0x1')][_0x11b8('0x9')]['document'],_0x11b8('0x17'),()=>{this[_0x11b8('0x21')][_0x11b8('0x36')]();}),this[_0x11b8('0x28')][_0x11b8('0x1')][_0x11b8('0x9')]['document'][_0x11b8('0x2')][_0x11b8('0x2c')]&&this['editor'][_0x11b8('0x1')][_0x11b8('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x11b8('0x8')](){if(!this[_0x11b8('0x32')])throw new _0x4376c5(_0x11b8('0x24'),this);this[_0x11b8('0x6')](null);for(const _0x39915a of this[_0x11b8('0x2e')])this[_0x11b8('0x30')](_0x39915a);this[_0x11b8('0x27')](),this['isAttached']=!0x1;}[_0x11b8('0x39')](){this[_0x11b8('0x32')]&&this[_0x11b8('0x8')]();}['_setSelectedAnnotations'](_0x372ea9){const _0x3cb608=this[_0x11b8('0x2b')];for(const _0xe48a58 of _0x3cb608)_0x372ea9[_0x11b8('0x35')](_0xe48a58)||this[_0x11b8('0x21')]['delete'](_0xe48a58);for(const _0x4d5916 of this[_0x11b8('0xb')])_0x372ea9['includes'](_0x4d5916)||this[_0x11b8('0x30')](_0x4d5916);if(this[_0x11b8('0x28')]['ui']['focusTracker'][_0x11b8('0x5')])for(const _0x433acc of _0x372ea9)this[_0x11b8('0x23')](_0x433acc);this['_selectedAnnotations']=_0x372ea9;}[_0x11b8('0x23')](_0x3ff652,_0xcbc279){this[_0x11b8('0x21')][_0x11b8('0x13')](_0x3ff652)||(this['_addedAnnotations'][_0x11b8('0x13')](_0x3ff652)||this['_balloon'][_0x11b8('0x20')](_0x3ff652[_0x11b8('0x9')])||(this['_addedAnnotations']['add'](_0x3ff652),this[_0x11b8('0x16')][_0x11b8('0x18')]({'stackId':_0x3ff652['view']['id'],'view':_0x3ff652[_0x11b8('0x9')],'position':{'target':()=>_0x3ff652['target']||_0x3ff652[_0x11b8('0x10')]||document[_0x11b8('0x38')]()['getRangeAt'](0x0)}})),_0xcbc279&&this[_0x11b8('0x16')]['showStack'](_0x3ff652[_0x11b8('0x9')]['id']));}['_removeAnnotationFromBalloon'](_0x2ae66f){this['_addedAnnotations'][_0x11b8('0x13')](_0x2ae66f)&&this[_0x11b8('0x16')][_0x11b8('0x20')](_0x2ae66f[_0x11b8('0x9')])&&(this[_0x11b8('0x2e')][_0x11b8('0x15')](_0x2ae66f),this[_0x11b8('0x16')][_0x11b8('0x4')](_0x2ae66f[_0x11b8('0x9')]));}}
23
+ const _0x4f89=['requires','pluginName','_selectedAnnotations','EditorAnnotations','attach','set','has','editor','inlineannotations-not-allowed-with-context','context','getSelection','focus','blur','keystrokes','destroy','change:height','setActiveAnnotation','update','inline','clear','editableElement','add','editing','Esc','inlineannotations-attach-already-attached','addObserver','get','_annotations','visibleView','remove','_manuallyClosed','_addedAnnotations','view','register','isAttached','plugins','change:visibleView','hasView','activeAnnotation','document','updatePosition','_setSelectedAnnotations','stopListening','targetRect','getByView','bind','_balloon','_removeAnnotationFromBalloon','focusTracker','selection','refresh','afterInit','InlineAnnotations','_addAnnotationToBalloon','mousedown','isFocused','change:isFocused','inlineannotations-detach-not-attached','switchTo','listenTo','detach','delete','isActive'];(function(_0x54c6cf,_0x4f89b1){const _0x586297=function(_0x533c10){while(--_0x533c10){_0x54c6cf['push'](_0x54c6cf['shift']());}};_0x586297(++_0x4f89b1);}(_0x4f89,0x1c8));const _0x5862=function(_0x54c6cf,_0x4f89b1){_0x54c6cf=_0x54c6cf-0x0;let _0x586297=_0x4f89[_0x54c6cf];return _0x586297;};import{Plugin as _0x128311}from'ckeditor5/src/core';import _0x235bac from'./annotationsuis';import _0x7e1d97 from'./editorannotations';import{ContextualBalloon as _0xe5f3c5}from'ckeditor5/src/ui';import{MouseObserver as _0x5c3f10}from'ckeditor5/src/engine';import{CKEditorError as _0x15c006}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x128311{static get[_0x5862('0x30')](){return[_0x7e1d97,_0xe5f3c5,_0x235bac];}static get[_0x5862('0x31')](){return _0x5862('0x25');}constructor(_0x577613){super(_0x577613),_0x577613[_0x5862('0x7')][_0x5862('0x11')][_0x5862('0xa')](_0x5c3f10),this['isAttached']=!0x1,this[_0x5862('0x35')](_0x5862('0x17'),null),this[_0x5862('0xc')]=null,this[_0x5862('0xf')]=new Set(),this[_0x5862('0x1f')]=_0x577613[_0x5862('0x14')][_0x5862('0xb')](_0xe5f3c5),this['_addedAnnotations']=new Set(),this[_0x5862('0x32')]=[];}['init'](){const _0x5e73fb=this[_0x5862('0x37')]['plugins'][_0x5862('0xb')](_0x235bac);_0x5e73fb[_0x5862('0x39')]===this[_0x5862('0x37')]&&(_0x5e73fb[_0x5862('0x12')](_0x5862('0x3'),this),this[_0x5862('0x37')][_0x5862('0x3d')][_0x5862('0x35')](_0x5862('0x8'),(_0x2ca8d1,_0x35494f)=>{const _0x4c99a7=this[_0x5862('0x1f')];if(this[_0x5862('0x13')]&&_0x4c99a7['visibleView']){const _0x322092=this[_0x5862('0xc')][_0x5862('0x1d')](_0x4c99a7['visibleView']);this[_0x5862('0xf')]['add'](_0x322092),this[_0x5862('0x20')](_0x322092),_0x35494f();}}));}[_0x5862('0x24')](){const _0x59aa7a=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac);_0x59aa7a['context']===this[_0x5862('0x37')]&&(_0x59aa7a['hasActive']()||_0x59aa7a[_0x5862('0x2b')]('inline'));}[_0x5862('0x1')](_0x3ef6ec){_0x3ef6ec!==this[_0x5862('0x17')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x5862('0x2f')]=!0x1),_0x3ef6ec&&this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')]&&(this[_0x5862('0x26')](_0x3ef6ec,!0x0),_0x3ef6ec[_0x5862('0x2f')]=!0x0),_0x3ef6ec||this[_0x5862('0x1a')]([]),this[_0x5862('0x17')]=_0x3ef6ec);}[_0x5862('0x34')](_0x59d18b){this[_0x5862('0xc')]=_0x59d18b;const _0x5cb023=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac),_0x2ac759=this['_balloon'];if(this['isAttached'])throw new _0x15c006(_0x5862('0x9'),this);if(_0x5cb023[_0x5862('0x39')]!==this['editor'])throw new _0x15c006(_0x5862('0x38'),this);const _0x2b8789=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x5862('0x33'));this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x23'),function(){const _0x4a679c=_0x2b8789['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5862('0xc')]});this[_0x5862('0x1a')](_0x4a679c),this['setActiveAnnotation'](_0x4a679c[0x0]||null);}[_0x5862('0x1e')](this)),this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x3c'),(_0x11fc11,{isAnnotationTracked:_0x2a7784})=>{this['activeAnnotation']&&_0x2a7784(this[_0x5862('0x17')])&&(this['_setSelectedAnnotations']([]),this[_0x5862('0x1')](null));}),this[_0x5862('0x2c')](this['editor']['ui'][_0x5862('0x21')],_0x5862('0x29'),(_0x594c2d,_0x22f5dc,_0x350c47)=>{_0x350c47||this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x59d18b,_0x5862('0xe'),(_0x22a99a,_0x12f404)=>{this['_removeAnnotationFromBalloon'](_0x12f404),_0x12f404===this[_0x5862('0x17')]&&this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x2ac759,_0x5862('0x15'),(_0x3bf079,_0x4068f2,_0x53ee2d,_0x9fe385)=>{if(_0x9fe385&&this[_0x5862('0x1b')](_0x9fe385),!_0x53ee2d||!_0x59d18b['getByView'](_0x53ee2d))return;const _0x3e7f61=_0x59d18b[_0x5862('0x1d')](_0x53ee2d);this[_0x5862('0x2c')](_0x53ee2d,_0x5862('0x0'),()=>{_0x2ac759[_0x5862('0x19')]();}),this['listenTo'](_0x53ee2d,_0x5862('0x8'),()=>{this[_0x5862('0xf')][_0x5862('0x6')](_0x3e7f61),this[_0x5862('0x20')](_0x3e7f61),this[_0x5862('0x37')][_0x5862('0x7')]['view']['focus']();}),this[_0x5862('0x17')]!==_0x3e7f61&&this[_0x5862('0x1')](_0x3e7f61);}),this[_0x5862('0x2c')](this[_0x5862('0x37')]['ui'],_0x5862('0x2'),()=>{_0x2ac759[_0x5862('0xd')]&&(_0x59d18b['getByView'](_0x2ac759['visibleView'])&&_0x2ac759[_0x5862('0x19')]());}),this['listenTo'](this[_0x5862('0x37')][_0x5862('0x7')][_0x5862('0x11')][_0x5862('0x18')],_0x5862('0x27'),()=>{this['_manuallyClosed'][_0x5862('0x4')]();}),this[_0x5862('0x37')][_0x5862('0x7')]['view'][_0x5862('0x18')][_0x5862('0x22')][_0x5862('0x5')]&&this['editor'][_0x5862('0x7')]['view'][_0x5862('0x3b')](),this[_0x5862('0x13')]=!0x0;}[_0x5862('0x2d')](){if(!this[_0x5862('0x13')])throw new _0x15c006(_0x5862('0x2a'),this);this['setActiveAnnotation'](null);for(const _0x46fe1b of this[_0x5862('0x10')])this[_0x5862('0x20')](_0x46fe1b);this[_0x5862('0x1b')](),this['isAttached']=!0x1;}[_0x5862('0x3e')](){this[_0x5862('0x13')]&&this[_0x5862('0x2d')]();}[_0x5862('0x1a')](_0x6d3ada){const _0x1c9ace=this[_0x5862('0x32')];for(const _0x2500f2 of _0x1c9ace)_0x6d3ada['includes'](_0x2500f2)||this[_0x5862('0xf')][_0x5862('0x2e')](_0x2500f2);for(const _0x264c4e of this[_0x5862('0xc')])_0x6d3ada['includes'](_0x264c4e)||this[_0x5862('0x20')](_0x264c4e);if(this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')])for(const _0x25ae38 of _0x6d3ada)this['_addAnnotationToBalloon'](_0x25ae38);this['_selectedAnnotations']=_0x6d3ada;}[_0x5862('0x26')](_0x4684f9,_0x4acdd7){this['_manuallyClosed']['has'](_0x4684f9)||(this[_0x5862('0x10')][_0x5862('0x36')](_0x4684f9)||this['_balloon'][_0x5862('0x16')](_0x4684f9[_0x5862('0x11')])||(this['_addedAnnotations'][_0x5862('0x6')](_0x4684f9),this['_balloon'][_0x5862('0x6')]({'stackId':_0x4684f9['view']['id'],'view':_0x4684f9[_0x5862('0x11')],'position':{'target':()=>_0x4684f9['target']||_0x4684f9[_0x5862('0x1c')]||document[_0x5862('0x3a')]()['getRangeAt'](0x0)}})),_0x4acdd7&&this[_0x5862('0x1f')]['showStack'](_0x4684f9[_0x5862('0x11')]['id']));}[_0x5862('0x20')](_0x268989){this[_0x5862('0x10')][_0x5862('0x36')](_0x268989)&&this[_0x5862('0x1f')][_0x5862('0x16')](_0x268989[_0x5862('0x11')])&&(this['_addedAnnotations'][_0x5862('0x2e')](_0x268989),this[_0x5862('0x1f')]['remove'](_0x268989['view']));}}
@@ -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 _0x5b15=['_manuallyClosedAnnotationViews','get','change:container','esc','set','_updateBalloonPosition','stopListening','_editorAnnotations','locale','uiUpdate','rearrange','southArrowNorthWest','NarrowSidebar','_integrateWithEditorAnnotations','attachToDom','off','register','_showBalloon','delete','northArrowSouthEast','_destroyEditorAnnotationsIntegration','_annotations','has','keyCode','EditorAnnotations','refreshPositioning','southArrowNorthEast','getSidebarItemView','_attachToContainer','_refreshPositioning','_domEmitter','isDirty','from','target','editors','annotationType','clear','bind','bodyCollection','detach','balloonPanelView','unpin','create','southArrowNorth','remove','contains','preventDefault','stop','first','detachFromDom','focus','plugins','add','narrowSidebar','number','init','addAnnotation','_attachListeners','Esc','isAttached','execute','keydown','isVisible','set:container','Sidebar','defaultPositions','hasDomSelection','mousedown','listenTo','values','_throttledRefreshPositioning','getByView','content','getOrderedSelectedAnnotations','northArrowSouthWest','activeAnnotation','destroy','requires','blur','removeEventListener','cancel','ck-sidebar--narrow','view','_annotationToNarrowView','_setSelectedAnnotations','ready','narrowsidebar-detach-not-attached','pin','setActiveAnnotation','resize','_detachListeners','preventClosingBalloon','_hideBalloon','high','refresh','element','context','_selectedAnnotations','northArrowSouth'];(function(_0x42dd08,_0x5b1544){const _0x2f49ed=function(_0x360a24){while(--_0x360a24){_0x42dd08['push'](_0x42dd08['shift']());}};_0x2f49ed(++_0x5b1544);}(_0x5b15,0x17d));const _0x2f49=function(_0x42dd08,_0x5b1544){_0x42dd08=_0x42dd08-0x0;let _0x2f49ed=_0x5b15[_0x42dd08];return _0x2f49ed;};import{ContextPlugin as _0x203678}from'ckeditor5/src/core';import _0x3f762a from'./annotationsuis';import _0x4fa331 from'./sidebar';import _0x478ceb from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a16c0,BodyCollection as _0xe17308}from'ckeditor5/src/ui';import{CKEditorError as _0x2f6cd1,DomEmitterMixin as _0x269581,keyCodes as _0x261e15,Collection as _0x39d40d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x8ff5d5}from'lodash-es';export default class s extends _0x203678{static get[_0x2f49('0x5c')](){return[_0x4fa331,_0x3f762a];}static get['pluginName'](){return _0x2f49('0x1b');}constructor(_0x158c60){super(_0x158c60),this[_0x2f49('0x4a')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x2f49('0x2d')]=Object[_0x2f49('0x39')](_0x269581),this['_annotationToNarrowView']=new Map(),this[_0x2f49('0x13')](_0x2f49('0x5a'),null),this['_annotations']=null,this[_0x2f49('0xd')]=[],this[_0x2f49('0x16')]=new _0x39d40d(),this[_0x2f49('0x55')]=_0x8ff5d5(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x2f49('0x46')](){this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x3f762a)[_0x2f49('0x1f')](_0x2f49('0x44'),this),this[_0x2f49('0x35')]=new _0xe17308(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x37')]=new _0x2a16c0(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x35')][_0x2f49('0x1d')](),this[_0x2f49('0x35')][_0x2f49('0x43')](this[_0x2f49('0x37')]);}['attach'](_0x4dc3f5){this[_0x2f49('0x24')]=_0x4dc3f5;const _0x3cff2b=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0xe360ea=this['balloonPanelView'];if(_0x3cff2b['_annotations']=_0x4dc3f5,this[_0x2f49('0x4a')])throw new _0x2f6cd1('narrowsidebar-attach-already-attached',this);this[_0x2f49('0x4a')]=!0x0,this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x4e'),()=>{this[_0x2f49('0x36')](),this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x11'),_0x2341ff=>{_0x2341ff[_0x2f49('0x1e')](),this['attach'](_0x4dc3f5);});}),_0x3cff2b[_0x2f49('0x2b')]({'viewClass':_0x2f49('0x60'),'spaceBetweenItems':0x5});const _0x3dd13b=_0x3d5946=>{const _0x532152=new _0x478ceb(this['context']['locale']);_0x3cff2b[_0x2f49('0x47')](_0x3d5946,_0x532152),this['_annotationToNarrowView'][_0x2f49('0x13')](_0x3d5946,_0x532152),_0x532152[_0x2f49('0x34')](_0x2f49('0x2e'),_0x2f49('0x32'),_0x2f49('0x45'))['to'](_0x3d5946[_0x2f49('0x61')],'isDirty','type','length'),_0x532152['on'](_0x2f49('0x4b'),()=>{this[_0x2f49('0xf')][_0x2f49('0x33')](),_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]!==_0x3d5946[_0x2f49('0x61')]?(this[_0x2f49('0x20')](_0x3d5946),_0x3d5946[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x41')](),this['setActiveAnnotation'](_0x3d5946)):this['setActiveAnnotation'](null);});};for(const _0x11c9c8 of _0x4dc3f5)_0x3dd13b(_0x11c9c8);this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x43'),(_0x3004a4,_0x22dc26)=>{_0x3dd13b(_0x22dc26);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x3b'),(_0x4c8bbd,_0x289cf1,_0x29629e)=>{this[_0x2f49('0x62')]['get'](_0x289cf1)['destroy'](),this[_0x2f49('0x62')][_0x2f49('0x21')](_0x289cf1),_0x3cff2b[_0x2f49('0x19')]({'removedAnnotation':_0x289cf1,'previousAnnotation':_0x4dc3f5[_0x2f49('0x10')](_0x29629e-0x1),'nextAnnotation':_0x4dc3f5['get'](_0x29629e+0x1)}),_0x289cf1===this[_0x2f49('0x5a')]&&this[_0x2f49('0x4')](null);},{'priority':'low'}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x41'),(_0x489c5e,_0x5988e9)=>{this[_0x2f49('0x4')](_0x5988e9);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x5d'),()=>{this[_0x2f49('0x4')](null);}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x4c'),(_0x20255e,_0x3419be)=>{_0x3419be[_0x2f49('0x26')]===_0x261e15[_0x2f49('0x12')]&&_0xe360ea[_0x2f49('0x4d')]&&(this[_0x2f49('0xf')][_0x2f49('0x43')](_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]),this['_hideBalloon'](),_0x3419be['stopPropagation'](),_0x3419be[_0x2f49('0x3d')]());}),this['_domEmitter'][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x2e3783,_0x2115ec)=>{const _0x1a02c9=_0x2115ec[_0x2f49('0x30')];_0xe360ea[_0x2f49('0x4d')]&&_0xe360ea[_0x2f49('0xb')]['contains'](_0x1a02c9)||_0x3cff2b[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x3c')](_0x1a02c9)||_0x2e3783[_0x2f49('0x7')]||(this[_0x2f49('0xf')][_0x2f49('0x33')](),this[_0x2f49('0x8')](),this[_0x2f49('0x4')](null));});const _0x3bffb2=this[_0x2f49('0xc')]['editors']?this['context'][_0x2f49('0x31')]:new _0x39d40d([this[_0x2f49('0xc')]]);for(const _0x45ed50 of _0x3bffb2)this[_0x2f49('0x1c')](_0x45ed50);this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x43'),(_0x49ca04,_0x44d6a9)=>{this['listenTo'](_0x44d6a9,_0x2f49('0x1'),()=>{this[_0x2f49('0x1c')](_0x44d6a9);});}),this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x3b'),(_0x3bf1cd,_0x2b1883)=>{_0x2b1883[_0x2f49('0x42')][_0x2f49('0x25')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b1883[_0x2f49('0x42')]['get'](_0x2f49('0x27')));}),window['addEventListener'](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x2c')]();}[_0x2f49('0x4')](_0x1c03a3){if(_0x1c03a3===this['activeAnnotation'])return;const _0x565e53=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));if(_0x565e53['refresh']({'blurredAnnotation':this[_0x2f49('0x5a')],'activatedAnnotation':_0x1c03a3,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1c03a3)_0x565e53[_0x2f49('0x2a')](_0x1c03a3)?this[_0x2f49('0x20')](_0x1c03a3):this[_0x2f49('0x8')]();else this[_0x2f49('0x8')]();this[_0x2f49('0x5a')]=_0x1c03a3;}[_0x2f49('0x36')](){if(!this[_0x2f49('0x4a')])throw new _0x2f6cd1(_0x2f49('0x2'),this);this[_0x2f49('0x4')](null);const _0x3088ef=this['context'][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));this['_hideBalloon'](),Array[_0x2f49('0x2f')](this[_0x2f49('0x62')][_0x2f49('0x54')](),_0x17e9a0=>_0x17e9a0[_0x2f49('0x5b')]()),this[_0x2f49('0x62')]['clear'](),_0x3088ef['_detachFromContainer'](this[_0x2f49('0x24')]),this[_0x2f49('0x15')](),this[_0x2f49('0x2d')][_0x2f49('0x15')](),this[_0x2f49('0x15')](this[_0x2f49('0xc')]['editors']);for(const _0x41eb89 of Array[_0x2f49('0x2f')](this['_editorAnnotations']))this[_0x2f49('0x23')](_0x41eb89);window[_0x2f49('0x5e')](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x55')][_0x2f49('0x5f')](),this['_selectedAnnotations']=[],this[_0x2f49('0x4a')]=!0x1,this[_0x2f49('0x24')]=null;}[_0x2f49('0x5b')](){this[_0x2f49('0x4a')]&&this[_0x2f49('0x36')](),this[_0x2f49('0x35')][_0x2f49('0x40')]();}['_integrateWithEditorAnnotations'](_0x4901a0){const _0x1b575b=_0x4901a0[_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x27')),_0x586c8a=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0x24b1bf=this['_annotations'],_0x167493=this[_0x2f49('0x37')],_0x4f43fb=()=>{const _0x38d727=_0x1b575b[_0x2f49('0x58')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x2f49('0x24')]});this[_0x2f49('0x0')](_0x38d727),this['setActiveAnnotation'](_0x38d727[0x0]||null);};this['listenTo'](_0x1b575b,_0x2f49('0xa'),_0x4f43fb),this[_0x2f49('0x53')](_0x1b575b,'blur',(_0x4fd268,{isAnnotationTracked:_0x9e65f8})=>{this['activeAnnotation']&&_0x9e65f8(this[_0x2f49('0x5a')])&&(this[_0x2f49('0x0')]([]),this[_0x2f49('0x4')](null));}),this[_0x2f49('0x53')](_0x1b575b,_0x2f49('0x18'),()=>{this[_0x2f49('0x55')]();}),this['listenTo'](_0x24b1bf,_0x2f49('0x5d'),_0x4fe70a=>{_0x1b575b['hasDomSelection']()&&_0x4fe70a[_0x2f49('0x3e')]();},{'priority':_0x2f49('0x9')}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x101d09,_0x1e09c9)=>{const _0x482030=_0x1e09c9[_0x2f49('0x30')];_0x167493['isVisible']&&_0x167493[_0x2f49('0xb')][_0x2f49('0x3c')](_0x482030)||_0x586c8a[_0x2f49('0x61')]['element']['contains'](_0x482030)||this[_0x2f49('0x5a')]&&_0x1b575b[_0x2f49('0x51')]()&&(_0x4f43fb(),_0x101d09[_0x2f49('0x7')]=!0x0);},{'priority':'high'}),this[_0x2f49('0x16')]['add'](_0x1b575b);}[_0x2f49('0x23')](_0x50a10c){_0x50a10c&&(this[_0x2f49('0x15')](_0x50a10c),this[_0x2f49('0x16')][_0x2f49('0x3b')](_0x50a10c));}[_0x2f49('0x0')](_0x488e06){for(const _0x2fa43b of this[_0x2f49('0xd')])_0x488e06['includes'](_0x2fa43b)||this[_0x2f49('0xf')][_0x2f49('0x21')](_0x2fa43b['view']);this['_selectedAnnotations']=_0x488e06;}[_0x2f49('0x2c')](){const _0x1a3e55=this['balloonPanelView'];this['_annotations'][_0x2f49('0x28')](),_0x1a3e55[_0x2f49('0x4d')]&&this[_0x2f49('0x14')]();}[_0x2f49('0x20')](_0x48ddc3){if(this['_manuallyClosedAnnotationViews'][_0x2f49('0x25')](_0x48ddc3['view']))return;const _0x46919c=this[_0x2f49('0x37')]['content']['first'];_0x46919c!==_0x48ddc3[_0x2f49('0x61')]?(_0x46919c&&this['_detachListeners'](_0x46919c),this[_0x2f49('0x48')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x37')][_0x2f49('0x57')][_0x2f49('0x33')](),this['balloonPanelView']['content'][_0x2f49('0x43')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x14')]()):this[_0x2f49('0x14')]();}['_updateBalloonPosition'](){const _0x361653=this['balloonPanelView'][_0x2f49('0x57')]['first'],_0x5e55b6=this[_0x2f49('0x24')][_0x2f49('0x56')](_0x361653);if(!this[_0x2f49('0x62')][_0x2f49('0x25')](_0x5e55b6))return;const _0x43c9f1=this['_annotationToNarrowView'][_0x2f49('0x10')](_0x5e55b6)['element'],_0x595249=function(){const _0xbcd568=_0x2a16c0[_0x2f49('0x50')];return[_0xbcd568[_0x2f49('0x29')],_0xbcd568[_0x2f49('0x22')],_0xbcd568[_0x2f49('0x3a')],_0xbcd568[_0x2f49('0xe')],_0xbcd568[_0x2f49('0x1a')],_0xbcd568[_0x2f49('0x59')]];}();this['balloonPanelView'][_0x2f49('0x3')]({'target':_0x43c9f1,'positions':_0x595249});}[_0x2f49('0x8')](){const _0x18b90e=this[_0x2f49('0x37')],_0x1ddc99=_0x18b90e[_0x2f49('0x57')][_0x2f49('0x3f')];_0x1ddc99&&(this[_0x2f49('0x6')](_0x1ddc99),_0x18b90e[_0x2f49('0x38')](),_0x18b90e[_0x2f49('0x57')][_0x2f49('0x33')]());}[_0x2f49('0x48')](_0x226e24){this[_0x2f49('0x53')](_0x226e24,'change:height',()=>this[_0x2f49('0x14')]()),this['listenTo'](_0x226e24,_0x2f49('0x49'),(_0x538f0c,_0x46ae66)=>{this[_0x2f49('0xf')][_0x2f49('0x43')](_0x226e24),this['_hideBalloon'](),_0x46ae66();});}[_0x2f49('0x6')](_0x3a10c8){this[_0x2f49('0x15')](_0x3a10c8);}}
23
+ const _0x1843=['refreshPositioning','attachToDom','_detachListeners','has','remove','detach','register','keydown','clear','NarrowSidebar','southArrowNorthWest','stopListening','isVisible','contains','unpin','_throttledRefreshPositioning','off','isDirty','preventDefault','_detachFromContainer','focus','_hideBalloon','target','get','element','_selectedAnnotations','listenTo','view','esc','destroy','context','ck-sidebar--narrow','resize','balloonPanelView','activeAnnotation','refresh','_annotations','values','length','high','preventClosingBalloon','setActiveAnnotation','bodyCollection','_attachToContainer','stop','locale','_manuallyClosedAnnotationViews','content','mousedown','northArrowSouthEast','plugins','narrowsidebar-detach-not-attached','cancel','_updateBalloonPosition','_attachListeners','Sidebar','requires','rearrange','blur','hasDomSelection','_refreshPositioning','set','change:container','narrowSidebar','detachFromDom','editors','addEventListener','getByView','pluginName','delete','_domEmitter','_annotationToNarrowView','_destroyEditorAnnotationsIntegration','addAnnotation','init','removeEventListener','first','narrowsidebar-attach-already-attached','attach','change:height','EditorAnnotations','isAttached','create','_showBalloon','_editorAnnotations','_setSelectedAnnotations','keyCode','_integrateWithEditorAnnotations','add','type'];(function(_0x5d929c,_0x184329){const _0xb9784f=function(_0x14f7a3){while(--_0x14f7a3){_0x5d929c['push'](_0x5d929c['shift']());}};_0xb9784f(++_0x184329);}(_0x1843,0x1ed));const _0xb978=function(_0x5d929c,_0x184329){_0x5d929c=_0x5d929c-0x0;let _0xb9784f=_0x1843[_0x5d929c];return _0xb9784f;};import{ContextPlugin as _0x53a403}from'ckeditor5/src/core';import _0x5d07ea from'./annotationsuis';import _0x536bdb from'./sidebar';import _0x220f8b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4143a6,BodyCollection as _0x529ac2}from'ckeditor5/src/ui';import{CKEditorError as _0x556d90,DomEmitterMixin as _0x559ff9,keyCodes as _0x2d3321,Collection as _0x8692ab}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x33c2a0}from'lodash-es';export default class s extends _0x53a403{static get[_0xb978('0xd')](){return[_0x536bdb,_0x5d07ea];}static get[_0xb978('0x19')](){return _0xb978('0x38');}constructor(_0x29ebfa){super(_0x29ebfa),this['isAttached']=!0x1,this[_0xb978('0x3')]=new Set(),this[_0xb978('0x1b')]=Object[_0xb978('0x27')](_0x559ff9),this[_0xb978('0x1c')]=new Map(),this[_0xb978('0x12')](_0xb978('0x51'),null),this[_0xb978('0x53')]=null,this[_0xb978('0x48')]=[],this[_0xb978('0x29')]=new _0x8692ab(),this['_throttledRefreshPositioning']=_0x33c2a0(()=>{this[_0xb978('0x11')]();},0x190,{'leading':!0x1});}[_0xb978('0x1f')](){this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x5d07ea)[_0xb978('0x35')](_0xb978('0x14'),this),this[_0xb978('0x59')]=new _0x529ac2(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x50')]=new _0x4143a6(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x59')][_0xb978('0x30')](),this['bodyCollection'][_0xb978('0x2d')](this[_0xb978('0x50')]);}[_0xb978('0x23')](_0x33f11c){this['_annotations']=_0x33f11c;const _0xcb87c0=this['context']['plugins'][_0xb978('0x46')](_0x536bdb),_0x577ac6=this[_0xb978('0x50')];if(_0xcb87c0[_0xb978('0x53')]=_0x33f11c,this['isAttached'])throw new _0x556d90(_0xb978('0x22'),this);this[_0xb978('0x26')]=!0x0,this[_0xb978('0x49')](_0xcb87c0,'set:container',()=>{this[_0xb978('0x34')](),this[_0xb978('0x49')](_0xcb87c0,_0xb978('0x13'),_0x5f5ac3=>{_0x5f5ac3[_0xb978('0x3f')](),this[_0xb978('0x23')](_0x33f11c);});}),_0xcb87c0[_0xb978('0x0')]({'viewClass':_0xb978('0x4e'),'spaceBetweenItems':0x5});const _0x2c61db=_0xa88d72=>{const _0x49d563=new _0x220f8b(this[_0xb978('0x4d')][_0xb978('0x2')]);_0xcb87c0[_0xb978('0x1e')](_0xa88d72,_0x49d563),this['_annotationToNarrowView'][_0xb978('0x12')](_0xa88d72,_0x49d563),_0x49d563['bind']('isDirty','annotationType','number')['to'](_0xa88d72[_0xb978('0x4a')],_0xb978('0x40'),_0xb978('0x2e'),_0xb978('0x55')),_0x49d563['on']('execute',()=>{this[_0xb978('0x3')]['clear'](),_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]!==_0xa88d72['view']?(this['_showBalloon'](_0xa88d72),_0xa88d72[_0xb978('0x4a')]['element']['focus'](),this['setActiveAnnotation'](_0xa88d72)):this[_0xb978('0x58')](null);});};for(const _0x3d7012 of _0x33f11c)_0x2c61db(_0x3d7012);this[_0xb978('0x49')](_0x33f11c,'add',(_0x3ce507,_0x17447c)=>{_0x2c61db(_0x17447c);}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x33'),(_0x1a0860,_0x24fb0e,_0x51f3d9)=>{this['_annotationToNarrowView'][_0xb978('0x46')](_0x24fb0e)['destroy'](),this[_0xb978('0x1c')][_0xb978('0x1a')](_0x24fb0e),_0xcb87c0[_0xb978('0xe')]({'removedAnnotation':_0x24fb0e,'previousAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9-0x1),'nextAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9+0x1)}),_0x24fb0e===this[_0xb978('0x51')]&&this[_0xb978('0x58')](null);},{'priority':'low'}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x43'),(_0x6062d8,_0x3ca5b8)=>{this[_0xb978('0x58')](_0x3ca5b8);}),this['listenTo'](_0x33f11c,_0xb978('0xf'),()=>{this[_0xb978('0x58')](null);}),this['_domEmitter'][_0xb978('0x49')](document,_0xb978('0x36'),(_0x23cae6,_0x845db4)=>{_0x845db4[_0xb978('0x2b')]===_0x2d3321[_0xb978('0x4b')]&&_0x577ac6[_0xb978('0x3b')]&&(this[_0xb978('0x3')][_0xb978('0x2d')](_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]),this['_hideBalloon'](),_0x845db4['stopPropagation'](),_0x845db4[_0xb978('0x41')]());}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0x2a8e10,_0x5df01f)=>{const _0x49e25c=_0x5df01f['target'];_0x577ac6[_0xb978('0x3b')]&&_0x577ac6['element'][_0xb978('0x3c')](_0x49e25c)||_0xcb87c0[_0xb978('0x4a')][_0xb978('0x47')][_0xb978('0x3c')](_0x49e25c)||_0x2a8e10[_0xb978('0x57')]||(this[_0xb978('0x3')][_0xb978('0x37')](),this[_0xb978('0x44')](),this[_0xb978('0x58')](null));});const _0x4eb275=this[_0xb978('0x4d')]['editors']?this[_0xb978('0x4d')][_0xb978('0x16')]:new _0x8692ab([this['context']]);for(const _0x181c5b of _0x4eb275)this[_0xb978('0x2c')](_0x181c5b);this[_0xb978('0x49')](_0x4eb275,'add',(_0x5df7ee,_0x2923b4)=>{this['listenTo'](_0x2923b4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2923b4);});}),this[_0xb978('0x49')](_0x4eb275,_0xb978('0x33'),(_0x62e9c4,_0x4905d2)=>{_0x4905d2[_0xb978('0x7')]['has'](_0xb978('0x25'))&&this[_0xb978('0x1d')](_0x4905d2['plugins'][_0xb978('0x46')](_0xb978('0x25')));}),window[_0xb978('0x17')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x11')]();}[_0xb978('0x58')](_0x1965ea){if(_0x1965ea===this[_0xb978('0x51')])return;const _0x50c019=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));if(_0x50c019['refresh']({'blurredAnnotation':this[_0xb978('0x51')],'activatedAnnotation':_0x1965ea,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1965ea)_0x50c019['getSidebarItemView'](_0x1965ea)?this['_showBalloon'](_0x1965ea):this[_0xb978('0x44')]();else this[_0xb978('0x44')]();this[_0xb978('0x51')]=_0x1965ea;}[_0xb978('0x34')](){if(!this['isAttached'])throw new _0x556d90(_0xb978('0x8'),this);this['setActiveAnnotation'](null);const _0xa4a826=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));this[_0xb978('0x44')](),Array['from'](this[_0xb978('0x1c')][_0xb978('0x54')](),_0x4070d7=>_0x4070d7[_0xb978('0x4c')]()),this[_0xb978('0x1c')]['clear'](),_0xa4a826[_0xb978('0x42')](this[_0xb978('0x53')]),this[_0xb978('0x3a')](),this[_0xb978('0x1b')]['stopListening'](),this['stopListening'](this[_0xb978('0x4d')][_0xb978('0x16')]);for(const _0x3569f0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3569f0);window[_0xb978('0x20')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x3e')][_0xb978('0x9')](),this[_0xb978('0x48')]=[],this[_0xb978('0x26')]=!0x1,this['_annotations']=null;}[_0xb978('0x4c')](){this[_0xb978('0x26')]&&this['detach'](),this[_0xb978('0x59')][_0xb978('0x15')]();}[_0xb978('0x2c')](_0x338d35){const _0x411798=_0x338d35[_0xb978('0x7')][_0xb978('0x46')](_0xb978('0x25')),_0x4220d1=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x536bdb),_0x11c8c1=this['_annotations'],_0x2c6c2e=this[_0xb978('0x50')],_0x166a27=()=>{const _0x56ae60=_0x411798['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0xb978('0x51')],'annotations':this[_0xb978('0x53')]});this['_setSelectedAnnotations'](_0x56ae60),this[_0xb978('0x58')](_0x56ae60[0x0]||null);};this[_0xb978('0x49')](_0x411798,_0xb978('0x52'),_0x166a27),this['listenTo'](_0x411798,_0xb978('0xf'),(_0x34e604,{isAnnotationTracked:_0x1add6e})=>{this[_0xb978('0x51')]&&_0x1add6e(this[_0xb978('0x51')])&&(this['_setSelectedAnnotations']([]),this[_0xb978('0x58')](null));}),this[_0xb978('0x49')](_0x411798,'uiUpdate',()=>{this[_0xb978('0x3e')]();}),this[_0xb978('0x49')](_0x11c8c1,'blur',_0x389a21=>{_0x411798[_0xb978('0x10')]()&&_0x389a21[_0xb978('0x1')]();},{'priority':_0xb978('0x56')}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0xebc7a0,_0x31dd18)=>{const _0x5501fc=_0x31dd18[_0xb978('0x45')];_0x2c6c2e[_0xb978('0x3b')]&&_0x2c6c2e[_0xb978('0x47')][_0xb978('0x3c')](_0x5501fc)||_0x4220d1[_0xb978('0x4a')][_0xb978('0x47')]['contains'](_0x5501fc)||this[_0xb978('0x51')]&&_0x411798['hasDomSelection']()&&(_0x166a27(),_0xebc7a0[_0xb978('0x57')]=!0x0);},{'priority':'high'}),this[_0xb978('0x29')][_0xb978('0x2d')](_0x411798);}['_destroyEditorAnnotationsIntegration'](_0x470ffe){_0x470ffe&&(this[_0xb978('0x3a')](_0x470ffe),this[_0xb978('0x29')]['remove'](_0x470ffe));}[_0xb978('0x2a')](_0x4fd009){for(const _0x4c8721 of this[_0xb978('0x48')])_0x4fd009['includes'](_0x4c8721)||this[_0xb978('0x3')][_0xb978('0x1a')](_0x4c8721[_0xb978('0x4a')]);this[_0xb978('0x48')]=_0x4fd009;}['_refreshPositioning'](){const _0x1583a0=this[_0xb978('0x50')];this[_0xb978('0x53')][_0xb978('0x2f')](),_0x1583a0[_0xb978('0x3b')]&&this['_updateBalloonPosition']();}[_0xb978('0x28')](_0x184ac3){if(this[_0xb978('0x3')][_0xb978('0x32')](_0x184ac3[_0xb978('0x4a')]))return;const _0x355e97=this[_0xb978('0x50')]['content'][_0xb978('0x21')];_0x355e97!==_0x184ac3[_0xb978('0x4a')]?(_0x355e97&&this['_detachListeners'](_0x355e97),this['_attachListeners'](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0x50')]['content'][_0xb978('0x37')](),this[_0xb978('0x50')][_0xb978('0x4')][_0xb978('0x2d')](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0xa')]()):this[_0xb978('0xa')]();}[_0xb978('0xa')](){const _0x8a01fc=this[_0xb978('0x50')][_0xb978('0x4')]['first'],_0x4b565b=this['_annotations'][_0xb978('0x18')](_0x8a01fc);if(!this[_0xb978('0x1c')]['has'](_0x4b565b))return;const _0x3b7c77=this[_0xb978('0x1c')]['get'](_0x4b565b)[_0xb978('0x47')],_0x5476b3=function(){const _0x317038=_0x4143a6['defaultPositions'];return[_0x317038['southArrowNorthEast'],_0x317038[_0xb978('0x6')],_0x317038['southArrowNorth'],_0x317038['northArrowSouth'],_0x317038[_0xb978('0x39')],_0x317038['northArrowSouthWest']];}();this[_0xb978('0x50')]['pin']({'target':_0x3b7c77,'positions':_0x5476b3});}['_hideBalloon'](){const _0x26618d=this[_0xb978('0x50')],_0x432bf6=_0x26618d[_0xb978('0x4')][_0xb978('0x21')];_0x432bf6&&(this[_0xb978('0x31')](_0x432bf6),_0x26618d[_0xb978('0x3d')](),_0x26618d['content']['clear']());}[_0xb978('0xb')](_0x1a9f0c){this[_0xb978('0x49')](_0x1a9f0c,_0xb978('0x24'),()=>this[_0xb978('0xa')]()),this['listenTo'](_0x1a9f0c,'Esc',(_0xc64974,_0x4852e0)=>{this[_0xb978('0x3')][_0xb978('0x2d')](_0x1a9f0c),this[_0xb978('0x44')](),_0x4852e0();});}[_0xb978('0x31')](_0x3740d2){this[_0xb978('0x3a')](_0x3740d2);}}
@@ -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 _0x1ab5=['_getTargetTop','add','init','pluginName','isActive','max','config','setContainer','change:bottom','change:_lastItem','sidebar-attachtocontainer-missing-container','_lastItem','Sidebar','_createSidebarView','_destroySidebarItemView','context','define','_activeAnnotation','list','isAnimationDisabled','destroy','last','set','_updateLastItem','clear','view','_getItemBefore','sidebar.container','change:targetRect','target','_attachToContainer','locale','bottom','render','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','remove','_alignBeforeItem','_alignToTargetRect','getIndex','class','_getMaxAvailableTop','top','updateHeight','element','_setItemTop','content','getSidebarItemView','_annotationToSidebarItemView','change:top','delete','_targetTop','targetRect','container','_spaceBetweenItems','sidebar.preventScrollOutOfView','get','unbind','stopListening','_getItemAfter','listenTo','length','_alignAfterItem','appendChild','minHeight','refresh','_annotations','height'];(function(_0x3ad47f,_0x1ab5ed){const _0x4976c2=function(_0x442581){while(--_0x442581){_0x3ad47f['push'](_0x3ad47f['shift']());}};_0x4976c2(++_0x1ab5ed);}(_0x1ab5,0x15b));const _0x4976=function(_0x3ad47f,_0x1ab5ed){_0x3ad47f=_0x3ad47f-0x0;let _0x4976c2=_0x1ab5[_0x3ad47f];return _0x4976c2;};import{ContextPlugin as _0x3e8b3b}from'ckeditor5/src/core';import _0x25ef68 from'./view/sidebarview';import _0x281e99 from'./view/sidebaritemview';import{Rect as _0x3c4a5b,CKEditorError as _0x11c2e4}from'ckeditor5/src/utils';import{isElement as _0x235457,throttle as _0x48c204}from'lodash-es';export default class b extends _0x3e8b3b{static get[_0x4976('0x40')](){return _0x4976('0x5');}constructor(_0x5d89d0){super(_0x5d89d0),this[_0x4976('0xf')](_0x4976('0x4')),this[_0x4976('0x12')]=this[_0x4976('0x6')](),this['set'](_0x4976('0x2e'),null),this[_0x4976('0x2f')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x4976('0x8')][_0x4976('0x43')][_0x4976('0x9')]('sidebar.preventScrollOutOfView',!0x1),this[_0x4976('0x3b')]=null,this[_0x4976('0xa')]=null;}[_0x4976('0x3f')](){const _0x2e731c=this[_0x4976('0x8')][_0x4976('0x43')]['get'](_0x4976('0x14'));_0x2e731c&&this['setContainer'](_0x2e731c);}[_0x4976('0x0')](_0xbabc34){if(!_0x235457(_0xbabc34))throw new _0x11c2e4(_0x4976('0x1b'));this[_0x4976('0x2e')]=_0xbabc34;}[_0x4976('0x17')]({viewClass:_0x3ae9cb='',spaceBetweenItems:_0x3635d5=0x19}={}){if(!_0x235457(this[_0x4976('0x2e')]))throw new _0x11c2e4(_0x4976('0x3'),this);this['container'][_0x4976('0x38')](this[_0x4976('0x12')][_0x4976('0x25')]),this[_0x4976('0x12')][_0x4976('0x21')]=_0x3ae9cb,this[_0x4976('0x2f')]=_0x3635d5;}['rearrange']({removedAnnotation:_0xb8be8d,previousAnnotation:_0x3bb002,nextAnnotation:_0x54e569}){const _0x4349f1=this['getSidebarItemView'](_0xb8be8d);this['view'][_0x4976('0xb')][_0x4976('0x1d')](_0x4349f1),this[_0x4976('0x7')](_0xb8be8d),_0x3bb002&&this[_0x4976('0x1f')](this[_0x4976('0x28')](_0x3bb002)),_0x54e569&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54e569)),this[_0x4976('0x10')]();}[_0x4976('0x3a')]({blurredAnnotation:_0x31f67a,activatedAnnotation:_0x1be8f3,disableAnimationOnActivatedAnnotation:_0x53fa05}){if(this['_activeAnnotation']=_0x1be8f3,_0x31f67a){_0x31f67a[_0x4976('0x41')]=!0x1;const _0x410b5f=this[_0x4976('0x28')](_0x31f67a);_0x410b5f&&_0x53fa05&&(_0x410b5f[_0x4976('0xc')]=!0x1);}if(_0x1be8f3){const _0x3fcd93=this[_0x4976('0x28')](_0x1be8f3);_0x3fcd93&&(_0x1be8f3[_0x4976('0x41')]=!0x0,_0x53fa05&&(_0x3fcd93[_0x4976('0xc')]=!0x0,_0x3fcd93[_0x4976('0x23')]+=0x1),this[_0x4976('0x1f')](_0x3fcd93));}}['_detachFromContainer'](_0xa0dea5){this[_0x4976('0x33')](),this[_0x4976('0x12')]['element'][_0x4976('0x1d')]();for(const _0x5293 of _0xa0dea5)this[_0x4976('0x7')](_0x5293);this['view'][_0x4976('0xb')][_0x4976('0x11')](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4cfcb,_0x6ff28a){_0x6ff28a||(_0x6ff28a=_0x4cfcb[_0x4976('0x12')]);const _0x3c9adb=new _0x281e99(this['context'][_0x4976('0x18')]);this[_0x4976('0x1c')][_0x4976('0xf')](_0x3c9adb,_0x4cfcb),this[_0x4976('0x29')][_0x4976('0xf')](_0x4cfcb,_0x3c9adb),_0x3c9adb['content']['add'](_0x6ff28a),this['_alignToTargetRect'](_0x3c9adb),this[_0x4976('0x35')](_0x4cfcb[_0x4976('0x12')],_0x4976('0x15'),()=>{const _0x3c652e=this['_getTargetTop'](_0x3c9adb);_0x3c9adb[_0x4976('0x2c')]!=_0x3c652e&&(_0x3c9adb['_targetTop']=_0x3c652e,this[_0x4976('0x26')](_0x3c9adb,_0x3c652e));}),this[_0x4976('0x35')](_0x3c9adb,_0x4976('0x2a'),_0x48c204(()=>{if(!_0x3c9adb[_0x4976('0x27')][_0x4976('0x36')])return;const _0x5ad492=this['_getItemBefore'](_0x3c9adb);if(!_0x5ad492)return;const _0x43bf48=this['_sidebarItemViewToAnnotation'][_0x4976('0x31')](_0x5ad492),_0x16e11c=this[_0x4976('0xa')];_0x16e11c&&_0x16e11c===_0x43bf48?this[_0x4976('0x37')](_0x5ad492,_0x3c9adb):this['_alignBeforeItem'](_0x3c9adb,_0x5ad492);},0xa,{'leading':!0x1})),this[_0x4976('0x35')](_0x3c9adb,_0x4976('0x1'),_0x48c204(()=>{if(!_0x3c9adb[_0x4976('0x27')][_0x4976('0x36')])return;const _0x287af0=this[_0x4976('0x34')](_0x3c9adb);if(!_0x287af0)return;const _0x3f903e=this[_0x4976('0x1c')][_0x4976('0x31')](_0x287af0),_0xa0b232=this[_0x4976('0x8')][_0x4976('0x43')][_0x4976('0x31')](_0x4976('0x30')),_0x42d658=this[_0x4976('0xa')];_0x42d658&&_0x42d658===_0x3f903e&&_0xa0b232?(this[_0x4976('0x1e')](_0x287af0,_0x3c9adb),this[_0x4976('0x37')](_0x3c9adb,_0x287af0)):_0x42d658&&_0x42d658===_0x3f903e?this[_0x4976('0x1e')](_0x287af0,_0x3c9adb):this[_0x4976('0x37')](_0x3c9adb,_0x287af0);},0xa,{'leading':!0x1}));const _0x497efe=this[_0x4976('0x13')](_0x3c9adb);if(_0x497efe)this[_0x4976('0x37')](_0x497efe,_0x3c9adb)||this[_0x4976('0x1f')](_0x3c9adb);else this[_0x4976('0x1f')](_0x3c9adb);return this['_updateLastItem'](),this[_0x4976('0x12')][_0x4976('0xb')][_0x4976('0x3e')](_0x3c9adb),_0x3c9adb;}[_0x4976('0x28')](_0x55050d){return this['_annotationToSidebarItemView'][_0x4976('0x31')](_0x55050d);}[_0x4976('0xd')](){this[_0x4976('0x12')][_0x4976('0xd')]();}[_0x4976('0x7')](_0x148ff4){const _0xc581cb=this[_0x4976('0x28')](_0x148ff4);this[_0x4976('0x33')](_0xc581cb),this[_0x4976('0x33')](_0x148ff4[_0x4976('0x12')]),_0xc581cb[_0x4976('0xd')](),this[_0x4976('0x29')][_0x4976('0x2b')](_0x148ff4),this[_0x4976('0x1c')][_0x4976('0x2b')](_0xc581cb);}[_0x4976('0x6')](){const _0x5b16c5=new _0x25ef68(this[_0x4976('0x8')][_0x4976('0x18')]);return _0x5b16c5[_0x4976('0x1a')](),this['on'](_0x4976('0x2'),(_0x50a826,_0x5a9f7f,_0x209f7f,_0x4601ac)=>{_0x4601ac&&_0x5b16c5[_0x4976('0x32')](_0x4976('0x39')),_0x209f7f?_0x5b16c5['bind'](_0x4976('0x39'))['to'](_0x209f7f,_0x4976('0x19')):_0x5b16c5['minHeight']=null;}),_0x5b16c5;}[_0x4976('0x10')](){this[_0x4976('0x4')]=this[_0x4976('0x28')](this[_0x4976('0x3b')][_0x4976('0xe')]);}[_0x4976('0x13')](_0x14806a){const _0x2227e6=this[_0x4976('0x1c')]['get'](_0x14806a),_0x1013cd=this['_annotations'][_0x4976('0x31')](this[_0x4976('0x3b')][_0x4976('0x20')](_0x2227e6)-0x1);return _0x1013cd&&this[_0x4976('0x28')](_0x1013cd);}[_0x4976('0x34')](_0x21d665){const _0x5d5537=this[_0x4976('0x1c')]['get'](_0x21d665),_0x21c82d=this[_0x4976('0x3b')]['get'](this[_0x4976('0x3b')][_0x4976('0x20')](_0x5d5537)+0x1);return _0x21c82d&&this[_0x4976('0x28')](_0x21c82d);}[_0x4976('0x1e')](_0x1f646f,_0x2c1d98){_0x1f646f[_0x4976('0x24')]();const _0x584ca9=V(_0x2c1d98['bottom']+this[_0x4976('0x2f')],_0x1f646f[_0x4976('0x23')]);return!!_0x584ca9&&(this['_setItemTop'](_0x2c1d98,_0x2c1d98[_0x4976('0x23')]-_0x584ca9),!0x0);}[_0x4976('0x37')](_0x3fdbce,_0x5e2cc3){_0x3fdbce['updateHeight']();const _0x57b8e2=V(_0x3fdbce[_0x4976('0x19')]+this[_0x4976('0x2f')],_0x5e2cc3['top']);return!!_0x57b8e2&&(this[_0x4976('0x26')](_0x5e2cc3,_0x5e2cc3[_0x4976('0x23')]+_0x57b8e2,!0x1),!0x0);}[_0x4976('0x1f')](_0x13ad97){const _0x5ebbff=this[_0x4976('0x1c')][_0x4976('0x31')](_0x13ad97);if(!_0x5ebbff||!_0x5ebbff[_0x4976('0x16')])return;const _0x3cd66e=this['_getTargetTop'](_0x13ad97);this[_0x4976('0x26')](_0x13ad97,_0x3cd66e);}[_0x4976('0x3d')](_0x32b0af){const _0x3f91ac=this[_0x4976('0x1c')][_0x4976('0x31')](_0x32b0af);if(_0x3f91ac[_0x4976('0x16')]instanceof _0x3c4a5b)return _0x3f91ac[_0x4976('0x2d')][_0x4976('0x23')];{const _0xe534e2=new _0x3c4a5b(this[_0x4976('0x12')][_0x4976('0x25')])[_0x4976('0x23')];return _0x3f91ac[_0x4976('0x2d')][_0x4976('0x23')]-_0xe534e2;}}[_0x4976('0x26')](_0x57dc6a,_0x5dee33,_0x1e8b03=this['context']['config'][_0x4976('0x31')](_0x4976('0x30'))){_0x1e8b03&&(_0x5dee33=Math[_0x4976('0x42')](_0x5dee33,this[_0x4976('0x22')](_0x57dc6a))),_0x57dc6a[_0x4976('0x23')]=_0x5dee33;}['_getMaxAvailableTop'](_0x5db9ec){let _0x2a50d5=this[_0x4976('0x13')](_0x5db9ec),_0x242fd1=0x0;for(;_0x2a50d5;)_0x2a50d5[_0x4976('0x24')](),_0x242fd1+=this[_0x4976('0x2f')]+_0x2a50d5[_0x4976('0x3c')],_0x2a50d5=this[_0x4976('0x13')](_0x2a50d5);return _0x242fd1;}}function V(_0x22a71f,_0x2d7386){return Math[_0x4976('0x42')](_0x22a71f-_0x2d7386,0x0);}
23
+ const _0x5636=['isActive','getSidebarItemView','addAnnotation','_updateLastItem','config','element','bottom','max','minHeight','_sidebarItemViewToAnnotation','locale','_destroySidebarItemView','_annotationToSidebarItemView','getIndex','_targetTop','_getItemAfter','targetRect','_getItemBefore','refresh','change:top','_annotations','sidebar.container','_setItemTop','change:targetRect','unbind','list','height','sidebar-attachtocontainer-missing-container','appendChild','container','pluginName','define','_alignAfterItem','class','remove','destroy','_getTargetTop','target','init','Sidebar','updateHeight','delete','top','add','_alignBeforeItem','_activeAnnotation','sidebar.preventScrollOutOfView','set','stopListening','view','isAnimationDisabled','_spaceBetweenItems','listenTo','clear','get','content','length','_alignToTargetRect','setContainer','context','sidebar-setcontainer-invalid-element'];(function(_0x13c60d,_0x563682){const _0x5e96fe=function(_0x345068){while(--_0x345068){_0x13c60d['push'](_0x13c60d['shift']());}};_0x5e96fe(++_0x563682);}(_0x5636,0x69));const _0x5e96=function(_0x13c60d,_0x563682){_0x13c60d=_0x13c60d-0x0;let _0x5e96fe=_0x5636[_0x13c60d];return _0x5e96fe;};import{ContextPlugin as _0x599806}from'ckeditor5/src/core';import _0x5af177 from'./view/sidebarview';import _0x2f9e08 from'./view/sidebaritemview';import{Rect as _0x300841,CKEditorError as _0x575631}from'ckeditor5/src/utils';import{isElement as _0x4568e7,throttle as _0x5cf3c5}from'lodash-es';export default class b extends _0x599806{static get[_0x5e96('0x2f')](){return _0x5e96('0x38');}constructor(_0x52226b){super(_0x52226b),this[_0x5e96('0x3')]('_lastItem'),this[_0x5e96('0x5')]=this['_createSidebarView'](),this[_0x5e96('0x3')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5e96('0x1a')]=new Map(),this[_0x5e96('0x1d')]=new Map(),this['context'][_0x5e96('0x15')][_0x5e96('0x30')](_0x5e96('0x2'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}[_0x5e96('0x37')](){const _0x1b3d79=this[_0x5e96('0xf')]['config']['get'](_0x5e96('0x26'));_0x1b3d79&&this[_0x5e96('0xe')](_0x1b3d79);}['setContainer'](_0x52b848){if(!_0x4568e7(_0x52b848))throw new _0x575631(_0x5e96('0x10'));this[_0x5e96('0x2e')]=_0x52b848;}['_attachToContainer']({viewClass:_0x3c59b3='',spaceBetweenItems:_0x5f37e3=0x19}={}){if(!_0x4568e7(this[_0x5e96('0x2e')]))throw new _0x575631(_0x5e96('0x2c'),this);this[_0x5e96('0x2e')][_0x5e96('0x2d')](this[_0x5e96('0x5')]['element']),this[_0x5e96('0x5')][_0x5e96('0x32')]=_0x3c59b3,this[_0x5e96('0x7')]=_0x5f37e3;}['rearrange']({removedAnnotation:_0x3cb0f9,previousAnnotation:_0x3b2037,nextAnnotation:_0x496768}){const _0x35f329=this[_0x5e96('0x12')](_0x3cb0f9);this[_0x5e96('0x5')]['list']['remove'](_0x35f329),this[_0x5e96('0x1c')](_0x3cb0f9),_0x3b2037&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x3b2037)),_0x496768&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x496768)),this[_0x5e96('0x14')]();}[_0x5e96('0x23')]({blurredAnnotation:_0x47c201,activatedAnnotation:_0x44fb00,disableAnimationOnActivatedAnnotation:_0x43231b}){if(this[_0x5e96('0x1')]=_0x44fb00,_0x47c201){_0x47c201[_0x5e96('0x11')]=!0x1;const _0x2bd0d0=this[_0x5e96('0x12')](_0x47c201);_0x2bd0d0&&_0x43231b&&(_0x2bd0d0[_0x5e96('0x6')]=!0x1);}if(_0x44fb00){const _0x1d21d3=this[_0x5e96('0x12')](_0x44fb00);_0x1d21d3&&(_0x44fb00['isActive']=!0x0,_0x43231b&&(_0x1d21d3[_0x5e96('0x6')]=!0x0,_0x1d21d3[_0x5e96('0x3b')]+=0x1),this[_0x5e96('0xd')](_0x1d21d3));}}['_detachFromContainer'](_0x4e40af){this[_0x5e96('0x4')](),this[_0x5e96('0x5')][_0x5e96('0x16')][_0x5e96('0x33')]();for(const _0x482e98 of _0x4e40af)this[_0x5e96('0x1c')](_0x482e98);this['view']['list'][_0x5e96('0x9')](),this[_0x5e96('0x5')][_0x5e96('0x32')]='',this['_lastItem']=null;}[_0x5e96('0x13')](_0x4f5944,_0x598cb9){_0x598cb9||(_0x598cb9=_0x4f5944[_0x5e96('0x5')]);const _0x5cddcf=new _0x2f9e08(this['context']['locale']);this[_0x5e96('0x1a')][_0x5e96('0x3')](_0x5cddcf,_0x4f5944),this[_0x5e96('0x1d')]['set'](_0x4f5944,_0x5cddcf),_0x5cddcf[_0x5e96('0xb')][_0x5e96('0x3c')](_0x598cb9),this[_0x5e96('0xd')](_0x5cddcf),this[_0x5e96('0x8')](_0x4f5944[_0x5e96('0x5')],_0x5e96('0x28'),()=>{const _0x2edc12=this[_0x5e96('0x35')](_0x5cddcf);_0x5cddcf[_0x5e96('0x1f')]!=_0x2edc12&&(_0x5cddcf[_0x5e96('0x1f')]=_0x2edc12,this['_setItemTop'](_0x5cddcf,_0x2edc12));}),this[_0x5e96('0x8')](_0x5cddcf,_0x5e96('0x24'),_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x2b90b4=this['_getItemBefore'](_0x5cddcf);if(!_0x2b90b4)return;const _0x2e0142=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x2b90b4),_0xab0bc7=this['_activeAnnotation'];_0xab0bc7&&_0xab0bc7===_0x2e0142?this[_0x5e96('0x31')](_0x2b90b4,_0x5cddcf):this['_alignBeforeItem'](_0x5cddcf,_0x2b90b4);},0xa,{'leading':!0x1})),this[_0x5e96('0x8')](_0x5cddcf,'change:bottom',_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x4280cc=this[_0x5e96('0x20')](_0x5cddcf);if(!_0x4280cc)return;const _0x500ebe=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4280cc),_0x3909f1=this[_0x5e96('0xf')][_0x5e96('0x15')][_0x5e96('0xa')]('sidebar.preventScrollOutOfView'),_0x320dae=this[_0x5e96('0x1')];_0x320dae&&_0x320dae===_0x500ebe&&_0x3909f1?(this['_alignBeforeItem'](_0x4280cc,_0x5cddcf),this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc)):_0x320dae&&_0x320dae===_0x500ebe?this[_0x5e96('0x0')](_0x4280cc,_0x5cddcf):this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc);},0xa,{'leading':!0x1}));const _0x21690a=this[_0x5e96('0x22')](_0x5cddcf);if(_0x21690a)this[_0x5e96('0x31')](_0x21690a,_0x5cddcf)||this['_alignToTargetRect'](_0x5cddcf);else this['_alignToTargetRect'](_0x5cddcf);return this['_updateLastItem'](),this[_0x5e96('0x5')][_0x5e96('0x2a')]['add'](_0x5cddcf),_0x5cddcf;}[_0x5e96('0x12')](_0x5fe8c7){return this[_0x5e96('0x1d')][_0x5e96('0xa')](_0x5fe8c7);}[_0x5e96('0x34')](){this['view']['destroy']();}[_0x5e96('0x1c')](_0x54c132){const _0x31451f=this[_0x5e96('0x12')](_0x54c132);this[_0x5e96('0x4')](_0x31451f),this[_0x5e96('0x4')](_0x54c132[_0x5e96('0x5')]),_0x31451f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x54c132),this[_0x5e96('0x1a')][_0x5e96('0x3a')](_0x31451f);}['_createSidebarView'](){const _0x2f74df=new _0x5af177(this[_0x5e96('0xf')][_0x5e96('0x1b')]);return _0x2f74df['render'](),this['on']('change:_lastItem',(_0x282aec,_0x588038,_0x2534fa,_0x5a0d30)=>{_0x5a0d30&&_0x2f74df[_0x5e96('0x29')](_0x5e96('0x19')),_0x2534fa?_0x2f74df['bind']('minHeight')['to'](_0x2534fa,_0x5e96('0x17')):_0x2f74df[_0x5e96('0x19')]=null;}),_0x2f74df;}[_0x5e96('0x14')](){this['_lastItem']=this[_0x5e96('0x12')](this[_0x5e96('0x25')]['last']);}[_0x5e96('0x22')](_0x49ae64){const _0x19c9cb=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x49ae64),_0x3cfca2=this['_annotations'][_0x5e96('0xa')](this[_0x5e96('0x25')][_0x5e96('0x1e')](_0x19c9cb)-0x1);return _0x3cfca2&&this['getSidebarItemView'](_0x3cfca2);}[_0x5e96('0x20')](_0x447ded){const _0x1d16c1=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x447ded),_0x43a435=this[_0x5e96('0x25')]['get'](this[_0x5e96('0x25')]['getIndex'](_0x1d16c1)+0x1);return _0x43a435&&this[_0x5e96('0x12')](_0x43a435);}[_0x5e96('0x0')](_0x4bd367,_0x3235b8){_0x4bd367[_0x5e96('0x39')]();const _0x1d35be=H(_0x3235b8['bottom']+this['_spaceBetweenItems'],_0x4bd367[_0x5e96('0x3b')]);return!!_0x1d35be&&(this[_0x5e96('0x27')](_0x3235b8,_0x3235b8[_0x5e96('0x3b')]-_0x1d35be),!0x0);}[_0x5e96('0x31')](_0x280a58,_0x18aa2b){_0x280a58[_0x5e96('0x39')]();const _0x16fcea=H(_0x280a58['bottom']+this[_0x5e96('0x7')],_0x18aa2b['top']);return!!_0x16fcea&&(this['_setItemTop'](_0x18aa2b,_0x18aa2b[_0x5e96('0x3b')]+_0x16fcea,!0x1),!0x0);}[_0x5e96('0xd')](_0x573451){const _0x527113=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x573451);if(!_0x527113||!_0x527113[_0x5e96('0x36')])return;const _0x5f463f=this[_0x5e96('0x35')](_0x573451);this[_0x5e96('0x27')](_0x573451,_0x5f463f);}[_0x5e96('0x35')](_0x4ddc80){const _0x29dd81=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4ddc80);if(null===_0x29dd81['targetRect'])return 0x0;if(_0x29dd81[_0x5e96('0x36')]instanceof _0x300841)return _0x29dd81['targetRect'][_0x5e96('0x3b')];{const _0x1ddb33=new _0x300841(this['view'][_0x5e96('0x16')])[_0x5e96('0x3b')];return _0x29dd81[_0x5e96('0x21')][_0x5e96('0x3b')]-_0x1ddb33;}}[_0x5e96('0x27')](_0x1c9a73,_0x3d4184,_0x5e4c78=this[_0x5e96('0xf')]['config'][_0x5e96('0xa')](_0x5e96('0x2'))){_0x5e4c78&&(_0x3d4184=Math[_0x5e96('0x18')](_0x3d4184,this['_getMaxAvailableTop'](_0x1c9a73))),_0x1c9a73[_0x5e96('0x3b')]=_0x3d4184;}['_getMaxAvailableTop'](_0x14fef2){let _0x239d31=this[_0x5e96('0x22')](_0x14fef2),_0x42054c=0x0;for(;_0x239d31;)_0x239d31[_0x5e96('0x39')](),_0x42054c+=this['_spaceBetweenItems']+_0x239d31[_0x5e96('0x2b')],_0x239d31=this[_0x5e96('0x22')](_0x239d31);return _0x42054c;}}function H(_0x12999a,_0x4dad12){return Math[_0x5e96('0x18')](_0x12999a-_0x4dad12,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 _0x5dca=['children','add','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','extendTemplate','bind','set','...','setTemplate','annotationType','isDirty','number','ck-annotation-counter__badge','ck-annotation-counter','counterView','_badge','icon'];(function(_0x20caaf,_0x5dca08){const _0x357fc2=function(_0x4919f6){while(--_0x4919f6){_0x20caaf['push'](_0x20caaf['shift']());}};_0x357fc2(++_0x5dca08);}(_0x5dca,0x6c));const _0x357f=function(_0x20caaf,_0x5dca08){_0x20caaf=_0x20caaf-0x0;let _0x357fc2=_0x5dca[_0x20caaf];return _0x357fc2;};import{ButtonView as _0x3a618a,View as _0x52f71b}from'ckeditor5/src/ui';import _0x3a46ba from'../../../theme/icons/add-comment.svg';export default class _ extends _0x3a618a{constructor(_0x56d5f9){super(_0x56d5f9);const _0x38e6eb=this['bindTemplate'];this[_0x357f('0x0')](_0x357f('0x4'),!0x1),this[_0x357f('0x0')](_0x357f('0x5'),0x0),this[_0x357f('0x10')](_0x357f('0x9'))['to'](this,'isDirty',this,_0x357f('0x5'),(_0xe26bba,_0x4c5391)=>_0xe26bba?_0x357f('0x1'):_0x4c5391),this['set'](_0x357f('0x3'),''),this[_0x357f('0xa')]=_0x3a46ba,this[_0x357f('0xf')]({'attributes':{'class':[_0x357f('0x7')]}}),this[_0x357f('0x8')]=new _0x52f71b(),this[_0x357f('0x8')][_0x357f('0x2')]({'tag':'span','attributes':{'class':[_0x357f('0x6'),_0x38e6eb['to']('annotationType',_0x12a731=>_0x357f('0xd')+_0x12a731),_0x38e6eb['if'](_0x357f('0x4'),_0x357f('0xe'))]},'children':[{'text':_0x38e6eb['to'](_0x357f('0x9'))}]}),this[_0x357f('0xb')][_0x357f('0xc')](this[_0x357f('0x8')]);}}
23
+ const _0x139d=['annotationType','add','setTemplate','ck-annotation-counter','isDirty','_badge','icon','...','ck-annotation-counter__badge','set','ck-annotation-counter__badge--edit-mode','bind','counterView','number','span'];(function(_0x540025,_0x139df4){const _0x4c0511=function(_0x2ae88b){while(--_0x2ae88b){_0x540025['push'](_0x540025['shift']());}};_0x4c0511(++_0x139df4);}(_0x139d,0x1c5));const _0x4c05=function(_0x540025,_0x139df4){_0x540025=_0x540025-0x0;let _0x4c0511=_0x139d[_0x540025];return _0x4c0511;};import{ButtonView as _0x1a1cb7,View as _0x11a9dc}from'ckeditor5/src/ui';import _0x4ecc5d from'../../../theme/icons/add-comment.svg';export default class B extends _0x1a1cb7{constructor(_0x5bbc85){super(_0x5bbc85);const _0x5950b4=this['bindTemplate'];this['set'](_0x4c05('0x1'),!0x1),this[_0x4c05('0x6')](_0x4c05('0xa'),0x0),this[_0x4c05('0x8')](_0x4c05('0x2'))['to'](this,_0x4c05('0x1'),this,'number',(_0x58c1b3,_0x2ef73c)=>_0x58c1b3?_0x4c05('0x4'):_0x2ef73c),this[_0x4c05('0x6')](_0x4c05('0xc'),''),this[_0x4c05('0x3')]=_0x4ecc5d,this['extendTemplate']({'attributes':{'class':[_0x4c05('0x0')]}}),this[_0x4c05('0x9')]=new _0x11a9dc(),this[_0x4c05('0x9')][_0x4c05('0xe')]({'tag':_0x4c05('0xb'),'attributes':{'class':[_0x4c05('0x5'),_0x5950b4['to']('annotationType',_0x3d343d=>'ck-annotation-counter__badge--'+_0x3d343d),_0x5950b4['if']('isDirty',_0x4c05('0x7'))]},'children':[{'text':_0x5950b4['to'](_0x4c05('0x2'))}]}),this['children'][_0x4c05('0xd')](this[_0x4c05('0x9')]);}}