@ckeditor/ckeditor5-comments 35.2.1 → 35.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/bs.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de-ch.js +1 -1
  13. package/build/translations/de.js +1 -1
  14. package/build/translations/el.js +1 -1
  15. package/build/translations/en-au.js +1 -1
  16. package/build/translations/es-co.js +1 -1
  17. package/build/translations/es.js +1 -1
  18. package/build/translations/et.js +1 -1
  19. package/build/translations/fa.js +1 -1
  20. package/build/translations/fi.js +1 -1
  21. package/build/translations/fr.js +1 -1
  22. package/build/translations/gl.js +1 -1
  23. package/build/translations/he.js +1 -1
  24. package/build/translations/hi.js +1 -1
  25. package/build/translations/hr.js +1 -1
  26. package/build/translations/hu.js +1 -1
  27. package/build/translations/id.js +1 -1
  28. package/build/translations/it.js +1 -1
  29. package/build/translations/ja.js +1 -1
  30. package/build/translations/jv.js +1 -1
  31. package/build/translations/ko.js +1 -1
  32. package/build/translations/lt.js +1 -1
  33. package/build/translations/lv.js +1 -1
  34. package/build/translations/ms.js +1 -1
  35. package/build/translations/nl.js +1 -1
  36. package/build/translations/no.js +1 -1
  37. package/build/translations/pl.js +1 -1
  38. package/build/translations/pt-br.js +1 -1
  39. package/build/translations/pt.js +1 -1
  40. package/build/translations/ro.js +1 -1
  41. package/build/translations/ru.js +1 -1
  42. package/build/translations/sk.js +1 -1
  43. package/build/translations/sr-latn.js +1 -1
  44. package/build/translations/sr.js +1 -1
  45. package/build/translations/sv.js +1 -1
  46. package/build/translations/th.js +1 -1
  47. package/build/translations/tk.js +1 -1
  48. package/build/translations/tr.js +1 -1
  49. package/build/translations/tt.js +1 -1
  50. package/build/translations/ug.js +1 -1
  51. package/build/translations/uk.js +1 -1
  52. package/build/translations/ur.js +1 -1
  53. package/build/translations/vi.js +1 -1
  54. package/build/translations/zh-cn.js +1 -1
  55. package/build/translations/zh.js +1 -1
  56. package/lang/contexts.json +4 -1
  57. package/lang/translations/af.po +12 -0
  58. package/lang/translations/ar.po +12 -0
  59. package/lang/translations/bg.po +12 -0
  60. package/lang/translations/bn.po +12 -0
  61. package/lang/translations/bs.po +12 -0
  62. package/lang/translations/ca.po +12 -0
  63. package/lang/translations/cs.po +12 -0
  64. package/lang/translations/da.po +12 -0
  65. package/lang/translations/de-ch.po +12 -0
  66. package/lang/translations/de.po +12 -0
  67. package/lang/translations/el.po +12 -0
  68. package/lang/translations/en-au.po +12 -0
  69. package/lang/translations/en.po +12 -0
  70. package/lang/translations/es-co.po +12 -0
  71. package/lang/translations/es.po +12 -0
  72. package/lang/translations/et.po +12 -0
  73. package/lang/translations/fa.po +12 -0
  74. package/lang/translations/fi.po +12 -0
  75. package/lang/translations/fr.po +12 -0
  76. package/lang/translations/gl.po +12 -0
  77. package/lang/translations/he.po +12 -0
  78. package/lang/translations/hi.po +12 -0
  79. package/lang/translations/hr.po +12 -0
  80. package/lang/translations/hu.po +12 -0
  81. package/lang/translations/id.po +12 -0
  82. package/lang/translations/it.po +12 -0
  83. package/lang/translations/ja.po +12 -0
  84. package/lang/translations/jv.po +12 -0
  85. package/lang/translations/ko.po +12 -0
  86. package/lang/translations/lt.po +12 -0
  87. package/lang/translations/lv.po +12 -0
  88. package/lang/translations/ms.po +12 -0
  89. package/lang/translations/nl.po +12 -0
  90. package/lang/translations/no.po +12 -0
  91. package/lang/translations/pl.po +12 -0
  92. package/lang/translations/pt-br.po +12 -0
  93. package/lang/translations/pt.po +12 -0
  94. package/lang/translations/ro.po +12 -0
  95. package/lang/translations/ru.po +12 -0
  96. package/lang/translations/sk.po +12 -0
  97. package/lang/translations/sr-latn.po +12 -0
  98. package/lang/translations/sr.po +12 -0
  99. package/lang/translations/sv.po +12 -0
  100. package/lang/translations/th.po +12 -0
  101. package/lang/translations/tk.po +12 -0
  102. package/lang/translations/tr.po +12 -0
  103. package/lang/translations/tt.po +12 -0
  104. package/lang/translations/ug.po +12 -0
  105. package/lang/translations/uk.po +12 -0
  106. package/lang/translations/ur.po +12 -0
  107. package/lang/translations/vi.po +12 -0
  108. package/lang/translations/zh-cn.po +12 -0
  109. package/lang/translations/zh.po +12 -0
  110. package/package.json +3 -3
  111. package/src/annotations/annotation.js +1 -1
  112. package/src/annotations/annotationcollection.js +1 -1
  113. package/src/annotations/annotations.js +1 -1
  114. package/src/annotations/annotationsuis.js +1 -1
  115. package/src/annotations/editorannotations.js +1 -1
  116. package/src/annotations/inlineannotations.js +1 -1
  117. package/src/annotations/narrowsidebar.js +1 -1
  118. package/src/annotations/sidebar.js +1 -1
  119. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  120. package/src/annotations/view/annotationview.js +1 -1
  121. package/src/annotations/view/sidebaritemview.js +1 -1
  122. package/src/annotations/view/sidebarview.js +1 -1
  123. package/src/annotations/widesidebar.js +1 -1
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsediting.js +1 -1
  126. package/src/comments/commentsrepository.js +1 -1
  127. package/src/comments/commentsui.js +1 -1
  128. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  129. package/src/comments/integrations/importword.js +1 -1
  130. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  131. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  132. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  133. package/src/comments/ui/commentthreadcontroller.js +1 -1
  134. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  135. package/src/comments/ui/view/basecommentview.js +1 -1
  136. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  137. package/src/comments/ui/view/commentcontentview.js +1 -1
  138. package/src/comments/ui/view/commentinputview.js +1 -1
  139. package/src/comments/ui/view/commentslistview.js +1 -1
  140. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  141. package/src/comments/ui/view/commentthreadview.js +1 -1
  142. package/src/comments/ui/view/commentview.js +1 -1
  143. package/src/comments.js +1 -1
  144. package/src/commentsonly.js +1 -1
  145. package/src/utils/common-translations.js +1 -1
  146. package/src/utils/createmutationobserver.js +1 -1
  147. package/theme/comment.css +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x67c8=['_targetTop','list','max','_annotationToSidebarItemView','top','locale','class','minHeight','get','rearrange','config','updateHeight','sidebar.preventScrollOutOfView','_detachFromContainer','_getItemAfter','stopListening','_alignForBottomChange','change:top','set','change:_lastItem','_lastItem','_alignToTargetRect','_activeAnnotation','element','isAnimationDisabled','sidebar.container','_destroySidebarItemView','init','height','_alignAfterItem','pluginName','bind','last','_updateLastItem','_getItemBefore','remove','bottom','_getMaxAvailableTop','_createSidebarView','context','target','container','addAnnotation','clear','view','_sidebarItemViewToAnnotation','sidebar-setcontainer-invalid-element','push','_alignBeforeItem','isActive','targetRect','_alignForTopChange','getIndex','Sidebar','_setItemTop','listenTo','_recalculate','getSidebarItemView','length','_recalculateBuffer','refresh','_getTargetTop','change:targetRect','_spaceBetweenItems','content','_annotations','sidebar-attachtocontainer-missing-container','delete','destroy','define'];(function(_0xc88983,_0x67c8ee){const _0x1fdb7f=function(_0x223427){while(--_0x223427){_0xc88983['push'](_0xc88983['shift']());}};_0x1fdb7f(++_0x67c8ee);}(_0x67c8,0x98));const _0x1fdb=function(_0xc88983,_0x67c8ee){_0xc88983=_0xc88983-0x0;let _0x1fdb7f=_0x67c8[_0xc88983];return _0x1fdb7f;};import{ContextPlugin as _0x14ac9c}from'ckeditor5/src/core';import _0x1f8007 from'./view/sidebarview';import _0x45ed9c from'./view/sidebaritemview';import{Rect as _0x32c599,CKEditorError as _0x2da2a2}from'ckeditor5/src/utils';export default class b extends _0x14ac9c{static get[_0x1fdb('0x12')](){return _0x1fdb('0x29');}constructor(_0x32ef9b){super(_0x32ef9b),this['set'](_0x1fdb('0x8')),this[_0x1fdb('0x20')]=this[_0x1fdb('0x1a')](),this['set'](_0x1fdb('0x1d'),null),this[_0x1fdb('0x33')]=0x19,this[_0x1fdb('0x21')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x1fdb('0x1b')][_0x1fdb('0x44')][_0x1fdb('0x39')]('sidebar.preventScrollOutOfView',!0x1),this[_0x1fdb('0x35')]=null,this[_0x1fdb('0xa')]=null,this[_0x1fdb('0x2f')]=[];}[_0x1fdb('0xf')](){const _0x59751b=this[_0x1fdb('0x1b')][_0x1fdb('0x44')][_0x1fdb('0x42')](_0x1fdb('0xd'));_0x59751b&&this['setContainer'](_0x59751b);}['setContainer'](_0x51e188){if(!p(_0x51e188))throw new _0x2da2a2(_0x1fdb('0x22'));this['container']=_0x51e188;}['_attachToContainer']({viewClass:_0x500dd3='',spaceBetweenItems:_0x2b3a42=0x19}={}){if(!p(this['container']))throw new _0x2da2a2(_0x1fdb('0x36'),this);this[_0x1fdb('0x1d')]['appendChild'](this['view'][_0x1fdb('0xb')]),this[_0x1fdb('0x20')][_0x1fdb('0x40')]=_0x500dd3,this[_0x1fdb('0x33')]=_0x2b3a42;}[_0x1fdb('0x43')]({removedAnnotation:_0x489f60,previousAnnotation:_0x5cad31,nextAnnotation:_0x1196ef}){const _0x5ad1d4=this['getSidebarItemView'](_0x489f60);this[_0x1fdb('0x20')][_0x1fdb('0x3b')][_0x1fdb('0x17')](_0x5ad1d4),this[_0x1fdb('0xe')](_0x489f60),_0x5cad31&&this[_0x1fdb('0x9')](this[_0x1fdb('0x2d')](_0x5cad31)),_0x1196ef&&this[_0x1fdb('0x9')](this[_0x1fdb('0x2d')](_0x1196ef)),this['_updateLastItem']();}[_0x1fdb('0x30')]({blurredAnnotation:_0x1e18c0,activatedAnnotation:_0x5c4749,disableAnimationOnActivatedAnnotation:_0x49ce93}){if(this[_0x1fdb('0xa')]=_0x5c4749,_0x1e18c0){_0x1e18c0['isActive']=!0x1;const _0x5d7d61=this[_0x1fdb('0x2d')](_0x1e18c0);_0x5d7d61&&_0x49ce93&&(_0x5d7d61[_0x1fdb('0xc')]=!0x1);}if(_0x5c4749){const _0x2219b7=this[_0x1fdb('0x2d')](_0x5c4749);_0x2219b7&&(_0x5c4749[_0x1fdb('0x25')]=!0x0,_0x49ce93&&(_0x2219b7[_0x1fdb('0xc')]=!0x0,_0x2219b7[_0x1fdb('0x3e')]+=0x1),this[_0x1fdb('0x9')](_0x2219b7));}}[_0x1fdb('0x1')](_0x4a3bb2){this['stopListening'](),this[_0x1fdb('0x20')]['element']['remove']();for(const _0x330074 of _0x4a3bb2)this[_0x1fdb('0xe')](_0x330074);this[_0x1fdb('0x20')][_0x1fdb('0x3b')][_0x1fdb('0x1f')](),this[_0x1fdb('0x20')][_0x1fdb('0x40')]='',this['_lastItem']=null;}[_0x1fdb('0x1e')](_0x2382a1,_0x2869a8){_0x2869a8||(_0x2869a8=_0x2382a1[_0x1fdb('0x20')]);const _0x12c7df=new _0x45ed9c(this['context'][_0x1fdb('0x3f')]);this[_0x1fdb('0x21')][_0x1fdb('0x6')](_0x12c7df,_0x2382a1),this[_0x1fdb('0x3d')][_0x1fdb('0x6')](_0x2382a1,_0x12c7df),_0x12c7df['content']['add'](_0x2869a8),this[_0x1fdb('0x2b')](_0x2382a1[_0x1fdb('0x20')],_0x1fdb('0x32'),(_0x4d7025,_0x3ed14f,_0x3dff5b)=>{const _0x36ec7b=this[_0x1fdb('0x31')](_0x2382a1,_0x3dff5b);_0x12c7df[_0x1fdb('0x3a')]!=_0x36ec7b&&(_0x12c7df['_targetTop']=_0x36ec7b,this[_0x1fdb('0x2a')](_0x12c7df,_0x36ec7b));}),this[_0x1fdb('0x2b')](_0x12c7df,_0x1fdb('0x5'),()=>{this[_0x1fdb('0x2c')](_0x12c7df,_0x1fdb('0x3e'));}),this['listenTo'](_0x12c7df,'change:bottom',()=>{this[_0x1fdb('0x2c')](_0x12c7df,_0x1fdb('0x18'));}),this[_0x1fdb('0x9')](_0x12c7df);const _0x57b6be=this[_0x1fdb('0x16')](_0x12c7df);if(_0x57b6be)this[_0x1fdb('0x11')](_0x57b6be,_0x12c7df)||this[_0x1fdb('0x9')](_0x12c7df);else this[_0x1fdb('0x9')](_0x12c7df);return this[_0x1fdb('0x15')](),this['view'][_0x1fdb('0x3b')]['add'](_0x12c7df),_0x12c7df;}[_0x1fdb('0x27')](_0x30cfea){if(!_0x30cfea[_0x1fdb('0x34')][_0x1fdb('0x2e')])return;const _0x1a20eb=this[_0x1fdb('0x16')](_0x30cfea);if(!_0x1a20eb)return;const _0x52d651=this[_0x1fdb('0x21')]['get'](_0x1a20eb),_0x4a6559=this[_0x1fdb('0xa')];_0x4a6559&&_0x4a6559===_0x52d651?this[_0x1fdb('0x11')](_0x1a20eb,_0x30cfea):this['_alignBeforeItem'](_0x30cfea,_0x1a20eb);}[_0x1fdb('0x4')](_0x2549c0){if(!_0x2549c0[_0x1fdb('0x34')][_0x1fdb('0x2e')])return;const _0x5afca3=this[_0x1fdb('0x2')](_0x2549c0);if(!_0x5afca3)return;const _0x92980a=this['_sidebarItemViewToAnnotation'][_0x1fdb('0x42')](_0x5afca3),_0x515bbe=this[_0x1fdb('0x1b')][_0x1fdb('0x44')][_0x1fdb('0x42')]('sidebar.preventScrollOutOfView'),_0xab277=this[_0x1fdb('0xa')];_0xab277&&_0xab277===_0x92980a&&_0x515bbe?(this[_0x1fdb('0x24')](_0x5afca3,_0x2549c0),this[_0x1fdb('0x11')](_0x2549c0,_0x5afca3)):_0xab277&&_0xab277===_0x92980a?this['_alignBeforeItem'](_0x5afca3,_0x2549c0):this[_0x1fdb('0x11')](_0x2549c0,_0x5afca3);}['_recalculate'](_0x7c7691,_0xd7dc73){0x0===this[_0x1fdb('0x2f')][_0x1fdb('0x2e')]&&setTimeout(()=>{for(const {sidebarItemView:_0xb2b2f3,changedProp:_0x1898eb}of this[_0x1fdb('0x2f')])_0x1fdb('0x3e')===_0x1898eb?this['_alignForTopChange'](_0xb2b2f3):this[_0x1fdb('0x4')](_0xb2b2f3);this[_0x1fdb('0x2f')]=[];},0xa),this['_recalculateBuffer'][_0x1fdb('0x23')]({'sidebarItemView':_0x7c7691,'changedProp':_0xd7dc73});}['getSidebarItemView'](_0x78c40){return this[_0x1fdb('0x3d')][_0x1fdb('0x42')](_0x78c40);}['destroy'](){this[_0x1fdb('0x20')]['destroy']();}[_0x1fdb('0xe')](_0x428426){const _0x2e3c89=this['getSidebarItemView'](_0x428426);this[_0x1fdb('0x3')](_0x2e3c89),this[_0x1fdb('0x3')](_0x428426['view']),_0x2e3c89[_0x1fdb('0x38')](),this[_0x1fdb('0x3d')][_0x1fdb('0x37')](_0x428426),this['_sidebarItemViewToAnnotation']['delete'](_0x2e3c89);}[_0x1fdb('0x1a')](){const _0x3b9883=new _0x1f8007(this[_0x1fdb('0x1b')][_0x1fdb('0x3f')]);return _0x3b9883['render'](),this['on'](_0x1fdb('0x7'),(_0x5d3adf,_0x3e561d,_0x5bfc2d,_0x30d65e)=>{_0x30d65e&&_0x3b9883['unbind'](_0x1fdb('0x41')),_0x5bfc2d?_0x3b9883[_0x1fdb('0x13')](_0x1fdb('0x41'))['to'](_0x5bfc2d,_0x1fdb('0x18')):_0x3b9883[_0x1fdb('0x41')]=null;}),_0x3b9883;}[_0x1fdb('0x15')](){this[_0x1fdb('0x8')]=this[_0x1fdb('0x2d')](this[_0x1fdb('0x35')][_0x1fdb('0x14')]);}[_0x1fdb('0x16')](_0x27b0a8){const _0x2e1b6e=this[_0x1fdb('0x21')][_0x1fdb('0x42')](_0x27b0a8),_0x3b6e95=this[_0x1fdb('0x35')][_0x1fdb('0x42')](this['_annotations'][_0x1fdb('0x28')](_0x2e1b6e)-0x1);return _0x3b6e95&&this[_0x1fdb('0x2d')](_0x3b6e95);}[_0x1fdb('0x2')](_0x24ec3f){const _0x43ae06=this[_0x1fdb('0x21')][_0x1fdb('0x42')](_0x24ec3f),_0x34cc38=this['_annotations'][_0x1fdb('0x42')](this['_annotations'][_0x1fdb('0x28')](_0x43ae06)+0x1);return _0x34cc38&&this[_0x1fdb('0x2d')](_0x34cc38);}[_0x1fdb('0x24')](_0x4debe6,_0x29261a){_0x4debe6[_0x1fdb('0x45')]();const _0x2ab127=C(_0x29261a[_0x1fdb('0x18')]+this[_0x1fdb('0x33')],_0x4debe6[_0x1fdb('0x3e')]);return!!_0x2ab127&&(this[_0x1fdb('0x2a')](_0x29261a,_0x29261a['top']-_0x2ab127),!0x0);}[_0x1fdb('0x11')](_0x40e18e,_0x4d7569){_0x40e18e[_0x1fdb('0x45')]();const _0x367aad=C(_0x40e18e[_0x1fdb('0x18')]+this[_0x1fdb('0x33')],_0x4d7569[_0x1fdb('0x3e')]);return!!_0x367aad&&(this['_setItemTop'](_0x4d7569,_0x4d7569['top']+_0x367aad,!0x1),!0x0);}[_0x1fdb('0x9')](_0xa93c39){const _0x202692=this[_0x1fdb('0x21')][_0x1fdb('0x42')](_0xa93c39);if(!_0x202692||!_0x202692['target'])return;const _0x12ce37=this[_0x1fdb('0x31')](_0x202692,_0x202692[_0x1fdb('0x26')]);this[_0x1fdb('0x2a')](_0xa93c39,_0x12ce37);}['_getTargetTop'](_0x223105,_0x3bd144){if(null===_0x3bd144)return 0x0;if(_0x223105[_0x1fdb('0x1c')]instanceof _0x32c599)return _0x3bd144['top'];{const _0x342966=new _0x32c599(this[_0x1fdb('0x20')][_0x1fdb('0xb')])['top'];return _0x3bd144['top']-_0x342966;}}['_setItemTop'](_0x2f9e07,_0x155913,_0x1a283b=this[_0x1fdb('0x1b')][_0x1fdb('0x44')][_0x1fdb('0x42')](_0x1fdb('0x0'))){_0x1a283b&&(_0x155913=Math['max'](_0x155913,this[_0x1fdb('0x19')](_0x2f9e07))),_0x2f9e07['top']=_0x155913;}[_0x1fdb('0x19')](_0x4a9945){let _0x1d1f65=this[_0x1fdb('0x16')](_0x4a9945),_0x218c0b=0x0;for(;_0x1d1f65;)_0x1d1f65[_0x1fdb('0x45')](),_0x218c0b+=this['_spaceBetweenItems']+_0x1d1f65[_0x1fdb('0x10')],_0x1d1f65=this[_0x1fdb('0x16')](_0x1d1f65);return _0x218c0b;}}function C(_0x475001,_0x31597a){return Math[_0x1fdb('0x3c')](_0x475001-_0x31597a,0x0);}function p(_0x57f247){return null!==_0x57f247&&'object'==typeof _0x57f247&&0x1===_0x57f247['nodeType'];}
