@ckeditor/ckeditor5-comments 38.2.0-alpha.0 → 39.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 (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +4 -0
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +4 -0
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +4 -0
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +4 -0
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +4 -0
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +4 -0
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +4 -0
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +4 -0
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +4 -0
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +4 -0
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +4 -0
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +4 -0
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +4 -0
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +4 -0
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +4 -0
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +4 -0
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +4 -0
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +4 -0
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +20 -3
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +4 -0
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +4 -0
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +4 -0
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +6 -2
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -0
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +4 -0
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +4 -0
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +4 -0
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +4 -0
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +4 -0
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +4 -0
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -0
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +4 -0
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -0
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +4 -0
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +4 -0
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +4 -0
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +4 -0
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +4 -0
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +4 -0
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +5 -2
  159. package/src/index.js +1 -1
  160. package/src/utils/common-translations.d.ts +4 -0
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/editorannotations
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2996=['innerView','has','from','get','function','containsRange','isEqual','_editorAnnotationsData','hasDomSelection','view','change:range','refreshSelectedViews','init','change:isFocused','collection','_editorAnnotations','directChange','getOrderedSelectedAnnotations','editing','remove','pluginName','_dataCollectors','uiUpdate','update','blur','focusTracker','element','editor','getRanges','push','addSourceCollector','document','cancel','selection','add','editorannotations-invalid-source-callback','sort','annotation','requires','fire','listenTo','map','delete','refresh','range','set','EditorAnnotations'];(function(_0x163a67,_0x2996f2){const _0xacb694=function(_0x55d28b){while(--_0x55d28b){_0x163a67['push'](_0x163a67['shift']());}};_0xacb694(++_0x2996f2);}(_0x2996,0xc1));const _0xacb6=function(_0x163a67,_0x2996f2){_0x163a67=_0x163a67-0x0;let _0xacb694=_0x2996[_0x163a67];return _0xacb694;};import{Plugin as _0x3da581}from'ckeditor5/src/core';import{CKEditorError as _0x5e4360}from'ckeditor5/src/utils';import{debounce as _0x26f3e6}from'lodash-es';import _0x2da36f from'./annotations';export default class k extends _0x3da581{static get[_0xacb6('0x21')](){return[_0x2da36f];}static get[_0xacb6('0xf')](){return _0xacb6('0x29');}constructor(_0x3b86ee){super(_0x3b86ee),this[_0xacb6('0x10')]=new Set(),this[_0xacb6('0xa')]=new Set();}[_0xacb6('0x7')](){const _0x34d0f9=this['editor'],_0x22a039=_0x34d0f9['model'][_0xacb6('0x1a')]['selection'],_0x521d62=_0x26f3e6(()=>this[_0xacb6('0x6')](),0xa);_0x22a039['on'](_0xacb6('0x5'),(_0x38be54,_0x556267)=>{_0x556267[_0xacb6('0xb')]&&(_0x521d62[_0xacb6('0x1b')](),this[_0xacb6('0x6')]());}),this['listenTo'](_0x34d0f9['editing']['view'][_0xacb6('0x1a')],_0xacb6('0x8'),(_0x48b651,_0x3fa9c1,_0x6677ab)=>{_0x6677ab&&_0x521d62();}),this[_0xacb6('0x23')](_0x34d0f9['ui'][_0xacb6('0x14')],_0xacb6('0x8'),(_0x3e7298,_0x2f94be,_0x1f2cbb)=>{_0x1f2cbb||_0x34d0f9['isReadOnly']||this['fire'](_0xacb6('0x13'),{'isAnnotationTracked':_0x1419c7=>this[_0xacb6('0x2')][_0xacb6('0x2b')](_0x1419c7[_0xacb6('0x2a')])});}),this['listenTo'](this[_0xacb6('0x16')]['ui'],_0xacb6('0x12'),()=>this['fire'](_0xacb6('0x11')));}['registerAnnotation'](_0x4a1b3d){if(this[_0xacb6('0xa')][_0xacb6('0x2b')](_0x4a1b3d[_0xacb6('0x4')]))return;this[_0xacb6('0xa')][_0xacb6('0x1d')](_0x4a1b3d[_0xacb6('0x4')]),this[_0xacb6('0x16')]['ui']['focusTracker'][_0xacb6('0x1d')](_0x4a1b3d['view'][_0xacb6('0x15')]);const _0x3585dc=this['editor']['plugins'][_0xacb6('0x2d')](_0x2da36f);this[_0xacb6('0x23')](_0x3585dc[_0xacb6('0x9')],'remove',(_0x209284,_0x1fe197)=>{this[_0xacb6('0x16')]['ui'][_0xacb6('0x14')][_0xacb6('0xe')](_0x1fe197['view'][_0xacb6('0x15')]),this[_0xacb6('0xa')][_0xacb6('0x25')](_0x1fe197['view']);});}[_0xacb6('0x3')](){return this['editor'][_0xacb6('0xd')]['view'][_0xacb6('0x3')];}[_0xacb6('0x19')](_0x407054){if(_0xacb6('0x2e')!=typeof _0x407054)throw new _0x5e4360(_0xacb6('0x1e'));this[_0xacb6('0x10')][_0xacb6('0x1d')](_0x407054);}[_0xacb6('0x6')](){this[_0xacb6('0x22')](_0xacb6('0x26'));}[_0xacb6('0xc')]({activeAnnotation:_0xf626ad,annotations:_0x364025}){const _0x3fa67b=[],_0x470503=this['editor']['model'][_0xacb6('0x1a')][_0xacb6('0x1c')],_0xb85c1=Array[_0xacb6('0x2c')](_0x470503[_0xacb6('0x17')]());for(const [_0x397cc8,_0x1131b3]of this[_0xacb6('0x2')]){const _0x149085=_0x447d39(_0x1131b3),_0x40d5c9=_0x364025['getByInnerView'](_0x397cc8);_0x149085&&_0x40d5c9&&_0x3fa67b[_0xacb6('0x18')]({'annotation':_0x40d5c9,'range':_0x149085});}function _0x447d39(_0x5e1b88){for(const _0x37cc2b of _0x5e1b88)for(const _0x4b0d30 of _0xb85c1)if(_0x37cc2b[_0xacb6('0x0')](_0x4b0d30,!_0x470503['isCollapsed']))return _0x37cc2b;return null;}return _0x3fa67b[_0xacb6('0x1f')]((_0x4ea226,_0x29e330)=>{const _0x3c63da=_0x4ea226['range'],_0x522f69=_0x29e330[_0xacb6('0x27')];if(!_0x3c63da[_0xacb6('0x1')](_0x522f69)){if(_0x3c63da[_0xacb6('0x0')](_0x522f69,!0x0))return 0x1;if(_0x522f69[_0xacb6('0x0')](_0x3c63da,!0x0))return-0x1;}return _0x4ea226[_0xacb6('0x20')]==_0xf626ad?-0x1:_0x29e330[_0xacb6('0x20')]==_0xf626ad?0x1:0x0;})[_0xacb6('0x24')](_0x206e72=>_0x206e72['annotation']);}get[_0xacb6('0x2')](){const _0x19518e=new Map();for(const _0x4a0e9c of Array[_0xacb6('0x2c')](this[_0xacb6('0x10')]))for(const [_0x5c25fe,_0xf9264e]of _0x4a0e9c())_0x19518e[_0xacb6('0x28')](_0x5c25fe,_0xf9264e);return _0x19518e;}}
23
+ const _0x8861=['add','innerView','refreshSelectedViews','listenTo','getRanges','change:isFocused','addSourceCollector','editing','document','view','getByInnerView','fire','has','isEqual','from','editorannotations-invalid-source-callback','getOrderedSelectedAnnotations','containsRange','refresh','selection','range','blur','model','init','_editorAnnotationsData','change:range','collection','set','plugins','delete','hasDomSelection','annotation','registerAnnotation','_editorAnnotations','map','_dataCollectors','element','editor','function','isReadOnly','isCollapsed','cancel','focusTracker'];(function(_0x1a2ace,_0x88611b){const _0x26965a=function(_0x310678){while(--_0x310678){_0x1a2ace['push'](_0x1a2ace['shift']());}};_0x26965a(++_0x88611b);}(_0x8861,0xd1));const _0x2696=function(_0x1a2ace,_0x88611b){_0x1a2ace=_0x1a2ace-0x0;let _0x26965a=_0x8861[_0x1a2ace];return _0x26965a;};import{Plugin as _0x275699}from'ckeditor5/src/core';import{CKEditorError as _0x34b67c}from'ckeditor5/src/utils';import{debounce as _0x151e74}from'lodash-es';import _0x5298ef from'./annotations';export default class k extends _0x275699{static get['requires'](){return[_0x5298ef];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x30e127){super(_0x30e127),this[_0x2696('0x29')]=new Set(),this[_0x2696('0x27')]=new Set();}[_0x2696('0x1d')](){const _0x3a834f=this[_0x2696('0x0')],_0x443691=_0x3a834f[_0x2696('0x1c')][_0x2696('0xe')]['selection'],_0x457adb=_0x151e74(()=>this[_0x2696('0x8')](),0xa);_0x443691['on'](_0x2696('0x1f'),(_0x2fcb51,_0x46af5f)=>{_0x46af5f['directChange']&&(_0x457adb[_0x2696('0x4')](),this[_0x2696('0x8')]());}),this[_0x2696('0x9')](_0x3a834f['editing'][_0x2696('0xf')]['document'],_0x2696('0xb'),(_0x3af2a6,_0x723708,_0x5e0b1f)=>{_0x5e0b1f&&_0x457adb();}),this[_0x2696('0x9')](_0x3a834f['ui']['focusTracker'],_0x2696('0xb'),(_0x9542b8,_0x5f0e4d,_0x5ec61d)=>{_0x5ec61d||_0x3a834f[_0x2696('0x2')]||this[_0x2696('0x11')](_0x2696('0x1b'),{'isAnnotationTracked':_0x511509=>this[_0x2696('0x1e')][_0x2696('0x12')](_0x511509[_0x2696('0x7')])});}),this[_0x2696('0x9')](this[_0x2696('0x0')]['ui'],'update',()=>this[_0x2696('0x11')]('uiUpdate'));}[_0x2696('0x26')](_0x1ef1ce){if(this['_editorAnnotations'][_0x2696('0x12')](_0x1ef1ce[_0x2696('0xf')]))return;this[_0x2696('0x27')]['add'](_0x1ef1ce[_0x2696('0xf')]),this['editor']['ui'][_0x2696('0x5')][_0x2696('0x6')](_0x1ef1ce['view']['element']);const _0x3b93db=this['editor'][_0x2696('0x22')]['get'](_0x5298ef);this[_0x2696('0x9')](_0x3b93db[_0x2696('0x20')],'remove',(_0x562c79,_0x3d7f9c)=>{this[_0x2696('0x0')]['ui'][_0x2696('0x5')]['remove'](_0x3d7f9c[_0x2696('0xf')][_0x2696('0x2a')]),this[_0x2696('0x27')][_0x2696('0x23')](_0x3d7f9c[_0x2696('0xf')]);});}[_0x2696('0x24')](){return this[_0x2696('0x0')][_0x2696('0xd')]['view'][_0x2696('0x24')];}[_0x2696('0xc')](_0x3db3e5){if(_0x2696('0x1')!=typeof _0x3db3e5)throw new _0x34b67c(_0x2696('0x15'));this[_0x2696('0x29')][_0x2696('0x6')](_0x3db3e5);}[_0x2696('0x8')](){this[_0x2696('0x11')](_0x2696('0x18'));}[_0x2696('0x16')]({activeAnnotation:_0x3da18b,annotations:_0x3d33cc}){const _0x2a6d8b=[],_0x42ad7c=this[_0x2696('0x0')][_0x2696('0x1c')][_0x2696('0xe')][_0x2696('0x19')],_0x1debfa=Array[_0x2696('0x14')](_0x42ad7c[_0x2696('0xa')]());for(const [_0x103fdb,_0x4422e8]of this[_0x2696('0x1e')]){const _0x2a8a1b=_0x519354(_0x4422e8),_0x11fc71=_0x3d33cc[_0x2696('0x10')](_0x103fdb);_0x2a8a1b&&_0x11fc71&&_0x2a6d8b['push']({'annotation':_0x11fc71,'range':_0x2a8a1b});}function _0x519354(_0x2345b9){for(const _0x11b18e of _0x2345b9)for(const _0x55031b of _0x1debfa)if(_0x11b18e[_0x2696('0x17')](_0x55031b,!_0x42ad7c[_0x2696('0x3')]))return _0x11b18e;return null;}return _0x2a6d8b['sort']((_0x3be6ba,_0x42df33)=>{const _0x35ee4d=_0x3be6ba[_0x2696('0x1a')],_0x38fb6c=_0x42df33['range'];if(!_0x35ee4d[_0x2696('0x13')](_0x38fb6c)){if(_0x35ee4d[_0x2696('0x17')](_0x38fb6c,!0x0))return 0x1;if(_0x38fb6c[_0x2696('0x17')](_0x35ee4d,!0x0))return-0x1;}return _0x3be6ba['annotation']==_0x3da18b?-0x1:_0x42df33['annotation']==_0x3da18b?0x1:0x0;})[_0x2696('0x28')](_0x7b06fc=>_0x7b06fc[_0x2696('0x25')]);}get[_0x2696('0x1e')](){const _0x44e277=new Map();for(const _0x2d400c of Array['from'](this['_dataCollectors']))for(const [_0x1f2b9d,_0x1f9de0]of _0x2d400c())_0x44e277[_0x2696('0x21')](_0x1f2b9d,_0x1f9de0);return _0x44e277;}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/inlineannotations
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x391f=['target','_getBalloonTargetForAnnotation','refresh','has','remove','switchTo','hasActive','isActive','add','width','_closeAnnotation','editing','_addAnnotationToBalloon','get','left','set','getFirstRange','blur','getClientRects','delete','annotations','length','_selectedAnnotations','Esc','change:height','pluginName','inlineannotations-detach-not-attached','every','hasView','targetRect','attach','destroy','right','editableElement','detach','_forceRefresh','register','_manuallyClosed','bottom','focus','stopListening','_removeAnnotationFromBalloon','editor','getByView','visibleView','afterInit','mousedown','_addedAnnotations','includes','fromRect','viewRangeToDom','focusTracker','_balloon','keystrokes','change:visibleView','plugins','inline','selection','isFocused','view','push','activeAnnotation','isAttached','collapse','listenTo','inlineannotations-not-allowed-with-context','_setSelectedAnnotations','from','top','document','setActiveAnnotation','requires','showStack','domConverter','find'];(function(_0x33dc5f,_0x391f8b){const _0x4a68bd=function(_0x2c0668){while(--_0x2c0668){_0x33dc5f['push'](_0x33dc5f['shift']());}};_0x4a68bd(++_0x391f8b);}(_0x391f,0x13e));const _0x4a68=function(_0x33dc5f,_0x391f8b){_0x33dc5f=_0x33dc5f-0x0;let _0x4a68bd=_0x391f[_0x33dc5f];return _0x4a68bd;};import{Plugin as _0x277289}from'ckeditor5/src/core';import _0x521572 from'./annotationsuis';import _0x1be3e7 from'./editorannotations';import{ContextualBalloon as _0x4b4aff}from'ckeditor5/src/ui';import{MouseObserver as _0x5a0419}from'ckeditor5/src/engine';import{CKEditorError as _0x4edebf,Rect as _0x5d4839}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x277289{static get[_0x4a68('0x35')](){return[_0x1be3e7,_0x4b4aff,_0x521572];}static get[_0x4a68('0x7')](){return'InlineAnnotations';}constructor(_0x2e7a96){super(_0x2e7a96),_0x2e7a96[_0x4a68('0x44')][_0x4a68('0x29')]['addObserver'](_0x5a0419),this['isAttached']=!0x1,this[_0x4a68('0x48')]('activeAnnotation',null),this['annotations']=null,this[_0x4a68('0x13')]=new Set(),this[_0x4a68('0x22')]=_0x2e7a96[_0x4a68('0x25')]['get'](_0x4b4aff),this[_0x4a68('0x1d')]=new Set(),this[_0x4a68('0x4')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0xab3ba6=this[_0x4a68('0x18')][_0x4a68('0x25')]['get'](_0x521572);_0xab3ba6['context']===this[_0x4a68('0x18')]&&(_0xab3ba6[_0x4a68('0x12')](_0x4a68('0x26'),this),this[_0x4a68('0x18')][_0x4a68('0x23')][_0x4a68('0x48')]('Esc',(_0x5de5fc,_0x3805f5)=>{const _0xffb410=this['_balloon'];if(this[_0x4a68('0x2c')]&&_0xffb410[_0x4a68('0x1a')]){const _0x1e24ee=this[_0x4a68('0x2')][_0x4a68('0x19')](_0xffb410[_0x4a68('0x1a')]);_0x1e24ee&&this[_0x4a68('0x43')](_0x1e24ee),_0x3805f5();}}));}[_0x4a68('0x1b')](){const _0x3941b0=this[_0x4a68('0x18')][_0x4a68('0x25')][_0x4a68('0x46')](_0x521572);_0x3941b0['context']===this[_0x4a68('0x18')]&&(_0x3941b0[_0x4a68('0x3f')]()||_0x3941b0[_0x4a68('0x3e')]('inline'));}['setActiveAnnotation'](_0xa8bbb8){_0xa8bbb8!==this['activeAnnotation']&&(this[_0x4a68('0x2b')]&&(this[_0x4a68('0x2b')][_0x4a68('0x40')]=!0x1),_0xa8bbb8&&this['editor']['ui'][_0x4a68('0x21')][_0x4a68('0x28')]&&(this[_0x4a68('0x2')][_0x4a68('0x3c')](_0xa8bbb8)&&this[_0x4a68('0x45')](_0xa8bbb8,!0x0),_0xa8bbb8[_0x4a68('0x40')]=!0x0),_0xa8bbb8||this[_0x4a68('0x30')]([]),this['activeAnnotation']=_0xa8bbb8);}[_0x4a68('0xc')](_0x4c3d4c){this['annotations']=_0x4c3d4c;const _0x1b1b35=this['editor']['plugins']['get'](_0x521572),_0x3411bd=this[_0x4a68('0x22')];if(this[_0x4a68('0x2c')])throw new _0x4edebf('inlineannotations-attach-already-attached',this);if(_0x1b1b35['context']!==this[_0x4a68('0x18')])throw new _0x4edebf(_0x4a68('0x2f'),this);const _0x50b4bd=this['editor'][_0x4a68('0x25')][_0x4a68('0x46')](_0x1be3e7);this[_0x4a68('0x2e')](_0x50b4bd,_0x4a68('0x3b'),()=>{const _0x4d0e04=_0x50b4bd['getOrderedSelectedAnnotations']({'annotations':this[_0x4a68('0x2')],'activeAnnotation':this['activeAnnotation']});var _0x3b403f,_0x51b33f;!this['_forceRefresh']&&(_0x3b403f=_0x4d0e04,_0x51b33f=this['_selectedAnnotations'],_0x3b403f['length']===_0x51b33f[_0x4a68('0x3')]&&_0x3b403f[_0x4a68('0x9')](_0x25da34=>_0x51b33f[_0x4a68('0x1e')](_0x25da34)))||(this[_0x4a68('0x11')]=!0x1,this[_0x4a68('0x30')](_0x4d0e04),this[_0x4a68('0x34')](_0x4d0e04[0x0]||null));}),this['listenTo'](_0x50b4bd,_0x4a68('0x4a'),(_0x37f47e,{isAnnotationTracked:_0x453551})=>{this[_0x4a68('0x2b')]&&_0x453551(this[_0x4a68('0x2b')])&&(this[_0x4a68('0x30')]([]),this['setActiveAnnotation'](null));}),this[_0x4a68('0x2e')](this[_0x4a68('0x18')]['ui'][_0x4a68('0x21')],'change:isFocused',(_0x3eeca3,_0x4d55ce,_0x39a272)=>{_0x39a272||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4c3d4c,'remove',(_0x33bc4e,_0x2cbde0)=>{this[_0x4a68('0x17')](_0x2cbde0),_0x2cbde0===this[_0x4a68('0x2b')]&&this[_0x4a68('0x34')](null);}),this[_0x4a68('0x2e')](_0x3411bd,_0x4a68('0x24'),(_0xcb288d,_0x20d808,_0x419754,_0x36dbcd)=>{_0x36dbcd&&this[_0x4a68('0x16')](_0x36dbcd);const _0x57500c=_0x4c3d4c[_0x4a68('0x19')](_0x419754);_0x419754&&_0x57500c&&(this['listenTo'](_0x419754,_0x4a68('0x6'),()=>{_0x3411bd['updatePosition']();}),this[_0x4a68('0x2e')](_0x419754,_0x4a68('0x5'),()=>{this[_0x4a68('0x43')](_0x57500c),this[_0x4a68('0x18')][_0x4a68('0x44')]['view']['focus']();}),this[_0x4a68('0x2b')]!==_0x57500c&&this[_0x4a68('0x34')](_0x57500c));}),this[_0x4a68('0x2e')](this[_0x4a68('0x18')]['ui'],'update',()=>{_0x3411bd[_0x4a68('0x1a')]&&(_0x4c3d4c[_0x4a68('0x19')](_0x3411bd[_0x4a68('0x1a')])&&_0x3411bd['updatePosition']());}),this[_0x4a68('0x2e')](this[_0x4a68('0x18')]['editing'][_0x4a68('0x29')][_0x4a68('0x33')],_0x4a68('0x1c'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this[_0x4a68('0x18')][_0x4a68('0x44')]['view'][_0x4a68('0x33')]['selection'][_0x4a68('0xf')]&&this[_0x4a68('0x18')][_0x4a68('0x44')]['view'][_0x4a68('0x15')](),this[_0x4a68('0x2c')]=!0x0;}[_0x4a68('0x10')](){if(!this[_0x4a68('0x2c')])throw new _0x4edebf(_0x4a68('0x8'),this);this[_0x4a68('0x34')](null);for(const _0xe9c4a1 of this[_0x4a68('0x1d')])this[_0x4a68('0x17')](_0xe9c4a1);this[_0x4a68('0x16')](),this[_0x4a68('0x2c')]=!0x1,this[_0x4a68('0x2')]=null;}[_0x4a68('0xd')](){this['isAttached']&&this[_0x4a68('0x10')]();}[_0x4a68('0x30')](_0x235648){for(const _0x690a18 of this[_0x4a68('0x4')])_0x235648[_0x4a68('0x1e')](_0x690a18)||this[_0x4a68('0x13')][_0x4a68('0x1')](_0x690a18);for(const _0x3af44e of this[_0x4a68('0x2')])_0x235648['includes'](_0x3af44e)||this[_0x4a68('0x17')](_0x3af44e);if(this[_0x4a68('0x18')]['ui']['focusTracker'][_0x4a68('0x28')])for(const _0x58505a of _0x235648)this['_addAnnotationToBalloon'](_0x58505a);this[_0x4a68('0x4')]=_0x235648;}[_0x4a68('0x45')](_0x407403,_0x5cfba8=!0x1){this[_0x4a68('0x13')]['has'](_0x407403)||(this[_0x4a68('0x1d')][_0x4a68('0x3c')](_0x407403)||this[_0x4a68('0x22')][_0x4a68('0xa')](_0x407403[_0x4a68('0x29')])||(this[_0x4a68('0x1d')][_0x4a68('0x41')](_0x407403),this[_0x4a68('0x22')][_0x4a68('0x41')]({'stackId':_0x407403[_0x4a68('0x29')]['id'],'view':_0x407403['view'],'position':{'target':()=>this[_0x4a68('0x3a')](_0x407403)}})),_0x5cfba8&&this[_0x4a68('0x22')][_0x4a68('0x36')](_0x407403['view']['id']));}[_0x4a68('0x3a')](_0x402df5){const _0x111964=_0x402df5[_0x4a68('0x39')],_0x34d626=this['editor'][_0x4a68('0x44')][_0x4a68('0x29')],_0x3fea29=_0x34d626[_0x4a68('0x33')][_0x4a68('0x27')][_0x4a68('0x49')](),_0x10b4ec=_0x34d626[_0x4a68('0x37')][_0x4a68('0x20')](_0x3fea29);if(_0x10b4ec[_0x4a68('0x2d')](!0x0),_0x111964){if(_0x111964 instanceof _0x5d4839)return _0x111964;let _0x502d70=[];for(const _0x566101 of _0x111964)_0x502d70[_0x4a68('0x2a')](...(_0x2aab3a=_0x566101[_0x4a68('0x0')](),Array[_0x4a68('0x31')](_0x2aab3a)['map'](DOMRect[_0x4a68('0x1f')])));_0x502d70=function(_0x39d92a){const _0x26d9c9=[];let _0x10af80=_0x39d92a[0x0];for(let _0x2efacc=0x1;_0x2efacc<_0x39d92a['length'];_0x2efacc++)F(_0x10af80,_0x39d92a[_0x2efacc])?_0x10af80[_0x4a68('0x42')]+=_0x39d92a[_0x2efacc][_0x4a68('0x42')]:(_0x26d9c9[_0x4a68('0x2a')](_0x10af80),_0x10af80=_0x39d92a[_0x2efacc]);return _0x26d9c9[_0x4a68('0x2a')](_0x10af80),_0x26d9c9;}(_0x502d70);const _0x39b346=_0x10b4ec['getBoundingClientRect']();return _0x502d70[_0x4a68('0x38')](_0x1829ed=>_0x1829ed[_0x4a68('0x32')]<=_0x39b346[_0x4a68('0x32')]&&_0x1829ed['bottom']>=_0x39b346[_0x4a68('0x14')]&&_0x1829ed[_0x4a68('0x47')]<=_0x39b346[_0x4a68('0x47')]&&_0x1829ed[_0x4a68('0xe')]>=_0x39b346[_0x4a68('0xe')])||_0x502d70[0x0];}var _0x2aab3a;return _0x402df5[_0x4a68('0xb')]||_0x10b4ec;}['_removeAnnotationFromBalloon'](_0x1623e3){this[_0x4a68('0x1d')][_0x4a68('0x3c')](_0x1623e3)&&this[_0x4a68('0x22')][_0x4a68('0xa')](_0x1623e3[_0x4a68('0x29')])&&(this[_0x4a68('0x1d')][_0x4a68('0x1')](_0x1623e3),this[_0x4a68('0x22')][_0x4a68('0x3d')](_0x1623e3[_0x4a68('0x29')]));}['_closeAnnotation'](_0x2ff071){this['_manuallyClosed'][_0x4a68('0x41')](_0x2ff071),this[_0x4a68('0x17')](_0x2ff071);}}function F(_0x38f86d,_0x47b13e){return _0x38f86d[_0x4a68('0x32')]===_0x47b13e['top']&&_0x38f86d[_0x4a68('0x14')]===_0x47b13e[_0x4a68('0x14')]&&_0x38f86d['right']===_0x47b13e[_0x4a68('0x47')];}
23
+ const _0x47c2=['bottom','_setSelectedAnnotations','target','refresh','_removeAnnotationFromBalloon','inlineannotations-not-allowed-with-context','inline','editing','view','destroy','inlineannotations-attach-already-attached','domConverter','listenTo','hasActive','register','from','length','map','detach','_manuallyClosed','keystrokes','_closeAnnotation','targetRect','change:height','plugins','annotations','focusTracker','includes','inlineannotations-detach-not-attached','_selectedAnnotations','width','updatePosition','right','isActive','remove','getByView','left','_addedAnnotations','add','visibleView','hasView','getClientRects','selection','_forceRefresh','get','getBoundingClientRect','delete','setActiveAnnotation','has','activeAnnotation','focus','collapse','afterInit','_addAnnotationToBalloon','change:visibleView','change:isFocused','InlineAnnotations','context','_balloon','getOrderedSelectedAnnotations','document','Esc','find','clear','push','every','top','editor','isAttached','set','switchTo','editableElement','requires','pluginName'];(function(_0x29818c,_0x47c2a4){const _0x3373c1=function(_0x43ba83){while(--_0x43ba83){_0x29818c['push'](_0x29818c['shift']());}};_0x3373c1(++_0x47c2a4);}(_0x47c2,0x112));const _0x3373=function(_0x29818c,_0x47c2a4){_0x29818c=_0x29818c-0x0;let _0x3373c1=_0x47c2[_0x29818c];return _0x3373c1;};import{Plugin as _0xd7e7c0}from'ckeditor5/src/core';import _0x256cf7 from'./annotationsuis';import _0x5ea56c from'./editorannotations';import{ContextualBalloon as _0x4e6893}from'ckeditor5/src/ui';import{MouseObserver as _0x229af2}from'ckeditor5/src/engine';import{CKEditorError as _0x4539cd,Rect as _0x124ff1}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0xd7e7c0{static get[_0x3373('0x14')](){return[_0x5ea56c,_0x4e6893,_0x256cf7];}static get[_0x3373('0x15')](){return _0x3373('0x4');}constructor(_0x10d4d3){super(_0x10d4d3),_0x10d4d3[_0x3373('0x1d')][_0x3373('0x1e')]['addObserver'](_0x229af2),this[_0x3373('0x10')]=!0x1,this[_0x3373('0x11')](_0x3373('0x47'),null),this[_0x3373('0x2f')]=null,this[_0x3373('0x29')]=new Set(),this[_0x3373('0x6')]=_0x10d4d3[_0x3373('0x2e')][_0x3373('0x42')](_0x4e6893),this[_0x3373('0x3b')]=new Set(),this[_0x3373('0x33')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0x272a49=this['editor'][_0x3373('0x2e')][_0x3373('0x42')](_0x256cf7);_0x272a49[_0x3373('0x5')]===this[_0x3373('0xf')]&&(_0x272a49[_0x3373('0x24')]('inline',this),this[_0x3373('0xf')][_0x3373('0x2a')]['set'](_0x3373('0x9'),(_0x124f5d,_0x1c51e9)=>{const _0x5c8ad2=this[_0x3373('0x6')];if(this['isAttached']&&_0x5c8ad2['visibleView']){const _0xc9bd85=this[_0x3373('0x2f')]['getByView'](_0x5c8ad2[_0x3373('0x3d')]);_0xc9bd85&&this[_0x3373('0x2b')](_0xc9bd85),_0x1c51e9();}}));}[_0x3373('0x0')](){const _0x2b96b5=this['editor']['plugins'][_0x3373('0x42')](_0x256cf7);_0x2b96b5[_0x3373('0x5')]===this[_0x3373('0xf')]&&(_0x2b96b5[_0x3373('0x23')]()||_0x2b96b5[_0x3373('0x12')](_0x3373('0x1c')));}[_0x3373('0x45')](_0xf9a684){_0xf9a684!==this[_0x3373('0x47')]&&(this[_0x3373('0x47')]&&(this[_0x3373('0x47')][_0x3373('0x37')]=!0x1),_0xf9a684&&this[_0x3373('0xf')]['ui'][_0x3373('0x30')]['isFocused']&&(this[_0x3373('0x2f')][_0x3373('0x46')](_0xf9a684)&&this[_0x3373('0x1')](_0xf9a684,!0x0),_0xf9a684[_0x3373('0x37')]=!0x0),_0xf9a684||this['_setSelectedAnnotations']([]),this[_0x3373('0x47')]=_0xf9a684);}['attach'](_0x44c19d){this[_0x3373('0x2f')]=_0x44c19d;const _0x14223c=this[_0x3373('0xf')][_0x3373('0x2e')]['get'](_0x256cf7),_0x303354=this[_0x3373('0x6')];if(this[_0x3373('0x10')])throw new _0x4539cd(_0x3373('0x20'),this);if(_0x14223c['context']!==this['editor'])throw new _0x4539cd(_0x3373('0x1b'),this);const _0x3f3e50=this['editor'][_0x3373('0x2e')]['get'](_0x5ea56c);this[_0x3373('0x22')](_0x3f3e50,_0x3373('0x19'),()=>{const _0x13dcf6=_0x3f3e50[_0x3373('0x7')]({'annotations':this[_0x3373('0x2f')],'activeAnnotation':this[_0x3373('0x47')]});var _0xcf0a3b,_0x2af859;!this[_0x3373('0x41')]&&(_0xcf0a3b=_0x13dcf6,_0x2af859=this[_0x3373('0x33')],_0xcf0a3b[_0x3373('0x26')]===_0x2af859[_0x3373('0x26')]&&_0xcf0a3b[_0x3373('0xd')](_0x18e2a1=>_0x2af859['includes'](_0x18e2a1)))||(this['_forceRefresh']=!0x1,this[_0x3373('0x17')](_0x13dcf6),this[_0x3373('0x45')](_0x13dcf6[0x0]||null));}),this[_0x3373('0x22')](_0x3f3e50,'blur',(_0x1cd0de,{isAnnotationTracked:_0x27b84a})=>{this[_0x3373('0x47')]&&_0x27b84a(this['activeAnnotation'])&&(this[_0x3373('0x17')]([]),this[_0x3373('0x45')](null));}),this[_0x3373('0x22')](this[_0x3373('0xf')]['ui'][_0x3373('0x30')],_0x3373('0x3'),(_0x420171,_0x445cb6,_0x95d8c1)=>{_0x95d8c1||this['setActiveAnnotation'](null);}),this[_0x3373('0x22')](_0x44c19d,_0x3373('0x38'),(_0x4dbb50,_0x4902df)=>{this[_0x3373('0x1a')](_0x4902df),_0x4902df===this[_0x3373('0x47')]&&this['setActiveAnnotation'](null);}),this[_0x3373('0x22')](_0x303354,_0x3373('0x2'),(_0x5cd158,_0x2038c5,_0x12c1e2,_0x585047)=>{_0x585047&&this['stopListening'](_0x585047);const _0x9d492f=_0x44c19d[_0x3373('0x39')](_0x12c1e2);_0x12c1e2&&_0x9d492f&&(this['listenTo'](_0x12c1e2,_0x3373('0x2d'),()=>{_0x303354[_0x3373('0x35')]();}),this[_0x3373('0x22')](_0x12c1e2,_0x3373('0x9'),()=>{this[_0x3373('0x2b')](_0x9d492f),this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['focus']();}),this['activeAnnotation']!==_0x9d492f&&this[_0x3373('0x45')](_0x9d492f));}),this['listenTo'](this[_0x3373('0xf')]['ui'],'update',()=>{_0x303354[_0x3373('0x3d')]&&(_0x44c19d[_0x3373('0x39')](_0x303354[_0x3373('0x3d')])&&_0x303354['updatePosition']());}),this['listenTo'](this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['document'],'mousedown',()=>{this[_0x3373('0x41')]=!0x0,this[_0x3373('0x29')][_0x3373('0xb')]();}),this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['document'][_0x3373('0x40')][_0x3373('0x13')]&&this['editor'][_0x3373('0x1d')]['view'][_0x3373('0x48')](),this[_0x3373('0x10')]=!0x0;}['detach'](){if(!this[_0x3373('0x10')])throw new _0x4539cd(_0x3373('0x32'),this);this[_0x3373('0x45')](null);for(const _0x15fe95 of this[_0x3373('0x3b')])this[_0x3373('0x1a')](_0x15fe95);this['stopListening'](),this['isAttached']=!0x1,this[_0x3373('0x2f')]=null;}[_0x3373('0x1f')](){this[_0x3373('0x10')]&&this[_0x3373('0x28')]();}[_0x3373('0x17')](_0x4344e0){for(const _0x1b05ba of this[_0x3373('0x33')])_0x4344e0['includes'](_0x1b05ba)||this[_0x3373('0x29')][_0x3373('0x44')](_0x1b05ba);for(const _0xedc144 of this[_0x3373('0x2f')])_0x4344e0[_0x3373('0x31')](_0xedc144)||this['_removeAnnotationFromBalloon'](_0xedc144);if(this[_0x3373('0xf')]['ui'][_0x3373('0x30')]['isFocused'])for(const _0x20b817 of _0x4344e0)this['_addAnnotationToBalloon'](_0x20b817);this[_0x3373('0x33')]=_0x4344e0;}['_addAnnotationToBalloon'](_0x5315ad,_0x38fdc0=!0x1){this['_manuallyClosed'][_0x3373('0x46')](_0x5315ad)||(this['_addedAnnotations'][_0x3373('0x46')](_0x5315ad)||this[_0x3373('0x6')]['hasView'](_0x5315ad['view'])||(this[_0x3373('0x3b')][_0x3373('0x3c')](_0x5315ad),this[_0x3373('0x6')][_0x3373('0x3c')]({'stackId':_0x5315ad[_0x3373('0x1e')]['id'],'view':_0x5315ad[_0x3373('0x1e')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5315ad)}})),_0x38fdc0&&this['_balloon']['showStack'](_0x5315ad['view']['id']));}['_getBalloonTargetForAnnotation'](_0x170633){const _0x62a492=_0x170633[_0x3373('0x18')],_0x45d0d8=this[_0x3373('0xf')][_0x3373('0x1d')]['view'],_0x2c5610=_0x45d0d8[_0x3373('0x8')]['selection']['getFirstRange'](),_0x53e672=_0x45d0d8[_0x3373('0x21')]['viewRangeToDom'](_0x2c5610);if(_0x53e672[_0x3373('0x49')](!0x0),_0x62a492){if(_0x62a492 instanceof _0x124ff1)return _0x62a492;let _0x1b3084=[];for(const _0x21299a of _0x62a492)_0x1b3084[_0x3373('0xc')](...(_0x25531e=_0x21299a[_0x3373('0x3f')](),Array[_0x3373('0x25')](_0x25531e)[_0x3373('0x27')](DOMRect['fromRect'])));_0x1b3084=function(_0x9aaebc){const _0x28643a=[];let _0x399963=_0x9aaebc[0x0];for(let _0x1e9329=0x1;_0x1e9329<_0x9aaebc[_0x3373('0x26')];_0x1e9329++)F(_0x399963,_0x9aaebc[_0x1e9329])?_0x399963[_0x3373('0x34')]+=_0x9aaebc[_0x1e9329][_0x3373('0x34')]:(_0x28643a[_0x3373('0xc')](_0x399963),_0x399963=_0x9aaebc[_0x1e9329]);return _0x28643a[_0x3373('0xc')](_0x399963),_0x28643a;}(_0x1b3084);const _0x303a4f=_0x53e672[_0x3373('0x43')]();return _0x1b3084[_0x3373('0xa')](_0x19afee=>_0x19afee[_0x3373('0xe')]<=_0x303a4f['top']&&_0x19afee[_0x3373('0x16')]>=_0x303a4f[_0x3373('0x16')]&&_0x19afee['left']<=_0x303a4f[_0x3373('0x3a')]&&_0x19afee[_0x3373('0x36')]>=_0x303a4f[_0x3373('0x36')])||_0x1b3084[0x0];}var _0x25531e;return _0x170633[_0x3373('0x2c')]||_0x53e672;}[_0x3373('0x1a')](_0x4cb22b){this[_0x3373('0x3b')][_0x3373('0x46')](_0x4cb22b)&&this[_0x3373('0x6')][_0x3373('0x3e')](_0x4cb22b['view'])&&(this[_0x3373('0x3b')][_0x3373('0x44')](_0x4cb22b),this['_balloon'][_0x3373('0x38')](_0x4cb22b[_0x3373('0x1e')]));}[_0x3373('0x2b')](_0x31af87){this['_manuallyClosed'][_0x3373('0x3c')](_0x31af87),this[_0x3373('0x1a')](_0x31af87);}}function F(_0xa7ec3f,_0x584af9){return _0xa7ec3f['top']===_0x584af9['top']&&_0xa7ec3f[_0x3373('0x16')]===_0x584af9[_0x3373('0x16')]&&_0xa7ec3f[_0x3373('0x36')]===_0x584af9[_0x3373('0x3a')];}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/narrowsidebar
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x390b=['_manuallyClosedAnnotationViews','Esc','stopPropagation','annotations','annotationType','resize','getOrderedSelectedAnnotations','contains','_destroyEditorAnnotationsIntegration','change:container','low','destroy','addEventListener','keyCode','isVisible','keydown','get','refreshPositioning','activeAnnotation','_showBalloon','_updateBalloonPosition','content','clear','addAnnotation','_annotationToNarrowView','change:height','_setSelectedAnnotations','set','_detachFromContainer','bodyCollection','values','hasDomSelection','focus','balloonPanelView','attach','context','detachFromDom','_attachListeners','execute','delete','_integrateWithEditorAnnotations','setActiveAnnotation','stopListening','high','has','northArrowSouthWest','mousedown','unpin','refresh','_refreshPositioning','requires','element','isDirty','target','getByView','listenTo','detach','narrowsidebar-attach-already-attached','ck-sidebar--narrow','southArrowNorthEast','EditorAnnotations','isAttached','length','_selectedAnnotations','editors','set:container','_hideBalloon','_domEmitter','preventClosingBalloon','view','locale','defaultPositions','uiUpdate','first','_editorAnnotations','pin','pluginName','from','add','northArrowSouth','_refreshPositioningDebounced','number','plugins','ready'];(function(_0x50303e,_0x390bbb){const _0x51261a=function(_0x5e636d){while(--_0x5e636d){_0x50303e['push'](_0x50303e['shift']());}};_0x51261a(++_0x390bbb);}(_0x390b,0x1b5));const _0x5126=function(_0x50303e,_0x390bbb){_0x50303e=_0x50303e-0x0;let _0x51261a=_0x390b[_0x50303e];return _0x51261a;};import{ContextPlugin as _0x2846b7,Context as _0x5a7a59}from'ckeditor5/src/core';import _0x3a3f61 from'./annotationsuis';import _0x37f915 from'./sidebar';import _0x10757b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4a6cab,BodyCollection as _0x165188}from'ckeditor5/src/ui';import{CKEditorError as _0x23077e,DomEmitterMixin as _0x5ac559,keyCodes as _0x32cf3a,Collection as _0x2547c8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x13ea55}from'lodash-es';import _0x116da8 from'./editorannotations';export default class s extends _0x2846b7{static get[_0x5126('0x21')](){return[_0x37f915,_0x3a3f61];}static get[_0x5126('0x3b')](){return'NarrowSidebar';}constructor(_0x39b71e){super(_0x39b71e),this[_0x5126('0x2c')]=!0x1,this[_0x5126('0x43')]=new Set(),this[_0x5126('0x32')]=Object['create'](_0x5ac559),this['_annotationToNarrowView']=new Map(),this[_0x5126('0xa')]('activeAnnotation',null),this[_0x5126('0x46')]=null,this[_0x5126('0x2e')]=[],this['_editorAnnotations']=new _0x2547c8(),this['_refreshPositioningDebounced']=_0x13ea55(()=>{this[_0x5126('0x20')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x5126('0x12')]['plugins'][_0x5126('0x53')](_0x3a3f61)['register']('narrowSidebar',this),this[_0x5126('0xc')]=new _0x165188(this[_0x5126('0x12')][_0x5126('0x35')]),this[_0x5126('0x10')]=new _0x4a6cab(this[_0x5126('0x12')]['locale']),this[_0x5126('0xc')]['attachToDom'](),this['bodyCollection'][_0x5126('0x3d')](this['balloonPanelView']);}[_0x5126('0x11')](_0x180b22){this[_0x5126('0x46')]=_0x180b22;const _0x2b64ec=this[_0x5126('0x12')][_0x5126('0x41')][_0x5126('0x53')](_0x37f915),_0x3f0ad9=this[_0x5126('0x10')];if(_0x2b64ec['_annotations']=_0x180b22,this[_0x5126('0x2c')])throw new _0x23077e(_0x5126('0x28'),this);this['isAttached']=!0x0,this[_0x5126('0x26')](_0x2b64ec,_0x5126('0x30'),()=>{this[_0x5126('0x27')](),this['listenTo'](_0x2b64ec,_0x5126('0x4c'),_0x47bfe2=>{_0x47bfe2['off'](),this[_0x5126('0x11')](_0x180b22);});}),_0x2b64ec['_attachToContainer']({'viewClass':_0x5126('0x29'),'spaceBetweenItems':0x5});const _0x4ed55b=_0x50c753=>{const _0x1d508f=new _0x10757b(this['context'][_0x5126('0x35')]);_0x2b64ec[_0x5126('0x6')](_0x50c753,_0x1d508f),this['_annotationToNarrowView'][_0x5126('0xa')](_0x50c753,_0x1d508f),_0x1d508f['bind'](_0x5126('0x23'),_0x5126('0x47'),_0x5126('0x40'))['to'](_0x50c753[_0x5126('0x34')],_0x5126('0x23'),'type',_0x5126('0x2d')),_0x1d508f['on'](_0x5126('0x15'),()=>{this[_0x5126('0x43')][_0x5126('0x5')](),_0x3f0ad9[_0x5126('0x4')][_0x5126('0x38')]!==_0x50c753[_0x5126('0x34')]?(this[_0x5126('0x2')](_0x50c753),_0x50c753['view']['element'][_0x5126('0xf')](),this[_0x5126('0x18')](_0x50c753)):this['setActiveAnnotation'](null);});};for(const _0x57590f of _0x180b22)_0x4ed55b(_0x57590f);this[_0x5126('0x26')](_0x180b22,_0x5126('0x3d'),(_0x54ad92,_0x55bf7a)=>{_0x4ed55b(_0x55bf7a);}),this['listenTo'](_0x180b22,'remove',(_0x40d0fc,_0x434ed0,_0x57e469)=>{this[_0x5126('0x7')][_0x5126('0x53')](_0x434ed0)[_0x5126('0x4e')](),this[_0x5126('0x7')][_0x5126('0x16')](_0x434ed0),_0x2b64ec['rearrange']({'removedAnnotation':_0x434ed0,'previousAnnotation':_0x180b22[_0x5126('0x53')](_0x57e469-0x1),'nextAnnotation':_0x180b22[_0x5126('0x53')](_0x57e469+0x1)}),_0x434ed0===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x5126('0x4d')}),this[_0x5126('0x26')](_0x180b22,_0x5126('0xf'),(_0x53931c,_0x239ecc)=>{this['setActiveAnnotation'](_0x239ecc);}),this[_0x5126('0x26')](_0x180b22,'blur',()=>{this[_0x5126('0x18')](null);}),this[_0x5126('0x32')][_0x5126('0x26')](document,_0x5126('0x52'),(_0x1ed0ce,_0x2128ee)=>{_0x2128ee[_0x5126('0x50')]===_0x32cf3a['esc']&&_0x3f0ad9['isVisible']&&(this[_0x5126('0x43')][_0x5126('0x3d')](_0x3f0ad9[_0x5126('0x4')][_0x5126('0x38')]),this[_0x5126('0x31')](),_0x2128ee[_0x5126('0x45')](),_0x2128ee['preventDefault']());}),this[_0x5126('0x32')][_0x5126('0x26')](document,_0x5126('0x1d'),(_0x41f8fd,_0x949ee1)=>{const _0x418d29=_0x949ee1[_0x5126('0x24')];_0x3f0ad9[_0x5126('0x51')]&&_0x3f0ad9[_0x5126('0x22')]['contains'](_0x418d29)||_0x2b64ec[_0x5126('0x34')]['element']['contains'](_0x418d29)||_0x41f8fd['preventClosingBalloon']||(this[_0x5126('0x43')]['clear'](),this[_0x5126('0x31')](),this['setActiveAnnotation'](null));});const _0x471260=this[_0x5126('0x12')]instanceof _0x5a7a59?this[_0x5126('0x12')][_0x5126('0x2f')]:new _0x2547c8([this[_0x5126('0x12')]]);for(const _0x256230 of _0x471260)this[_0x5126('0x17')](_0x256230);this[_0x5126('0x26')](_0x471260,_0x5126('0x3d'),(_0x4cc023,_0x145f16)=>{this[_0x5126('0x26')](_0x145f16,_0x5126('0x42'),()=>{this[_0x5126('0x17')](_0x145f16);});}),this['listenTo'](_0x471260,'remove',(_0x16ece8,_0x2deadd)=>{_0x2deadd['plugins'][_0x5126('0x1b')](_0x5126('0x2b'))&&this[_0x5126('0x4b')](_0x2deadd[_0x5126('0x41')]['get'](_0x5126('0x2b')));}),window[_0x5126('0x4f')](_0x5126('0x48'),this[_0x5126('0x3f')]),this[_0x5126('0x20')]();}[_0x5126('0x18')](_0x1d82e7){if(_0x1d82e7===this[_0x5126('0x1')])return;const _0x24e947=this[_0x5126('0x12')]['plugins'][_0x5126('0x53')](_0x37f915);if(_0x24e947[_0x5126('0x1f')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1d82e7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1d82e7)_0x24e947['getSidebarItemView'](_0x1d82e7)?this[_0x5126('0x2')](_0x1d82e7):this['_hideBalloon']();else this[_0x5126('0x31')]();this[_0x5126('0x1')]=_0x1d82e7;}['detach'](){if(!this['isAttached'])throw new _0x23077e('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x342e6b=this[_0x5126('0x12')][_0x5126('0x41')][_0x5126('0x53')](_0x37f915);this[_0x5126('0x31')](),Array[_0x5126('0x3c')](this[_0x5126('0x7')][_0x5126('0xd')](),_0x2a03d0=>_0x2a03d0[_0x5126('0x4e')]()),this[_0x5126('0x7')]['clear'](),_0x342e6b[_0x5126('0xb')](this[_0x5126('0x46')]),this[_0x5126('0x19')](),this[_0x5126('0x32')][_0x5126('0x19')](),this[_0x5126('0x12')]instanceof _0x5a7a59&&this[_0x5126('0x19')](this['context'][_0x5126('0x2f')]);for(const _0x5b2447 of Array['from'](this[_0x5126('0x39')]))this[_0x5126('0x4b')](_0x5b2447);window['removeEventListener'](_0x5126('0x48'),this[_0x5126('0x3f')]),this[_0x5126('0x3f')]['cancel'](),this[_0x5126('0x2e')]=[],this[_0x5126('0x2c')]=!0x1,this[_0x5126('0x46')]=null;}[_0x5126('0x4e')](){this[_0x5126('0x2c')]&&this[_0x5126('0x27')](),this[_0x5126('0xc')][_0x5126('0x13')]();}[_0x5126('0x17')](_0x5ecb0f){const _0x33b034=_0x5ecb0f[_0x5126('0x41')][_0x5126('0x53')](_0x116da8),_0x392568=this[_0x5126('0x12')][_0x5126('0x41')][_0x5126('0x53')](_0x37f915),_0x374089=this[_0x5126('0x46')],_0x259550=this[_0x5126('0x10')],_0x38fe0d=()=>{const _0x569c17=_0x33b034[_0x5126('0x49')]({'annotations':this[_0x5126('0x46')],'activeAnnotation':this[_0x5126('0x1')]});this[_0x5126('0x9')](_0x569c17),this[_0x5126('0x18')](_0x569c17[0x0]||null);};this[_0x5126('0x26')](_0x33b034,_0x5126('0x1f'),_0x38fe0d),this['listenTo'](_0x33b034,'blur',(_0x4e7cb7,{isAnnotationTracked:_0x6f747b})=>{this[_0x5126('0x1')]&&_0x6f747b(this['activeAnnotation'])&&(this[_0x5126('0x9')]([]),this[_0x5126('0x18')](null));}),this[_0x5126('0x26')](_0x33b034,_0x5126('0x37'),()=>{this[_0x5126('0x3f')]();}),this[_0x5126('0x26')](_0x374089,'blur',_0x3f7527=>{_0x33b034[_0x5126('0xe')]()&&_0x3f7527['stop']();},{'priority':_0x5126('0x1a')}),this[_0x5126('0x26')](this['_domEmitter'],_0x5126('0x1d'),(_0x21c978,_0x21d275)=>{const _0x54770c=_0x21d275[_0x5126('0x24')];_0x259550[_0x5126('0x51')]&&_0x259550[_0x5126('0x22')][_0x5126('0x4a')](_0x54770c)||_0x392568[_0x5126('0x34')]['element'][_0x5126('0x4a')](_0x54770c)||this[_0x5126('0x1')]&&_0x33b034[_0x5126('0xe')]()&&(_0x38fe0d(),_0x21c978[_0x5126('0x33')]=!0x0);},{'priority':_0x5126('0x1a')}),this[_0x5126('0x39')][_0x5126('0x3d')](_0x33b034);}[_0x5126('0x4b')](_0xa6dd0d){_0xa6dd0d&&(this[_0x5126('0x19')](_0xa6dd0d),this['_editorAnnotations']['remove'](_0xa6dd0d));}[_0x5126('0x9')](_0x428932){for(const _0x3aa95c of this[_0x5126('0x2e')])_0x428932['includes'](_0x3aa95c)||this['_manuallyClosedAnnotationViews']['delete'](_0x3aa95c[_0x5126('0x34')]);this[_0x5126('0x2e')]=_0x428932;}[_0x5126('0x20')](){const _0x10aac8=this[_0x5126('0x10')];this[_0x5126('0x46')][_0x5126('0x0')](),_0x10aac8[_0x5126('0x51')]&&this[_0x5126('0x3')]();}[_0x5126('0x2')](_0x1126d6){if(this[_0x5126('0x43')][_0x5126('0x1b')](_0x1126d6['view']))return;const _0x519f3e=this[_0x5126('0x10')][_0x5126('0x4')][_0x5126('0x38')];_0x519f3e!==_0x1126d6[_0x5126('0x34')]?(_0x519f3e&&this['_detachListeners'](_0x519f3e),this[_0x5126('0x14')](_0x1126d6[_0x5126('0x34')]),this[_0x5126('0x10')]['content'][_0x5126('0x5')](),this[_0x5126('0x10')][_0x5126('0x4')]['add'](_0x1126d6[_0x5126('0x34')]),this[_0x5126('0x3')]()):this[_0x5126('0x3')]();}['_updateBalloonPosition'](){const _0x5546a2=this['balloonPanelView'][_0x5126('0x4')][_0x5126('0x38')],_0x65a631=_0x5546a2&&this[_0x5126('0x46')][_0x5126('0x25')](_0x5546a2);if(!_0x65a631||!this['_annotationToNarrowView'][_0x5126('0x1b')](_0x65a631))return;const _0x3e37e3=this[_0x5126('0x7')][_0x5126('0x53')](_0x65a631)[_0x5126('0x22')],_0x3418b6=function(){const _0x4598ce=_0x4a6cab[_0x5126('0x36')];return[_0x4598ce[_0x5126('0x2a')],_0x4598ce['northArrowSouthEast'],_0x4598ce['southArrowNorth'],_0x4598ce[_0x5126('0x3e')],_0x4598ce['southArrowNorthWest'],_0x4598ce[_0x5126('0x1c')]];}();this[_0x5126('0x10')][_0x5126('0x3a')]({'target':_0x3e37e3,'positions':_0x3418b6});}['_hideBalloon'](){const _0x1ba3f2=this[_0x5126('0x10')],_0x2abd38=_0x1ba3f2[_0x5126('0x4')][_0x5126('0x38')];_0x2abd38&&(this['_detachListeners'](_0x2abd38),_0x1ba3f2[_0x5126('0x1e')](),_0x1ba3f2[_0x5126('0x4')][_0x5126('0x5')]());}[_0x5126('0x14')](_0x311b5e){this[_0x5126('0x26')](_0x311b5e,_0x5126('0x8'),()=>this[_0x5126('0x3')]()),this['listenTo'](_0x311b5e,_0x5126('0x44'),(_0x32d9d9,_0x24673f)=>{this[_0x5126('0x43')][_0x5126('0x3d')](_0x311b5e),this[_0x5126('0x31')](),_0x24673f();});}['_detachListeners'](_0x3bd5e2){this['stopListening'](_0x3bd5e2);}}
23
+ const _0x4380=['find','mousedown','execute','target','requires','esc','attach','context','stop','keydown','removeEventListener','EditorAnnotations','detach','NarrowSidebar','_hideBalloon','blur','_updateBalloonPosition','contains','locale','ready','_annotationToNarrowView','_refreshPositioning','from','annotationType','pluginName','add','stopListening','type','set:container','isAttached','balloonPanelView','pin','addAnnotation','getSidebarItemView','first','_manuallyClosedAnnotationViews','keyCode','getByView','preventDefault','_destroyEditorAnnotationsIntegration','set','cancel','_setSelectedAnnotations','element','number','listenTo','_domEmitter','remove','_editorAnnotations','has','_detachFromContainer','register','length','detachFromDom','_selectedAnnotations','unpin','stopPropagation','get','_refreshPositioningDebounced','focusableElements','refresh','preventClosingBalloon','resize','narrowsidebar-attach-already-attached','destroy','_attachToContainer','includes','southArrowNorthEast','isVisible','focus','_showBalloon','change:height','setActiveAnnotation','hasDomSelection','delete','northArrowSouth','low','off','_integrateWithEditorAnnotations','activeAnnotation','getOrderedSelectedAnnotations','content','northArrowSouthEast','view','rearrange','plugins','high','_attachListeners','_annotations','bodyCollection','values','annotations','_detachListeners','refreshPositioning','isDirty','editors','clear'];(function(_0x2a6294,_0x438071){const _0x17e610=function(_0x1e0039){while(--_0x1e0039){_0x2a6294['push'](_0x2a6294['shift']());}};_0x17e610(++_0x438071);}(_0x4380,0x116));const _0x17e6=function(_0x2a6294,_0x438071){_0x2a6294=_0x2a6294-0x0;let _0x17e610=_0x4380[_0x2a6294];return _0x17e610;};import{ContextPlugin as _0x32ec45,Context as _0x572eb2}from'ckeditor5/src/core';import _0x2c9ae3 from'./annotationsuis';import _0x11478e from'./sidebar';import _0x4b0c1e from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3ef573,BodyCollection as _0xca30ee}from'ckeditor5/src/ui';import{CKEditorError as _0x3fb1ce,DomEmitterMixin as _0x3e3cf0,keyCodes as _0x1cf54e,Collection as _0x104934}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x37612f}from'lodash-es';import _0x186fde from'./editorannotations';export default class s extends _0x32ec45{static get[_0x17e6('0x11')](){return[_0x11478e,_0x2c9ae3];}static get[_0x17e6('0x25')](){return _0x17e6('0x1a');}constructor(_0x29cbe5){super(_0x29cbe5),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x17e6('0x3b')]=Object['create'](_0x3e3cf0),this[_0x17e6('0x21')]=new Map(),this['set'](_0x17e6('0x5c'),null),this[_0x17e6('0x7')]=null,this[_0x17e6('0x43')]=[],this[_0x17e6('0x3d')]=new _0x104934(),this[_0x17e6('0x47')]=_0x37612f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins'][_0x17e6('0x46')](_0x2c9ae3)[_0x17e6('0x40')]('narrowSidebar',this),this[_0x17e6('0x5')]=new _0xca30ee(this[_0x17e6('0x14')]['locale']),this[_0x17e6('0x2b')]=new _0x3ef573(this['context'][_0x17e6('0x1f')]),this[_0x17e6('0x5')]['attachToDom'](),this[_0x17e6('0x5')][_0x17e6('0x26')](this[_0x17e6('0x2b')]);}[_0x17e6('0x13')](_0x7b780f){this['annotations']=_0x7b780f;const _0x54a706=this['context']['plugins']['get'](_0x11478e),_0x130058=this[_0x17e6('0x2b')];if(_0x54a706[_0x17e6('0x4')]=_0x7b780f,this[_0x17e6('0x2a')])throw new _0x3fb1ce(_0x17e6('0x4c'),this);this[_0x17e6('0x2a')]=!0x0,this[_0x17e6('0x3a')](_0x54a706,_0x17e6('0x29'),()=>{this['detach'](),this[_0x17e6('0x3a')](_0x54a706,'change:container',_0x59a98a=>{_0x59a98a[_0x17e6('0x5a')](),this[_0x17e6('0x13')](_0x7b780f);});}),_0x54a706[_0x17e6('0x4e')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2d52e1=_0x37124b=>{const _0x3a5e0d=new _0x4b0c1e(this['context'][_0x17e6('0x1f')]);_0x54a706[_0x17e6('0x2d')](_0x37124b,_0x3a5e0d),this['_annotationToNarrowView'][_0x17e6('0x35')](_0x37124b,_0x3a5e0d),_0x3a5e0d['bind'](_0x17e6('0xa'),_0x17e6('0x24'),_0x17e6('0x39'))['to'](_0x37124b[_0x17e6('0x60')],_0x17e6('0xa'),_0x17e6('0x28'),_0x17e6('0x41')),_0x3a5e0d['on'](_0x17e6('0xf'),()=>{this[_0x17e6('0x30')]['clear'](),_0x130058[_0x17e6('0x5e')]['first']!==_0x37124b['view']?(this[_0x17e6('0x53')](_0x37124b),_0x37124b[_0x17e6('0x60')][_0x17e6('0x38')][_0x17e6('0x52')](),this['setActiveAnnotation'](_0x37124b)):this[_0x17e6('0x55')](null);});};for(const _0x58d426 of _0x7b780f)_0x2d52e1(_0x58d426);this[_0x17e6('0x3a')](_0x7b780f,'add',(_0x2149d9,_0x57bf66)=>{_0x2d52e1(_0x57bf66);}),this[_0x17e6('0x3a')](_0x7b780f,_0x17e6('0x3c'),(_0x150729,_0x2887fc,_0x4e45da)=>{this[_0x17e6('0x21')][_0x17e6('0x46')](_0x2887fc)[_0x17e6('0x4d')](),this[_0x17e6('0x21')][_0x17e6('0x57')](_0x2887fc),_0x54a706[_0x17e6('0x0')]({'removedAnnotation':_0x2887fc,'previousAnnotation':_0x7b780f[_0x17e6('0x46')](_0x4e45da-0x1),'nextAnnotation':_0x7b780f[_0x17e6('0x46')](_0x4e45da+0x1)}),_0x2887fc===this[_0x17e6('0x5c')]&&this[_0x17e6('0x55')](null);},{'priority':_0x17e6('0x59')}),this[_0x17e6('0x3a')](_0x7b780f,_0x17e6('0x52'),(_0x26dc13,_0x105c43)=>{this[_0x17e6('0x55')](_0x105c43);}),this[_0x17e6('0x3a')](_0x7b780f,'blur',()=>{this[_0x17e6('0x55')](null);}),this[_0x17e6('0x3b')][_0x17e6('0x3a')](document,_0x17e6('0x16'),(_0x1145da,_0x5019e6)=>{_0x5019e6[_0x17e6('0x31')]===_0x1cf54e[_0x17e6('0x12')]&&_0x130058[_0x17e6('0x51')]&&(this['_manuallyClosedAnnotationViews'][_0x17e6('0x26')](_0x130058['content']['first']),this['_hideBalloon'](),_0x5019e6[_0x17e6('0x45')](),_0x5019e6[_0x17e6('0x33')]());}),this['_domEmitter']['listenTo'](document,_0x17e6('0xe'),(_0x3fb343,_0x106545)=>{const _0x56271d=_0x106545[_0x17e6('0x10')];_0x130058[_0x17e6('0x51')]&&_0x130058[_0x17e6('0x38')]['contains'](_0x56271d)||_0x54a706[_0x17e6('0x60')][_0x17e6('0x38')][_0x17e6('0x1e')](_0x56271d)||_0x3fb343['preventClosingBalloon']||this['activeAnnotation']&&this[_0x17e6('0x5c')][_0x17e6('0x48')][_0x17e6('0xd')](_0x19086b=>_0x19086b[_0x17e6('0x1e')](_0x56271d))||(this['_manuallyClosedAnnotationViews'][_0x17e6('0xc')](),this[_0x17e6('0x1b')](),this['setActiveAnnotation'](null));});const _0xe1fe32=this[_0x17e6('0x14')]instanceof _0x572eb2?this[_0x17e6('0x14')][_0x17e6('0xb')]:new _0x104934([this[_0x17e6('0x14')]]);for(const _0x363075 of _0xe1fe32)this[_0x17e6('0x5b')](_0x363075);this[_0x17e6('0x3a')](_0xe1fe32,'add',(_0xecae46,_0x4e657e)=>{this['listenTo'](_0x4e657e,_0x17e6('0x20'),()=>{this[_0x17e6('0x5b')](_0x4e657e);});}),this[_0x17e6('0x3a')](_0xe1fe32,'remove',(_0x1b2fd3,_0x148b1b)=>{_0x148b1b[_0x17e6('0x1')]['has'](_0x17e6('0x18'))&&this[_0x17e6('0x34')](_0x148b1b['plugins'][_0x17e6('0x46')](_0x17e6('0x18')));}),window['addEventListener'](_0x17e6('0x4b'),this[_0x17e6('0x47')]),this['_refreshPositioning']();}[_0x17e6('0x55')](_0x253465){if(_0x253465===this[_0x17e6('0x5c')])return;const _0x16eb58=this['context'][_0x17e6('0x1')][_0x17e6('0x46')](_0x11478e);if(_0x16eb58[_0x17e6('0x49')]({'blurredAnnotation':this[_0x17e6('0x5c')],'activatedAnnotation':_0x253465,'disableAnimationOnActivatedAnnotation':!0x0}),_0x253465)_0x16eb58[_0x17e6('0x2e')](_0x253465)?this[_0x17e6('0x53')](_0x253465):this[_0x17e6('0x1b')]();else this[_0x17e6('0x1b')]();this['activeAnnotation']=_0x253465;}[_0x17e6('0x19')](){if(!this[_0x17e6('0x2a')])throw new _0x3fb1ce('narrowsidebar-detach-not-attached',this);this[_0x17e6('0x55')](null);const _0x4521d2=this[_0x17e6('0x14')]['plugins']['get'](_0x11478e);this[_0x17e6('0x1b')](),Array[_0x17e6('0x23')](this[_0x17e6('0x21')][_0x17e6('0x6')](),_0x3dacdf=>_0x3dacdf[_0x17e6('0x4d')]()),this[_0x17e6('0x21')][_0x17e6('0xc')](),_0x4521d2[_0x17e6('0x3f')](this[_0x17e6('0x7')]),this[_0x17e6('0x27')](),this['_domEmitter'][_0x17e6('0x27')](),this[_0x17e6('0x14')]instanceof _0x572eb2&&this['stopListening'](this[_0x17e6('0x14')][_0x17e6('0xb')]);for(const _0x140432 of Array[_0x17e6('0x23')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x140432);window[_0x17e6('0x17')](_0x17e6('0x4b'),this[_0x17e6('0x47')]),this[_0x17e6('0x47')][_0x17e6('0x36')](),this[_0x17e6('0x43')]=[],this[_0x17e6('0x2a')]=!0x1,this['annotations']=null;}[_0x17e6('0x4d')](){this[_0x17e6('0x2a')]&&this[_0x17e6('0x19')](),this[_0x17e6('0x5')][_0x17e6('0x42')]();}[_0x17e6('0x5b')](_0x419007){const _0x2528d3=_0x419007[_0x17e6('0x1')][_0x17e6('0x46')](_0x186fde),_0x114ae2=this[_0x17e6('0x14')][_0x17e6('0x1')][_0x17e6('0x46')](_0x11478e),_0x4de010=this[_0x17e6('0x7')],_0x5ada98=this[_0x17e6('0x2b')],_0x20e484=()=>{const _0x4dd0c4=_0x2528d3[_0x17e6('0x5d')]({'annotations':this['annotations'],'activeAnnotation':this[_0x17e6('0x5c')]});this[_0x17e6('0x37')](_0x4dd0c4),this[_0x17e6('0x55')](_0x4dd0c4[0x0]||null);};this[_0x17e6('0x3a')](_0x2528d3,_0x17e6('0x49'),_0x20e484),this[_0x17e6('0x3a')](_0x2528d3,_0x17e6('0x1c'),(_0x402e2b,{isAnnotationTracked:_0x44e08d})=>{this[_0x17e6('0x5c')]&&_0x44e08d(this[_0x17e6('0x5c')])&&(this[_0x17e6('0x37')]([]),this[_0x17e6('0x55')](null));}),this[_0x17e6('0x3a')](_0x2528d3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x17e6('0x3a')](_0x4de010,_0x17e6('0x1c'),_0x1ada9d=>{_0x2528d3[_0x17e6('0x56')]()&&_0x1ada9d[_0x17e6('0x15')]();},{'priority':_0x17e6('0x2')}),this['listenTo'](this['_domEmitter'],_0x17e6('0xe'),(_0x3883a5,_0x194d89)=>{const _0x17fb68=_0x194d89[_0x17e6('0x10')];_0x5ada98[_0x17e6('0x51')]&&_0x5ada98[_0x17e6('0x38')][_0x17e6('0x1e')](_0x17fb68)||_0x114ae2['view']['element'][_0x17e6('0x1e')](_0x17fb68)||this[_0x17e6('0x5c')]&&_0x2528d3[_0x17e6('0x56')]()&&(_0x20e484(),_0x3883a5[_0x17e6('0x4a')]=!0x0);},{'priority':'high'}),this[_0x17e6('0x3d')]['add'](_0x2528d3);}['_destroyEditorAnnotationsIntegration'](_0xf9977){_0xf9977&&(this[_0x17e6('0x27')](_0xf9977),this[_0x17e6('0x3d')]['remove'](_0xf9977));}[_0x17e6('0x37')](_0x276591){for(const _0x37585e of this[_0x17e6('0x43')])_0x276591[_0x17e6('0x4f')](_0x37585e)||this['_manuallyClosedAnnotationViews'][_0x17e6('0x57')](_0x37585e['view']);this[_0x17e6('0x43')]=_0x276591;}[_0x17e6('0x22')](){const _0x1f2a89=this[_0x17e6('0x2b')];this[_0x17e6('0x7')][_0x17e6('0x9')](),_0x1f2a89['isVisible']&&this[_0x17e6('0x1d')]();}[_0x17e6('0x53')](_0x4734f1){if(this[_0x17e6('0x30')][_0x17e6('0x3e')](_0x4734f1[_0x17e6('0x60')]))return;const _0x290734=this[_0x17e6('0x2b')][_0x17e6('0x5e')][_0x17e6('0x2f')];_0x290734!==_0x4734f1[_0x17e6('0x60')]?(_0x290734&&this[_0x17e6('0x8')](_0x290734),this[_0x17e6('0x3')](_0x4734f1[_0x17e6('0x60')]),this[_0x17e6('0x2b')]['content'][_0x17e6('0xc')](),this['balloonPanelView']['content']['add'](_0x4734f1[_0x17e6('0x60')]),this[_0x17e6('0x1d')]()):this['_updateBalloonPosition']();}[_0x17e6('0x1d')](){const _0x598a0f=this[_0x17e6('0x2b')][_0x17e6('0x5e')]['first'],_0x58362a=_0x598a0f&&this[_0x17e6('0x7')][_0x17e6('0x32')](_0x598a0f);if(!_0x58362a||!this[_0x17e6('0x21')]['has'](_0x58362a))return;const _0x4926be=this[_0x17e6('0x21')][_0x17e6('0x46')](_0x58362a)[_0x17e6('0x38')],_0x41e415=function(){const _0x32d8f7=_0x3ef573['defaultPositions'];return[_0x32d8f7[_0x17e6('0x50')],_0x32d8f7[_0x17e6('0x5f')],_0x32d8f7['southArrowNorth'],_0x32d8f7[_0x17e6('0x58')],_0x32d8f7['southArrowNorthWest'],_0x32d8f7['northArrowSouthWest']];}();this[_0x17e6('0x2b')][_0x17e6('0x2c')]({'target':_0x4926be,'positions':_0x41e415});}[_0x17e6('0x1b')](){const _0x11283d=this[_0x17e6('0x2b')],_0x180e78=_0x11283d['content'][_0x17e6('0x2f')];_0x180e78&&(this['_detachListeners'](_0x180e78),_0x11283d[_0x17e6('0x44')](),_0x11283d[_0x17e6('0x5e')][_0x17e6('0xc')]());}[_0x17e6('0x3')](_0x54ceac){this[_0x17e6('0x3a')](_0x54ceac,_0x17e6('0x54'),()=>this[_0x17e6('0x1d')]()),this[_0x17e6('0x3a')](_0x54ceac,'Esc',(_0x1e2f1a,_0x55f581)=>{this[_0x17e6('0x30')][_0x17e6('0x26')](_0x54ceac),this[_0x17e6('0x1b')](),_0x55f581();});}[_0x17e6('0x8')](_0x58db7f){this[_0x17e6('0x27')](_0x58db7f);}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/sidebar
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x454a=['rearrange','bottom','_targetTop','refresh','target','bind','get','_recalculate','_annotations','element','addAnnotation','config','getIndex','last','view','_createSidebarView','change:top','remove','sidebar-setcontainer-invalid-element','length','_alignAfterItem','_lastItem','unbind','minHeight','object','height','init','_alignToTargetRect','top','_alignBeforeItem','set','change:targetRect','_alignForTopChange','stopListening','updateHeight','listenTo','define','max','change:bottom','content','_activeAnnotation','_setItemTop','class','isActive','destroy','change:_lastItem','targetRect','_detachFromContainer','list','_getMaxAvailableTop','sidebar-attachtocontainer-missing-container','Sidebar','container','pluginName','_spaceBetweenItems','sidebar.container','_alignForBottomChange','_destroySidebarItemView','appendChild','_recalculateBuffer','_sidebarItemViewToAnnotation','add','_attachToContainer','nodeType','context','_updateLastItem','_getTargetTop','_getItemBefore','_annotationToSidebarItemView','_getItemAfter','delete','isAnimationDisabled','push','getSidebarItemView','clear','setContainer','sidebar.preventScrollOutOfView'];(function(_0x10dacf,_0x454a9c){const _0x12b522=function(_0x10d916){while(--_0x10d916){_0x10dacf['push'](_0x10dacf['shift']());}};_0x12b522(++_0x454a9c);}(_0x454a,0x68));const _0x12b5=function(_0x10dacf,_0x454a9c){_0x10dacf=_0x10dacf-0x0;let _0x12b522=_0x454a[_0x10dacf];return _0x12b522;};import{ContextPlugin as _0x12c93a}from'ckeditor5/src/core';import{Rect as _0x48f657,CKEditorError as _0x430ea4}from'ckeditor5/src/utils';import _0xe48452 from'./view/sidebarview';import _0x47901d from'./view/sidebaritemview';export default class z extends _0x12c93a{static get[_0x12b5('0x1a')](){return _0x12b5('0x18');}constructor(_0x49f9d5){super(_0x49f9d5),this[_0x12b5('0x3')]('_lastItem',void 0x0),this[_0x12b5('0x40')]=this[_0x12b5('0x41')](),this[_0x12b5('0x3')](_0x12b5('0x19'),null),this[_0x12b5('0x1b')]=0x19,this[_0x12b5('0x21')]=new Map(),this[_0x12b5('0x29')]=new Map(),this[_0x12b5('0x25')][_0x12b5('0x3d')][_0x12b5('0x9')]('sidebar.preventScrollOutOfView',!0x1),this[_0x12b5('0x3a')]=null,this[_0x12b5('0xd')]=null,this['_recalculateBuffer']=[];}[_0x12b5('0x4c')](){const _0x3a36e8=this[_0x12b5('0x25')]['config'][_0x12b5('0x38')](_0x12b5('0x1c'));_0x3a36e8&&this[_0x12b5('0x30')](_0x3a36e8);}[_0x12b5('0x30')](_0x1a76fd){if(!y(_0x1a76fd))throw new _0x430ea4(_0x12b5('0x44'));this['container']=_0x1a76fd;}[_0x12b5('0x23')]({viewClass:_0x59a5a0='',spaceBetweenItems:_0x1845e7=0x19}={}){if(!y(this[_0x12b5('0x19')]))throw new _0x430ea4(_0x12b5('0x17'),this);this[_0x12b5('0x19')][_0x12b5('0x1f')](this[_0x12b5('0x40')]['element']),this[_0x12b5('0x40')]['class']=_0x59a5a0,this[_0x12b5('0x1b')]=_0x1845e7;}[_0x12b5('0x32')]({removedAnnotation:_0x23e15b,previousAnnotation:_0x19f6ed,nextAnnotation:_0x5bc64c}){const _0x323af8=this[_0x12b5('0x2e')](_0x23e15b);this[_0x12b5('0x40')][_0x12b5('0x15')][_0x12b5('0x43')](_0x323af8),this[_0x12b5('0x1e')](_0x23e15b),_0x19f6ed&&this[_0x12b5('0x0')](this[_0x12b5('0x2e')](_0x19f6ed)),_0x5bc64c&&this[_0x12b5('0x0')](this[_0x12b5('0x2e')](_0x5bc64c)),this[_0x12b5('0x26')]();}[_0x12b5('0x35')]({blurredAnnotation:_0x402851,activatedAnnotation:_0xd32176,disableAnimationOnActivatedAnnotation:_0x8e30af}){if(this[_0x12b5('0xd')]=_0xd32176,_0x402851){_0x402851[_0x12b5('0x10')]=!0x1;const _0x348d24=this[_0x12b5('0x2e')](_0x402851);_0x348d24&&_0x8e30af&&(_0x348d24['isAnimationDisabled']=!0x1);}if(_0xd32176){const _0x37da8d=this[_0x12b5('0x2e')](_0xd32176);_0x37da8d&&(_0xd32176[_0x12b5('0x10')]=!0x0,_0x8e30af&&(_0x37da8d[_0x12b5('0x2c')]=!0x0,_0x37da8d[_0x12b5('0x1')]+=0x1),this[_0x12b5('0x0')](_0x37da8d));}}[_0x12b5('0x14')](_0x539608){if(this[_0x12b5('0x40')][_0x12b5('0x3b')][_0x12b5('0x43')](),_0x539608)for(const _0x373ff1 of _0x539608)this['_destroySidebarItemView'](_0x373ff1);this[_0x12b5('0x40')][_0x12b5('0x15')][_0x12b5('0x2f')](),this[_0x12b5('0x40')][_0x12b5('0xf')]='',this[_0x12b5('0x47')]=null;}[_0x12b5('0x3c')](_0x34d95e,_0x5339b8){_0x5339b8||(_0x5339b8=_0x34d95e[_0x12b5('0x40')]);const _0xa629fc=new _0x47901d(this[_0x12b5('0x25')]['locale']);this['_sidebarItemViewToAnnotation'][_0x12b5('0x3')](_0xa629fc,_0x34d95e),this[_0x12b5('0x29')][_0x12b5('0x3')](_0x34d95e,_0xa629fc),_0xa629fc[_0x12b5('0xc')]['add'](_0x5339b8),this['listenTo'](_0x34d95e[_0x12b5('0x40')],_0x12b5('0x4'),(_0x187ad8,_0x3e772c,_0x33e2e6)=>{const _0x3ec63b=this[_0x12b5('0x27')](_0x34d95e,_0x33e2e6);_0xa629fc[_0x12b5('0x34')]!=_0x3ec63b&&(_0xa629fc[_0x12b5('0x34')]=_0x3ec63b,this[_0x12b5('0xe')](_0xa629fc,_0x3ec63b));}),this[_0x12b5('0x8')](_0xa629fc,_0x12b5('0x42'),()=>{this['_recalculate'](_0xa629fc,_0x12b5('0x1'));}),this[_0x12b5('0x8')](_0xa629fc,_0x12b5('0xb'),()=>{this[_0x12b5('0x39')](_0xa629fc,_0x12b5('0x33'));}),this[_0x12b5('0x0')](_0xa629fc);const _0x48a1fb=this[_0x12b5('0x28')](_0xa629fc);if(_0x48a1fb)this['_alignAfterItem'](_0x48a1fb,_0xa629fc)||this['_alignToTargetRect'](_0xa629fc);else this[_0x12b5('0x0')](_0xa629fc);return this[_0x12b5('0x26')](),this[_0x12b5('0x40')][_0x12b5('0x15')][_0x12b5('0x22')](_0xa629fc),_0xa629fc;}[_0x12b5('0x5')](_0x394c72){if(!_0x394c72['content']['length'])return;const _0x46aa1c=this['_getItemBefore'](_0x394c72);if(!_0x46aa1c)return;const _0x203cf0=this[_0x12b5('0x21')][_0x12b5('0x38')](_0x46aa1c),_0xb3d3ca=this['_activeAnnotation'];_0xb3d3ca&&_0xb3d3ca===_0x203cf0?this[_0x12b5('0x46')](_0x46aa1c,_0x394c72):this[_0x12b5('0x2')](_0x394c72,_0x46aa1c);}[_0x12b5('0x1d')](_0xce392f){if(!_0xce392f[_0x12b5('0xc')][_0x12b5('0x45')])return;const _0x196b02=this[_0x12b5('0x2a')](_0xce392f);if(!_0x196b02)return;const _0x24a573=this[_0x12b5('0x21')][_0x12b5('0x38')](_0x196b02),_0x2950bf=this[_0x12b5('0x25')]['config'][_0x12b5('0x38')](_0x12b5('0x31')),_0x2a1636=this[_0x12b5('0xd')];_0x2a1636&&_0x2a1636===_0x24a573&&_0x2950bf?(this['_alignBeforeItem'](_0x196b02,_0xce392f),this[_0x12b5('0x46')](_0xce392f,_0x196b02)):_0x2a1636&&_0x2a1636===_0x24a573?this['_alignBeforeItem'](_0x196b02,_0xce392f):this[_0x12b5('0x46')](_0xce392f,_0x196b02);}[_0x12b5('0x39')](_0x3c07bc,_0x27ec4e){0x0===this['_recalculateBuffer'][_0x12b5('0x45')]&&setTimeout(()=>{for(const {sidebarItemView:_0x2d1e10,changedProp:_0x3d1d66}of this[_0x12b5('0x20')])_0x12b5('0x1')===_0x3d1d66?this['_alignForTopChange'](_0x2d1e10):this[_0x12b5('0x1d')](_0x2d1e10);this[_0x12b5('0x20')]=[];},0xa),this[_0x12b5('0x20')][_0x12b5('0x2d')]({'sidebarItemView':_0x3c07bc,'changedProp':_0x27ec4e});}[_0x12b5('0x2e')](_0x58af3f){return this['_annotationToSidebarItemView'][_0x12b5('0x38')](_0x58af3f);}[_0x12b5('0x11')](){this[_0x12b5('0x6')](),this[_0x12b5('0x40')]['destroy']();}['_destroySidebarItemView'](_0xa97bb0){const _0x4e8fc5=this[_0x12b5('0x2e')](_0xa97bb0);this['stopListening'](_0x4e8fc5),this[_0x12b5('0x6')](_0xa97bb0[_0x12b5('0x40')]),_0x4e8fc5[_0x12b5('0x11')](),this[_0x12b5('0x29')][_0x12b5('0x2b')](_0xa97bb0),this[_0x12b5('0x21')][_0x12b5('0x2b')](_0x4e8fc5);}[_0x12b5('0x41')](){const _0x5505d2=new _0xe48452(this['context']['locale']);return _0x5505d2['render'](),this['on'](_0x12b5('0x12'),(_0x22e399,_0x49afb1,_0x44eccb,_0x2f013c)=>{_0x2f013c&&_0x5505d2[_0x12b5('0x48')](_0x12b5('0x49')),_0x44eccb?_0x5505d2[_0x12b5('0x37')](_0x12b5('0x49'))['to'](_0x44eccb,'bottom'):_0x5505d2[_0x12b5('0x49')]=null;}),_0x5505d2;}[_0x12b5('0x26')](){var _0x2e5e2e;this[_0x12b5('0x47')]=(null===(_0x2e5e2e=this[_0x12b5('0x3a')])||void 0x0===_0x2e5e2e?void 0x0:_0x2e5e2e[_0x12b5('0x3f')])?this[_0x12b5('0x2e')](this[_0x12b5('0x3a')][_0x12b5('0x3f')]):null;}[_0x12b5('0x28')](_0x31481f){var _0xd576e2;const _0x1e2e33=this[_0x12b5('0x21')][_0x12b5('0x38')](_0x31481f),_0x8e7598=_0x1e2e33&&(null===(_0xd576e2=this[_0x12b5('0x3a')])||void 0x0===_0xd576e2?void 0x0:_0xd576e2[_0x12b5('0x38')](this[_0x12b5('0x3a')][_0x12b5('0x3e')](_0x1e2e33)-0x1));return _0x8e7598&&this[_0x12b5('0x2e')](_0x8e7598)||null;}[_0x12b5('0x2a')](_0x2ab42e){var _0x43419d;const _0x5dd66b=this[_0x12b5('0x21')][_0x12b5('0x38')](_0x2ab42e),_0xfdb2a0=_0x5dd66b&&(null===(_0x43419d=this['_annotations'])||void 0x0===_0x43419d?void 0x0:_0x43419d[_0x12b5('0x38')](this[_0x12b5('0x3a')][_0x12b5('0x3e')](_0x5dd66b)+0x1));return _0xfdb2a0&&this[_0x12b5('0x2e')](_0xfdb2a0)||null;}[_0x12b5('0x2')](_0x407c32,_0x148c7d){_0x407c32[_0x12b5('0x7')]();const _0x5acd66=H(_0x148c7d[_0x12b5('0x33')]+this[_0x12b5('0x1b')],_0x407c32[_0x12b5('0x1')]);return!!_0x5acd66&&(this[_0x12b5('0xe')](_0x148c7d,_0x148c7d[_0x12b5('0x1')]-_0x5acd66),!0x0);}[_0x12b5('0x46')](_0xe7681a,_0x4aed25){_0xe7681a[_0x12b5('0x7')]();const _0x38df8d=H(_0xe7681a[_0x12b5('0x33')]+this['_spaceBetweenItems'],_0x4aed25[_0x12b5('0x1')]);return!!_0x38df8d&&(this[_0x12b5('0xe')](_0x4aed25,_0x4aed25[_0x12b5('0x1')]+_0x38df8d,!0x1),!0x0);}[_0x12b5('0x0')](_0x5f3294){const _0x35c0fc=this[_0x12b5('0x21')][_0x12b5('0x38')](_0x5f3294);if(!_0x35c0fc||!_0x35c0fc[_0x12b5('0x36')]||!_0x35c0fc['targetRect'])return;const _0x46715e=this['_getTargetTop'](_0x35c0fc,_0x35c0fc[_0x12b5('0x13')]);this[_0x12b5('0xe')](_0x5f3294,_0x46715e);}[_0x12b5('0x27')](_0x1e4cba,_0x57180f){if(null===_0x57180f)return 0x0;if(_0x1e4cba[_0x12b5('0x36')]instanceof _0x48f657)return _0x57180f[_0x12b5('0x1')];{const _0x12433d=new _0x48f657(this[_0x12b5('0x40')][_0x12b5('0x3b')])[_0x12b5('0x1')];return _0x57180f[_0x12b5('0x1')]-_0x12433d;}}[_0x12b5('0xe')](_0x84be18,_0x6d915b,_0xbe6e9b=this[_0x12b5('0x25')][_0x12b5('0x3d')][_0x12b5('0x38')](_0x12b5('0x31'))){_0xbe6e9b&&(_0x6d915b=Math[_0x12b5('0xa')](_0x6d915b,this[_0x12b5('0x16')](_0x84be18))),_0x84be18[_0x12b5('0x1')]=_0x6d915b;}[_0x12b5('0x16')](_0x1f61a1){let _0x3f4631=this[_0x12b5('0x28')](_0x1f61a1),_0x2eb63d=0x0;for(;_0x3f4631;)_0x3f4631['updateHeight'](),_0x2eb63d+=this[_0x12b5('0x1b')]+_0x3f4631[_0x12b5('0x4b')],_0x3f4631=this[_0x12b5('0x28')](_0x3f4631);return _0x2eb63d;}}function H(_0x3668c7,_0x6e56f2){return Math[_0x12b5('0xa')](_0x3668c7-_0x6e56f2,0x0);}function y(_0x430582){return null!==_0x430582&&_0x12b5('0x4a')==typeof _0x430582&&0x1===_0x430582[_0x12b5('0x24')];}
23
+ const _0x2af5=['setContainer','stopListening','_alignBeforeItem','_createSidebarView','change:top','_getItemBefore','remove','change:targetRect','define','_recalculateBuffer','_spaceBetweenItems','_alignForBottomChange','object','_updateLastItem','getSidebarItemView','minHeight','view','list','_activeAnnotation','bind','element','nodeType','_annotations','class','last','push','_alignToTargetRect','init','_getMaxAvailableTop','appendChild','listenTo','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_getTargetTop','_detachFromContainer','container','content','max','render','updateHeight','unbind','sidebar-attachtocontainer-missing-container','set','refresh','_getItemAfter','sidebar.preventScrollOutOfView','_alignForTopChange','rearrange','isAnimationDisabled','_recalculate','top','_destroySidebarItemView','destroy','add','_setItemTop','locale','config','get','bottom','change:_lastItem','_alignAfterItem','targetRect','context','isActive','_sidebarItemViewToAnnotation','delete','Sidebar','change:bottom','_lastItem','sidebar.container','length','_attachToContainer'];(function(_0x46fdb1,_0x2af59d){const _0x47aeb0=function(_0x107070){while(--_0x107070){_0x46fdb1['push'](_0x46fdb1['shift']());}};_0x47aeb0(++_0x2af59d);}(_0x2af5,0x18e));const _0x47ae=function(_0x46fdb1,_0x2af59d){_0x46fdb1=_0x46fdb1-0x0;let _0x47aeb0=_0x2af5[_0x46fdb1];return _0x47aeb0;};import{ContextPlugin as _0x4f3db3}from'ckeditor5/src/core';import{Rect as _0x30e527,CKEditorError as _0x68a7a4}from'ckeditor5/src/utils';import _0x420efe from'./view/sidebarview';import _0xde322a from'./view/sidebaritemview';export default class z extends _0x4f3db3{static get['pluginName'](){return _0x47ae('0x1c');}constructor(_0x365cac){super(_0x365cac),this[_0x47ae('0x4')]('_lastItem',void 0x0),this[_0x47ae('0x32')]=this['_createSidebarView'](),this[_0x47ae('0x4')]('container',null),this[_0x47ae('0x2c')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x47ae('0x41')]=new Map(),this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x2a')](_0x47ae('0x7'),!0x1),this[_0x47ae('0x38')]=null,this[_0x47ae('0x34')]=null,this[_0x47ae('0x2b')]=[];}[_0x47ae('0x3d')](){const _0x5373f5=this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x13')](_0x47ae('0x1f'));_0x5373f5&&this[_0x47ae('0x22')](_0x5373f5);}[_0x47ae('0x22')](_0x566df9){if(!y(_0x566df9))throw new _0x68a7a4(_0x47ae('0x42'));this[_0x47ae('0x45')]=_0x566df9;}[_0x47ae('0x21')]({viewClass:_0x5b38b7='',spaceBetweenItems:_0x563857=0x19}={}){if(!y(this[_0x47ae('0x45')]))throw new _0x68a7a4(_0x47ae('0x3'),this);this[_0x47ae('0x45')][_0x47ae('0x3f')](this[_0x47ae('0x32')][_0x47ae('0x36')]),this[_0x47ae('0x32')]['class']=_0x5b38b7,this[_0x47ae('0x2c')]=_0x563857;}[_0x47ae('0x9')]({removedAnnotation:_0x8595ce,previousAnnotation:_0xb60b9a,nextAnnotation:_0x52f929}){const _0x9b5b3c=this['getSidebarItemView'](_0x8595ce);this[_0x47ae('0x32')][_0x47ae('0x33')][_0x47ae('0x28')](_0x9b5b3c),this[_0x47ae('0xd')](_0x8595ce),_0xb60b9a&&this[_0x47ae('0x3c')](this[_0x47ae('0x30')](_0xb60b9a)),_0x52f929&&this[_0x47ae('0x3c')](this['getSidebarItemView'](_0x52f929)),this[_0x47ae('0x2f')]();}[_0x47ae('0x5')]({blurredAnnotation:_0x2701f4,activatedAnnotation:_0x13a058,disableAnimationOnActivatedAnnotation:_0x52aa3b}){if(this[_0x47ae('0x34')]=_0x13a058,_0x2701f4){_0x2701f4['isActive']=!0x1;const _0x20df8f=this[_0x47ae('0x30')](_0x2701f4);_0x20df8f&&_0x52aa3b&&(_0x20df8f[_0x47ae('0xa')]=!0x1);}if(_0x13a058){const _0x5b02ca=this[_0x47ae('0x30')](_0x13a058);_0x5b02ca&&(_0x13a058[_0x47ae('0x19')]=!0x0,_0x52aa3b&&(_0x5b02ca['isAnimationDisabled']=!0x0,_0x5b02ca[_0x47ae('0xc')]+=0x1),this[_0x47ae('0x3c')](_0x5b02ca));}}[_0x47ae('0x44')](_0x305f78){if(this[_0x47ae('0x32')][_0x47ae('0x36')][_0x47ae('0x28')](),_0x305f78)for(const _0x36e725 of _0x305f78)this[_0x47ae('0xd')](_0x36e725);this['view']['list']['clear'](),this['view'][_0x47ae('0x39')]='',this[_0x47ae('0x1e')]=null;}['addAnnotation'](_0xb89e12,_0x5bae11){_0x5bae11||(_0x5bae11=_0xb89e12[_0x47ae('0x32')]);const _0x26e46a=new _0xde322a(this[_0x47ae('0x18')][_0x47ae('0x11')]);this[_0x47ae('0x1a')][_0x47ae('0x4')](_0x26e46a,_0xb89e12),this[_0x47ae('0x41')]['set'](_0xb89e12,_0x26e46a),_0x26e46a[_0x47ae('0x46')][_0x47ae('0xf')](_0x5bae11),this[_0x47ae('0x40')](_0xb89e12[_0x47ae('0x32')],_0x47ae('0x29'),(_0x5dad26,_0x2850cf,_0x36cd26)=>{const _0x1224f7=this[_0x47ae('0x43')](_0xb89e12,_0x36cd26);_0x26e46a['_targetTop']!=_0x1224f7&&(_0x26e46a['_targetTop']=_0x1224f7,this[_0x47ae('0x10')](_0x26e46a,_0x1224f7));}),this['listenTo'](_0x26e46a,_0x47ae('0x26'),()=>{this[_0x47ae('0xb')](_0x26e46a,'top');}),this[_0x47ae('0x40')](_0x26e46a,_0x47ae('0x1d'),()=>{this['_recalculate'](_0x26e46a,_0x47ae('0x14'));}),this[_0x47ae('0x3c')](_0x26e46a);const _0x15e94e=this[_0x47ae('0x27')](_0x26e46a);if(_0x15e94e)this['_alignAfterItem'](_0x15e94e,_0x26e46a)||this['_alignToTargetRect'](_0x26e46a);else this[_0x47ae('0x3c')](_0x26e46a);return this[_0x47ae('0x2f')](),this[_0x47ae('0x32')][_0x47ae('0x33')][_0x47ae('0xf')](_0x26e46a),_0x26e46a;}['_alignForTopChange'](_0x5c4a53){if(!_0x5c4a53['content'][_0x47ae('0x20')])return;const _0x458ebb=this[_0x47ae('0x27')](_0x5c4a53);if(!_0x458ebb)return;const _0x4ec8eb=this['_sidebarItemViewToAnnotation']['get'](_0x458ebb),_0x49554c=this[_0x47ae('0x34')];_0x49554c&&_0x49554c===_0x4ec8eb?this[_0x47ae('0x16')](_0x458ebb,_0x5c4a53):this[_0x47ae('0x24')](_0x5c4a53,_0x458ebb);}[_0x47ae('0x2d')](_0x49e72c){if(!_0x49e72c[_0x47ae('0x46')][_0x47ae('0x20')])return;const _0x43645e=this[_0x47ae('0x6')](_0x49e72c);if(!_0x43645e)return;const _0x4de01c=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x43645e),_0x131d4d=this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x13')](_0x47ae('0x7')),_0x25a3ca=this[_0x47ae('0x34')];_0x25a3ca&&_0x25a3ca===_0x4de01c&&_0x131d4d?(this[_0x47ae('0x24')](_0x43645e,_0x49e72c),this[_0x47ae('0x16')](_0x49e72c,_0x43645e)):_0x25a3ca&&_0x25a3ca===_0x4de01c?this['_alignBeforeItem'](_0x43645e,_0x49e72c):this[_0x47ae('0x16')](_0x49e72c,_0x43645e);}['_recalculate'](_0x366bd8,_0x1a4847){0x0===this[_0x47ae('0x2b')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x346cea,changedProp:_0x96a1c2}of this['_recalculateBuffer'])_0x47ae('0xc')===_0x96a1c2?this[_0x47ae('0x8')](_0x346cea):this[_0x47ae('0x2d')](_0x346cea);this[_0x47ae('0x2b')]=[];},0xa),this[_0x47ae('0x2b')][_0x47ae('0x3b')]({'sidebarItemView':_0x366bd8,'changedProp':_0x1a4847});}[_0x47ae('0x30')](_0x2e482e){return this[_0x47ae('0x41')]['get'](_0x2e482e);}[_0x47ae('0xe')](){this[_0x47ae('0x23')](),this[_0x47ae('0x32')][_0x47ae('0xe')]();}['_destroySidebarItemView'](_0x532897){const _0x5e35f0=this[_0x47ae('0x30')](_0x532897);this[_0x47ae('0x23')](_0x5e35f0),this[_0x47ae('0x23')](_0x532897[_0x47ae('0x32')]),_0x5e35f0[_0x47ae('0xe')](),this[_0x47ae('0x41')][_0x47ae('0x1b')](_0x532897),this[_0x47ae('0x1a')][_0x47ae('0x1b')](_0x5e35f0);}[_0x47ae('0x25')](){const _0x417df1=new _0x420efe(this[_0x47ae('0x18')][_0x47ae('0x11')]);return _0x417df1[_0x47ae('0x0')](),this['on'](_0x47ae('0x15'),(_0x573e09,_0x32df05,_0x1fb5b2,_0x33bfad)=>{_0x33bfad&&_0x417df1[_0x47ae('0x2')]('minHeight'),_0x1fb5b2?_0x417df1[_0x47ae('0x35')](_0x47ae('0x31'))['to'](_0x1fb5b2,_0x47ae('0x14')):_0x417df1['minHeight']=null;}),_0x417df1;}[_0x47ae('0x2f')](){var _0x5108fe;this[_0x47ae('0x1e')]=(null===(_0x5108fe=this[_0x47ae('0x38')])||void 0x0===_0x5108fe?void 0x0:_0x5108fe['last'])?this['getSidebarItemView'](this['_annotations'][_0x47ae('0x3a')]):null;}[_0x47ae('0x27')](_0x380e2a){var _0x56cd18;const _0x3317e1=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x380e2a),_0x196f2c=_0x3317e1&&(null===(_0x56cd18=this['_annotations'])||void 0x0===_0x56cd18?void 0x0:_0x56cd18['get'](this['_annotations']['getIndex'](_0x3317e1)-0x1));return _0x196f2c&&this[_0x47ae('0x30')](_0x196f2c)||null;}[_0x47ae('0x6')](_0x41b4d9){var _0x437ab8;const _0x4fcf80=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x41b4d9),_0x22a956=_0x4fcf80&&(null===(_0x437ab8=this[_0x47ae('0x38')])||void 0x0===_0x437ab8?void 0x0:_0x437ab8['get'](this[_0x47ae('0x38')]['getIndex'](_0x4fcf80)+0x1));return _0x22a956&&this[_0x47ae('0x30')](_0x22a956)||null;}['_alignBeforeItem'](_0x22aa4f,_0x2b7365){_0x22aa4f[_0x47ae('0x1')]();const _0x3d44bb=H(_0x2b7365['bottom']+this[_0x47ae('0x2c')],_0x22aa4f[_0x47ae('0xc')]);return!!_0x3d44bb&&(this['_setItemTop'](_0x2b7365,_0x2b7365['top']-_0x3d44bb),!0x0);}['_alignAfterItem'](_0x5f4397,_0x12c9c){_0x5f4397['updateHeight']();const _0x901885=H(_0x5f4397[_0x47ae('0x14')]+this[_0x47ae('0x2c')],_0x12c9c[_0x47ae('0xc')]);return!!_0x901885&&(this[_0x47ae('0x10')](_0x12c9c,_0x12c9c['top']+_0x901885,!0x1),!0x0);}['_alignToTargetRect'](_0xb456e5){const _0x26d796=this['_sidebarItemViewToAnnotation']['get'](_0xb456e5);if(!_0x26d796||!_0x26d796['target']||!_0x26d796[_0x47ae('0x17')])return;const _0x346009=this[_0x47ae('0x43')](_0x26d796,_0x26d796['targetRect']);this[_0x47ae('0x10')](_0xb456e5,_0x346009);}[_0x47ae('0x43')](_0x561644,_0x4fab96){if(null===_0x4fab96)return 0x0;if(_0x561644['target']instanceof _0x30e527)return _0x4fab96['top'];{const _0x1ffb22=new _0x30e527(this['view'][_0x47ae('0x36')])[_0x47ae('0xc')];return _0x4fab96[_0x47ae('0xc')]-_0x1ffb22;}}[_0x47ae('0x10')](_0x3bdf4a,_0x2eb706,_0x4973e5=this[_0x47ae('0x18')]['config']['get'](_0x47ae('0x7'))){_0x4973e5&&(_0x2eb706=Math[_0x47ae('0x47')](_0x2eb706,this[_0x47ae('0x3e')](_0x3bdf4a))),_0x3bdf4a[_0x47ae('0xc')]=_0x2eb706;}[_0x47ae('0x3e')](_0x1e0392){let _0x5183af=this[_0x47ae('0x27')](_0x1e0392),_0x12d620=0x0;for(;_0x5183af;)_0x5183af['updateHeight'](),_0x12d620+=this[_0x47ae('0x2c')]+_0x5183af['height'],_0x5183af=this[_0x47ae('0x27')](_0x5183af);return _0x12d620;}}function H(_0x1bfaa0,_0x542a34){return Math[_0x47ae('0x47')](_0x1bfaa0-_0x542a34,0x0);}function y(_0x534910){return null!==_0x534910&&_0x47ae('0x2e')==typeof _0x534910&&0x1===_0x534910[_0x47ae('0x37')];}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/view/annotationcounterbuttonview
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2647=['extendTemplate','bind','set','ck-annotation-counter__badge--edit-mode','children','annotationType','bindTemplate','toString','number','...','span','ck-annotation-counter__badge','setTemplate','ck-annotation-counter__badge--','counterView','icon','isDirty','_badge'];(function(_0xbae730,_0x264701){const _0xcd7c0d=function(_0xe40238){while(--_0xe40238){_0xbae730['push'](_0xbae730['shift']());}};_0xcd7c0d(++_0x264701);}(_0x2647,0x95));const _0xcd7c=function(_0xbae730,_0x264701){_0xbae730=_0xbae730-0x0;let _0xcd7c0d=_0x2647[_0xbae730];return _0xcd7c0d;};import{ButtonView as _0x45bf72,View as _0x449e74}from'ckeditor5/src/ui';import _0x114e2a from'../../../theme/icons/add-comment.svg';export default class D extends _0x45bf72{constructor(_0x1c571b){super(_0x1c571b);const _0x47d182=this[_0xcd7c('0x1')];this[_0xcd7c('0xf')](_0xcd7c('0xb'),!0x1),this[_0xcd7c('0xf')](_0xcd7c('0x3'),0x0),this[_0xcd7c('0xe')]('_badge')['to'](this,'isDirty',this,'number',(_0x55f050,_0x1be4dd)=>_0x55f050?_0xcd7c('0x4'):_0x1be4dd[_0xcd7c('0x2')]()),this[_0xcd7c('0xf')](_0xcd7c('0x0'),''),this[_0xcd7c('0xa')]=_0x114e2a,this[_0xcd7c('0xd')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0xcd7c('0x9')]=new _0x449e74(),this[_0xcd7c('0x9')][_0xcd7c('0x7')]({'tag':_0xcd7c('0x5'),'attributes':{'class':[_0xcd7c('0x6'),_0x47d182['to']('annotationType',_0x1d673e=>_0xcd7c('0x8')+_0x1d673e),_0x47d182['if'](_0xcd7c('0xb'),_0xcd7c('0x10'))]},'children':[{'text':_0x47d182['to'](_0xcd7c('0xc'))}]}),this[_0xcd7c('0x11')]['add'](this[_0xcd7c('0x9')]);}}
23
+ const _0x4c36=['toString','bind','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge--','isDirty','...','span','children','set','add','annotationType','counterView','setTemplate'];(function(_0x189fea,_0x4c3628){const _0x4f7aa7=function(_0x21b5cc){while(--_0x21b5cc){_0x189fea['push'](_0x189fea['shift']());}};_0x4f7aa7(++_0x4c3628);}(_0x4c36,0xcb));const _0x4f7a=function(_0x189fea,_0x4c3628){_0x189fea=_0x189fea-0x0;let _0x4f7aa7=_0x4c36[_0x189fea];return _0x4f7aa7;};import{ButtonView as _0x4cdb56,View as _0x503cb3}from'ckeditor5/src/ui';import _0x105f87 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4cdb56{constructor(_0x5c735f){super(_0x5c735f);const _0x56a732=this['bindTemplate'];this[_0x4f7a('0x0')](_0x4f7a('0x9'),!0x1),this['set']('number',0x0),this[_0x4f7a('0x6')]('_badge')['to'](this,_0x4f7a('0x9'),this,'number',(_0x50ccb3,_0x5a6b8f)=>_0x50ccb3?_0x4f7a('0xa'):_0x5a6b8f[_0x4f7a('0x5')]()),this[_0x4f7a('0x0')](_0x4f7a('0x2'),''),this['icon']=_0x105f87,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4f7a('0x3')]=new _0x503cb3(),this[_0x4f7a('0x3')][_0x4f7a('0x4')]({'tag':_0x4f7a('0xb'),'attributes':{'class':['ck-annotation-counter__badge',_0x56a732['to'](_0x4f7a('0x2'),_0x16c1d0=>_0x4f7a('0x8')+_0x16c1d0),_0x56a732['if'](_0x4f7a('0x9'),_0x4f7a('0x7'))]},'children':[{'text':_0x56a732['to']('_badge')}]}),this[_0x4f7a('0xc')][_0x4f7a('0x1')](this['counterView']);}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/view/annotationview
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21d3=['clear','content','ck-annotation-wrapper--active','_mutationObserver','keystrokes','mainView','attach','Esc','add','destroy','height','type','bindTemplate','element','length','set','_updateHeight','targetRect','ck-rounded-corners','ck-annotation-wrapper','focus','setTemplate','isActive','createCollection','focusTracker','render','clientHeight'];(function(_0x49974b,_0x21d301){const _0x4b6fcc=function(_0x11367f){while(--_0x11367f){_0x49974b['push'](_0x49974b['shift']());}};_0x4b6fcc(++_0x21d301);}(_0x21d3,0x199));const _0x4b6f=function(_0x49974b,_0x21d301){_0x49974b=_0x49974b-0x0;let _0x4b6fcc=_0x21d3[_0x49974b];return _0x4b6fcc;};import{View as _0x529de4}from'ckeditor5/src/ui';import{FocusTracker as _0x270dfc,KeystrokeHandler as _0x3698b9,uid as _0x459294}from'ckeditor5/src/utils';import _0x2b5696 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x529de4{constructor(_0x303a45,_0x66a08){super(_0x303a45),this['id']=_0x459294(),this[_0x4b6f('0x14')]=new _0x270dfc(),this[_0x4b6f('0x0')]=new _0x3698b9(),this[_0x4b6f('0x0')]['set'](_0x4b6f('0x3'),(_0x176728,_0x1e3eaf)=>this['fire'](_0x4b6f('0x3'),_0x1e3eaf)),this[_0x4b6f('0xb')](_0x4b6f('0xd'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x4b6f('0x6'),0x0),this[_0x4b6f('0xb')]('isActive',!0x1),this[_0x4b6f('0xb')]('isDirty',!0x1),this[_0x4b6f('0xb')](_0x4b6f('0xa'),0x0),this[_0x4b6f('0xb')](_0x4b6f('0x7'),''),this['_mutationObserver']=_0x2b5696(()=>this[_0x4b6f('0xc')]()),this[_0x4b6f('0x18')]=this[_0x4b6f('0x13')](),this[_0x4b6f('0x18')][_0x4b6f('0x4')](_0x66a08),this[_0x4b6f('0x1')]=_0x66a08;const _0xc3de31=this[_0x4b6f('0x8')];this[_0x4b6f('0x11')]({'tag':'div','attributes':{'class':['ck',_0x4b6f('0xf'),_0x4b6f('0xe'),_0xc3de31['if'](_0x4b6f('0x12'),_0x4b6f('0x19'))],'tabindex':-0x1},'children':this[_0x4b6f('0x18')]});}[_0x4b6f('0x15')](){super[_0x4b6f('0x15')](),this[_0x4b6f('0x14')]['add'](this[_0x4b6f('0x9')]),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver'][_0x4b6f('0x2')](this['element']);}[_0x4b6f('0x5')](){this[_0x4b6f('0x18')][_0x4b6f('0x17')](),this[_0x4b6f('0x0')][_0x4b6f('0x5')](),this[_0x4b6f('0x14')]['destroy'](),this[_0x4b6f('0x1a')]['detach'](),super[_0x4b6f('0x5')]();}[_0x4b6f('0x10')](){this[_0x4b6f('0x9')][_0x4b6f('0x10')]();}[_0x4b6f('0xc')](){const _0x37acfc=this['element'][_0x4b6f('0x16')];_0x37acfc&&(this[_0x4b6f('0x6')]=_0x37acfc);}}
23
+ const _0x5bbb=['setTemplate','render','height','mainView','bindTemplate','content','element','detach','length','focus','div','isDirty','attach','isActive','ck-rounded-corners','fire','ck-annotation-wrapper--active','destroy','keystrokes','createCollection','set','_updateHeight','targetRect','focusTracker','_mutationObserver'];(function(_0x1dd67a,_0x5bbb36){const _0x34310c=function(_0x200e69){while(--_0x200e69){_0x1dd67a['push'](_0x1dd67a['shift']());}};_0x34310c(++_0x5bbb36);}(_0x5bbb,0xe1));const _0x3431=function(_0x1dd67a,_0x5bbb36){_0x1dd67a=_0x1dd67a-0x0;let _0x34310c=_0x5bbb[_0x1dd67a];return _0x34310c;};import{View as _0x6a1293}from'ckeditor5/src/ui';import{FocusTracker as _0xc50ced,KeystrokeHandler as _0xc7b71f,uid as _0x44a6a1}from'ckeditor5/src/utils';import _0x1d5175 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x6a1293{constructor(_0x40bf97,_0x3b62e0){super(_0x40bf97),this['id']=_0x44a6a1(),this['focusTracker']=new _0xc50ced(),this[_0x3431('0x12')]=new _0xc7b71f(),this[_0x3431('0x12')]['set']('Esc',(_0x245bd9,_0x45fb2d)=>this[_0x3431('0xf')]('Esc',_0x45fb2d)),this['set'](_0x3431('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3431('0x14')](_0x3431('0x2'),0x0),this[_0x3431('0x14')](_0x3431('0xd'),!0x1),this[_0x3431('0x14')](_0x3431('0xb'),!0x1),this['set'](_0x3431('0x8'),0x0),this['set']('type',''),this['_mutationObserver']=_0x1d5175(()=>this[_0x3431('0x15')]()),this[_0x3431('0x5')]=this[_0x3431('0x13')](),this[_0x3431('0x5')]['add'](_0x3b62e0),this[_0x3431('0x3')]=_0x3b62e0;const _0x311840=this[_0x3431('0x4')];this[_0x3431('0x0')]({'tag':_0x3431('0xa'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x3431('0xe'),_0x311840['if']('isActive',_0x3431('0x10'))],'tabindex':-0x1},'children':this[_0x3431('0x5')]});}[_0x3431('0x1')](){super[_0x3431('0x1')](),this[_0x3431('0x17')]['add'](this['element']),this[_0x3431('0x12')]['listenTo'](this[_0x3431('0x6')]),this[_0x3431('0x18')][_0x3431('0xc')](this[_0x3431('0x6')]);}['destroy'](){this[_0x3431('0x5')]['clear'](),this[_0x3431('0x12')]['destroy'](),this[_0x3431('0x17')][_0x3431('0x11')](),this[_0x3431('0x18')][_0x3431('0x7')](),super[_0x3431('0x11')]();}[_0x3431('0x9')](){this[_0x3431('0x6')][_0x3431('0x9')]();}[_0x3431('0x15')](){const _0x55034a=this[_0x3431('0x6')]['clientHeight'];_0x55034a&&(this['height']=_0x55034a);}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/view/sidebaritemview
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3df2=['destroy','ck-sidebar-item','_targetTop','ck-sidebar-item--no-animation','createCollection','element','height','clientHeight','isAnimationDisabled','attach','content','detach','div','_mutationObserver','render','set'];(function(_0x43a998,_0x3df21a){const _0x36e7e3=function(_0x2103f2){while(--_0x2103f2){_0x43a998['push'](_0x43a998['shift']());}};_0x36e7e3(++_0x3df21a);}(_0x3df2,0x180));const _0x36e7=function(_0x43a998,_0x3df21a){_0x43a998=_0x43a998-0x0;let _0x36e7e3=_0x3df2[_0x43a998];return _0x36e7e3;};import{View as _0x45b8f5}from'ckeditor5/src/ui';import{toUnit as _0x21d073}from'ckeditor5/src/utils';import _0x5c01a4 from'../../utils/createmutationobserver';const Dt=_0x21d073('px');export default class C extends _0x45b8f5{constructor(_0x2d7cf6){super(_0x2d7cf6),this['set']('top',0x0),this['set'](_0x36e7('0x6'),0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2f84e8,_0x39eefa)=>_0x2f84e8+_0x39eefa),this[_0x36e7('0xf')]('isAnimationDisabled',!0x1),this[_0x36e7('0xd')]=_0x5c01a4(()=>this['updateHeight']()),this[_0x36e7('0x2')]=null,this[_0x36e7('0xa')]=this[_0x36e7('0x4')]();const _0x17b091=this['bindTemplate'];this['setTemplate']({'tag':_0x36e7('0xc'),'attributes':{'class':[_0x36e7('0x1'),_0x17b091['to'](_0x36e7('0x8'),_0x5a8a4d=>_0x5a8a4d?_0x36e7('0x3'):'')],'style':{'top':_0x17b091['to']('top',_0x30f41c=>Dt(_0x30f41c))}},'children':this[_0x36e7('0xa')]});}['render'](){super[_0x36e7('0xe')](),this[_0x36e7('0xd')][_0x36e7('0x9')](this[_0x36e7('0x5')]);}['updateHeight'](){const _0x4c7f1c=this['element'][_0x36e7('0x7')];_0x4c7f1c&&(this['height']=_0x4c7f1c);}['destroy'](){this['content']['clear'](),this[_0x36e7('0xd')][_0x36e7('0xb')](),super[_0x36e7('0x0')]();}}
23
+ const _0x42a7=['ck-sidebar-item--no-animation','createCollection','destroy','bind','isAnimationDisabled','content','element','ck-sidebar-item','set','top','div','_mutationObserver','bottom','_targetTop','render','detach','attach','clientHeight','height','setTemplate'];(function(_0xa3eb3c,_0x42a7ef){const _0x2b433b=function(_0x44116b){while(--_0x44116b){_0xa3eb3c['push'](_0xa3eb3c['shift']());}};_0x2b433b(++_0x42a7ef);}(_0x42a7,0x8f));const _0x2b43=function(_0xa3eb3c,_0x42a7ef){_0xa3eb3c=_0xa3eb3c-0x0;let _0x2b433b=_0x42a7[_0xa3eb3c];return _0x2b433b;};import{View as _0x584241}from'ckeditor5/src/ui';import{toUnit as _0x38ae66}from'ckeditor5/src/utils';import _0x3cc5a0 from'../../utils/createmutationobserver';const At=_0x38ae66('px');export default class C extends _0x584241{constructor(_0x534ba5){super(_0x534ba5),this[_0x2b43('0x5')](_0x2b43('0x6'),0x0),this[_0x2b43('0x5')](_0x2b43('0xf'),0x0),this[_0x2b43('0x0')](_0x2b43('0x9'))['to'](this,'top',this,_0x2b43('0xf'),(_0x3d545e,_0x20bf8a)=>_0x3d545e+_0x20bf8a),this[_0x2b43('0x5')](_0x2b43('0x1'),!0x1),this['_mutationObserver']=_0x3cc5a0(()=>this['updateHeight']()),this[_0x2b43('0xa')]=null,this[_0x2b43('0x2')]=this[_0x2b43('0x12')]();const _0x331b48=this['bindTemplate'];this[_0x2b43('0x10')]({'tag':_0x2b43('0x7'),'attributes':{'class':[_0x2b43('0x4'),_0x331b48['to'](_0x2b43('0x1'),_0x3cbb54=>_0x3cbb54?_0x2b43('0x11'):'')],'style':{'top':_0x331b48['to'](_0x2b43('0x6'),_0x26b0a9=>At(_0x26b0a9))}},'children':this['content']});}[_0x2b43('0xb')](){super[_0x2b43('0xb')](),this[_0x2b43('0x8')][_0x2b43('0xd')](this[_0x2b43('0x3')]);}['updateHeight'](){const _0x4764ad=this[_0x2b43('0x3')][_0x2b43('0xe')];_0x4764ad&&(this['height']=_0x4764ad);}[_0x2b43('0x13')](){this[_0x2b43('0x2')]['clear'](),this['_mutationObserver'][_0x2b43('0xc')](),super[_0x2b43('0x13')]();}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/view/sidebarview
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44da=['ck-sidebar','set','setTemplate','minHeight','ck-reset','createCollection','bindTemplate','class','div','number','list'];(function(_0x5ec548,_0x44daff){const _0x544dd8=function(_0x22d37b){while(--_0x22d37b){_0x5ec548['push'](_0x5ec548['shift']());}};_0x544dd8(++_0x44daff);}(_0x44da,0x1f2));const _0x544d=function(_0x5ec548,_0x44daff){_0x5ec548=_0x5ec548-0x0;let _0x544dd8=_0x44da[_0x5ec548];return _0x544dd8;};import{View as _0x60f63d}from'ckeditor5/src/ui';import{toUnit as _0x3ee688}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const Dt=_0x3ee688('px');export default class T extends _0x60f63d{constructor(_0x195565){super(_0x195565);const _0x3b09a0=this[_0x544d('0x3')];this[_0x544d('0x9')](_0x544d('0x0'),0x0),this['set'](_0x544d('0x4'),''),this[_0x544d('0x7')]=this[_0x544d('0x2')](),this[_0x544d('0xa')]({'tag':_0x544d('0x5'),'attributes':{'class':['ck',_0x544d('0x8'),_0x544d('0x1'),_0x3b09a0['to'](_0x544d('0x4'))],'style':{'minHeight':_0x3b09a0['to'](_0x544d('0x0'),_0x4ac3d9=>_0x544d('0x6')==typeof _0x4ac3d9?Dt(_0x4ac3d9+0xa):null)}},'children':this['list']});}}
23
+ const _0x3135=['class','setTemplate','createCollection','bindTemplate','set','list','div','ck-reset','minHeight','number','ck-sidebar'];(function(_0x53fe00,_0x3135c5){const _0x5a225a=function(_0x129e62){while(--_0x129e62){_0x53fe00['push'](_0x53fe00['shift']());}};_0x5a225a(++_0x3135c5);}(_0x3135,0x1c5));const _0x5a22=function(_0x53fe00,_0x3135c5){_0x53fe00=_0x53fe00-0x0;let _0x5a225a=_0x3135[_0x53fe00];return _0x5a225a;};import{View as _0x11b04f}from'ckeditor5/src/ui';import{toUnit as _0x579291}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x579291('px');export default class T extends _0x11b04f{constructor(_0x2f6d59){super(_0x2f6d59);const _0x1e88a0=this[_0x5a22('0x1')];this['set'](_0x5a22('0x6'),0x0),this[_0x5a22('0x2')](_0x5a22('0x9'),''),this[_0x5a22('0x3')]=this[_0x5a22('0x0')](),this[_0x5a22('0xa')]({'tag':_0x5a22('0x4'),'attributes':{'class':['ck',_0x5a22('0x8'),_0x5a22('0x5'),_0x1e88a0['to'](_0x5a22('0x9'))],'style':{'minHeight':_0x1e88a0['to'](_0x5a22('0x6'),_0xba8ff5=>_0x5a22('0x7')==typeof _0xba8ff5?At(_0xba8ff5+0xa):null)}},'children':this[_0x5a22('0x3')]});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/widesidebar
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa7ab=['cancel','WideSidebar','refresh','editors','isAttached','ck-sidebar--wide','setActiveAnnotation','uiUpdate','blur','_activeAnnotation','requires','listenTo','context','activeAnnotation','_annotations','wideSidebar','widesidebar-detach-not-attached','remove','init','_integrateWithEditorAnnotations','annotations','stopListening','stop','plugins','refreshPositioning','_editorAnnotations','detach','high','add','addEventListener','_refreshPositioningDebounced','has','container','EditorAnnotations','_detachFromContainer','_destroyEditorAnnotationsIntegration','register','addAnnotation','_attachToContainer','set:container','get','focus','removeEventListener'];(function(_0x57d76a,_0xa7ab63){const _0x3762d1=function(_0x1eb6b9){while(--_0x1eb6b9){_0x57d76a['push'](_0x57d76a['shift']());}};_0x3762d1(++_0xa7ab63);}(_0xa7ab,0x1d5));const _0x3762=function(_0x57d76a,_0xa7ab63){_0x57d76a=_0x57d76a-0x0;let _0x3762d1=_0xa7ab[_0x57d76a];return _0x3762d1;};import{ContextPlugin as _0x30539e,Context as _0x16a991}from'ckeditor5/src/core';import _0x2056ad from'./annotationsuis';import _0x4548d9 from'./sidebar';import{CKEditorError as _0x3fffd4,Collection as _0x294292}from'ckeditor5/src/utils';import{debounce as _0xe20198}from'lodash-es';import _0x49e5ce from'./editorannotations';export default class i extends _0x30539e{static get[_0x3762('0xe')](){return[_0x4548d9,_0x2056ad];}static get['pluginName'](){return _0x3762('0x5');}constructor(_0x4e84f7){super(_0x4e84f7),this[_0x3762('0x8')]=!0x1,this['set'](_0x3762('0x11'),null),this['annotations']=null,this['_editorAnnotations']=new _0x294292(),this[_0x3762('0x22')]=_0xe20198(()=>{this[_0x3762('0x18')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3762('0x16')](){const _0x537de6=this['context'][_0x3762('0x1b')][_0x3762('0x1')](_0x2056ad),_0x1b4dd9=this[_0x3762('0x10')][_0x3762('0x1b')][_0x3762('0x1')](_0x4548d9);_0x537de6[_0x3762('0x28')]('wideSidebar',this),_0x1b4dd9[_0x3762('0x24')]&&_0x537de6['switchTo'](_0x3762('0x13'));}['setActiveAnnotation'](_0x17fbca){if(_0x17fbca===this['activeAnnotation'])return;const _0x470911=this['context'][_0x3762('0x1b')][_0x3762('0x1')](_0x4548d9);_0x470911[_0x3762('0xd')]=_0x17fbca;const _0x34c4dd=this[_0x3762('0x11')];this[_0x3762('0x11')]=_0x17fbca,_0x470911[_0x3762('0x6')]({'blurredAnnotation':_0x34c4dd,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x11c4df){this['annotations']=_0x11c4df;const _0xc6e472=this[_0x3762('0x10')][_0x3762('0x1b')]['get'](_0x4548d9);if(_0xc6e472[_0x3762('0x12')]=_0x11c4df,this[_0x3762('0x8')])throw new _0x3fffd4('widesidebar-attach-already-attached',this);this[_0x3762('0x8')]=!0x0,this[_0x3762('0xf')](_0xc6e472,_0x3762('0x0'),()=>{this['detach'](),this['listenTo'](_0xc6e472,'change:container',_0x208e8b=>{_0x208e8b['off'](),this['attach'](_0x11c4df);});}),_0xc6e472[_0x3762('0x2a')]({'viewClass':_0x3762('0x9')});const _0x4dedff=_0x5f407d=>{_0x5f407d['updateTargetRect'](),_0xc6e472[_0x3762('0x29')](_0x5f407d);};for(const _0x296dfe of _0x11c4df)_0x4dedff(_0x296dfe);this['listenTo'](_0x11c4df,_0x3762('0x20'),(_0x18a253,_0x331e20)=>{_0x4dedff(_0x331e20);}),this[_0x3762('0xf')](_0x11c4df,_0x3762('0x15'),(_0x2dec37,_0x470c71,_0x49b4dc)=>{_0xc6e472['rearrange']({'removedAnnotation':_0x470c71,'previousAnnotation':_0x11c4df[_0x3762('0x1')](_0x49b4dc-0x1),'nextAnnotation':_0x11c4df['get'](_0x49b4dc+0x1)}),_0x470c71===this[_0x3762('0x11')]&&this[_0x3762('0xa')](null);},{'priority':_0x3762('0x1f')}),this[_0x3762('0xf')](_0x11c4df,_0x3762('0x2'),(_0x53b4e,_0x310411)=>{this[_0x3762('0xa')](_0x310411);}),this[_0x3762('0xf')](_0x11c4df,_0x3762('0xc'),()=>{this[_0x3762('0xa')](null);});const _0x30ecca=this['context']instanceof _0x16a991?this[_0x3762('0x10')]['editors']:new _0x294292([this[_0x3762('0x10')]]);for(const _0x17f1b9 of _0x30ecca)this[_0x3762('0x17')](_0x17f1b9);this[_0x3762('0xf')](_0x30ecca,_0x3762('0x20'),(_0xd05714,_0x3f96f0)=>{this['listenTo'](_0x3f96f0,'ready',()=>{this[_0x3762('0x17')](_0x3f96f0);});}),this[_0x3762('0xf')](_0x30ecca,_0x3762('0x15'),(_0x53fff4,_0x467e4f)=>{_0x467e4f['plugins'][_0x3762('0x23')](_0x3762('0x25'))&&this['_destroyEditorAnnotationsIntegration'](_0x467e4f[_0x3762('0x1b')][_0x3762('0x1')](_0x3762('0x25')));}),window[_0x3762('0x21')]('resize',this['_refreshPositioningDebounced']),this[_0x3762('0x18')][_0x3762('0x1c')]();}[_0x3762('0x1e')](){if(!this['isAttached'])throw new _0x3fffd4(_0x3762('0x14'),this);this['setActiveAnnotation'](null);const _0xa00bb=this[_0x3762('0x10')]['plugins']['get'](_0x4548d9);_0xa00bb[_0x3762('0x26')](this[_0x3762('0x18')]),this[_0x3762('0x19')](_0xa00bb),this['stopListening'](this[_0x3762('0x18')]),this[_0x3762('0x10')]instanceof _0x16a991&&this[_0x3762('0x19')](this[_0x3762('0x10')][_0x3762('0x7')]);for(const _0x3e774e of Array['from'](this[_0x3762('0x1d')]))this[_0x3762('0x27')](_0x3e774e);window[_0x3762('0x3')]('resize',this['_refreshPositioningDebounced']),this[_0x3762('0x22')][_0x3762('0x4')](),this['activeAnnotation']=null,this[_0x3762('0x8')]=!0x1,this[_0x3762('0x18')]=null;}['destroy'](){this['isAttached']&&this['detach']();}[_0x3762('0x17')](_0x2ffc0d){const _0x2deb15=_0x2ffc0d[_0x3762('0x1b')][_0x3762('0x1')](_0x49e5ce);if(!_0x2deb15)return;const _0x2b8883=()=>{const _0x2377e0=_0x2deb15['getOrderedSelectedAnnotations']({'annotations':this[_0x3762('0x18')],'activeAnnotation':this['activeAnnotation']});this[_0x3762('0xa')](_0x2377e0[0x0]||null);};this['listenTo'](_0x2deb15,_0x3762('0x6'),_0x2b8883),this['listenTo'](_0x2deb15,_0x3762('0xc'),(_0x9970c4,{isAnnotationTracked:_0x38bfab})=>{this[_0x3762('0x11')]&&_0x38bfab(this[_0x3762('0x11')])&&this['setActiveAnnotation'](null);}),this[_0x3762('0xf')](_0x2deb15,_0x3762('0xb'),()=>{this[_0x3762('0x22')]();}),this[_0x3762('0xf')](this[_0x3762('0x18')],_0x3762('0xc'),_0x4bfb91=>{_0x2deb15['hasDomSelection']()&&(_0x2b8883(),_0x4bfb91[_0x3762('0x1a')]());},{'priority':_0x3762('0x1f')}),this[_0x3762('0x1d')][_0x3762('0x20')](_0x2deb15);}[_0x3762('0x27')](_0x619a57){this['stopListening'](_0x619a57),this['_editorAnnotations'][_0x3762('0x15')](_0x619a57);}}
23
+ const _0x51ea=['widesidebar-detach-not-attached','removeEventListener','updateTargetRect','_annotations','focus','has','refreshPositioning','editors','resize','plugins','add','uiUpdate','set:container','hasDomSelection','_attachToContainer','activeAnnotation','_activeAnnotation','switchTo','container','register','requires','ck-sidebar--wide','init','stopListening','ready','listenTo','get','getOrderedSelectedAnnotations','pluginName','cancel','refresh','WideSidebar','context','_refreshPositioningDebounced','stop','setActiveAnnotation','attach','_editorAnnotations','annotations','isAttached','set','blur','off','detach','addAnnotation','_destroyEditorAnnotationsIntegration','from','high','widesidebar-attach-already-attached','EditorAnnotations'];(function(_0x3b955d,_0x51ea58){const _0x2de58f=function(_0x594c62){while(--_0x594c62){_0x3b955d['push'](_0x3b955d['shift']());}};_0x2de58f(++_0x51ea58);}(_0x51ea,0x15e));const _0x2de5=function(_0x3b955d,_0x51ea58){_0x3b955d=_0x3b955d-0x0;let _0x2de58f=_0x51ea[_0x3b955d];return _0x2de58f;};import{ContextPlugin as _0x303fc5,Context as _0x175a04}from'ckeditor5/src/core';import _0x14a401 from'./annotationsuis';import _0x51ea21 from'./sidebar';import{CKEditorError as _0x368d39,Collection as _0x482fc0}from'ckeditor5/src/utils';import{debounce as _0x3d4dcc}from'lodash-es';import _0x2368f8 from'./editorannotations';export default class i extends _0x303fc5{static get[_0x2de5('0x14')](){return[_0x51ea21,_0x14a401];}static get[_0x2de5('0x1c')](){return _0x2de5('0x1f');}constructor(_0xb4c298){super(_0xb4c298),this['isAttached']=!0x1,this[_0x2de5('0x28')](_0x2de5('0xf'),null),this[_0x2de5('0x26')]=null,this[_0x2de5('0x25')]=new _0x482fc0(),this['_refreshPositioningDebounced']=_0x3d4dcc(()=>{this[_0x2de5('0x26')][_0x2de5('0x6')]();},0xfa,{'leading':!0x1});}[_0x2de5('0x16')](){const _0x3f66a3=this['context']['plugins'][_0x2de5('0x1a')](_0x14a401),_0x547da3=this[_0x2de5('0x20')][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);_0x3f66a3[_0x2de5('0x13')]('wideSidebar',this),_0x547da3[_0x2de5('0x12')]&&_0x3f66a3[_0x2de5('0x11')]('wideSidebar');}['setActiveAnnotation'](_0x53846a){if(_0x53846a===this[_0x2de5('0xf')])return;const _0x2cceb4=this[_0x2de5('0x20')][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);_0x2cceb4[_0x2de5('0x10')]=_0x53846a;const _0x2ce187=this['activeAnnotation'];this[_0x2de5('0xf')]=_0x53846a,_0x2cceb4[_0x2de5('0x1e')]({'blurredAnnotation':_0x2ce187,'activatedAnnotation':this[_0x2de5('0xf')]});}['attach'](_0x5d4223){this[_0x2de5('0x26')]=_0x5d4223;const _0x152cee=this[_0x2de5('0x20')][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);if(_0x152cee[_0x2de5('0x3')]=_0x5d4223,this[_0x2de5('0x27')])throw new _0x368d39(_0x2de5('0x30'),this);this[_0x2de5('0x27')]=!0x0,this[_0x2de5('0x19')](_0x152cee,_0x2de5('0xc'),()=>{this[_0x2de5('0x2b')](),this['listenTo'](_0x152cee,'change:container',_0x16b3c2=>{_0x16b3c2[_0x2de5('0x2a')](),this[_0x2de5('0x24')](_0x5d4223);});}),_0x152cee[_0x2de5('0xe')]({'viewClass':_0x2de5('0x15')});const _0x534059=_0x39e205=>{_0x39e205[_0x2de5('0x2')](),_0x152cee[_0x2de5('0x2c')](_0x39e205);};for(const _0x21a8eb of _0x5d4223)_0x534059(_0x21a8eb);this[_0x2de5('0x19')](_0x5d4223,_0x2de5('0xa'),(_0x35b438,_0x9fc453)=>{_0x534059(_0x9fc453);}),this[_0x2de5('0x19')](_0x5d4223,'remove',(_0x16332e,_0x44334e,_0xa93c5d)=>{_0x152cee['rearrange']({'removedAnnotation':_0x44334e,'previousAnnotation':_0x5d4223[_0x2de5('0x1a')](_0xa93c5d-0x1),'nextAnnotation':_0x5d4223[_0x2de5('0x1a')](_0xa93c5d+0x1)}),_0x44334e===this[_0x2de5('0xf')]&&this[_0x2de5('0x23')](null);},{'priority':_0x2de5('0x2f')}),this[_0x2de5('0x19')](_0x5d4223,_0x2de5('0x4'),(_0x18801d,_0x4574f8)=>{this[_0x2de5('0x23')](_0x4574f8);}),this[_0x2de5('0x19')](_0x5d4223,'blur',()=>{this[_0x2de5('0x23')](null);});const _0x452b4a=this['context']instanceof _0x175a04?this[_0x2de5('0x20')]['editors']:new _0x482fc0([this[_0x2de5('0x20')]]);for(const _0x42026b of _0x452b4a)this['_integrateWithEditorAnnotations'](_0x42026b);this['listenTo'](_0x452b4a,_0x2de5('0xa'),(_0x18a80a,_0x1692e8)=>{this[_0x2de5('0x19')](_0x1692e8,_0x2de5('0x18'),()=>{this['_integrateWithEditorAnnotations'](_0x1692e8);});}),this[_0x2de5('0x19')](_0x452b4a,'remove',(_0x2d5078,_0x28bf55)=>{_0x28bf55[_0x2de5('0x9')][_0x2de5('0x5')](_0x2de5('0x31'))&&this[_0x2de5('0x2d')](_0x28bf55[_0x2de5('0x9')][_0x2de5('0x1a')](_0x2de5('0x31')));}),window['addEventListener'](_0x2de5('0x8'),this[_0x2de5('0x21')]),this[_0x2de5('0x26')][_0x2de5('0x6')]();}[_0x2de5('0x2b')](){if(!this['isAttached'])throw new _0x368d39(_0x2de5('0x0'),this);this[_0x2de5('0x23')](null);const _0x25846d=this['context'][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);_0x25846d['_detachFromContainer'](this[_0x2de5('0x26')]),this[_0x2de5('0x17')](_0x25846d),this[_0x2de5('0x17')](this['annotations']),this['context']instanceof _0x175a04&&this['stopListening'](this[_0x2de5('0x20')][_0x2de5('0x7')]);for(const _0x4290f7 of Array[_0x2de5('0x2e')](this[_0x2de5('0x25')]))this['_destroyEditorAnnotationsIntegration'](_0x4290f7);window[_0x2de5('0x1')](_0x2de5('0x8'),this[_0x2de5('0x21')]),this[_0x2de5('0x21')][_0x2de5('0x1d')](),this[_0x2de5('0xf')]=null,this[_0x2de5('0x27')]=!0x1,this[_0x2de5('0x26')]=null;}['destroy'](){this['isAttached']&&this[_0x2de5('0x2b')]();}['_integrateWithEditorAnnotations'](_0x27fbdf){const _0x4281d5=_0x27fbdf[_0x2de5('0x9')]['get'](_0x2368f8);if(!_0x4281d5)return;const _0x1dfbc6=()=>{const _0x1fc55a=_0x4281d5[_0x2de5('0x1b')]({'annotations':this[_0x2de5('0x26')],'activeAnnotation':this[_0x2de5('0xf')]});this['setActiveAnnotation'](_0x1fc55a[0x0]||null);};this[_0x2de5('0x19')](_0x4281d5,'refresh',_0x1dfbc6),this[_0x2de5('0x19')](_0x4281d5,_0x2de5('0x29'),(_0x28e8d2,{isAnnotationTracked:_0x93127})=>{this[_0x2de5('0xf')]&&_0x93127(this[_0x2de5('0xf')])&&this[_0x2de5('0x23')](null);}),this[_0x2de5('0x19')](_0x4281d5,_0x2de5('0xb'),()=>{this[_0x2de5('0x21')]();}),this[_0x2de5('0x19')](this[_0x2de5('0x26')],_0x2de5('0x29'),_0x406289=>{_0x4281d5[_0x2de5('0xd')]()&&(_0x1dfbc6(),_0x406289[_0x2de5('0x22')]());},{'priority':_0x2de5('0x2f')}),this[_0x2de5('0x25')]['add'](_0x4281d5);}[_0x2de5('0x2d')](_0x3d4404){this[_0x2de5('0x17')](_0x3d4404),this[_0x2de5('0x25')]['remove'](_0x3d4404);}}