23
+ const _0x1f87=['view','list','change:_lastItem','_getMaxAvailableTop','remove','appendChild','element','bottom','rearrange','sidebar.container','change:top','define','context','unbind','add','nodeType','getSidebarItemView','height','listenTo','refresh','init','stopListening','_setItemTop','_updateLastItem','set','_getTargetTop','target','change:targetRect','_attachToContainer','locale','_annotationToSidebarItemView','getIndex','_createSidebarView','minHeight','sidebar-attachtocontainer-missing-container','get','updateHeight','isAnimationDisabled','_alignForTopChange','max','isActive','sidebar.preventScrollOutOfView','container','_detachFromContainer','config','top','render','clear','_annotations','_alignAfterItem','_lastItem','class','_recalculateBuffer','_alignToTargetRect','_activeAnnotation','destroy','_sidebarItemViewToAnnotation','_alignForBottomChange','_alignBeforeItem','change:bottom','_getItemBefore','_targetTop','delete','_destroySidebarItemView','_getItemAfter','length','_recalculate','targetRect','_spaceBetweenItems','content','sidebar-setcontainer-invalid-element'];(function(_0x2583c1,_0x1f8741){const _0x2a6bb1=function(_0x215155){while(--_0x215155){_0x2583c1['push'](_0x2583c1['shift']());}};_0x2a6bb1(++_0x1f8741);}(_0x1f87,0x101));const _0x2a6b=function(_0x2583c1,_0x1f8741){_0x2583c1=_0x2583c1-0x0;let _0x2a6bb1=_0x1f87[_0x2583c1];return _0x2a6bb1;};import{ContextPlugin as _0x781979}from'ckeditor5/src/core';import _0x376145 from'./view/sidebarview';import _0x13e760 from'./view/sidebaritemview';import{Rect as _0x4d0ac9,CKEditorError as _0x3e929b}from'ckeditor5/src/utils';export default class ht extends _0x781979{static get['pluginName'](){return'Sidebar';}constructor(_0x40afa3){super(_0x40afa3),this[_0x2a6b('0x33')](_0x2a6b('0x6')),this[_0x2a6b('0x1b')]=this[_0x2a6b('0x3b')](),this[_0x2a6b('0x33')](_0x2a6b('0x45'),null),this[_0x2a6b('0x18')]=0x19,this[_0x2a6b('0xc')]=new Map(),this[_0x2a6b('0x39')]=new Map(),this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x26')](_0x2a6b('0x44'),!0x1),this[_0x2a6b('0x4')]=null,this[_0x2a6b('0xa')]=null,this[_0x2a6b('0x8')]=[];}[_0x2a6b('0x2f')](){const _0x5e3e2f=this[_0x2a6b('0x27')]['config'][_0x2a6b('0x3e')](_0x2a6b('0x24'));_0x5e3e2f&&this['setContainer'](_0x5e3e2f);}['setContainer'](_0xfc96cd){if(!K(_0xfc96cd))throw new _0x3e929b(_0x2a6b('0x1a'));this[_0x2a6b('0x45')]=_0xfc96cd;}[_0x2a6b('0x37')]({viewClass:_0x54f4e7='',spaceBetweenItems:_0x2e9d03=0x19}={}){if(!K(this[_0x2a6b('0x45')]))throw new _0x3e929b(_0x2a6b('0x3d'),this);this['container'][_0x2a6b('0x20')](this['view'][_0x2a6b('0x21')]),this[_0x2a6b('0x1b')][_0x2a6b('0x7')]=_0x54f4e7,this[_0x2a6b('0x18')]=_0x2e9d03;}[_0x2a6b('0x23')]({removedAnnotation:_0x19fed6,previousAnnotation:_0x4bc3fe,nextAnnotation:_0x21f746}){const _0x1e6cca=this[_0x2a6b('0x2b')](_0x19fed6);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x1f')](_0x1e6cca),this['_destroySidebarItemView'](_0x19fed6),_0x4bc3fe&&this['_alignToTargetRect'](this[_0x2a6b('0x2b')](_0x4bc3fe)),_0x21f746&&this[_0x2a6b('0x9')](this[_0x2a6b('0x2b')](_0x21f746)),this[_0x2a6b('0x32')]();}[_0x2a6b('0x2e')]({blurredAnnotation:_0xab2de4,activatedAnnotation:_0x1508a8,disableAnimationOnActivatedAnnotation:_0x1a83dd}){if(this['_activeAnnotation']=_0x1508a8,_0xab2de4){_0xab2de4[_0x2a6b('0x43')]=!0x1;const _0x2fbe89=this[_0x2a6b('0x2b')](_0xab2de4);_0x2fbe89&&_0x1a83dd&&(_0x2fbe89[_0x2a6b('0x40')]=!0x1);}if(_0x1508a8){const _0x46e0f4=this['getSidebarItemView'](_0x1508a8);_0x46e0f4&&(_0x1508a8['isActive']=!0x0,_0x1a83dd&&(_0x46e0f4[_0x2a6b('0x40')]=!0x0,_0x46e0f4[_0x2a6b('0x1')]+=0x1),this[_0x2a6b('0x9')](_0x46e0f4));}}[_0x2a6b('0x46')](_0x2606df){this[_0x2a6b('0x30')](),this[_0x2a6b('0x1b')][_0x2a6b('0x21')][_0x2a6b('0x1f')]();for(const _0x49febe of _0x2606df)this[_0x2a6b('0x13')](_0x49febe);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x3')](),this['view'][_0x2a6b('0x7')]='',this[_0x2a6b('0x6')]=null;}['addAnnotation'](_0x55f87f,_0x2f6792){_0x2f6792||(_0x2f6792=_0x55f87f['view']);const _0x21938c=new _0x13e760(this['context'][_0x2a6b('0x38')]);this[_0x2a6b('0xc')][_0x2a6b('0x33')](_0x21938c,_0x55f87f),this[_0x2a6b('0x39')][_0x2a6b('0x33')](_0x55f87f,_0x21938c),_0x21938c[_0x2a6b('0x19')][_0x2a6b('0x29')](_0x2f6792),this['listenTo'](_0x55f87f[_0x2a6b('0x1b')],_0x2a6b('0x36'),(_0x587483,_0x521fb9,_0x26f6e7)=>{const _0x5528b2=this[_0x2a6b('0x34')](_0x55f87f,_0x26f6e7);_0x21938c[_0x2a6b('0x11')]!=_0x5528b2&&(_0x21938c['_targetTop']=_0x5528b2,this['_setItemTop'](_0x21938c,_0x5528b2));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0x25'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x1'));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0xf'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x22'));}),this[_0x2a6b('0x9')](_0x21938c);const _0x431c49=this[_0x2a6b('0x10')](_0x21938c);if(_0x431c49)this[_0x2a6b('0x5')](_0x431c49,_0x21938c)||this[_0x2a6b('0x9')](_0x21938c);else this[_0x2a6b('0x9')](_0x21938c);return this[_0x2a6b('0x32')](),this[_0x2a6b('0x1b')]['list'][_0x2a6b('0x29')](_0x21938c),_0x21938c;}[_0x2a6b('0x41')](_0x47c2dd){if(!_0x47c2dd[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x25e910=this[_0x2a6b('0x10')](_0x47c2dd);if(!_0x25e910)return;const _0x476264=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x25e910),_0x27d73e=this[_0x2a6b('0xa')];_0x27d73e&&_0x27d73e===_0x476264?this[_0x2a6b('0x5')](_0x25e910,_0x47c2dd):this['_alignBeforeItem'](_0x47c2dd,_0x25e910);}[_0x2a6b('0xd')](_0x1cd042){if(!_0x1cd042[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x4b75b3=this[_0x2a6b('0x14')](_0x1cd042);if(!_0x4b75b3)return;const _0x3575ef=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x4b75b3),_0x43e703=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44')),_0x139470=this[_0x2a6b('0xa')];_0x139470&&_0x139470===_0x3575ef&&_0x43e703?(this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042),this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3)):_0x139470&&_0x139470===_0x3575ef?this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042):this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3);}[_0x2a6b('0x16')](_0x40ab47,_0xcaf369){0x0===this[_0x2a6b('0x8')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x670cea,changedProp:_0x1c7779}of this['_recalculateBuffer'])_0x2a6b('0x1')===_0x1c7779?this['_alignForTopChange'](_0x670cea):this['_alignForBottomChange'](_0x670cea);this[_0x2a6b('0x8')]=[];},0xa),this[_0x2a6b('0x8')]['push']({'sidebarItemView':_0x40ab47,'changedProp':_0xcaf369});}[_0x2a6b('0x2b')](_0x22483b){return this[_0x2a6b('0x39')][_0x2a6b('0x3e')](_0x22483b);}[_0x2a6b('0xb')](){this[_0x2a6b('0x1b')][_0x2a6b('0xb')]();}['_destroySidebarItemView'](_0x5bc93d){const _0x441543=this[_0x2a6b('0x2b')](_0x5bc93d);this[_0x2a6b('0x30')](_0x441543),this[_0x2a6b('0x30')](_0x5bc93d[_0x2a6b('0x1b')]),_0x441543[_0x2a6b('0xb')](),this['_annotationToSidebarItemView'][_0x2a6b('0x12')](_0x5bc93d),this[_0x2a6b('0xc')]['delete'](_0x441543);}[_0x2a6b('0x3b')](){const _0x5fdecb=new _0x376145(this[_0x2a6b('0x27')][_0x2a6b('0x38')]);return _0x5fdecb[_0x2a6b('0x2')](),this['on'](_0x2a6b('0x1d'),(_0x3aa25e,_0x33eccc,_0x1a5800,_0x6c22d)=>{_0x6c22d&&_0x5fdecb[_0x2a6b('0x28')](_0x2a6b('0x3c')),_0x1a5800?_0x5fdecb['bind'](_0x2a6b('0x3c'))['to'](_0x1a5800,'bottom'):_0x5fdecb[_0x2a6b('0x3c')]=null;}),_0x5fdecb;}[_0x2a6b('0x32')](){this[_0x2a6b('0x6')]=this[_0x2a6b('0x2b')](this[_0x2a6b('0x4')]['last']);}[_0x2a6b('0x10')](_0x5ed0b2){const _0xbf5847=this[_0x2a6b('0xc')]['get'](_0x5ed0b2),_0x2ab208=this[_0x2a6b('0x4')][_0x2a6b('0x3e')](this[_0x2a6b('0x4')][_0x2a6b('0x3a')](_0xbf5847)-0x1);return _0x2ab208&&this['getSidebarItemView'](_0x2ab208);}[_0x2a6b('0x14')](_0x225f49){const _0x1d8916=this['_sidebarItemViewToAnnotation'][_0x2a6b('0x3e')](_0x225f49),_0x56c831=this[_0x2a6b('0x4')]['get'](this[_0x2a6b('0x4')]['getIndex'](_0x1d8916)+0x1);return _0x56c831&&this[_0x2a6b('0x2b')](_0x56c831);}[_0x2a6b('0xe')](_0x17770d,_0x3c613d){_0x17770d['updateHeight']();const _0x5ae568=ut(_0x3c613d[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x17770d[_0x2a6b('0x1')]);return!!_0x5ae568&&(this[_0x2a6b('0x31')](_0x3c613d,_0x3c613d[_0x2a6b('0x1')]-_0x5ae568),!0x0);}[_0x2a6b('0x5')](_0x397e3b,_0x5a2747){_0x397e3b['updateHeight']();const _0xe372b5=ut(_0x397e3b[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x5a2747['top']);return!!_0xe372b5&&(this['_setItemTop'](_0x5a2747,_0x5a2747[_0x2a6b('0x1')]+_0xe372b5,!0x1),!0x0);}[_0x2a6b('0x9')](_0x5a577e){const _0x5ed448=this[_0x2a6b('0xc')]['get'](_0x5a577e);if(!_0x5ed448||!_0x5ed448[_0x2a6b('0x35')])return;const _0x2566d0=this['_getTargetTop'](_0x5ed448,_0x5ed448[_0x2a6b('0x17')]);this[_0x2a6b('0x31')](_0x5a577e,_0x2566d0);}[_0x2a6b('0x34')](_0x4f8436,_0x4f4a77){if(null===_0x4f4a77)return 0x0;if(_0x4f8436['target']instanceof _0x4d0ac9)return _0x4f4a77['top'];{const _0x5adb22=new _0x4d0ac9(this['view'][_0x2a6b('0x21')])['top'];return _0x4f4a77[_0x2a6b('0x1')]-_0x5adb22;}}[_0x2a6b('0x31')](_0x11d77c,_0x28a375,_0x44f3f4=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44'))){_0x44f3f4&&(_0x28a375=Math['max'](_0x28a375,this[_0x2a6b('0x1e')](_0x11d77c))),_0x11d77c[_0x2a6b('0x1')]=_0x28a375;}[_0x2a6b('0x1e')](_0x2deb4e){let _0x162b83=this[_0x2a6b('0x10')](_0x2deb4e),_0x42ca7b=0x0;for(;_0x162b83;)_0x162b83[_0x2a6b('0x3f')](),_0x42ca7b+=this['_spaceBetweenItems']+_0x162b83[_0x2a6b('0x2c')],_0x162b83=this[_0x2a6b('0x10')](_0x162b83);return _0x42ca7b;}}function ut(_0x236b51,_0x26e0b6){return Math[_0x2a6b('0x42')](_0x236b51-_0x26e0b6,0x0);}function K(_0x29e14e){return null!==_0x29e14e&&'object'==typeof _0x29e14e&&0x1===_0x29e14e[_0x2a6b('0x2a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ed8=['isDirty','set','bind','ck-annotation-counter__badge--edit-mode','counterView','ck-annotation-counter__badge','bindTemplate','icon','extendTemplate','span','ck-annotation-counter__badge--','number','_badge','annotationType','add','children'];(function(_0x1c87e1,_0x5ed881){const _0x304e3b=function(_0x3ef11f){while(--_0x3ef11f){_0x1c87e1['push'](_0x1c87e1['shift']());}};_0x304e3b(++_0x5ed881);}(_0x5ed8,0xdb));const _0x304e=function(_0x1c87e1,_0x5ed881){_0x1c87e1=_0x1c87e1-0x0;let _0x304e3b=_0x5ed8[_0x1c87e1];return _0x304e3b;};import{ButtonView as _0x4f23b1,View as _0x4f182c}from'ckeditor5/src/ui';import _0x28b3c8 from'../../../theme/icons/add-comment.svg';export default class B extends _0x4f23b1{constructor(_0x36811e){super(_0x36811e);const _0x57c9cf=this[_0x304e('0xb')];this[_0x304e('0x6')](_0x304e('0x5'),!0x1),this[_0x304e('0x6')](_0x304e('0x0'),0x0),this[_0x304e('0x7')](_0x304e('0x1'))['to'](this,_0x304e('0x5'),this,_0x304e('0x0'),(_0x3486ac,_0x5eb5e5)=>_0x3486ac?'...':_0x5eb5e5),this[_0x304e('0x6')]('annotationType',''),this[_0x304e('0xc')]=_0x28b3c8,this[_0x304e('0xd')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x304e('0x9')]=new _0x4f182c(),this[_0x304e('0x9')]['setTemplate']({'tag':_0x304e('0xe'),'attributes':{'class':[_0x304e('0xa'),_0x57c9cf['to'](_0x304e('0x2'),_0x2fdfcf=>_0x304e('0xf')+_0x2fdfcf),_0x57c9cf['if'](_0x304e('0x5'),_0x304e('0x8'))]},'children':[{'text':_0x57c9cf['to'](_0x304e('0x1'))}]}),this[_0x304e('0x4')][_0x304e('0x3')](this[_0x304e('0x9')]);}}
23
+ const _0x44da=['counterView','setTemplate','ck-annotation-counter','ck-annotation-counter__badge','bindTemplate','set','isDirty','add','span','annotationType','...','bind','number','_badge','icon'];(function(_0x26f07f,_0x44dadc){const _0x346cca=function(_0x3b5cb7){while(--_0x3b5cb7){_0x26f07f['push'](_0x26f07f['shift']());}};_0x346cca(++_0x44dadc);}(_0x44da,0x107));const _0x346c=function(_0x26f07f,_0x44dadc){_0x26f07f=_0x26f07f-0x0;let _0x346cca=_0x44da[_0x26f07f];return _0x346cca;};import{ButtonView as _0x13f7da,View as _0x215b91}from'ckeditor5/src/ui';import _0x54fb55 from'../../../theme/icons/add-comment.svg';export default class nt extends _0x13f7da{constructor(_0x2c0a07){super(_0x2c0a07);const _0x2f70f7=this[_0x346c('0xb')];this[_0x346c('0xc')](_0x346c('0xd'),!0x1),this[_0x346c('0xc')](_0x346c('0x4'),0x0),this[_0x346c('0x3')](_0x346c('0x5'))['to'](this,_0x346c('0xd'),this,_0x346c('0x4'),(_0x538e6d,_0x1a8065)=>_0x538e6d?_0x346c('0x2'):_0x1a8065),this['set'](_0x346c('0x1'),''),this[_0x346c('0x6')]=_0x54fb55,this['extendTemplate']({'attributes':{'class':[_0x346c('0x9')]}}),this[_0x346c('0x7')]=new _0x215b91(),this[_0x346c('0x7')][_0x346c('0x8')]({'tag':_0x346c('0x0'),'attributes':{'class':[_0x346c('0xa'),_0x2f70f7['to'](_0x346c('0x1'),_0x3fe9cd=>'ck-annotation-counter__badge--'+_0x3fe9cd),_0x2f70f7['if'](_0x346c('0xd'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2f70f7['to'](_0x346c('0x5'))}]}),this['children'][_0x346c('0xe')](this[_0x346c('0x7')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x422a=['bindTemplate','focus','mainView','targetRect','div','setTemplate','fire','_updateHeight','focusTracker','element','detach','content','_mutationObserver','ck-annotation-wrapper','height','clear','isDirty','length','clientHeight','listenTo','add','keystrokes','set','Esc','isActive','ck-annotation-wrapper--active','type','destroy','render'];(function(_0x502726,_0x422ab8){const _0x4df9a0=function(_0x3942ff){while(--_0x3942ff){_0x502726['push'](_0x502726['shift']());}};_0x4df9a0(++_0x422ab8);}(_0x422a,0x1b5));const _0x4df9=function(_0x502726,_0x422ab8){_0x502726=_0x502726-0x0;let _0x4df9a0=_0x422a[_0x502726];return _0x4df9a0;};import{View as _0x1ea540}from'ckeditor5/src/ui';import{FocusTracker as _0x41789c,KeystrokeHandler as _0x24de1c,uid as _0x244c6e}from'ckeditor5/src/utils';import _0x2416e0 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x1ea540{constructor(_0x19a3ab,_0x43c77a){super(_0x19a3ab),this['id']=_0x244c6e(),this['focusTracker']=new _0x41789c(),this[_0x4df9('0x13')]=new _0x24de1c(),this[_0x4df9('0x13')][_0x4df9('0x14')](_0x4df9('0x15'),(_0x1a5501,_0x1fb0a1)=>this[_0x4df9('0x4')](_0x4df9('0x15'),_0x1fb0a1)),this['set'](_0x4df9('0x1'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x4df9('0x14')](_0x4df9('0xc'),0x0),this[_0x4df9('0x14')](_0x4df9('0x16'),!0x1),this[_0x4df9('0x14')](_0x4df9('0xe'),!0x1),this[_0x4df9('0x14')](_0x4df9('0xf'),0x0),this[_0x4df9('0x14')](_0x4df9('0x18'),''),this[_0x4df9('0xa')]=_0x2416e0(()=>this['_updateHeight']()),this[_0x4df9('0x9')]=this['createCollection'](),this['content'][_0x4df9('0x12')](_0x43c77a),this[_0x4df9('0x0')]=_0x43c77a;const _0x5bfb6d=this[_0x4df9('0x1b')];this[_0x4df9('0x3')]({'tag':_0x4df9('0x2'),'attributes':{'class':['ck',_0x4df9('0xb'),'ck-rounded-corners',_0x5bfb6d['if'](_0x4df9('0x16'),_0x4df9('0x17'))],'tabindex':-0x1},'children':this[_0x4df9('0x9')]});}[_0x4df9('0x1a')](){super['render'](),this['focusTracker']['add'](this['element']),this[_0x4df9('0x13')][_0x4df9('0x11')](this[_0x4df9('0x7')]),this['_mutationObserver']['attach'](this[_0x4df9('0x7')]);}[_0x4df9('0x19')](){this[_0x4df9('0x9')][_0x4df9('0xd')](),this[_0x4df9('0x13')][_0x4df9('0x19')](),this[_0x4df9('0x6')][_0x4df9('0x19')](),this[_0x4df9('0xa')][_0x4df9('0x8')](),super['destroy']();}[_0x4df9('0x1c')](){this[_0x4df9('0x7')]['focus']();}[_0x4df9('0x5')](){const _0x4b3700=this[_0x4df9('0x7')][_0x4df9('0x10')];_0x4b3700&&(this['height']=_0x4b3700);}}
23
+ const _0x5218=['isActive','listenTo','bindTemplate','element','height','destroy','content','type','_mutationObserver','mainView','ck-annotation-wrapper--active','Esc','focusTracker','keystrokes','add','div','ck-annotation-wrapper','fire','render','ck-rounded-corners','setTemplate','isDirty','clientHeight','_updateHeight','set','createCollection','length'];(function(_0x2a4315,_0x52188b){const _0x3b6af2=function(_0x425044){while(--_0x425044){_0x2a4315['push'](_0x2a4315['shift']());}};_0x3b6af2(++_0x52188b);}(_0x5218,0x115));const _0x3b6a=function(_0x2a4315,_0x52188b){_0x2a4315=_0x2a4315-0x0;let _0x3b6af2=_0x5218[_0x2a4315];return _0x3b6af2;};import{View as _0x261d56}from'ckeditor5/src/ui';import{FocusTracker as _0x36b98d,KeystrokeHandler as _0x2140f4,uid as _0x2b7c4d}from'ckeditor5/src/utils';import _0x5e852d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class j extends _0x261d56{constructor(_0x2c0f65,_0x9d04ee){super(_0x2c0f65),this['id']=_0x2b7c4d(),this[_0x3b6a('0x5')]=new _0x36b98d(),this[_0x3b6a('0x6')]=new _0x2140f4(),this['keystrokes'][_0x3b6a('0x11')](_0x3b6a('0x4'),(_0x5b4c46,_0x227b4b)=>this[_0x3b6a('0xa')](_0x3b6a('0x4'),_0x227b4b)),this[_0x3b6a('0x11')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3b6a('0x11')](_0x3b6a('0x18'),0x0),this[_0x3b6a('0x11')](_0x3b6a('0x14'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0xe'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0x13'),0x0),this['set'](_0x3b6a('0x0'),''),this[_0x3b6a('0x1')]=_0x5e852d(()=>this[_0x3b6a('0x10')]()),this[_0x3b6a('0x1a')]=this[_0x3b6a('0x12')](),this[_0x3b6a('0x1a')][_0x3b6a('0x7')](_0x9d04ee),this[_0x3b6a('0x2')]=_0x9d04ee;const _0x5f20d5=this[_0x3b6a('0x16')];this[_0x3b6a('0xd')]({'tag':_0x3b6a('0x8'),'attributes':{'class':['ck',_0x3b6a('0x9'),_0x3b6a('0xc'),_0x5f20d5['if'](_0x3b6a('0x14'),_0x3b6a('0x3'))],'tabindex':-0x1},'children':this['content']});}[_0x3b6a('0xb')](){super['render'](),this[_0x3b6a('0x5')][_0x3b6a('0x7')](this['element']),this['keystrokes'][_0x3b6a('0x15')](this['element']),this[_0x3b6a('0x1')]['attach'](this[_0x3b6a('0x17')]);}['destroy'](){this[_0x3b6a('0x1a')]['clear'](),this['keystrokes']['destroy'](),this['focusTracker'][_0x3b6a('0x19')](),this[_0x3b6a('0x1')]['detach'](),super[_0x3b6a('0x19')]();}['focus'](){this['element']['focus']();}[_0x3b6a('0x10')](){const _0x3f0071=this['element'][_0x3b6a('0xf')];_0x3f0071&&(this[_0x3b6a('0x18')]=_0x3f0071);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2edf=['content','ck-sidebar-item--no-animation','bind','element','destroy','createCollection','detach','height','div','clientHeight','ck-sidebar-item','clear','set','isAnimationDisabled','top','updateHeight','bottom','attach','render','_mutationObserver','bindTemplate'];(function(_0x41b556,_0x2edfd7){const _0x335440=function(_0x54bd00){while(--_0x54bd00){_0x41b556['push'](_0x41b556['shift']());}};_0x335440(++_0x2edfd7);}(_0x2edf,0x178));const _0x3354=function(_0x41b556,_0x2edfd7){_0x41b556=_0x41b556-0x0;let _0x335440=_0x2edf[_0x41b556];return _0x335440;};import{View as _0x47f8b6}from'ckeditor5/src/ui';import{toUnit as _0x43d692}from'ckeditor5/src/utils';import _0x571f17 from'../../utils/createmutationobserver';const gt=_0x43d692('px');export default class O extends _0x47f8b6{constructor(_0x49453c){super(_0x49453c),this['set'](_0x3354('0x10')),this[_0x3354('0xe')](_0x3354('0x9'),0x0),this[_0x3354('0x4')](_0x3354('0x12'))['to'](this,_0x3354('0x10'),this,_0x3354('0x9'),(_0x332d04,_0x4efafb)=>(_0x332d04||0x0)+_0x4efafb),this['set'](_0x3354('0xf'),!0x1),this[_0x3354('0x0')]=_0x571f17(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x3354('0x2')]=this[_0x3354('0x7')]();const _0x2f6458=this[_0x3354('0x1')];this['setTemplate']({'tag':_0x3354('0xa'),'attributes':{'class':[_0x3354('0xc'),_0x2f6458['to'](_0x3354('0xf'),_0x187c48=>_0x187c48?_0x3354('0x3'):'')],'style':{'top':_0x2f6458['to'](_0x3354('0x10'),gt)}},'children':this[_0x3354('0x2')]});}['render'](){super[_0x3354('0x14')](),this[_0x3354('0x0')][_0x3354('0x13')](this[_0x3354('0x5')]);}[_0x3354('0x11')](){const _0x4ffb30=this['element'][_0x3354('0xb')];_0x4ffb30&&(this[_0x3354('0x9')]=_0x4ffb30);}[_0x3354('0x6')](){this['content'][_0x3354('0xd')](),this['_mutationObserver'][_0x3354('0x8')](),super['destroy']();}}
23
+ const _0x5c22=['top','clientHeight','height','isAnimationDisabled','render','setTemplate','detach','ck-sidebar-item--no-animation','bindTemplate','bottom','content','_mutationObserver','createCollection','updateHeight','element','div','attach','bind','set','clear'];(function(_0x2c2855,_0x5c220d){const _0x2abe0f=function(_0x132e95){while(--_0x132e95){_0x2c2855['push'](_0x2c2855['shift']());}};_0x2abe0f(++_0x5c220d);}(_0x5c22,0x11d));const _0x2abe=function(_0x2c2855,_0x5c220d){_0x2c2855=_0x2c2855-0x0;let _0x2abe0f=_0x5c22[_0x2c2855];return _0x2abe0f;};import{View as _0x10cbbd}from'ckeditor5/src/ui';import{toUnit as _0x47b69b}from'ckeditor5/src/utils';import _0x2cb75e from'../../utils/createmutationobserver';const kt=_0x47b69b('px');export default class lt extends _0x10cbbd{constructor(_0x5e49be){super(_0x5e49be),this[_0x2abe('0xd')](_0x2abe('0xf')),this[_0x2abe('0xd')](_0x2abe('0x11'),0x0),this[_0x2abe('0xc')](_0x2abe('0x4'))['to'](this,_0x2abe('0xf'),this,_0x2abe('0x11'),(_0x19bc63,_0x373b5c)=>(_0x19bc63||0x0)+_0x373b5c),this[_0x2abe('0xd')](_0x2abe('0x12'),!0x1),this[_0x2abe('0x6')]=_0x2cb75e(()=>this[_0x2abe('0x8')]()),this['_targetTop']=null,this[_0x2abe('0x5')]=this[_0x2abe('0x7')]();const _0x22bb98=this[_0x2abe('0x3')];this[_0x2abe('0x0')]({'tag':_0x2abe('0xa'),'attributes':{'class':['ck-sidebar-item',_0x22bb98['to'](_0x2abe('0x12'),_0x286ed2=>_0x286ed2?_0x2abe('0x2'):'')],'style':{'top':_0x22bb98['to']('top',kt)}},'children':this[_0x2abe('0x5')]});}[_0x2abe('0x13')](){super[_0x2abe('0x13')](),this['_mutationObserver'][_0x2abe('0xb')](this['element']);}[_0x2abe('0x8')](){const _0x78b457=this[_0x2abe('0x9')][_0x2abe('0x10')];_0x78b457&&(this['height']=_0x78b457);}['destroy'](){this[_0x2abe('0x5')][_0x2abe('0xe')](),this[_0x2abe('0x6')][_0x2abe('0x1')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1032=['class','div','createCollection','minHeight','set','list','setTemplate','bindTemplate','ck-reset'];(function(_0x2ad0d4,_0x103207){const _0x3a19a3=function(_0x5c4ec9){while(--_0x5c4ec9){_0x2ad0d4['push'](_0x2ad0d4['shift']());}};_0x3a19a3(++_0x103207);}(_0x1032,0x118));const _0x3a19=function(_0x2ad0d4,_0x103207){_0x2ad0d4=_0x2ad0d4-0x0;let _0x3a19a3=_0x1032[_0x2ad0d4];return _0x3a19a3;};import{View as _0x1b9996}from'ckeditor5/src/ui';import{toUnit as _0x5c09ba}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x5c09ba('px');export default class T extends _0x1b9996{constructor(_0x5951ee){super(_0x5951ee);const _0x27d0b1=this[_0x3a19('0x6')];this[_0x3a19('0x3')](_0x3a19('0x2'),0x0),this[_0x3a19('0x3')](_0x3a19('0x8'),''),this[_0x3a19('0x4')]=this[_0x3a19('0x1')](),this[_0x3a19('0x5')]({'tag':_0x3a19('0x0'),'attributes':{'class':['ck','ck-sidebar',_0x3a19('0x7'),_0x27d0b1['to'](_0x3a19('0x8'))],'style':{'minHeight':_0x27d0b1['to'](_0x3a19('0x2'),_0x2650ed=>_0x2650ed?gt(_0x2650ed+0xa):null)}},'children':this[_0x3a19('0x4')]});}}
23
+ const _0x1bd9=['set','bindTemplate','setTemplate','class','ck-reset','minHeight','list'];(function(_0x592adc,_0x1bd95f){const _0xfad9f6=function(_0x7aa9fe){while(--_0x7aa9fe){_0x592adc['push'](_0x592adc['shift']());}};_0xfad9f6(++_0x1bd95f);}(_0x1bd9,0x1da));const _0xfad9=function(_0x592adc,_0x1bd95f){_0x592adc=_0x592adc-0x0;let _0xfad9f6=_0x1bd9[_0x592adc];return _0xfad9f6;};import{View as _0x58a63e}from'ckeditor5/src/ui';import{toUnit as _0x1e2780}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x1e2780('px');export default class ct extends _0x58a63e{constructor(_0x2156fc){super(_0x2156fc);const _0x27f4dd=this[_0xfad9('0x3')];this[_0xfad9('0x2')](_0xfad9('0x0'),0x0),this[_0xfad9('0x2')](_0xfad9('0x5'),''),this[_0xfad9('0x1')]=this['createCollection'](),this[_0xfad9('0x4')]({'tag':'div','attributes':{'class':['ck','ck-sidebar',_0xfad9('0x6'),_0x27f4dd['to'](_0xfad9('0x5'))],'style':{'minHeight':_0x27f4dd['to'](_0xfad9('0x0'),_0x5d5f0c=>_0x5d5f0c?kt(_0x5d5f0c+0xa):null)}},'children':this[_0xfad9('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ca3=['_annotations','cancel','stop','get','focus','_refreshPositioningDebounced','Sidebar','refresh','_destroyEditorAnnotationsIntegration','removeEventListener','isAttached','ready','attach','_integrateWithEditorAnnotations','from','wideSidebar','rearrange','addEventListener','high','_activeAnnotation','EditorAnnotations','plugins','updateTargetRect','context','container','activeAnnotation','add','blur','change:container','refreshPositioning','listenTo','stopListening','setActiveAnnotation','resize','hasDomSelection','uiUpdate','editors','widesidebar-attach-already-attached','widesidebar-detach-not-attached','register','_editorAnnotations','annotations','init','detach','remove'];(function(_0x2ad79c,_0x2ca35d){const _0x20c3e8=function(_0x338d3e){while(--_0x338d3e){_0x2ad79c['push'](_0x2ad79c['shift']());}};_0x20c3e8(++_0x2ca35d);}(_0x2ca3,0x118));const _0x20c3=function(_0x2ad79c,_0x2ca35d){_0x2ad79c=_0x2ad79c-0x0;let _0x20c3e8=_0x2ca3[_0x2ad79c];return _0x20c3e8;};import{ContextPlugin as _0x1f84de}from'ckeditor5/src/core';import _0x45bd45 from'./annotationsuis';import _0x395a69 from'./sidebar';import{CKEditorError as _0x5dd946,Collection as _0xf03de1}from'ckeditor5/src/utils';import{debounce as _0x2a429b}from'lodash-es';export default class i extends _0x1f84de{static get['requires'](){return[_0x395a69,_0x45bd45];}static get['pluginName'](){return'WideSidebar';}constructor(_0x2b9ff7){super(_0x2b9ff7),this['isAttached']=!0x1,this['set'](_0x20c3('0xf'),null),this[_0x20c3('0x1f')]=null,this['_editorAnnotations']=new _0xf03de1(),this['_refreshPositioningDebounced']=_0x2a429b(()=>{this[_0x20c3('0x1f')][_0x20c3('0x13')]();},0xfa,{'leading':!0x1});}[_0x20c3('0x20')](){const _0x1ebc32=this['context'][_0x20c3('0xb')][_0x20c3('0x26')](_0x45bd45),_0x422437=this['context']['plugins'][_0x20c3('0x26')](_0x395a69);_0x1ebc32[_0x20c3('0x1d')](_0x20c3('0x5'),this),_0x422437[_0x20c3('0xe')]&&_0x1ebc32['switchTo'](_0x20c3('0x5'));}[_0x20c3('0x16')](_0x4ec336){if(_0x4ec336===this[_0x20c3('0xf')])return;const _0x1482bd=this[_0x20c3('0xd')]['plugins']['get'](_0x395a69);_0x1482bd[_0x20c3('0x9')]=_0x4ec336;const _0x436f3e=this[_0x20c3('0xf')];this[_0x20c3('0xf')]=_0x4ec336,_0x1482bd[_0x20c3('0x2a')]({'blurredAnnotation':_0x436f3e,'activatedAnnotation':this[_0x20c3('0xf')]});}[_0x20c3('0x2')](_0x49b394){this[_0x20c3('0x1f')]=_0x49b394;const _0x5747f5=this[_0x20c3('0xd')][_0x20c3('0xb')][_0x20c3('0x26')](_0x20c3('0x29'));if(_0x5747f5[_0x20c3('0x23')]=_0x49b394,this[_0x20c3('0x0')])throw new _0x5dd946(_0x20c3('0x1b'),this);this['isAttached']=!0x0,this['listenTo'](_0x5747f5,'set:container',()=>{this[_0x20c3('0x21')](),this['listenTo'](_0x5747f5,_0x20c3('0x12'),_0x5d7049=>{_0x5d7049['off'](),this[_0x20c3('0x2')](_0x49b394);});}),_0x5747f5['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1a88e1=_0x424d95=>{_0x424d95[_0x20c3('0xc')](),_0x5747f5['addAnnotation'](_0x424d95);};for(const _0x1964b4 of _0x49b394)_0x1a88e1(_0x1964b4);this[_0x20c3('0x14')](_0x49b394,_0x20c3('0x10'),(_0x38dbae,_0x257e18)=>{_0x1a88e1(_0x257e18);}),this[_0x20c3('0x14')](_0x49b394,_0x20c3('0x22'),(_0x5980fb,_0x101f9e,_0x36a894)=>{_0x5747f5[_0x20c3('0x6')]({'removedAnnotation':_0x101f9e,'previousAnnotation':_0x49b394[_0x20c3('0x26')](_0x36a894-0x1),'nextAnnotation':_0x49b394[_0x20c3('0x26')](_0x36a894+0x1)}),_0x101f9e===this[_0x20c3('0xf')]&&this[_0x20c3('0x16')](null);},{'priority':_0x20c3('0x8')}),this[_0x20c3('0x14')](_0x49b394,_0x20c3('0x27'),(_0x4f4392,_0x200798)=>{this[_0x20c3('0x16')](_0x200798);}),this[_0x20c3('0x14')](_0x49b394,_0x20c3('0x11'),()=>{this[_0x20c3('0x16')](null);});const _0x239242=this[_0x20c3('0xd')][_0x20c3('0x1a')]?this[_0x20c3('0xd')]['editors']:new _0xf03de1([this['context']]);for(const _0xc0ede of _0x239242)this[_0x20c3('0x3')](_0xc0ede);this[_0x20c3('0x14')](_0x239242,'add',(_0x15a987,_0x3754d1)=>{this['listenTo'](_0x3754d1,_0x20c3('0x1'),()=>{this[_0x20c3('0x3')](_0x3754d1);});}),this['listenTo'](_0x239242,_0x20c3('0x22'),(_0x1d6ffb,_0x536358)=>{_0x536358[_0x20c3('0xb')]['has'](_0x20c3('0xa'))&&this[_0x20c3('0x2b')](_0x536358[_0x20c3('0xb')]['get'](_0x20c3('0xa')));}),window[_0x20c3('0x7')](_0x20c3('0x17'),this[_0x20c3('0x28')]),this[_0x20c3('0x1f')][_0x20c3('0x13')]();}['detach'](){if(!this[_0x20c3('0x0')])throw new _0x5dd946(_0x20c3('0x1c'),this);this[_0x20c3('0x16')](null);const _0x44aa0b=this[_0x20c3('0xd')][_0x20c3('0xb')][_0x20c3('0x26')](_0x395a69);_0x44aa0b['_detachFromContainer'](this['annotations']),this['stopListening'](_0x44aa0b),this[_0x20c3('0x15')](this['annotations']),this[_0x20c3('0x15')](this[_0x20c3('0xd')][_0x20c3('0x1a')]);for(const _0x1e8985 of Array[_0x20c3('0x4')](this[_0x20c3('0x1e')]))this[_0x20c3('0x2b')](_0x1e8985);window[_0x20c3('0x2c')](_0x20c3('0x17'),this[_0x20c3('0x28')]),this['_refreshPositioningDebounced'][_0x20c3('0x24')](),this['activeAnnotation']=null,this[_0x20c3('0x0')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x20c3('0x0')]&&this[_0x20c3('0x21')]();}[_0x20c3('0x3')](_0x562584){const _0x5513b0=_0x562584[_0x20c3('0xb')][_0x20c3('0x26')]('EditorAnnotations');if(!_0x5513b0)return;const _0x52bbb2=()=>{const _0x1d7763=_0x5513b0['getOrderedSelectedAnnotations']({'annotations':this[_0x20c3('0x1f')],'activeAnnotation':this['activeAnnotation']});this[_0x20c3('0x16')](_0x1d7763[0x0]||null);};this[_0x20c3('0x14')](_0x5513b0,_0x20c3('0x2a'),_0x52bbb2),this[_0x20c3('0x14')](_0x5513b0,_0x20c3('0x11'),(_0x566d40,{isAnnotationTracked:_0xfab3d6})=>{this[_0x20c3('0xf')]&&_0xfab3d6(this[_0x20c3('0xf')])&&this[_0x20c3('0x16')](null);}),this[_0x20c3('0x14')](_0x5513b0,_0x20c3('0x19'),()=>{this[_0x20c3('0x28')]();}),this[_0x20c3('0x14')](this[_0x20c3('0x1f')],'blur',_0x23a35d=>{_0x5513b0[_0x20c3('0x18')]()&&(_0x52bbb2(),_0x23a35d[_0x20c3('0x25')]());},{'priority':_0x20c3('0x8')}),this[_0x20c3('0x1e')][_0x20c3('0x10')](_0x5513b0);}[_0x20c3('0x2b')](_0xac1ec9){_0xac1ec9&&(this[_0x20c3('0x15')](_0xac1ec9),this['_editorAnnotations']['remove'](_0xac1ec9));}}
23
+ const _0x2d3f=['stop','remove','editors','resize','destroy','container','_activeAnnotation','WideSidebar','off','Sidebar','_destroyEditorAnnotationsIntegration','attach','hasDomSelection','refresh','add','EditorAnnotations','listenTo','detach','annotations','stopListening','updateTargetRect','setActiveAnnotation','set','removeEventListener','context','widesidebar-detach-not-attached','pluginName','get','_refreshPositioningDebounced','addAnnotation','from','_attachToContainer','addEventListener','_annotations','uiUpdate','register','activeAnnotation','isAttached','has','high','requires','rearrange','_integrateWithEditorAnnotations','plugins','wideSidebar','blur','switchTo','set:container','_editorAnnotations','refreshPositioning','getOrderedSelectedAnnotations'];(function(_0x2edbf7,_0x2d3f47){const _0x2a7574=function(_0x394849){while(--_0x394849){_0x2edbf7['push'](_0x2edbf7['shift']());}};_0x2a7574(++_0x2d3f47);}(_0x2d3f,0x129));const _0x2a75=function(_0x2edbf7,_0x2d3f47){_0x2edbf7=_0x2edbf7-0x0;let _0x2a7574=_0x2d3f[_0x2edbf7];return _0x2a7574;};import{ContextPlugin as _0x192028}from'ckeditor5/src/core';import _0x44e0c1 from'./annotationsuis';import _0x1611cb from'./sidebar';import{CKEditorError as _0xe9539a,Collection as _0x377902}from'ckeditor5/src/utils';import{debounce as _0xde78cf}from'lodash-es';export default class i extends _0x192028{static get[_0x2a75('0x31')](){return[_0x1611cb,_0x44e0c1];}static get[_0x2a75('0x23')](){return _0x2a75('0x10');}constructor(_0x3faebd){super(_0x3faebd),this[_0x2a75('0x2e')]=!0x1,this[_0x2a75('0x1f')](_0x2a75('0x2d'),null),this[_0x2a75('0x1b')]=null,this[_0x2a75('0x6')]=new _0x377902(),this['_refreshPositioningDebounced']=_0xde78cf(()=>{this[_0x2a75('0x1b')][_0x2a75('0x7')]();},0xfa,{'leading':!0x1});}['init'](){const _0x5cc3b8=this[_0x2a75('0x21')]['plugins'][_0x2a75('0x24')](_0x44e0c1),_0x401003=this[_0x2a75('0x21')][_0x2a75('0x1')][_0x2a75('0x24')](_0x1611cb);_0x5cc3b8[_0x2a75('0x2c')]('wideSidebar',this),_0x401003[_0x2a75('0xe')]&&_0x5cc3b8[_0x2a75('0x4')](_0x2a75('0x2'));}[_0x2a75('0x1e')](_0x2943a0){if(_0x2943a0===this[_0x2a75('0x2d')])return;const _0x45ee91=this[_0x2a75('0x21')][_0x2a75('0x1')][_0x2a75('0x24')](_0x1611cb);_0x45ee91[_0x2a75('0xf')]=_0x2943a0;const _0x3da071=this[_0x2a75('0x2d')];this['activeAnnotation']=_0x2943a0,_0x45ee91[_0x2a75('0x16')]({'blurredAnnotation':_0x3da071,'activatedAnnotation':this['activeAnnotation']});}[_0x2a75('0x14')](_0x4ba9f1){this['annotations']=_0x4ba9f1;const _0x2f0bce=this['context']['plugins']['get'](_0x2a75('0x12'));if(_0x2f0bce[_0x2a75('0x2a')]=_0x4ba9f1,this[_0x2a75('0x2e')])throw new _0xe9539a('widesidebar-attach-already-attached',this);this[_0x2a75('0x2e')]=!0x0,this[_0x2a75('0x19')](_0x2f0bce,_0x2a75('0x5'),()=>{this[_0x2a75('0x1a')](),this['listenTo'](_0x2f0bce,'change:container',_0x22bc35=>{_0x22bc35[_0x2a75('0x11')](),this[_0x2a75('0x14')](_0x4ba9f1);});}),_0x2f0bce[_0x2a75('0x28')]({'viewClass':'ck-sidebar--wide'});const _0x467f32=_0x2ed4e9=>{_0x2ed4e9[_0x2a75('0x1d')](),_0x2f0bce[_0x2a75('0x26')](_0x2ed4e9);};for(const _0x21339e of _0x4ba9f1)_0x467f32(_0x21339e);this['listenTo'](_0x4ba9f1,'add',(_0xddb246,_0x1998e2)=>{_0x467f32(_0x1998e2);}),this['listenTo'](_0x4ba9f1,_0x2a75('0xa'),(_0x367c8f,_0x2a9800,_0x2ebdc9)=>{_0x2f0bce[_0x2a75('0x32')]({'removedAnnotation':_0x2a9800,'previousAnnotation':_0x4ba9f1[_0x2a75('0x24')](_0x2ebdc9-0x1),'nextAnnotation':_0x4ba9f1[_0x2a75('0x24')](_0x2ebdc9+0x1)}),_0x2a9800===this[_0x2a75('0x2d')]&&this[_0x2a75('0x1e')](null);},{'priority':_0x2a75('0x30')}),this[_0x2a75('0x19')](_0x4ba9f1,'focus',(_0x288ad5,_0x5a7f16)=>{this[_0x2a75('0x1e')](_0x5a7f16);}),this[_0x2a75('0x19')](_0x4ba9f1,_0x2a75('0x3'),()=>{this[_0x2a75('0x1e')](null);});const _0x1d762f=this[_0x2a75('0x21')]['editors']?this[_0x2a75('0x21')][_0x2a75('0xb')]:new _0x377902([this[_0x2a75('0x21')]]);for(const _0x470990 of _0x1d762f)this['_integrateWithEditorAnnotations'](_0x470990);this[_0x2a75('0x19')](_0x1d762f,_0x2a75('0x17'),(_0x301c7d,_0x521928)=>{this[_0x2a75('0x19')](_0x521928,'ready',()=>{this[_0x2a75('0x0')](_0x521928);});}),this[_0x2a75('0x19')](_0x1d762f,_0x2a75('0xa'),(_0xf74c1,_0x136942)=>{_0x136942[_0x2a75('0x1')][_0x2a75('0x2f')]('EditorAnnotations')&&this[_0x2a75('0x13')](_0x136942['plugins'][_0x2a75('0x24')]('EditorAnnotations'));}),window[_0x2a75('0x29')](_0x2a75('0xc'),this[_0x2a75('0x25')]),this[_0x2a75('0x1b')][_0x2a75('0x7')]();}[_0x2a75('0x1a')](){if(!this[_0x2a75('0x2e')])throw new _0xe9539a(_0x2a75('0x22'),this);this['setActiveAnnotation'](null);const _0x8339ba=this[_0x2a75('0x21')][_0x2a75('0x1')]['get'](_0x1611cb);_0x8339ba['_detachFromContainer'](this['annotations']),this[_0x2a75('0x1c')](_0x8339ba),this[_0x2a75('0x1c')](this[_0x2a75('0x1b')]),this[_0x2a75('0x1c')](this[_0x2a75('0x21')][_0x2a75('0xb')]);for(const _0x3a9f6e of Array[_0x2a75('0x27')](this[_0x2a75('0x6')]))this[_0x2a75('0x13')](_0x3a9f6e);window[_0x2a75('0x20')]('resize',this[_0x2a75('0x25')]),this[_0x2a75('0x25')]['cancel'](),this[_0x2a75('0x2d')]=null,this[_0x2a75('0x2e')]=!0x1,this[_0x2a75('0x1b')]=null;}[_0x2a75('0xd')](){this[_0x2a75('0x2e')]&&this[_0x2a75('0x1a')]();}[_0x2a75('0x0')](_0x50bd22){const _0x2896c6=_0x50bd22['plugins'][_0x2a75('0x24')](_0x2a75('0x18'));if(!_0x2896c6)return;const _0x54cbd1=()=>{const _0x232660=_0x2896c6[_0x2a75('0x8')]({'annotations':this[_0x2a75('0x1b')],'activeAnnotation':this[_0x2a75('0x2d')]});this[_0x2a75('0x1e')](_0x232660[0x0]||null);};this['listenTo'](_0x2896c6,_0x2a75('0x16'),_0x54cbd1),this[_0x2a75('0x19')](_0x2896c6,'blur',(_0x51e1f0,{isAnnotationTracked:_0x395ba3})=>{this[_0x2a75('0x2d')]&&_0x395ba3(this[_0x2a75('0x2d')])&&this[_0x2a75('0x1e')](null);}),this['listenTo'](_0x2896c6,_0x2a75('0x2b'),()=>{this[_0x2a75('0x25')]();}),this[_0x2a75('0x19')](this[_0x2a75('0x1b')],_0x2a75('0x3'),_0x2cf898=>{_0x2896c6[_0x2a75('0x15')]()&&(_0x54cbd1(),_0x2cf898[_0x2a75('0x9')]());},{'priority':_0x2a75('0x30')}),this['_editorAnnotations'][_0x2a75('0x17')](_0x2896c6);}['_destroyEditorAnnotationsIntegration'](_0x5ecd8a){_0x5ecd8a&&(this[_0x2a75('0x1c')](_0x5ecd8a),this[_0x2a75('0x6')]['remove'](_0x5ecd8a));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bb0=['document','_itemIsContent','_hasContent','isEnabled','refresh','createRange','push','model','selection','_trimToContent','start','textProxy','comment:','isObject','editor','end','element','addMarker','getRanges','getLastMatchingPosition','change'];(function(_0x38d220,_0x5bb0ae){const _0x189a93=function(_0x54f2ed){while(--_0x54f2ed){_0x38d220['push'](_0x38d220['shift']());}};_0x189a93(++_0x5bb0ae);}(_0x5bb0,0x152));const _0x189a=function(_0x38d220,_0x5bb0ae){_0x38d220=_0x38d220-0x0;let _0x189a93=_0x5bb0[_0x38d220];return _0x189a93;};import{Command as _0x15a40a}from'ckeditor5/src/core';import{uid as _0x3a21aa}from'ckeditor5/src/utils';export default class j extends _0x15a40a{[_0x189a('0x2')](){const _0x34e02e=this['editor']['model'][_0x189a('0x13')][_0x189a('0x6')];for(const _0xe9602d of _0x34e02e[_0x189a('0x10')]())if(this['_hasContent'](_0xe9602d))return void(this[_0x189a('0x1')]=!0x0);this[_0x189a('0x1')]=!0x1;}['execute']({threadId:_0x42dd39=_0x3a21aa()}={}){const _0x3b5ac8=this[_0x189a('0xc')]['model'],_0x527630=[];for(const _0x7b0a57 of _0x3b5ac8[_0x189a('0x13')][_0x189a('0x6')][_0x189a('0x10')]())this['_hasContent'](_0x7b0a57)&&_0x527630[_0x189a('0x4')](this[_0x189a('0x7')](_0x7b0a57));_0x3b5ac8[_0x189a('0x12')](_0x1b3f6e=>{for(const _0x13440e of _0x527630){const _0x181358=_0x3a21aa()['substr'](0x1,0x5),_0x4b2f4d=_0x189a('0xa')+_0x42dd39+':'+_0x181358;_0x1b3f6e[_0x189a('0xf')](_0x4b2f4d,{'range':_0x13440e,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x189a('0x0')](_0x42700d){for(const _0x428a24 of _0x42700d['getItems']())if(this[_0x189a('0x14')](_0x428a24))return!0x0;return!0x1;}['_itemIsContent'](_0x1a9af1){return _0x1a9af1['is'](_0x189a('0x9'))||this[_0x189a('0xc')][_0x189a('0x5')]['schema'][_0x189a('0xb')](_0x1a9af1)&&!_0x1a9af1['is'](_0x189a('0xe'),'tableCell');}[_0x189a('0x7')](_0x12b699){const _0x357782=_0x1ee8e7=>!this[_0x189a('0x14')](_0x1ee8e7['item']),_0x3aa3fd=_0x12b699[_0x189a('0x8')]['getLastMatchingPosition'](_0x357782),_0x1d9c1b=_0x12b699[_0x189a('0xd')][_0x189a('0x11')](_0x357782,{'direction':'backward'});return this[_0x189a('0xc')][_0x189a('0x5')][_0x189a('0x3')](_0x3aa3fd,_0x1d9c1b);}}
23
+ const _0x2987=['createRange','textProxy','isEnabled','element','change','refresh','getRanges','start','_itemIsContent','model','tableCell','backward','editor','selection','item','comment:','addMarker','_hasContent','document','getLastMatchingPosition','execute','isObject','_trimToContent','substr','end'];(function(_0x37278a,_0x29873b){const _0x444945=function(_0x5513ca){while(--_0x5513ca){_0x37278a['push'](_0x37278a['shift']());}};_0x444945(++_0x29873b);}(_0x2987,0x14b));const _0x4449=function(_0x37278a,_0x29873b){_0x37278a=_0x37278a-0x0;let _0x444945=_0x2987[_0x37278a];return _0x444945;};import{Command as _0x15d6f6}from'ckeditor5/src/core';import{uid as _0x19709d}from'ckeditor5/src/utils';export default class d extends _0x15d6f6{[_0x4449('0x18')](){const _0x3df6a8=this[_0x4449('0x6')][_0x4449('0x3')]['document'][_0x4449('0x7')];for(const _0x46dfd0 of _0x3df6a8[_0x4449('0x0')]())if(this[_0x4449('0xb')](_0x46dfd0))return void(this[_0x4449('0x15')]=!0x0);this['isEnabled']=!0x1;}[_0x4449('0xe')]({threadId:_0x124354=_0x19709d()}={}){const _0x4f3f2f=this[_0x4449('0x6')][_0x4449('0x3')],_0x7960bd=[];for(const _0x33916c of _0x4f3f2f[_0x4449('0xc')]['selection'][_0x4449('0x0')]())this['_hasContent'](_0x33916c)&&_0x7960bd['push'](this[_0x4449('0x10')](_0x33916c));_0x4f3f2f[_0x4449('0x17')](_0x5c705a=>{for(const _0x52b69d of _0x7960bd){const _0x39b333=_0x19709d()[_0x4449('0x11')](0x1,0x5),_0x111deb=_0x4449('0x9')+_0x124354+':'+_0x39b333;_0x5c705a[_0x4449('0xa')](_0x111deb,{'range':_0x52b69d,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x4449('0xb')](_0x4ee98f){for(const _0x2d514e of _0x4ee98f['getItems']())if(this['_itemIsContent'](_0x2d514e))return!0x0;return!0x1;}[_0x4449('0x2')](_0x10a040){return _0x10a040['is'](_0x4449('0x14'))||this[_0x4449('0x6')][_0x4449('0x3')]['schema'][_0x4449('0xf')](_0x10a040)&&!_0x10a040['is'](_0x4449('0x16'),_0x4449('0x4'));}['_trimToContent'](_0x2f8376){const _0x3e9d2e=_0x5ab336=>!this[_0x4449('0x2')](_0x5ab336[_0x4449('0x8')]),_0x3792a2=_0x2f8376[_0x4449('0x1')][_0x4449('0xd')](_0x3e9d2e),_0x9f0d2b=_0x2f8376[_0x4449('0x12')]['getLastMatchingPosition'](_0x3e9d2e,{'direction':_0x4449('0x5')});return this['editor'][_0x4449('0x3')][_0x4449('0x13')](_0x3792a2,_0x9f0d2b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13c8=['document','name','_threadToController','map','render','delete','ready','for','left','isThreadsLoadingPaused','$graveyard','once','registerAnnotation','sort','CommentsEditing','length','model','init','createElement','top','destroy','filter','fetchCommentThread','removeMarker','getAttribute','isEqual','differ','text','markers','change:activeMarker','_handleMarkerAddAndRemove','then','getByInnerView','change','_initializeMarkerConverters','start','markerToData','collaboration.channelId','listenTo','conversion','markerName','registerPostFixer','createRange','ck-comment-marker--active','$marker','schema','switchReadOnly','activeMarker','dataToMarker','requires','isCollapsed','elementToElement','markerToHighlight','split','editor','high','update:comment','upcast','_threads','Annotations','newRange','destroyed','editing','comment','set','view','state','getChangedMarkers','config','size','openNewCommentThread','_detachCommentThread','_attachedThreads','end','updateMarker','createPositionBefore','getAllMarkersForId','CommentsRepository','dataDowncast','push','addComment','getCommentThreads','reconvertMarker','removeCommentThread','affectsData','comment:','hasCommentThread','hasMarkerForId','addCommentThread','getCommentThread','plugins','stop','get','_attachMarkerToThread','add','isObject'];(function(_0x2acbe7,_0x13c820){const _0x1f8c42=function(_0xc1c7de){while(--_0xc1c7de){_0x2acbe7['push'](_0x2acbe7['shift']());}};_0x1f8c42(++_0x13c820);}(_0x13c8,0x117));const _0x1f8c=function(_0x2acbe7,_0x13c820){_0x2acbe7=_0x2acbe7-0x0;let _0x1f8c42=_0x13c8[_0x2acbe7];return _0x1f8c42;};import{Plugin as _0x53d641}from'ckeditor5/src/core';import{Rect as _0xa8b038}from'ckeditor5/src/utils';import _0x21e911 from'./commentsrepository';import _0x182b1f from'./addcommentthreadcommand';import{getMarkerDomElement as _0x2a03e4}from'ckeditor5-collaboration/src/collaboration-core';import _0x25f891 from'../annotations/editorannotations';import _0x29da17 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x119ba5 from'./integrations/importword';export default class r extends _0x53d641{static get[_0x1f8c('0x3a')](){return[_0x21e911,_0x25f891,_0x29da17,_0x119ba5];}static get['pluginName'](){return _0x1f8c('0x17');}constructor(_0x5518cf){super(_0x5518cf),this[_0x1f8c('0x49')](_0x1f8c('0x12'),!0x0),_0x5518cf['data'][_0x1f8c('0x14')](_0x1f8c('0xf'),()=>this[_0x1f8c('0x12')]=!0x1),this[_0x1f8c('0x49')]('activeMarker',null),this['on'](_0x1f8c('0x26'),(_0x3e1a81,_0x14967f,_0x43e15f,_0x1bcbb7)=>{_0x5518cf[_0x1f8c('0x19')][_0x1f8c('0x2a')](()=>{if(_0x43e15f){const {id:_0x3290c7}=H(_0x43e15f),_0x5cd479=this['getAllMarkersForId'](_0x3290c7);for(const _0x542280 of _0x5cd479)_0x5518cf[_0x1f8c('0x47')][_0x1f8c('0x5b')](_0x542280);}if(_0x1bcbb7){const {id:_0x17c467}=H(_0x1bcbb7),_0x228ec1=this['getAllMarkersForId'](_0x17c467);for(const _0x1ae611 of _0x228ec1)_0x5518cf[_0x1f8c('0x47')][_0x1f8c('0x5b')](_0x1ae611);}});}),this['_attachedThreads']=new Map();}[_0x1f8c('0x1a')](){const _0x194fe4=this['editor'],_0x1c6599=_0x194fe4[_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0x31912e=_0x194fe4[_0x1f8c('0x4d')]['get'](_0x1f8c('0x2e'));_0x194fe4['commands'][_0x1f8c('0x7')](_0x1f8c('0x1'),new _0x182b1f(_0x194fe4)),this[_0x1f8c('0x2f')](_0x194fe4,'change:isReadOnly',(_0x42dee1,_0x378c81,_0x1c7877)=>{_0x1c6599[_0x1f8c('0x37')](_0x1c7877,_0x194fe4[_0x1f8c('0x4d')][_0x1f8c('0x5')](_0x1f8c('0x2e')));}),this[_0x1f8c('0x2f')](_0x1c6599,G(_0x1f8c('0x5c'),_0x31912e),(_0x384d7f,{threadId:_0x21e029})=>{_0x194fe4[_0x1f8c('0x19')][_0x1f8c('0x2a')](_0x34c1cd=>{for(const _0xe0b412 of this[_0x1f8c('0x55')](_0x21e029))_0x34c1cd[_0x1f8c('0x20')](_0xe0b412);});const _0x143e03=_0x1c6599['getCommentThread'](_0x21e029);_0x1c6599[_0x1f8c('0x5f')](_0x21e029)&&!_0x143e03['length']||_0x384d7f[_0x1f8c('0x4')]();},{'priority':_0x1f8c('0x40')}),this[_0x1f8c('0x2f')](_0x1c6599,G(_0x1f8c('0x59'),_0x31912e),(_0x176a41,{threadId:_0x95c3fe,isFromAdapter:_0x4c592})=>{const _0xfb236=this[_0x1f8c('0x55')](_0x95c3fe);if(_0x4c592||0x0==_0xfb236[_0x1f8c('0x18')]||!_0x1c6599['hasCommentThread'](_0x95c3fe))return;0x1===_0x1c6599[_0x1f8c('0x2')](_0x95c3fe)[_0x1f8c('0x18')]&&_0x194fe4['model'][_0x1f8c('0x2a')](_0x120d09=>{for(const _0x5598a8 of _0xfb236)_0x120d09[_0x1f8c('0x53')](_0x5598a8,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1f8c('0x2b')](),this[_0x1f8c('0x27')]();}[_0x1f8c('0x1d')](){const _0xe3993c=this[_0x1f8c('0x3f')][_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0xe37124=this[_0x1f8c('0x3f')]['config'][_0x1f8c('0x5')](_0x1f8c('0x2e'));for(const _0x24fb0d of _0xe3993c[_0x1f8c('0x5a')]({'channelId':_0xe37124}))_0xe3993c[_0x1f8c('0x50')](_0x24fb0d['id']),_0xe3993c[_0x1f8c('0x43')]['delete'](_0x24fb0d['id']);super[_0x1f8c('0x1d')]();}[_0x1f8c('0x0')](_0x4b0ae8){return this[_0x1f8c('0x55')](_0x4b0ae8)[_0x1f8c('0x18')]>0x0;}[_0x1f8c('0x55')](_0x4b24c2){return(this[_0x1f8c('0x51')]['get'](_0x4b24c2)||[])['map'](_0x19faf9=>this[_0x1f8c('0x3f')][_0x1f8c('0x19')]['markers']['get'](_0x19faf9))[_0x1f8c('0x1e')](_0x299d96=>_0x299d96);}[_0x1f8c('0x2b')](){const _0x77fc5e=this[_0x1f8c('0x3f')];_0x77fc5e['conversion'][_0x1f8c('0x10')]('editingDowncast')[_0x1f8c('0x3d')]({'model':'comment','view':_0x196971=>{const {id:_0x2f6c76}=H(_0x196971[_0x1f8c('0x31')]),_0x1c7916=['ck-comment-marker'];return this['activeMarker']&&H(this[_0x1f8c('0x38')])['id']===_0x2f6c76&&_0x1c7916[_0x1f8c('0x58')](_0x1f8c('0x34')),{'classes':_0x1c7916,'attributes':{'data-comment':_0x2f6c76}};}}),_0x77fc5e[_0x1f8c('0x30')][_0x1f8c('0x10')](_0x1f8c('0x57'))[_0x1f8c('0x2d')]({'model':'comment','view':_0x513ed8=>{const _0x2838c7=_0x77fc5e[_0x1f8c('0x19')][_0x1f8c('0x25')][_0x1f8c('0x5')](_0x513ed8),{id:_0x4a02bb,part:_0xab5083}=H(_0x513ed8);return _0x2838c7&&!_0x2838c7[_0x1f8c('0x5d')]?null:{'group':'comment','name':_0xab5083?_0x4a02bb+':'+_0xab5083:_0x4a02bb};}}),_0x77fc5e['conversion'][_0x1f8c('0x10')]('upcast')[_0x1f8c('0x3c')]({'view':{'name':_0x1f8c('0x48'),'attribute':{'id':/^\w/}},'model':(_0x3f06b8,{writer:_0x1f8fec})=>_0x1f8fec[_0x1f8c('0x1b')](_0x1f8c('0x35'),{'data-name':_0x1f8c('0x5e')+_0x3f06b8[_0x1f8c('0x21')]('id')})}),_0x77fc5e['conversion'][_0x1f8c('0x10')](_0x1f8c('0x42'))[_0x1f8c('0x39')]({'view':'comment'});}[_0x1f8c('0x27')](){const _0x5290f4=this[_0x1f8c('0x3f')],_0x52e35a=_0x5290f4[_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0x219f67=new Set();_0x5290f4[_0x1f8c('0x19')][_0x1f8c('0x9')][_0x1f8c('0x32')](_0x24c158=>{let _0x48d641=!0x1;for(const {name:_0xb67ff4,data:_0x167324}of _0x5290f4[_0x1f8c('0x19')][_0x1f8c('0x9')][_0x1f8c('0x23')][_0x1f8c('0x4c')]()){const {group:_0x10ae30,id:_0x8b2a0d}=H(_0xb67ff4);let _0x437eaf=_0x167324[_0x1f8c('0x45')];if(_0x1f8c('0x48')!==_0x10ae30||!_0x437eaf)continue;const _0x36a389=_0x1f8c('0x13')===_0x437eaf['root']['rootName'];_0x36a389||(_0x437eaf=J(_0x437eaf,_0x5290f4[_0x1f8c('0x19')]),!_0x437eaf||_0x437eaf[_0x1f8c('0x22')](_0x167324[_0x1f8c('0x45')]))?!_0x437eaf||!_0x5290f4[_0x1f8c('0x19')]['hasContent'](_0x437eaf)||this[_0x1f8c('0x51')]['has'](_0x8b2a0d)&&_0x36a389?(_0x24c158['removeMarker'](_0xb67ff4),_0x48d641=!0x0):_0x36a389||(this[_0x1f8c('0x12')]?_0x219f67[_0x1f8c('0x7')](_0xb67ff4):this[_0x1f8c('0x6')](_0xb67ff4,_0x8b2a0d)):(_0x24c158[_0x1f8c('0x53')](_0xb67ff4,{'range':_0x437eaf}),_0x48d641=!0x0);}return _0x48d641;}),this['on']('change:isThreadsLoadingPaused',(_0x5c019b,_0x4bf15b,_0x281479)=>{if(!_0x281479&&_0x219f67[_0x1f8c('0x4e')])for(const _0x330e34 of _0x219f67){const {id:_0x4b8a9d}=H(_0x330e34);_0x219f67[_0x1f8c('0xe')](_0x4b8a9d),_0x5290f4['model'][_0x1f8c('0x25')]['get'](_0x330e34)&&this[_0x1f8c('0x6')](_0x330e34,_0x4b8a9d);}}),this[_0x1f8c('0x2f')](_0x5290f4[_0x1f8c('0x19')][_0x1f8c('0x25')],_0x1f8c('0x41'),(_0x6d8953,_0x3b3278,_0x4683d6,_0x5f00ee)=>{if(_0x5f00ee)return;const {id:_0x19ece6}=H(_0x3b3278[_0x1f8c('0xa')]),_0x2bbb68=_0x5290f4['plugins'][_0x1f8c('0x5')](_0x1f8c('0x56'))['getCommentThread'](_0x19ece6);_0x219f67[_0x1f8c('0xe')](_0x19ece6),_0x2bbb68&&!this[_0x1f8c('0x0')](_0x19ece6)&&(this[_0x1f8c('0x51')][_0x1f8c('0xe')](_0x19ece6),_0x52e35a[_0x1f8c('0x50')](_0x19ece6));});}[_0x1f8c('0x6')](_0xe343f3,_0x565429){if(this[_0x1f8c('0x51')]['has'](_0x565429)){const _0x341420=this[_0x1f8c('0x51')][_0x1f8c('0x5')](_0x565429);return void(_0x341420['includes'](_0xe343f3)||_0x341420[_0x1f8c('0x58')](_0xe343f3));}this[_0x1f8c('0x51')][_0x1f8c('0x49')](_0x565429,[_0xe343f3]);const _0x11aa60=this[_0x1f8c('0x3f')],_0x5c88ce=_0x11aa60[_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0x5714c3=_0x11aa60[_0x1f8c('0x4d')][_0x1f8c('0x5')](_0x1f8c('0x2e')),_0x4ca8f4=_0x11aa60[_0x1f8c('0x3')][_0x1f8c('0x5')]('EditorAnnotations'),_0x11b5ea=()=>{const _0x24e795=this[_0x1f8c('0x55')](_0x565429);if(0x0===_0x24e795[_0x1f8c('0x18')])return null;if(0x1===_0x24e795[_0x1f8c('0x18')])return _0x2a03e4(_0x11aa60[_0x1f8c('0x47')],_0x24e795[0x0]);const _0x241479=_0x24e795[_0x1f8c('0xc')](_0x5a3361=>_0x2a03e4(_0x11aa60[_0x1f8c('0x47')],_0x5a3361));return _0x241479[_0x1f8c('0x16')]((_0x5cfbaf,_0x196f9e)=>{const _0xa79c80=new _0xa8b038(_0x5cfbaf),_0x49e696=new _0xa8b038(_0x196f9e),_0x817b9f=_0xa79c80[_0x1f8c('0x1c')]-_0x49e696['top'];return 0x0==_0x817b9f?_0xa79c80[_0x1f8c('0x11')]-_0x49e696[_0x1f8c('0x11')]:_0x817b9f;}),_0x241479[0x0];};!this[_0x1f8c('0x55')](_0x565429)[0x0]['managedUsingOperations']?_0x11aa60['editing'][_0x1f8c('0x4a')][_0x1f8c('0x14')](_0x1f8c('0xd'),()=>{const _0x5416ee=_0x11aa60[_0x1f8c('0x3')]['get'](_0x1f8c('0x44')),_0x7b8aa=_0x5c88ce[_0x1f8c('0x4f')]({'channelId':_0x5714c3,'threadId':_0x565429,'target':_0x11b5ea}),_0x358561=_0x5c88ce[_0x1f8c('0xb')]['get'](_0x7b8aa)['view'],_0x33e5af=_0x5416ee[_0x1f8c('0x29')](_0x358561);_0x4ca8f4['registerAnnotation'](_0x33e5af);},{'priority':'low'}):_0x5c88ce[_0x1f8c('0x1f')]({'channelId':_0x5714c3,'threadId':_0x565429})[_0x1f8c('0x28')](_0x1f69a9=>{if(_0x1f8c('0x46')!==_0x11aa60[_0x1f8c('0x4b')]){if(_0x1f69a9){const _0x16ff38=_0x1f69a9['attachTo'](_0x11b5ea);_0x4ca8f4[_0x1f8c('0x15')](_0x16ff38);}else{const _0x468eba=this[_0x1f8c('0x55')](_0x565429);_0x11aa60[_0x1f8c('0x19')][_0x1f8c('0x2a')](_0x8c887d=>{for(const _0x4fd25d of _0x468eba)_0x8c887d['removeMarker'](_0x4fd25d);});}}});}}function G(_0x48b096,_0x4ac349){return _0x4ac349?_0x48b096+':'+_0x4ac349:_0x48b096;}function H(_0x101e30){const _0x145b72=_0x101e30[_0x1f8c('0x3e')](':');return{'group':_0x145b72[0x0],'id':_0x145b72[0x1],'part':_0x145b72[0x2]};}function J(_0x5ed8fb,_0x304c70){const _0x14b84a=_0x304c70[_0x1f8c('0x36')],_0x1b56d7=_0x304c70[_0x1f8c('0x33')](_0x5ed8fb[_0x1f8c('0x2c')]);for(const _0x4f4388 of _0x5ed8fb['getWalker']()){const {type:_0x32cce4,item:_0x4cb3a0,nextPosition:_0x55cb8f}=_0x4f4388;if(_0x1f8c('0x24')===_0x32cce4||_0x14b84a[_0x1f8c('0x8')](_0x4cb3a0)){const _0xd8a49d=_0x304c70[_0x1f8c('0x54')](_0x4cb3a0);_0x1b56d7[_0x1f8c('0x3b')]&&(_0x1b56d7['start']=_0xd8a49d),_0x1b56d7[_0x1f8c('0x52')]=_0x55cb8f;}}return _0x1b56d7['isCollapsed']?null:_0x1b56d7;}
23
+ const _0x3480=['length','left','model','reconvertMarker','fetchCommentThread','size','getByInnerView','collaboration.channelId','Annotations','upcast','isThreadsLoadingPaused','ck-comment-marker','createPositionBefore','change:isReadOnly','commands','getCommentThread','name','render','hasMarkerForId','_detachCommentThread','for','elementToElement','pluginName','_attachMarkerToThread','set','document','plugins','conversion','update:comment','_threadToController','push','editor','_handleMarkerAddAndRemove','low','map','registerAnnotation','isCollapsed','dataToMarker','getChangedMarkers','comment','sort','dataDowncast','activeMarker','end','isObject','differ','getWalker','affectsData','init','state','createElement','destroy','split','isEqual','ck-comment-marker--active','getAttribute','editing','markers','once','markerToData','newRange','addComment','openNewCommentThread','getAllMarkersForId','getCommentThreads','comment:','root','EditorAnnotations','switchReadOnly','get','editingDowncast','_threads','delete','high','change','hasContent','view','start','CommentsRepository','_attachedThreads','createRange','config','$graveyard','attachTo','removeCommentThread','top','text','schema','destroyed','registerPostFixer','listenTo','addCommentThread','change:isThreadsLoadingPaused','updateMarker','removeMarker','markerName'];(function(_0x515d64,_0x348080){const _0x90525a=function(_0x278741){while(--_0x278741){_0x515d64['push'](_0x515d64['shift']());}};_0x90525a(++_0x348080);}(_0x3480,0x1ba));const _0x9052=function(_0x515d64,_0x348080){_0x515d64=_0x515d64-0x0;let _0x90525a=_0x3480[_0x515d64];return _0x90525a;};import{Plugin as _0xaa2867}from'ckeditor5/src/core';import{Rect as _0x57c06a}from'ckeditor5/src/utils';import _0x3c4328 from'./commentsrepository';import _0x3f7637 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x57183e}from'ckeditor5-collaboration/src/collaboration-core';import _0x5c1338 from'../annotations/editorannotations';import _0x5a9668 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x36567a from'./integrations/importword';export default class r extends _0xaa2867{static get['requires'](){return[_0x3c4328,_0x5c1338,_0x5a9668,_0x36567a];}static get[_0x9052('0x3c')](){return'CommentsEditing';}constructor(_0x12fb98){super(_0x12fb98),this[_0x9052('0x3e')](_0x9052('0x30'),!0x0),_0x12fb98['data'][_0x9052('0x0')]('ready',()=>this[_0x9052('0x30')]=!0x1),this[_0x9052('0x3e')](_0x9052('0x50'),null),this['on']('change:activeMarker',(_0x440b59,_0x47e992,_0x12a20d,_0x5a7d16)=>{_0x12fb98['model']['change'](()=>{if(_0x12a20d){const {id:_0x5d89f7}=y(_0x12a20d),_0x551e4c=this[_0x9052('0x5')](_0x5d89f7);for(const _0x518718 of _0x551e4c)_0x12fb98[_0x9052('0x5e')]['reconvertMarker'](_0x518718);}if(_0x5a7d16){const {id:_0x769b10}=y(_0x5a7d16),_0x5eb176=this[_0x9052('0x5')](_0x769b10);for(const _0x918a9 of _0x5eb176)_0x12fb98[_0x9052('0x5e')][_0x9052('0x29')](_0x918a9);}});}),this[_0x9052('0x15')]=new Map();}[_0x9052('0x56')](){const _0x4a99d7=this[_0x9052('0x45')],_0x1898f0=_0x4a99d7[_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14')),_0x4fb8a6=_0x4a99d7[_0x9052('0x17')][_0x9052('0xb')]('collaboration.channelId');_0x4a99d7[_0x9052('0x34')]['add'](_0x9052('0x21'),new _0x3f7637(_0x4a99d7)),this[_0x9052('0x20')](_0x4a99d7,_0x9052('0x33'),(_0xc60b0b,_0x1b7759,_0x382689)=>{_0x1898f0[_0x9052('0xa')](_0x382689,_0x4a99d7['config'][_0x9052('0xb')]('collaboration.channelId'));}),this['listenTo'](_0x1898f0,w(_0x9052('0x1a'),_0x4fb8a6),(_0xcc3162,{threadId:_0x14e800})=>{_0x4a99d7['model']['change'](_0x5e13b3=>{for(const _0x27cd2a of this[_0x9052('0x5')](_0x14e800))_0x5e13b3[_0x9052('0x24')](_0x27cd2a);});const _0x4c0042=_0x1898f0['getCommentThread'](_0x14e800);_0x1898f0['hasCommentThread'](_0x14e800)&&!_0x4c0042[_0x9052('0x26')]||_0xcc3162['stop']();},{'priority':_0x9052('0xf')}),this[_0x9052('0x20')](_0x1898f0,w(_0x9052('0x3'),_0x4fb8a6),(_0x3aa4b0,{threadId:_0x37d2f9,isFromAdapter:_0xec62dd})=>{const _0x563be0=this['getAllMarkersForId'](_0x37d2f9);if(_0xec62dd||0x0==_0x563be0[_0x9052('0x26')]||!_0x1898f0['hasCommentThread'](_0x37d2f9))return;0x1===_0x1898f0[_0x9052('0x35')](_0x37d2f9)[_0x9052('0x26')]&&_0x4a99d7[_0x9052('0x28')][_0x9052('0x10')](_0x28e4eb=>{for(const _0x2aa4c2 of _0x563be0)_0x28e4eb[_0x9052('0x23')](_0x2aa4c2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x9052('0x47')}),this['_initializeMarkerConverters'](),this[_0x9052('0x46')]();}[_0x9052('0x59')](){const _0x1a719a=this[_0x9052('0x45')][_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14')),_0x46930f=this[_0x9052('0x45')]['config'][_0x9052('0xb')]('collaboration.channelId');for(const _0x511baa of _0x1a719a[_0x9052('0x6')]({'channelId':_0x46930f}))_0x1a719a['_detachCommentThread'](_0x511baa['id']),_0x1a719a[_0x9052('0xd')][_0x9052('0xe')](_0x511baa['id']);super['destroy']();}[_0x9052('0x38')](_0x4a8660){return this['getAllMarkersForId'](_0x4a8660)[_0x9052('0x26')]>0x0;}[_0x9052('0x5')](_0x9533f8){return(this[_0x9052('0x15')][_0x9052('0xb')](_0x9533f8)||[])['map'](_0x35bb65=>this['editor'][_0x9052('0x28')][_0x9052('0x5f')]['get'](_0x35bb65))['filter'](_0x34a8e9=>_0x34a8e9);}['_initializeMarkerConverters'](){const _0x8ae42=this[_0x9052('0x45')];_0x8ae42[_0x9052('0x41')][_0x9052('0x3a')](_0x9052('0xc'))['markerToHighlight']({'model':_0x9052('0x4d'),'view':_0x15792b=>{const {id:_0x55a692}=y(_0x15792b[_0x9052('0x25')]),_0x26f20e=[_0x9052('0x31')];return this['activeMarker']&&y(this[_0x9052('0x50')])['id']===_0x55a692&&_0x26f20e[_0x9052('0x44')](_0x9052('0x5c')),{'classes':_0x26f20e,'attributes':{'data-comment':_0x55a692}};}}),_0x8ae42[_0x9052('0x41')]['for'](_0x9052('0x4f'))[_0x9052('0x1')]({'model':_0x9052('0x4d'),'view':_0x27668f=>{const _0x1b1624=_0x8ae42[_0x9052('0x28')]['markers'][_0x9052('0xb')](_0x27668f),{id:_0x45d20d,part:_0x139dff}=y(_0x27668f);return _0x1b1624&&!_0x1b1624[_0x9052('0x55')]?null:{'group':'comment','name':_0x139dff?_0x45d20d+':'+_0x139dff:_0x45d20d};}}),_0x8ae42[_0x9052('0x41')][_0x9052('0x3a')](_0x9052('0x2f'))[_0x9052('0x3b')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0x5ef35d,{writer:_0x3bffba})=>_0x3bffba[_0x9052('0x58')]('$marker',{'data-name':_0x9052('0x7')+_0x5ef35d[_0x9052('0x5d')]('id')})}),_0x8ae42[_0x9052('0x41')][_0x9052('0x3a')](_0x9052('0x2f'))[_0x9052('0x4b')]({'view':_0x9052('0x4d')});}[_0x9052('0x46')](){const _0x1a0ffd=this[_0x9052('0x45')],_0x38bb97=_0x1a0ffd['plugins']['get'](_0x9052('0x14')),_0x2c228a=new Set();_0x1a0ffd[_0x9052('0x28')][_0x9052('0x3f')][_0x9052('0x1f')](_0x2c01fa=>{let _0x1d6128=!0x1;for(const {name:_0x1ab270,data:_0xcb734b}of _0x1a0ffd['model'][_0x9052('0x3f')][_0x9052('0x53')][_0x9052('0x4c')]()){const {group:_0x3a2489,id:_0x291225}=y(_0x1ab270);let _0x3a7b6c=_0xcb734b[_0x9052('0x2')];if(_0x9052('0x4d')!==_0x3a2489||!_0x3a7b6c)continue;const _0xc0a45d=_0x9052('0x18')===_0x3a7b6c[_0x9052('0x8')]['rootName'];_0xc0a45d||(_0x3a7b6c=I(_0x3a7b6c,_0x1a0ffd[_0x9052('0x28')]),!_0x3a7b6c||_0x3a7b6c[_0x9052('0x5b')](_0xcb734b[_0x9052('0x2')]))?!_0x3a7b6c||!_0x1a0ffd['model'][_0x9052('0x11')](_0x3a7b6c)||this[_0x9052('0x15')]['has'](_0x291225)&&_0xc0a45d?(_0x2c01fa['removeMarker'](_0x1ab270),_0x1d6128=!0x0):_0xc0a45d||(this[_0x9052('0x30')]?_0x2c228a['add'](_0x1ab270):this[_0x9052('0x3d')](_0x1ab270,_0x291225)):(_0x2c01fa[_0x9052('0x23')](_0x1ab270,{'range':_0x3a7b6c}),_0x1d6128=!0x0);}return _0x1d6128;}),this['on'](_0x9052('0x22'),(_0x3b16c5,_0x2add4d,_0x2d801e)=>{if(!_0x2d801e&&_0x2c228a[_0x9052('0x2b')])for(const _0x5a8b7a of _0x2c228a){const {id:_0x549e89}=y(_0x5a8b7a);_0x2c228a['delete'](_0x549e89),_0x1a0ffd[_0x9052('0x28')][_0x9052('0x5f')]['get'](_0x5a8b7a)&&this[_0x9052('0x3d')](_0x5a8b7a,_0x549e89);}}),this[_0x9052('0x20')](_0x1a0ffd[_0x9052('0x28')]['markers'],_0x9052('0x42'),(_0xd29c9c,_0x4167ac,_0x51d200,_0x2621ee)=>{if(_0x2621ee)return;const {id:_0x4a789a}=y(_0x4167ac[_0x9052('0x36')]),_0x4b0380=_0x1a0ffd[_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14'))['getCommentThread'](_0x4a789a);_0x2c228a[_0x9052('0xe')](_0x4a789a),_0x4b0380&&!this[_0x9052('0x38')](_0x4a789a)&&(this[_0x9052('0x15')][_0x9052('0xe')](_0x4a789a),_0x38bb97[_0x9052('0x39')](_0x4a789a));});}[_0x9052('0x3d')](_0x2fb402,_0x3714a2){if(this[_0x9052('0x15')]['has'](_0x3714a2)){const _0x4887f1=this[_0x9052('0x15')][_0x9052('0xb')](_0x3714a2);return void(_0x4887f1['includes'](_0x2fb402)||_0x4887f1[_0x9052('0x44')](_0x2fb402));}this[_0x9052('0x15')]['set'](_0x3714a2,[_0x2fb402]);const _0x2bd966=this[_0x9052('0x45')],_0x4dde0b=_0x2bd966[_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14')),_0xaff068=_0x2bd966['config']['get'](_0x9052('0x2d')),_0x5e5289=_0x2bd966['plugins']['get'](_0x9052('0x9')),_0x5c092d=()=>{const _0x7e3b49=this[_0x9052('0x5')](_0x3714a2);if(0x0===_0x7e3b49[_0x9052('0x26')])return null;if(0x1===_0x7e3b49[_0x9052('0x26')])return _0x57183e(_0x2bd966['editing'],_0x7e3b49[0x0]);const _0x17040a=_0x7e3b49[_0x9052('0x48')](_0x377816=>_0x57183e(_0x2bd966[_0x9052('0x5e')],_0x377816));return _0x17040a[_0x9052('0x4e')]((_0x12bd6e,_0x9b78b7)=>{const _0x3e1a5d=new _0x57c06a(_0x12bd6e),_0x2774c0=new _0x57c06a(_0x9b78b7),_0x4b1733=_0x3e1a5d[_0x9052('0x1b')]-_0x2774c0[_0x9052('0x1b')];return 0x0==_0x4b1733?_0x3e1a5d[_0x9052('0x27')]-_0x2774c0['left']:_0x4b1733;}),_0x17040a[0x0];};!this[_0x9052('0x5')](_0x3714a2)[0x0]['managedUsingOperations']?_0x2bd966['editing']['view'][_0x9052('0x0')](_0x9052('0x37'),()=>{const _0x256190=_0x2bd966['plugins']['get'](_0x9052('0x2e')),_0x1707e4=_0x4dde0b[_0x9052('0x4')]({'channelId':_0xaff068,'threadId':_0x3714a2,'target':_0x5c092d}),_0x36397a=_0x4dde0b[_0x9052('0x43')][_0x9052('0xb')](_0x1707e4)[_0x9052('0x12')],_0x16a514=_0x256190[_0x9052('0x2c')](_0x36397a);_0x5e5289['registerAnnotation'](_0x16a514);},{'priority':_0x9052('0x47')}):_0x4dde0b[_0x9052('0x2a')]({'channelId':_0xaff068,'threadId':_0x3714a2})['then'](_0x3cf4c5=>{if(_0x9052('0x1e')!==_0x2bd966[_0x9052('0x57')]){if(_0x3cf4c5){const _0x3c1b82=_0x3cf4c5[_0x9052('0x19')](_0x5c092d);_0x5e5289[_0x9052('0x49')](_0x3c1b82);}else{const _0x66a132=this[_0x9052('0x5')](_0x3714a2);_0x2bd966[_0x9052('0x28')][_0x9052('0x10')](_0x329584=>{for(const _0x372d09 of _0x66a132)_0x329584[_0x9052('0x24')](_0x372d09);});}}});}}function w(_0x1a1037,_0x241f24){return _0x241f24?_0x1a1037+':'+_0x241f24:_0x1a1037;}function y(_0x5bec40){const _0x17006a=_0x5bec40[_0x9052('0x5a')](':');return{'group':_0x17006a[0x0],'id':_0x17006a[0x1],'part':_0x17006a[0x2]};}function I(_0x24a9ec,_0x2926b1){const _0x36e869=_0x2926b1[_0x9052('0x1d')],_0x539cba=_0x2926b1[_0x9052('0x16')](_0x24a9ec[_0x9052('0x13')]);for(const _0x1b8901 of _0x24a9ec[_0x9052('0x54')]()){const {type:_0x385c2c,item:_0x92805d,nextPosition:_0x16e801}=_0x1b8901;if(_0x9052('0x1c')===_0x385c2c||_0x36e869[_0x9052('0x52')](_0x92805d)){const _0x2aba54=_0x2926b1[_0x9052('0x32')](_0x92805d);_0x539cba[_0x9052('0x4a')]&&(_0x539cba[_0x9052('0x13')]=_0x2aba54),_0x539cba[_0x9052('0x51')]=_0x16e801;}}return _0x539cba[_0x9052('0x4a')]?null:_0x539cba;}