@ckeditor/ckeditor5-comments 35.2.0 → 35.3.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 (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 _0x30b5=['change:bottom','_annotationToSidebarItemView','last','_updateLastItem','pluginName','remove','height','sidebar.container','minHeight','stopListening','targetRect','delete','_detachFromContainer','_sidebarItemViewToAnnotation','change:targetRect','setContainer','_alignToTargetRect','_destroySidebarItemView','_createSidebarView','sidebar.preventScrollOutOfView','add','_recalculateBuffer','_lastItem','_annotations','getSidebarItemView','change:_lastItem','bind','_alignAfterItem','_recalculate','_getItemAfter','view','list','isAnimationDisabled','set','Sidebar','_alignBeforeItem','content','unbind','listenTo','top','_alignForBottomChange','_getTargetTop','object','clear','nodeType','isActive','sidebar-setcontainer-invalid-element','sidebar-attachtocontainer-missing-container','length','target','push','container','element','_getItemBefore','bottom','define','rearrange','_spaceBetweenItems','_activeAnnotation','_getMaxAvailableTop','appendChild','class','locale','get','refresh','context','destroy','config','_setItemTop','updateHeight'];(function(_0x2a37e7,_0x30b524){const _0x594ae3=function(_0x9e651e){while(--_0x9e651e){_0x2a37e7['push'](_0x2a37e7['shift']());}};_0x594ae3(++_0x30b524);}(_0x30b5,0x115));const _0x594a=function(_0x2a37e7,_0x30b524){_0x2a37e7=_0x2a37e7-0x0;let _0x594ae3=_0x30b5[_0x2a37e7];return _0x594ae3;};import{ContextPlugin as _0x1c19ee}from'ckeditor5/src/core';import _0x2d10b4 from'./view/sidebarview';import _0x432db1 from'./view/sidebaritemview';import{Rect as _0x51b9d2,CKEditorError as _0xebb0d6}from'ckeditor5/src/utils';export default class b extends _0x1c19ee{static get[_0x594a('0x7')](){return _0x594a('0x25');}constructor(_0x9c8568){super(_0x9c8568),this[_0x594a('0x24')](_0x594a('0x19')),this[_0x594a('0x21')]=this[_0x594a('0x15')](),this['set'](_0x594a('0x36'),null),this[_0x594a('0x3c')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x594a('0x44')][_0x594a('0x0')][_0x594a('0x3a')](_0x594a('0x16'),!0x1),this[_0x594a('0x1a')]=null,this[_0x594a('0x3d')]=null,this[_0x594a('0x18')]=[];}['init'](){const _0x2cfc3d=this['context'][_0x594a('0x0')][_0x594a('0x42')](_0x594a('0xa'));_0x2cfc3d&&this[_0x594a('0x12')](_0x2cfc3d);}[_0x594a('0x12')](_0x28fd46){if(!p(_0x28fd46))throw new _0xebb0d6(_0x594a('0x31'));this[_0x594a('0x36')]=_0x28fd46;}['_attachToContainer']({viewClass:_0x2b0613='',spaceBetweenItems:_0x1313b2=0x19}={}){if(!p(this[_0x594a('0x36')]))throw new _0xebb0d6(_0x594a('0x32'),this);this[_0x594a('0x36')][_0x594a('0x3f')](this[_0x594a('0x21')]['element']),this[_0x594a('0x21')][_0x594a('0x40')]=_0x2b0613,this[_0x594a('0x3c')]=_0x1313b2;}[_0x594a('0x3b')]({removedAnnotation:_0xa111b8,previousAnnotation:_0x4a433f,nextAnnotation:_0x14d92f}){const _0x2e9cf7=this['getSidebarItemView'](_0xa111b8);this[_0x594a('0x21')][_0x594a('0x22')][_0x594a('0x8')](_0x2e9cf7),this[_0x594a('0x14')](_0xa111b8),_0x4a433f&&this[_0x594a('0x13')](this[_0x594a('0x1b')](_0x4a433f)),_0x14d92f&&this[_0x594a('0x13')](this[_0x594a('0x1b')](_0x14d92f)),this[_0x594a('0x6')]();}[_0x594a('0x43')]({blurredAnnotation:_0x497668,activatedAnnotation:_0x4d7d9c,disableAnimationOnActivatedAnnotation:_0x43a227}){if(this['_activeAnnotation']=_0x4d7d9c,_0x497668){_0x497668[_0x594a('0x30')]=!0x1;const _0x5cd746=this[_0x594a('0x1b')](_0x497668);_0x5cd746&&_0x43a227&&(_0x5cd746['isAnimationDisabled']=!0x1);}if(_0x4d7d9c){const _0x3c93b6=this[_0x594a('0x1b')](_0x4d7d9c);_0x3c93b6&&(_0x4d7d9c[_0x594a('0x30')]=!0x0,_0x43a227&&(_0x3c93b6[_0x594a('0x23')]=!0x0,_0x3c93b6[_0x594a('0x2a')]+=0x1),this['_alignToTargetRect'](_0x3c93b6));}}[_0x594a('0xf')](_0x2ea402){this[_0x594a('0xc')](),this[_0x594a('0x21')][_0x594a('0x37')][_0x594a('0x8')]();for(const _0x19f668 of _0x2ea402)this[_0x594a('0x14')](_0x19f668);this[_0x594a('0x21')][_0x594a('0x22')][_0x594a('0x2e')](),this[_0x594a('0x21')][_0x594a('0x40')]='',this[_0x594a('0x19')]=null;}['addAnnotation'](_0x4cd666,_0x50b967){_0x50b967||(_0x50b967=_0x4cd666[_0x594a('0x21')]);const _0x2fea16=new _0x432db1(this[_0x594a('0x44')][_0x594a('0x41')]);this[_0x594a('0x10')][_0x594a('0x24')](_0x2fea16,_0x4cd666),this['_annotationToSidebarItemView'][_0x594a('0x24')](_0x4cd666,_0x2fea16),_0x2fea16['content'][_0x594a('0x17')](_0x50b967),this[_0x594a('0x29')](_0x4cd666[_0x594a('0x21')],_0x594a('0x11'),(_0x92ec15,_0x2c2c79,_0x16340d)=>{const _0x269218=this[_0x594a('0x2c')](_0x4cd666,_0x16340d);_0x2fea16['_targetTop']!=_0x269218&&(_0x2fea16['_targetTop']=_0x269218,this['_setItemTop'](_0x2fea16,_0x269218));}),this[_0x594a('0x29')](_0x2fea16,'change:top',()=>{this['_recalculate'](_0x2fea16,'top');}),this['listenTo'](_0x2fea16,_0x594a('0x3'),()=>{this[_0x594a('0x1f')](_0x2fea16,_0x594a('0x39'));}),this[_0x594a('0x13')](_0x2fea16);const _0x5bd1e8=this['_getItemBefore'](_0x2fea16);if(_0x5bd1e8)this[_0x594a('0x1e')](_0x5bd1e8,_0x2fea16)||this[_0x594a('0x13')](_0x2fea16);else this[_0x594a('0x13')](_0x2fea16);return this[_0x594a('0x6')](),this[_0x594a('0x21')][_0x594a('0x22')][_0x594a('0x17')](_0x2fea16),_0x2fea16;}['_alignForTopChange'](_0x31cb61){if(!_0x31cb61[_0x594a('0x27')][_0x594a('0x33')])return;const _0x455112=this['_getItemBefore'](_0x31cb61);if(!_0x455112)return;const _0x3efe2b=this[_0x594a('0x10')]['get'](_0x455112),_0x537b51=this['_activeAnnotation'];_0x537b51&&_0x537b51===_0x3efe2b?this[_0x594a('0x1e')](_0x455112,_0x31cb61):this['_alignBeforeItem'](_0x31cb61,_0x455112);}['_alignForBottomChange'](_0x320b74){if(!_0x320b74[_0x594a('0x27')][_0x594a('0x33')])return;const _0x1d8419=this[_0x594a('0x20')](_0x320b74);if(!_0x1d8419)return;const _0xfa9adf=this['_sidebarItemViewToAnnotation']['get'](_0x1d8419),_0x1ef964=this[_0x594a('0x44')]['config'][_0x594a('0x42')](_0x594a('0x16')),_0x1c4951=this['_activeAnnotation'];_0x1c4951&&_0x1c4951===_0xfa9adf&&_0x1ef964?(this['_alignBeforeItem'](_0x1d8419,_0x320b74),this[_0x594a('0x1e')](_0x320b74,_0x1d8419)):_0x1c4951&&_0x1c4951===_0xfa9adf?this[_0x594a('0x26')](_0x1d8419,_0x320b74):this[_0x594a('0x1e')](_0x320b74,_0x1d8419);}[_0x594a('0x1f')](_0x4ceb3f,_0x2d301d){0x0===this[_0x594a('0x18')][_0x594a('0x33')]&&setTimeout(()=>{for(const {sidebarItemView:_0x401913,changedProp:_0x56e0d5}of this[_0x594a('0x18')])_0x594a('0x2a')===_0x56e0d5?this['_alignForTopChange'](_0x401913):this[_0x594a('0x2b')](_0x401913);this[_0x594a('0x18')]=[];},0xa),this['_recalculateBuffer'][_0x594a('0x35')]({'sidebarItemView':_0x4ceb3f,'changedProp':_0x2d301d});}[_0x594a('0x1b')](_0x4f7e07){return this['_annotationToSidebarItemView']['get'](_0x4f7e07);}['destroy'](){this['view'][_0x594a('0x45')]();}[_0x594a('0x14')](_0x4967ab){const _0x48aa87=this['getSidebarItemView'](_0x4967ab);this['stopListening'](_0x48aa87),this[_0x594a('0xc')](_0x4967ab[_0x594a('0x21')]),_0x48aa87[_0x594a('0x45')](),this[_0x594a('0x4')][_0x594a('0xe')](_0x4967ab),this[_0x594a('0x10')]['delete'](_0x48aa87);}[_0x594a('0x15')](){const _0x13eb42=new _0x2d10b4(this[_0x594a('0x44')][_0x594a('0x41')]);return _0x13eb42['render'](),this['on'](_0x594a('0x1c'),(_0xce955,_0x1630e8,_0x58889d,_0x13bddb)=>{_0x13bddb&&_0x13eb42[_0x594a('0x28')]('minHeight'),_0x58889d?_0x13eb42[_0x594a('0x1d')](_0x594a('0xb'))['to'](_0x58889d,_0x594a('0x39')):_0x13eb42['minHeight']=null;}),_0x13eb42;}[_0x594a('0x6')](){this[_0x594a('0x19')]=this[_0x594a('0x1b')](this[_0x594a('0x1a')][_0x594a('0x5')]);}[_0x594a('0x38')](_0x275841){const _0x382665=this['_sidebarItemViewToAnnotation'][_0x594a('0x42')](_0x275841),_0x12ae3e=this['_annotations'][_0x594a('0x42')](this[_0x594a('0x1a')]['getIndex'](_0x382665)-0x1);return _0x12ae3e&&this['getSidebarItemView'](_0x12ae3e);}[_0x594a('0x20')](_0x1b3f73){const _0x5f3090=this['_sidebarItemViewToAnnotation'][_0x594a('0x42')](_0x1b3f73),_0x8ccf1f=this[_0x594a('0x1a')]['get'](this[_0x594a('0x1a')]['getIndex'](_0x5f3090)+0x1);return _0x8ccf1f&&this[_0x594a('0x1b')](_0x8ccf1f);}['_alignBeforeItem'](_0x1fd81e,_0xb6cc8f){_0x1fd81e[_0x594a('0x2')]();const _0x3b72ba=C(_0xb6cc8f[_0x594a('0x39')]+this[_0x594a('0x3c')],_0x1fd81e[_0x594a('0x2a')]);return!!_0x3b72ba&&(this['_setItemTop'](_0xb6cc8f,_0xb6cc8f[_0x594a('0x2a')]-_0x3b72ba),!0x0);}[_0x594a('0x1e')](_0x371813,_0x30f68a){_0x371813[_0x594a('0x2')]();const _0x24dfbd=C(_0x371813[_0x594a('0x39')]+this[_0x594a('0x3c')],_0x30f68a['top']);return!!_0x24dfbd&&(this[_0x594a('0x1')](_0x30f68a,_0x30f68a[_0x594a('0x2a')]+_0x24dfbd,!0x1),!0x0);}['_alignToTargetRect'](_0x5df305){const _0x3890a5=this[_0x594a('0x10')][_0x594a('0x42')](_0x5df305);if(!_0x3890a5||!_0x3890a5[_0x594a('0x34')])return;const _0x30e3d0=this[_0x594a('0x2c')](_0x3890a5,_0x3890a5[_0x594a('0xd')]);this[_0x594a('0x1')](_0x5df305,_0x30e3d0);}[_0x594a('0x2c')](_0x43c1b6,_0x3e2759){if(null===_0x3e2759)return 0x0;if(_0x43c1b6['target']instanceof _0x51b9d2)return _0x3e2759[_0x594a('0x2a')];{const _0x5a18b8=new _0x51b9d2(this[_0x594a('0x21')][_0x594a('0x37')])[_0x594a('0x2a')];return _0x3e2759[_0x594a('0x2a')]-_0x5a18b8;}}[_0x594a('0x1')](_0x142f5f,_0x2928be,_0x5af8cb=this[_0x594a('0x44')][_0x594a('0x0')][_0x594a('0x42')](_0x594a('0x16'))){_0x5af8cb&&(_0x2928be=Math['max'](_0x2928be,this['_getMaxAvailableTop'](_0x142f5f))),_0x142f5f[_0x594a('0x2a')]=_0x2928be;}[_0x594a('0x3e')](_0x2ced8b){let _0x4ae341=this[_0x594a('0x38')](_0x2ced8b),_0x2f8d08=0x0;for(;_0x4ae341;)_0x4ae341['updateHeight'](),_0x2f8d08+=this['_spaceBetweenItems']+_0x4ae341[_0x594a('0x9')],_0x4ae341=this[_0x594a('0x38')](_0x4ae341);return _0x2f8d08;}}function C(_0xf7022,_0x52250d){return Math['max'](_0xf7022-_0x52250d,0x0);}function p(_0x1f337a){return null!==_0x1f337a&&_0x594a('0x2d')==typeof _0x1f337a&&0x1===_0x1f337a[_0x594a('0x2f')];}
23
+ const _0x404c=['change:targetRect','config','sidebar.preventScrollOutOfView','_destroySidebarItemView','_createSidebarView','_annotations','target','getIndex','_alignAfterItem','_spaceBetweenItems','minHeight','change:_lastItem','list','element','_lastItem','context','_getItemAfter','_setItemTop','targetRect','pluginName','updateHeight','setContainer','_sidebarItemViewToAnnotation','object','container','_recalculate','nodeType','view','class','_targetTop','get','isAnimationDisabled','_alignForTopChange','_updateLastItem','init','Sidebar','set','_activeAnnotation','refresh','content','isActive','push','sidebar.container','_recalculateBuffer','define','destroy','addAnnotation','_annotationToSidebarItemView','change:top','_detachFromContainer','bind','_alignToTargetRect','top','bottom','_getItemBefore','max','listenTo','length','getSidebarItemView','_alignForBottomChange','_alignBeforeItem','unbind','clear','render','stopListening','height','add','locale','remove','_getTargetTop','sidebar-setcontainer-invalid-element','_getMaxAvailableTop'];(function(_0x5bdec3,_0x404cc9){const _0x2d04a0=function(_0x4dbf72){while(--_0x4dbf72){_0x5bdec3['push'](_0x5bdec3['shift']());}};_0x2d04a0(++_0x404cc9);}(_0x404c,0x1e6));const _0x2d04=function(_0x5bdec3,_0x404cc9){_0x5bdec3=_0x5bdec3-0x0;let _0x2d04a0=_0x404c[_0x5bdec3];return _0x2d04a0;};import{ContextPlugin as _0xd17d9a}from'ckeditor5/src/core';import _0x253c4a from'./view/sidebarview';import _0x482ec3 from'./view/sidebaritemview';import{Rect as _0x595528,CKEditorError as _0x105609}from'ckeditor5/src/utils';export default class b extends _0xd17d9a{static get[_0x2d04('0x25')](){return _0x2d04('0x35');}constructor(_0x397084){super(_0x397084),this[_0x2d04('0x36')]('_lastItem'),this[_0x2d04('0x2d')]=this[_0x2d04('0x16')](),this['set']('container',null),this[_0x2d04('0x1b')]=0x19,this[_0x2d04('0x28')]=new Map(),this[_0x2d04('0x41')]=new Map(),this[_0x2d04('0x21')][_0x2d04('0x13')][_0x2d04('0x3e')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x2d04('0x37')]=null,this['_recalculateBuffer']=[];}[_0x2d04('0x34')](){const _0x2d22ee=this['context'][_0x2d04('0x13')][_0x2d04('0x30')](_0x2d04('0x3c'));_0x2d22ee&&this[_0x2d04('0x27')](_0x2d22ee);}[_0x2d04('0x27')](_0x4a7403){if(!p(_0x4a7403))throw new _0x105609(_0x2d04('0x10'));this[_0x2d04('0x2a')]=_0x4a7403;}['_attachToContainer']({viewClass:_0x3dbac7='',spaceBetweenItems:_0xd8f059=0x19}={}){if(!p(this['container']))throw new _0x105609('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this[_0x2d04('0x2d')]['element']),this[_0x2d04('0x2d')]['class']=_0x3dbac7,this[_0x2d04('0x1b')]=_0xd8f059;}['rearrange']({removedAnnotation:_0x212d54,previousAnnotation:_0x2de394,nextAnnotation:_0x3fa33e}){const _0x41c9de=this['getSidebarItemView'](_0x212d54);this[_0x2d04('0x2d')]['list'][_0x2d04('0xe')](_0x41c9de),this[_0x2d04('0x15')](_0x212d54),_0x2de394&&this[_0x2d04('0x45')](this[_0x2d04('0x4')](_0x2de394)),_0x3fa33e&&this[_0x2d04('0x45')](this[_0x2d04('0x4')](_0x3fa33e)),this[_0x2d04('0x33')]();}[_0x2d04('0x38')]({blurredAnnotation:_0x3d4fed,activatedAnnotation:_0x390c18,disableAnimationOnActivatedAnnotation:_0x52fea0}){if(this['_activeAnnotation']=_0x390c18,_0x3d4fed){_0x3d4fed[_0x2d04('0x3a')]=!0x1;const _0x39c4b9=this[_0x2d04('0x4')](_0x3d4fed);_0x39c4b9&&_0x52fea0&&(_0x39c4b9[_0x2d04('0x31')]=!0x1);}if(_0x390c18){const _0x375f39=this[_0x2d04('0x4')](_0x390c18);_0x375f39&&(_0x390c18[_0x2d04('0x3a')]=!0x0,_0x52fea0&&(_0x375f39[_0x2d04('0x31')]=!0x0,_0x375f39[_0x2d04('0x46')]+=0x1),this['_alignToTargetRect'](_0x375f39));}}[_0x2d04('0x43')](_0x5efa53){this[_0x2d04('0xa')](),this['view'][_0x2d04('0x1f')][_0x2d04('0xe')]();for(const _0x3d60d2 of _0x5efa53)this[_0x2d04('0x15')](_0x3d60d2);this[_0x2d04('0x2d')][_0x2d04('0x1e')][_0x2d04('0x8')](),this[_0x2d04('0x2d')][_0x2d04('0x2e')]='',this[_0x2d04('0x20')]=null;}[_0x2d04('0x40')](_0x5cf775,_0x1a0848){_0x1a0848||(_0x1a0848=_0x5cf775['view']);const _0xffb74e=new _0x482ec3(this['context'][_0x2d04('0xd')]);this[_0x2d04('0x28')][_0x2d04('0x36')](_0xffb74e,_0x5cf775),this[_0x2d04('0x41')][_0x2d04('0x36')](_0x5cf775,_0xffb74e),_0xffb74e[_0x2d04('0x39')][_0x2d04('0xc')](_0x1a0848),this[_0x2d04('0x2')](_0x5cf775[_0x2d04('0x2d')],_0x2d04('0x12'),(_0x548050,_0xb6fadf,_0x3a0bfe)=>{const _0x2a384b=this[_0x2d04('0xf')](_0x5cf775,_0x3a0bfe);_0xffb74e[_0x2d04('0x2f')]!=_0x2a384b&&(_0xffb74e['_targetTop']=_0x2a384b,this[_0x2d04('0x23')](_0xffb74e,_0x2a384b));}),this[_0x2d04('0x2')](_0xffb74e,_0x2d04('0x42'),()=>{this[_0x2d04('0x2b')](_0xffb74e,_0x2d04('0x46'));}),this['listenTo'](_0xffb74e,'change:bottom',()=>{this[_0x2d04('0x2b')](_0xffb74e,_0x2d04('0x47'));}),this['_alignToTargetRect'](_0xffb74e);const _0xcbbc7a=this[_0x2d04('0x0')](_0xffb74e);if(_0xcbbc7a)this[_0x2d04('0x1a')](_0xcbbc7a,_0xffb74e)||this[_0x2d04('0x45')](_0xffb74e);else this[_0x2d04('0x45')](_0xffb74e);return this[_0x2d04('0x33')](),this[_0x2d04('0x2d')][_0x2d04('0x1e')][_0x2d04('0xc')](_0xffb74e),_0xffb74e;}[_0x2d04('0x32')](_0x5a2cc9){if(!_0x5a2cc9[_0x2d04('0x39')][_0x2d04('0x3')])return;const _0x4e3d2d=this[_0x2d04('0x0')](_0x5a2cc9);if(!_0x4e3d2d)return;const _0x1078db=this[_0x2d04('0x28')]['get'](_0x4e3d2d),_0x569c2b=this[_0x2d04('0x37')];_0x569c2b&&_0x569c2b===_0x1078db?this[_0x2d04('0x1a')](_0x4e3d2d,_0x5a2cc9):this[_0x2d04('0x6')](_0x5a2cc9,_0x4e3d2d);}[_0x2d04('0x5')](_0x4875d5){if(!_0x4875d5[_0x2d04('0x39')]['length'])return;const _0x5014a2=this[_0x2d04('0x22')](_0x4875d5);if(!_0x5014a2)return;const _0x23a483=this['_sidebarItemViewToAnnotation']['get'](_0x5014a2),_0x27f5fe=this[_0x2d04('0x21')][_0x2d04('0x13')]['get'](_0x2d04('0x14')),_0xf612de=this['_activeAnnotation'];_0xf612de&&_0xf612de===_0x23a483&&_0x27f5fe?(this['_alignBeforeItem'](_0x5014a2,_0x4875d5),this[_0x2d04('0x1a')](_0x4875d5,_0x5014a2)):_0xf612de&&_0xf612de===_0x23a483?this[_0x2d04('0x6')](_0x5014a2,_0x4875d5):this['_alignAfterItem'](_0x4875d5,_0x5014a2);}[_0x2d04('0x2b')](_0x561176,_0x294edc){0x0===this[_0x2d04('0x3d')][_0x2d04('0x3')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4f812f,changedProp:_0x40dce3}of this[_0x2d04('0x3d')])'top'===_0x40dce3?this[_0x2d04('0x32')](_0x4f812f):this['_alignForBottomChange'](_0x4f812f);this[_0x2d04('0x3d')]=[];},0xa),this[_0x2d04('0x3d')][_0x2d04('0x3b')]({'sidebarItemView':_0x561176,'changedProp':_0x294edc});}['getSidebarItemView'](_0x4ccff7){return this[_0x2d04('0x41')][_0x2d04('0x30')](_0x4ccff7);}[_0x2d04('0x3f')](){this[_0x2d04('0x2d')][_0x2d04('0x3f')]();}[_0x2d04('0x15')](_0xc3d6b3){const _0xc96852=this[_0x2d04('0x4')](_0xc3d6b3);this[_0x2d04('0xa')](_0xc96852),this[_0x2d04('0xa')](_0xc3d6b3[_0x2d04('0x2d')]),_0xc96852[_0x2d04('0x3f')](),this[_0x2d04('0x41')]['delete'](_0xc3d6b3),this['_sidebarItemViewToAnnotation']['delete'](_0xc96852);}[_0x2d04('0x16')](){const _0x110bca=new _0x253c4a(this[_0x2d04('0x21')][_0x2d04('0xd')]);return _0x110bca[_0x2d04('0x9')](),this['on'](_0x2d04('0x1d'),(_0xa5ce5f,_0x1e27ab,_0x23cb6f,_0x337dff)=>{_0x337dff&&_0x110bca[_0x2d04('0x7')](_0x2d04('0x1c')),_0x23cb6f?_0x110bca[_0x2d04('0x44')](_0x2d04('0x1c'))['to'](_0x23cb6f,'bottom'):_0x110bca[_0x2d04('0x1c')]=null;}),_0x110bca;}[_0x2d04('0x33')](){this['_lastItem']=this[_0x2d04('0x4')](this['_annotations']['last']);}[_0x2d04('0x0')](_0x40b61a){const _0x1db6ba=this[_0x2d04('0x28')][_0x2d04('0x30')](_0x40b61a),_0x271e95=this[_0x2d04('0x17')][_0x2d04('0x30')](this[_0x2d04('0x17')][_0x2d04('0x19')](_0x1db6ba)-0x1);return _0x271e95&&this[_0x2d04('0x4')](_0x271e95);}[_0x2d04('0x22')](_0x47176e){const _0x404f06=this[_0x2d04('0x28')][_0x2d04('0x30')](_0x47176e),_0x42485b=this[_0x2d04('0x17')][_0x2d04('0x30')](this[_0x2d04('0x17')][_0x2d04('0x19')](_0x404f06)+0x1);return _0x42485b&&this['getSidebarItemView'](_0x42485b);}[_0x2d04('0x6')](_0xc825ef,_0xd661a0){_0xc825ef[_0x2d04('0x26')]();const _0x2ceb23=C(_0xd661a0[_0x2d04('0x47')]+this[_0x2d04('0x1b')],_0xc825ef[_0x2d04('0x46')]);return!!_0x2ceb23&&(this['_setItemTop'](_0xd661a0,_0xd661a0[_0x2d04('0x46')]-_0x2ceb23),!0x0);}['_alignAfterItem'](_0xf4ac6f,_0x2d8d4f){_0xf4ac6f[_0x2d04('0x26')]();const _0x4417ee=C(_0xf4ac6f[_0x2d04('0x47')]+this[_0x2d04('0x1b')],_0x2d8d4f[_0x2d04('0x46')]);return!!_0x4417ee&&(this[_0x2d04('0x23')](_0x2d8d4f,_0x2d8d4f['top']+_0x4417ee,!0x1),!0x0);}[_0x2d04('0x45')](_0x1f32ea){const _0x3eecbe=this[_0x2d04('0x28')]['get'](_0x1f32ea);if(!_0x3eecbe||!_0x3eecbe['target'])return;const _0x5e6efb=this[_0x2d04('0xf')](_0x3eecbe,_0x3eecbe[_0x2d04('0x24')]);this[_0x2d04('0x23')](_0x1f32ea,_0x5e6efb);}[_0x2d04('0xf')](_0x7d63d4,_0x16226e){if(null===_0x16226e)return 0x0;if(_0x7d63d4[_0x2d04('0x18')]instanceof _0x595528)return _0x16226e['top'];{const _0x37d9d6=new _0x595528(this[_0x2d04('0x2d')][_0x2d04('0x1f')])[_0x2d04('0x46')];return _0x16226e[_0x2d04('0x46')]-_0x37d9d6;}}[_0x2d04('0x23')](_0x4291cf,_0x39f2cd,_0x28b041=this[_0x2d04('0x21')][_0x2d04('0x13')]['get'](_0x2d04('0x14'))){_0x28b041&&(_0x39f2cd=Math['max'](_0x39f2cd,this[_0x2d04('0x11')](_0x4291cf))),_0x4291cf['top']=_0x39f2cd;}[_0x2d04('0x11')](_0x52ce59){let _0x224faa=this[_0x2d04('0x0')](_0x52ce59),_0x4a638a=0x0;for(;_0x224faa;)_0x224faa['updateHeight'](),_0x4a638a+=this[_0x2d04('0x1b')]+_0x224faa[_0x2d04('0xb')],_0x224faa=this[_0x2d04('0x0')](_0x224faa);return _0x4a638a;}}function C(_0x14efbe,_0x450c47){return Math[_0x2d04('0x1')](_0x14efbe-_0x450c47,0x0);}function p(_0x3ff47c){return null!==_0x3ff47c&&_0x2d04('0x29')==typeof _0x3ff47c&&0x1===_0x3ff47c[_0x2d04('0x2c')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3096=['add','ck-annotation-counter__badge--','bind','extendTemplate','bindTemplate','span','setTemplate','_badge','isDirty','set','number','icon','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode'];(function(_0x366b8f,_0x3096d6){const _0x1240f9=function(_0x46773f){while(--_0x46773f){_0x366b8f['push'](_0x366b8f['shift']());}};_0x1240f9(++_0x3096d6);}(_0x3096,0x148));const _0x1240=function(_0x366b8f,_0x3096d6){_0x366b8f=_0x366b8f-0x0;let _0x1240f9=_0x3096[_0x366b8f];return _0x1240f9;};import{ButtonView as _0x2552ee,View as _0x2fc69c}from'ckeditor5/src/ui';import _0x2ab999 from'../../../theme/icons/add-comment.svg';export default class B extends _0x2552ee{constructor(_0x353a54){super(_0x353a54);const _0x280ec3=this[_0x1240('0x6')];this[_0x1240('0xb')](_0x1240('0xa'),!0x1),this[_0x1240('0xb')](_0x1240('0xc'),0x0),this[_0x1240('0x4')](_0x1240('0x9'))['to'](this,_0x1240('0xa'),this,_0x1240('0xc'),(_0x5edcee,_0x25ed76)=>_0x5edcee?'...':_0x25ed76),this[_0x1240('0xb')]('annotationType',''),this[_0x1240('0xd')]=_0x2ab999,this[_0x1240('0x5')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x1240('0xe')]=new _0x2fc69c(),this[_0x1240('0xe')][_0x1240('0x8')]({'tag':_0x1240('0x7'),'attributes':{'class':[_0x1240('0x0'),_0x280ec3['to']('annotationType',_0x2e2411=>_0x1240('0x3')+_0x2e2411),_0x280ec3['if'](_0x1240('0xa'),_0x1240('0x1'))]},'children':[{'text':_0x280ec3['to'](_0x1240('0x9'))}]}),this['children'][_0x1240('0x2')](this[_0x1240('0xe')]);}}
23
+ const _0x5dd2=['icon','isDirty','ck-annotation-counter__badge--edit-mode','children','_badge','...','annotationType','extendTemplate','number','set','bind','add'];(function(_0x4a795a,_0x5dd2cd){const _0x32c384=function(_0x466a27){while(--_0x466a27){_0x4a795a['push'](_0x4a795a['shift']());}};_0x32c384(++_0x5dd2cd);}(_0x5dd2,0x19d));const _0x32c3=function(_0x4a795a,_0x5dd2cd){_0x4a795a=_0x4a795a-0x0;let _0x32c384=_0x5dd2[_0x4a795a];return _0x32c384;};import{ButtonView as _0x337c02,View as _0x6adac4}from'ckeditor5/src/ui';import _0x198520 from'../../../theme/icons/add-comment.svg';export default class B extends _0x337c02{constructor(_0x7d835c){super(_0x7d835c);const _0x2a9b7a=this['bindTemplate'];this['set'](_0x32c3('0x8'),!0x1),this[_0x32c3('0x4')](_0x32c3('0x3'),0x0),this[_0x32c3('0x5')](_0x32c3('0xb'))['to'](this,'isDirty',this,_0x32c3('0x3'),(_0x58344a,_0x4efd90)=>_0x58344a?_0x32c3('0x0'):_0x4efd90),this[_0x32c3('0x4')](_0x32c3('0x1'),''),this[_0x32c3('0x7')]=_0x198520,this[_0x32c3('0x2')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x6adac4(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2a9b7a['to'](_0x32c3('0x1'),_0x387f9a=>'ck-annotation-counter__badge--'+_0x387f9a),_0x2a9b7a['if']('isDirty',_0x32c3('0x9'))]},'children':[{'text':_0x2a9b7a['to'](_0x32c3('0xb'))}]}),this[_0x32c3('0xa')][_0x32c3('0x6')](this['counterView']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bdd=['attach','ck-annotation-wrapper--active','height','mainView','targetRect','bindTemplate','div','isActive','type','content','clear','detach','element','destroy','set','clientHeight','Esc','createCollection','_updateHeight','keystrokes','focus','fire','ck-rounded-corners','render','focusTracker','ck-annotation-wrapper','_mutationObserver','add'];(function(_0x230359,_0x3bdd10){const _0x1bc8ac=function(_0x49ac11){while(--_0x49ac11){_0x230359['push'](_0x230359['shift']());}};_0x1bc8ac(++_0x3bdd10);}(_0x3bdd,0xf7));const _0x1bc8=function(_0x230359,_0x3bdd10){_0x230359=_0x230359-0x0;let _0x1bc8ac=_0x3bdd[_0x230359];return _0x1bc8ac;};import{View as _0x37e9d4}from'ckeditor5/src/ui';import{FocusTracker as _0x6a55a2,KeystrokeHandler as _0x7eff8d,uid as _0xcea191}from'ckeditor5/src/utils';import _0x5efc36 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x37e9d4{constructor(_0x5dc5dd,_0x478b50){super(_0x5dc5dd),this['id']=_0xcea191(),this[_0x1bc8('0x1')]=new _0x6a55a2(),this[_0x1bc8('0x18')]=new _0x7eff8d(),this['keystrokes'][_0x1bc8('0x13')](_0x1bc8('0x15'),(_0x2de979,_0x5c58c3)=>this[_0x1bc8('0x1a')](_0x1bc8('0x15'),_0x5c58c3)),this[_0x1bc8('0x13')](_0x1bc8('0x9'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1bc8('0x13')](_0x1bc8('0x7'),0x0),this[_0x1bc8('0x13')](_0x1bc8('0xc'),!0x1),this[_0x1bc8('0x13')]('isDirty',!0x1),this[_0x1bc8('0x13')]('length',0x0),this['set'](_0x1bc8('0xd'),''),this[_0x1bc8('0x3')]=_0x5efc36(()=>this[_0x1bc8('0x17')]()),this['content']=this[_0x1bc8('0x16')](),this[_0x1bc8('0xe')][_0x1bc8('0x4')](_0x478b50),this[_0x1bc8('0x8')]=_0x478b50;const _0x5cd264=this[_0x1bc8('0xa')];this['setTemplate']({'tag':_0x1bc8('0xb'),'attributes':{'class':['ck',_0x1bc8('0x2'),_0x1bc8('0x1b'),_0x5cd264['if'](_0x1bc8('0xc'),_0x1bc8('0x6'))],'tabindex':-0x1},'children':this[_0x1bc8('0xe')]});}[_0x1bc8('0x0')](){super[_0x1bc8('0x0')](),this[_0x1bc8('0x1')][_0x1bc8('0x4')](this[_0x1bc8('0x11')]),this[_0x1bc8('0x18')]['listenTo'](this[_0x1bc8('0x11')]),this[_0x1bc8('0x3')][_0x1bc8('0x5')](this[_0x1bc8('0x11')]);}[_0x1bc8('0x12')](){this[_0x1bc8('0xe')][_0x1bc8('0xf')](),this[_0x1bc8('0x18')][_0x1bc8('0x12')](),this[_0x1bc8('0x1')]['destroy'](),this[_0x1bc8('0x3')][_0x1bc8('0x10')](),super[_0x1bc8('0x12')]();}[_0x1bc8('0x19')](){this[_0x1bc8('0x11')][_0x1bc8('0x19')]();}[_0x1bc8('0x17')](){const _0x222831=this[_0x1bc8('0x11')][_0x1bc8('0x14')];_0x222831&&(this[_0x1bc8('0x7')]=_0x222831);}}
23
+ const _0x36ea=['_mutationObserver','ck-rounded-corners','type','focusTracker','isActive','mainView','detach','div','ck-annotation-wrapper--active','bindTemplate','createCollection','height','_updateHeight','set','element','targetRect','Esc','ck-annotation-wrapper','fire','add','keystrokes','focus','attach','destroy','render','content'];(function(_0x23957b,_0x36ea5f){const _0x46e905=function(_0x1a6bb4){while(--_0x1a6bb4){_0x23957b['push'](_0x23957b['shift']());}};_0x46e905(++_0x36ea5f);}(_0x36ea,0xf9));const _0x46e9=function(_0x23957b,_0x36ea5f){_0x23957b=_0x23957b-0x0;let _0x46e905=_0x36ea[_0x23957b];return _0x46e905;};import{View as _0x2253eb}from'ckeditor5/src/ui';import{FocusTracker as _0x57b2a1,KeystrokeHandler as _0x5739f8,uid as _0x229b5d}from'ckeditor5/src/utils';import _0x508daf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x2253eb{constructor(_0x1be5c6,_0x52ea05){super(_0x1be5c6),this['id']=_0x229b5d(),this[_0x46e9('0xe')]=new _0x57b2a1(),this[_0x46e9('0x5')]=new _0x5739f8(),this['keystrokes']['set']('Esc',(_0x2df2ad,_0x4ec574)=>this[_0x46e9('0x3')](_0x46e9('0x1'),_0x4ec574)),this['set'](_0x46e9('0x0'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x46e9('0x18')](_0x46e9('0x16'),0x0),this[_0x46e9('0x18')](_0x46e9('0xf'),!0x1),this['set']('isDirty',!0x1),this[_0x46e9('0x18')]('length',0x0),this['set'](_0x46e9('0xd'),''),this['_mutationObserver']=_0x508daf(()=>this[_0x46e9('0x17')]()),this[_0x46e9('0xa')]=this[_0x46e9('0x15')](),this['content'][_0x46e9('0x4')](_0x52ea05),this[_0x46e9('0x10')]=_0x52ea05;const _0x4fd9ec=this[_0x46e9('0x14')];this['setTemplate']({'tag':_0x46e9('0x12'),'attributes':{'class':['ck',_0x46e9('0x2'),_0x46e9('0xc'),_0x4fd9ec['if'](_0x46e9('0xf'),_0x46e9('0x13'))],'tabindex':-0x1},'children':this[_0x46e9('0xa')]});}[_0x46e9('0x9')](){super['render'](),this[_0x46e9('0xe')]['add'](this[_0x46e9('0x19')]),this['keystrokes']['listenTo'](this[_0x46e9('0x19')]),this[_0x46e9('0xb')][_0x46e9('0x7')](this[_0x46e9('0x19')]);}['destroy'](){this['content']['clear'](),this['keystrokes'][_0x46e9('0x8')](),this['focusTracker'][_0x46e9('0x8')](),this[_0x46e9('0xb')][_0x46e9('0x11')](),super[_0x46e9('0x8')]();}[_0x46e9('0x6')](){this[_0x46e9('0x19')][_0x46e9('0x6')]();}[_0x46e9('0x17')](){const _0x2232b4=this[_0x46e9('0x19')]['clientHeight'];_0x2232b4&&(this['height']=_0x2232b4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b9e=['_mutationObserver','bottom','render','div','setTemplate','attach','set','height','ck-sidebar-item','content','element','isAnimationDisabled','top','detach','_targetTop','updateHeight','createCollection','destroy','clear'];(function(_0x222b38,_0x2b9e70){const _0x5cc616=function(_0x25878d){while(--_0x25878d){_0x222b38['push'](_0x222b38['shift']());}};_0x5cc616(++_0x2b9e70);}(_0x2b9e,0xf3));const _0x5cc6=function(_0x222b38,_0x2b9e70){_0x222b38=_0x222b38-0x0;let _0x5cc616=_0x2b9e[_0x222b38];return _0x5cc616;};import{View as _0x345a3f}from'ckeditor5/src/ui';import{toUnit as _0x5de07c}from'ckeditor5/src/utils';import _0x4c8d8b from'../../utils/createmutationobserver';const gt=_0x5de07c('px');export default class O extends _0x345a3f{constructor(_0x4c9d22){super(_0x4c9d22),this[_0x5cc6('0xa')](_0x5cc6('0x10')),this[_0x5cc6('0xa')](_0x5cc6('0xb'),0x0),this['bind'](_0x5cc6('0x5'))['to'](this,_0x5cc6('0x10'),this,'height',(_0x1373df,_0x265e01)=>(_0x1373df||0x0)+_0x265e01),this[_0x5cc6('0xa')](_0x5cc6('0xf'),!0x1),this[_0x5cc6('0x4')]=_0x4c8d8b(()=>this[_0x5cc6('0x0')]()),this[_0x5cc6('0x12')]=null,this[_0x5cc6('0xd')]=this[_0x5cc6('0x1')]();const _0x165e5a=this['bindTemplate'];this[_0x5cc6('0x8')]({'tag':_0x5cc6('0x7'),'attributes':{'class':[_0x5cc6('0xc'),_0x165e5a['to']('isAnimationDisabled',_0x1357c6=>_0x1357c6?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x165e5a['to'](_0x5cc6('0x10'),gt)}},'children':this[_0x5cc6('0xd')]});}[_0x5cc6('0x6')](){super[_0x5cc6('0x6')](),this[_0x5cc6('0x4')][_0x5cc6('0x9')](this[_0x5cc6('0xe')]);}[_0x5cc6('0x0')](){const _0x42d300=this['element']['clientHeight'];_0x42d300&&(this[_0x5cc6('0xb')]=_0x42d300);}['destroy'](){this[_0x5cc6('0xd')][_0x5cc6('0x3')](),this[_0x5cc6('0x4')][_0x5cc6('0x11')](),super[_0x5cc6('0x2')]();}}
23
+ const _0xb56b=['ck-sidebar-item--no-animation','height','attach','setTemplate','updateHeight','content','render','element','detach','_mutationObserver','isAnimationDisabled','ck-sidebar-item','set','bindTemplate','_targetTop','bottom','createCollection','top','bind'];(function(_0x55213d,_0xb56b85){const _0x38d9ea=function(_0x5912cf){while(--_0x5912cf){_0x55213d['push'](_0x55213d['shift']());}};_0x38d9ea(++_0xb56b85);}(_0xb56b,0x1c9));const _0x38d9=function(_0x55213d,_0xb56b85){_0x55213d=_0x55213d-0x0;let _0x38d9ea=_0xb56b[_0x55213d];return _0x38d9ea;};import{View as _0x3a8ac3}from'ckeditor5/src/ui';import{toUnit as _0x466443}from'ckeditor5/src/utils';import _0x10a051 from'../../utils/createmutationobserver';const gt=_0x466443('px');export default class O extends _0x3a8ac3{constructor(_0x34c3f6){super(_0x34c3f6),this[_0x38d9('0xb')]('top'),this[_0x38d9('0xb')](_0x38d9('0x0'),0x0),this[_0x38d9('0x11')](_0x38d9('0xe'))['to'](this,_0x38d9('0x10'),this,'height',(_0x1dc6c6,_0x582b07)=>(_0x1dc6c6||0x0)+_0x582b07),this[_0x38d9('0xb')](_0x38d9('0x9'),!0x1),this['_mutationObserver']=_0x10a051(()=>this[_0x38d9('0x3')]()),this[_0x38d9('0xd')]=null,this[_0x38d9('0x4')]=this[_0x38d9('0xf')]();const _0x110ef0=this[_0x38d9('0xc')];this[_0x38d9('0x2')]({'tag':'div','attributes':{'class':[_0x38d9('0xa'),_0x110ef0['to'](_0x38d9('0x9'),_0x4d34c8=>_0x4d34c8?_0x38d9('0x12'):'')],'style':{'top':_0x110ef0['to'](_0x38d9('0x10'),gt)}},'children':this[_0x38d9('0x4')]});}[_0x38d9('0x5')](){super['render'](),this[_0x38d9('0x8')][_0x38d9('0x1')](this[_0x38d9('0x6')]);}[_0x38d9('0x3')](){const _0x463a37=this[_0x38d9('0x6')]['clientHeight'];_0x463a37&&(this['height']=_0x463a37);}['destroy'](){this['content']['clear'](),this[_0x38d9('0x8')][_0x38d9('0x7')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fb0=['bindTemplate','set','setTemplate','createCollection','ck-sidebar','list','div','minHeight','ck-reset'];(function(_0x386a19,_0x4fb03c){const _0x500301=function(_0x33e7c9){while(--_0x33e7c9){_0x386a19['push'](_0x386a19['shift']());}};_0x500301(++_0x4fb03c);}(_0x4fb0,0x151));const _0x5003=function(_0x386a19,_0x4fb03c){_0x386a19=_0x386a19-0x0;let _0x500301=_0x4fb0[_0x386a19];return _0x500301;};import{View as _0x563e2f}from'ckeditor5/src/ui';import{toUnit as _0x1fd8ea}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x1fd8ea('px');export default class T extends _0x563e2f{constructor(_0x4990f1){super(_0x4990f1);const _0x4e3b2e=this[_0x5003('0x5')];this[_0x5003('0x6')](_0x5003('0x3'),0x0),this[_0x5003('0x6')]('class',''),this[_0x5003('0x1')]=this[_0x5003('0x8')](),this[_0x5003('0x7')]({'tag':_0x5003('0x2'),'attributes':{'class':['ck',_0x5003('0x0'),_0x5003('0x4'),_0x4e3b2e['to']('class')],'style':{'minHeight':_0x4e3b2e['to'](_0x5003('0x3'),_0x562b67=>_0x562b67?gt(_0x562b67+0xa):null)}},'children':this[_0x5003('0x1')]});}}
23
+ const _0x18b5=['class','minHeight','div','createCollection','list','bindTemplate','ck-sidebar','setTemplate','set'];(function(_0x1ecfdc,_0x18b52e){const _0x1a03cb=function(_0x5c108a){while(--_0x5c108a){_0x1ecfdc['push'](_0x1ecfdc['shift']());}};_0x1a03cb(++_0x18b52e);}(_0x18b5,0xe5));const _0x1a03=function(_0x1ecfdc,_0x18b52e){_0x1ecfdc=_0x1ecfdc-0x0;let _0x1a03cb=_0x18b5[_0x1ecfdc];return _0x1a03cb;};import{View as _0x284c1d}from'ckeditor5/src/ui';import{toUnit as _0x3f3143}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x3f3143('px');export default class T extends _0x284c1d{constructor(_0x44d06e){super(_0x44d06e);const _0x39edfc=this[_0x1a03('0x1')];this[_0x1a03('0x4')]('minHeight',0x0),this['set'](_0x1a03('0x5'),''),this['list']=this[_0x1a03('0x8')](),this[_0x1a03('0x3')]({'tag':_0x1a03('0x7'),'attributes':{'class':['ck',_0x1a03('0x2'),'ck-reset',_0x39edfc['to'](_0x1a03('0x5'))],'style':{'minHeight':_0x39edfc['to'](_0x1a03('0x6'),_0xc3abf4=>_0xc3abf4?gt(_0xc3abf4+0xa):null)}},'children':this[_0x1a03('0x0')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ee2=['removeEventListener','hasDomSelection','editors','off','set','widesidebar-detach-not-attached','widesidebar-attach-already-attached','listenTo','remove','set:container','_destroyEditorAnnotationsIntegration','addEventListener','add','detach','_activeAnnotation','refreshPositioning','plugins','refresh','Sidebar','ck-sidebar--wide','_annotations','resize','init','switchTo','_refreshPositioningDebounced','EditorAnnotations','high','activeAnnotation','has','_attachToContainer','container','get','annotations','stopListening','_editorAnnotations','cancel','wideSidebar','register','_detachFromContainer','setActiveAnnotation','_integrateWithEditorAnnotations','change:container','isAttached','blur','from','context','rearrange','focus','uiUpdate','pluginName','attach'];(function(_0x16a89e,_0x2ee21a){const _0x59e5e3=function(_0x48611f){while(--_0x48611f){_0x16a89e['push'](_0x16a89e['shift']());}};_0x59e5e3(++_0x2ee21a);}(_0x2ee2,0xc3));const _0x59e5=function(_0x16a89e,_0x2ee21a){_0x16a89e=_0x16a89e-0x0;let _0x59e5e3=_0x2ee2[_0x16a89e];return _0x59e5e3;};import{ContextPlugin as _0x50073d}from'ckeditor5/src/core';import _0xf2101f from'./annotationsuis';import _0x50904f from'./sidebar';import{CKEditorError as _0x428bf2,Collection as _0x3a8f37}from'ckeditor5/src/utils';import{debounce as _0x401c06}from'lodash-es';export default class i extends _0x50073d{static get['requires'](){return[_0x50904f,_0xf2101f];}static get[_0x59e5('0x7')](){return'WideSidebar';}constructor(_0x541d87){super(_0x541d87),this[_0x59e5('0x0')]=!0x1,this[_0x59e5('0xd')]('activeAnnotation',null),this[_0x59e5('0x29')]=null,this['_editorAnnotations']=new _0x3a8f37(),this[_0x59e5('0x21')]=_0x401c06(()=>{this[_0x59e5('0x29')][_0x59e5('0x18')]();},0xfa,{'leading':!0x1});}[_0x59e5('0x1f')](){const _0x492ff6=this[_0x59e5('0x3')][_0x59e5('0x19')][_0x59e5('0x28')](_0xf2101f),_0xb8a68b=this['context'][_0x59e5('0x19')]['get'](_0x50904f);_0x492ff6[_0x59e5('0x2e')](_0x59e5('0x2d'),this),_0xb8a68b[_0x59e5('0x27')]&&_0x492ff6[_0x59e5('0x20')]('wideSidebar');}['setActiveAnnotation'](_0x2b0dc9){if(_0x2b0dc9===this['activeAnnotation'])return;const _0x1ff541=this[_0x59e5('0x3')][_0x59e5('0x19')][_0x59e5('0x28')](_0x50904f);_0x1ff541[_0x59e5('0x17')]=_0x2b0dc9;const _0x5826c1=this[_0x59e5('0x24')];this['activeAnnotation']=_0x2b0dc9,_0x1ff541['refresh']({'blurredAnnotation':_0x5826c1,'activatedAnnotation':this['activeAnnotation']});}[_0x59e5('0x8')](_0xd8589){this[_0x59e5('0x29')]=_0xd8589;const _0x199e12=this['context'][_0x59e5('0x19')][_0x59e5('0x28')](_0x59e5('0x1b'));if(_0x199e12[_0x59e5('0x1d')]=_0xd8589,this[_0x59e5('0x0')])throw new _0x428bf2(_0x59e5('0xf'),this);this[_0x59e5('0x0')]=!0x0,this[_0x59e5('0x10')](_0x199e12,_0x59e5('0x12'),()=>{this[_0x59e5('0x16')](),this['listenTo'](_0x199e12,_0x59e5('0x32'),_0x3bfea4=>{_0x3bfea4[_0x59e5('0xc')](),this[_0x59e5('0x8')](_0xd8589);});}),_0x199e12[_0x59e5('0x26')]({'viewClass':_0x59e5('0x1c')});const _0x2ef1f4=_0x35a770=>{_0x35a770['updateTargetRect'](),_0x199e12['addAnnotation'](_0x35a770);};for(const _0x163ce8 of _0xd8589)_0x2ef1f4(_0x163ce8);this[_0x59e5('0x10')](_0xd8589,_0x59e5('0x15'),(_0x4ae938,_0x5b024a)=>{_0x2ef1f4(_0x5b024a);}),this['listenTo'](_0xd8589,'remove',(_0x52ca86,_0x40d0cd,_0x54d0ea)=>{_0x199e12[_0x59e5('0x4')]({'removedAnnotation':_0x40d0cd,'previousAnnotation':_0xd8589[_0x59e5('0x28')](_0x54d0ea-0x1),'nextAnnotation':_0xd8589['get'](_0x54d0ea+0x1)}),_0x40d0cd===this[_0x59e5('0x24')]&&this[_0x59e5('0x30')](null);},{'priority':_0x59e5('0x23')}),this[_0x59e5('0x10')](_0xd8589,_0x59e5('0x5'),(_0x39100d,_0x340daf)=>{this[_0x59e5('0x30')](_0x340daf);}),this[_0x59e5('0x10')](_0xd8589,_0x59e5('0x1'),()=>{this['setActiveAnnotation'](null);});const _0x3387f2=this['context'][_0x59e5('0xb')]?this[_0x59e5('0x3')]['editors']:new _0x3a8f37([this[_0x59e5('0x3')]]);for(const _0x2c7acc of _0x3387f2)this[_0x59e5('0x31')](_0x2c7acc);this['listenTo'](_0x3387f2,_0x59e5('0x15'),(_0x5d176c,_0x36392d)=>{this['listenTo'](_0x36392d,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x36392d);});}),this[_0x59e5('0x10')](_0x3387f2,_0x59e5('0x11'),(_0x46354b,_0x1939c8)=>{_0x1939c8[_0x59e5('0x19')][_0x59e5('0x25')](_0x59e5('0x22'))&&this['_destroyEditorAnnotationsIntegration'](_0x1939c8[_0x59e5('0x19')]['get']('EditorAnnotations'));}),window[_0x59e5('0x14')]('resize',this[_0x59e5('0x21')]),this[_0x59e5('0x29')][_0x59e5('0x18')]();}[_0x59e5('0x16')](){if(!this[_0x59e5('0x0')])throw new _0x428bf2(_0x59e5('0xe'),this);this['setActiveAnnotation'](null);const _0x3601bb=this[_0x59e5('0x3')][_0x59e5('0x19')]['get'](_0x50904f);_0x3601bb[_0x59e5('0x2f')](this[_0x59e5('0x29')]),this[_0x59e5('0x2a')](_0x3601bb),this[_0x59e5('0x2a')](this[_0x59e5('0x29')]),this[_0x59e5('0x2a')](this[_0x59e5('0x3')]['editors']);for(const _0x57395d of Array[_0x59e5('0x2')](this[_0x59e5('0x2b')]))this[_0x59e5('0x13')](_0x57395d);window[_0x59e5('0x9')](_0x59e5('0x1e'),this[_0x59e5('0x21')]),this[_0x59e5('0x21')][_0x59e5('0x2c')](),this[_0x59e5('0x24')]=null,this[_0x59e5('0x0')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x59e5('0x0')]&&this[_0x59e5('0x16')]();}[_0x59e5('0x31')](_0x381006){const _0x27e457=_0x381006[_0x59e5('0x19')][_0x59e5('0x28')](_0x59e5('0x22'));if(!_0x27e457)return;const _0x522a2f=()=>{const _0x3b60e0=_0x27e457['getOrderedSelectedAnnotations']({'annotations':this[_0x59e5('0x29')],'activeAnnotation':this[_0x59e5('0x24')]});this[_0x59e5('0x30')](_0x3b60e0[0x0]||null);};this[_0x59e5('0x10')](_0x27e457,_0x59e5('0x1a'),_0x522a2f),this['listenTo'](_0x27e457,'blur',(_0x330e5d,{isAnnotationTracked:_0x45437a})=>{this[_0x59e5('0x24')]&&_0x45437a(this[_0x59e5('0x24')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x27e457,_0x59e5('0x6'),()=>{this[_0x59e5('0x21')]();}),this[_0x59e5('0x10')](this[_0x59e5('0x29')],_0x59e5('0x1'),_0x332f4=>{_0x27e457[_0x59e5('0xa')]()&&(_0x522a2f(),_0x332f4['stop']());},{'priority':_0x59e5('0x23')}),this[_0x59e5('0x2b')][_0x59e5('0x15')](_0x27e457);}[_0x59e5('0x13')](_0x1698a0){_0x1698a0&&(this[_0x59e5('0x2a')](_0x1698a0),this[_0x59e5('0x2b')]['remove'](_0x1698a0));}}
23
+ const _0x5113=['off','setActiveAnnotation','plugins','resize','focus','addAnnotation','_editorAnnotations','_refreshPositioningDebounced','hasDomSelection','set','activeAnnotation','annotations','getOrderedSelectedAnnotations','editors','isAttached','refreshPositioning','_integrateWithEditorAnnotations','set:container','detach','listenTo','from','_attachToContainer','init','rearrange','stop','WideSidebar','blur','stopListening','refresh','EditorAnnotations','removeEventListener','_activeAnnotation','_annotations','pluginName','remove','add','widesidebar-detach-not-attached','destroy','context','has','high','container','Sidebar','get','change:container','_destroyEditorAnnotationsIntegration'];(function(_0x23b8a0,_0x511354){const _0x555a19=function(_0x3e44c2){while(--_0x3e44c2){_0x23b8a0['push'](_0x23b8a0['shift']());}};_0x555a19(++_0x511354);}(_0x5113,0xfa));const _0x555a=function(_0x23b8a0,_0x511354){_0x23b8a0=_0x23b8a0-0x0;let _0x555a19=_0x5113[_0x23b8a0];return _0x555a19;};import{ContextPlugin as _0x1808da}from'ckeditor5/src/core';import _0xc05108 from'./annotationsuis';import _0xc8ab55 from'./sidebar';import{CKEditorError as _0x5847ff,Collection as _0x55f4ba}from'ckeditor5/src/utils';import{debounce as _0x37ba7d}from'lodash-es';export default class i extends _0x1808da{static get['requires'](){return[_0xc8ab55,_0xc05108];}static get[_0x555a('0xd')](){return _0x555a('0x5');}constructor(_0x4bc241){super(_0x4bc241),this[_0x555a('0x28')]=!0x1,this[_0x555a('0x23')](_0x555a('0x24'),null),this[_0x555a('0x25')]=null,this[_0x555a('0x20')]=new _0x55f4ba(),this[_0x555a('0x21')]=_0x37ba7d(()=>{this[_0x555a('0x25')][_0x555a('0x29')]();},0xfa,{'leading':!0x1});}[_0x555a('0x2')](){const _0x26c0a2=this[_0x555a('0x12')][_0x555a('0x1c')]['get'](_0xc05108),_0x159a2c=this[_0x555a('0x12')][_0x555a('0x1c')][_0x555a('0x17')](_0xc8ab55);_0x26c0a2['register']('wideSidebar',this),_0x159a2c[_0x555a('0x15')]&&_0x26c0a2['switchTo']('wideSidebar');}[_0x555a('0x1b')](_0x59b5c9){if(_0x59b5c9===this['activeAnnotation'])return;const _0x430c5e=this[_0x555a('0x12')][_0x555a('0x1c')][_0x555a('0x17')](_0xc8ab55);_0x430c5e[_0x555a('0xb')]=_0x59b5c9;const _0x5795fb=this[_0x555a('0x24')];this[_0x555a('0x24')]=_0x59b5c9,_0x430c5e[_0x555a('0x8')]({'blurredAnnotation':_0x5795fb,'activatedAnnotation':this[_0x555a('0x24')]});}['attach'](_0x58a4a9){this[_0x555a('0x25')]=_0x58a4a9;const _0x21ee34=this['context'][_0x555a('0x1c')][_0x555a('0x17')](_0x555a('0x16'));if(_0x21ee34[_0x555a('0xc')]=_0x58a4a9,this[_0x555a('0x28')])throw new _0x5847ff('widesidebar-attach-already-attached',this);this[_0x555a('0x28')]=!0x0,this[_0x555a('0x2d')](_0x21ee34,_0x555a('0x2b'),()=>{this[_0x555a('0x2c')](),this[_0x555a('0x2d')](_0x21ee34,_0x555a('0x18'),_0x398929=>{_0x398929[_0x555a('0x1a')](),this['attach'](_0x58a4a9);});}),_0x21ee34[_0x555a('0x1')]({'viewClass':'ck-sidebar--wide'});const _0x11c82f=_0xff8e82=>{_0xff8e82['updateTargetRect'](),_0x21ee34[_0x555a('0x1f')](_0xff8e82);};for(const _0x3903aa of _0x58a4a9)_0x11c82f(_0x3903aa);this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0xf'),(_0x1ef836,_0x563e6d)=>{_0x11c82f(_0x563e6d);}),this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0xe'),(_0x4db64f,_0x301f81,_0x9f0381)=>{_0x21ee34[_0x555a('0x3')]({'removedAnnotation':_0x301f81,'previousAnnotation':_0x58a4a9['get'](_0x9f0381-0x1),'nextAnnotation':_0x58a4a9[_0x555a('0x17')](_0x9f0381+0x1)}),_0x301f81===this[_0x555a('0x24')]&&this[_0x555a('0x1b')](null);},{'priority':_0x555a('0x14')}),this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0x1e'),(_0x2d5162,_0x33bb2c)=>{this[_0x555a('0x1b')](_0x33bb2c);}),this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0x6'),()=>{this[_0x555a('0x1b')](null);});const _0x22286f=this[_0x555a('0x12')]['editors']?this[_0x555a('0x12')][_0x555a('0x27')]:new _0x55f4ba([this[_0x555a('0x12')]]);for(const _0x5a9c06 of _0x22286f)this['_integrateWithEditorAnnotations'](_0x5a9c06);this[_0x555a('0x2d')](_0x22286f,_0x555a('0xf'),(_0x132bc2,_0x3a7252)=>{this[_0x555a('0x2d')](_0x3a7252,'ready',()=>{this[_0x555a('0x2a')](_0x3a7252);});}),this[_0x555a('0x2d')](_0x22286f,_0x555a('0xe'),(_0x2e5ca4,_0x23cb60)=>{_0x23cb60[_0x555a('0x1c')][_0x555a('0x13')](_0x555a('0x9'))&&this[_0x555a('0x19')](_0x23cb60[_0x555a('0x1c')][_0x555a('0x17')](_0x555a('0x9')));}),window['addEventListener'](_0x555a('0x1d'),this[_0x555a('0x21')]),this[_0x555a('0x25')][_0x555a('0x29')]();}[_0x555a('0x2c')](){if(!this[_0x555a('0x28')])throw new _0x5847ff(_0x555a('0x10'),this);this[_0x555a('0x1b')](null);const _0x20d9fd=this[_0x555a('0x12')][_0x555a('0x1c')][_0x555a('0x17')](_0xc8ab55);_0x20d9fd['_detachFromContainer'](this[_0x555a('0x25')]),this[_0x555a('0x7')](_0x20d9fd),this[_0x555a('0x7')](this[_0x555a('0x25')]),this[_0x555a('0x7')](this[_0x555a('0x12')][_0x555a('0x27')]);for(const _0x276443 of Array[_0x555a('0x0')](this[_0x555a('0x20')]))this[_0x555a('0x19')](_0x276443);window[_0x555a('0xa')](_0x555a('0x1d'),this['_refreshPositioningDebounced']),this[_0x555a('0x21')]['cancel'](),this[_0x555a('0x24')]=null,this[_0x555a('0x28')]=!0x1,this['annotations']=null;}[_0x555a('0x11')](){this[_0x555a('0x28')]&&this[_0x555a('0x2c')]();}['_integrateWithEditorAnnotations'](_0x2a6445){const _0x3d4976=_0x2a6445[_0x555a('0x1c')][_0x555a('0x17')]('EditorAnnotations');if(!_0x3d4976)return;const _0x4ed0e5=()=>{const _0x1d68e5=_0x3d4976[_0x555a('0x26')]({'annotations':this[_0x555a('0x25')],'activeAnnotation':this[_0x555a('0x24')]});this[_0x555a('0x1b')](_0x1d68e5[0x0]||null);};this[_0x555a('0x2d')](_0x3d4976,_0x555a('0x8'),_0x4ed0e5),this[_0x555a('0x2d')](_0x3d4976,'blur',(_0x58c9c6,{isAnnotationTracked:_0x2b3cad})=>{this['activeAnnotation']&&_0x2b3cad(this['activeAnnotation'])&&this[_0x555a('0x1b')](null);}),this['listenTo'](_0x3d4976,'uiUpdate',()=>{this[_0x555a('0x21')]();}),this[_0x555a('0x2d')](this[_0x555a('0x25')],'blur',_0x487f2b=>{_0x3d4976[_0x555a('0x22')]()&&(_0x4ed0e5(),_0x487f2b[_0x555a('0x4')]());},{'priority':_0x555a('0x14')}),this[_0x555a('0x20')][_0x555a('0xf')](_0x3d4976);}['_destroyEditorAnnotationsIntegration'](_0x4c57de){_0x4c57de&&(this[_0x555a('0x7')](_0x4c57de),this[_0x555a('0x20')]['remove'](_0x4c57de));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38d5=['end','element','substr','push','item','backward','start','tableCell','isEnabled','_trimToContent','textProxy','getLastMatchingPosition','createRange','getRanges','schema','comment:','execute','editor','model','_hasContent','addMarker','document','_itemIsContent','selection','change'];(function(_0x302702,_0x38d562){const _0x46bea6=function(_0x45df16){while(--_0x45df16){_0x302702['push'](_0x302702['shift']());}};_0x46bea6(++_0x38d562);}(_0x38d5,0x12e));const _0x46be=function(_0x302702,_0x38d562){_0x302702=_0x302702-0x0;let _0x46bea6=_0x38d5[_0x302702];return _0x46bea6;};import{Command as _0x29b9ed}from'ckeditor5/src/core';import{uid as _0x3a4d0e}from'ckeditor5/src/utils';export default class j extends _0x29b9ed{['refresh'](){const _0x3ec6e8=this['editor'][_0x46be('0x10')][_0x46be('0x13')]['selection'];for(const _0x2bdc4b of _0x3ec6e8[_0x46be('0xb')]())if(this[_0x46be('0x11')](_0x2bdc4b))return void(this[_0x46be('0x6')]=!0x0);this[_0x46be('0x6')]=!0x1;}[_0x46be('0xe')]({threadId:_0x206365=_0x3a4d0e()}={}){const _0x328ab9=this['editor'][_0x46be('0x10')],_0x43e2e8=[];for(const _0x33b909 of _0x328ab9[_0x46be('0x13')][_0x46be('0x15')][_0x46be('0xb')]())this[_0x46be('0x11')](_0x33b909)&&_0x43e2e8[_0x46be('0x1')](this[_0x46be('0x7')](_0x33b909));_0x328ab9[_0x46be('0x16')](_0x43de74=>{for(const _0x15cf9f of _0x43e2e8){const _0x50aafb=_0x3a4d0e()[_0x46be('0x0')](0x1,0x5),_0x349e43=_0x46be('0xd')+_0x206365+':'+_0x50aafb;_0x43de74[_0x46be('0x12')](_0x349e43,{'range':_0x15cf9f,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x46be('0x11')](_0x4b93ac){for(const _0x3cfce6 of _0x4b93ac['getItems']())if(this['_itemIsContent'](_0x3cfce6))return!0x0;return!0x1;}[_0x46be('0x14')](_0x1e4a6d){return _0x1e4a6d['is'](_0x46be('0x8'))||this[_0x46be('0xf')][_0x46be('0x10')][_0x46be('0xc')]['isObject'](_0x1e4a6d)&&!_0x1e4a6d['is'](_0x46be('0x18'),_0x46be('0x5'));}['_trimToContent'](_0x47c718){const _0x1149df=_0x334a22=>!this[_0x46be('0x14')](_0x334a22[_0x46be('0x2')]),_0x1c5c0b=_0x47c718[_0x46be('0x4')][_0x46be('0x9')](_0x1149df),_0x2897db=_0x47c718[_0x46be('0x17')][_0x46be('0x9')](_0x1149df,{'direction':_0x46be('0x3')});return this[_0x46be('0xf')][_0x46be('0x10')][_0x46be('0xa')](_0x1c5c0b,_0x2897db);}}
23
+ const _0x38db=['createRange','tableCell','selection','start','getLastMatchingPosition','execute','textProxy','model','isObject','push','element','refresh','getRanges','backward','comment:','_hasContent','document','isEnabled','_itemIsContent','editor','getItems','_trimToContent','change'];(function(_0x3b4b68,_0x38dba4){const _0x2f30db=function(_0x2cad5f){while(--_0x2cad5f){_0x3b4b68['push'](_0x3b4b68['shift']());}};_0x2f30db(++_0x38dba4);}(_0x38db,0x15d));const _0x2f30=function(_0x3b4b68,_0x38dba4){_0x3b4b68=_0x3b4b68-0x0;let _0x2f30db=_0x38db[_0x3b4b68];return _0x2f30db;};import{Command as _0xb7b57b}from'ckeditor5/src/core';import{uid as _0x3b6038}from'ckeditor5/src/utils';export default class j extends _0xb7b57b{[_0x2f30('0x7')](){const _0x43b4b6=this[_0x2f30('0xf')][_0x2f30('0x3')][_0x2f30('0xc')][_0x2f30('0x15')];for(const _0x399f5a of _0x43b4b6[_0x2f30('0x8')]())if(this['_hasContent'](_0x399f5a))return void(this[_0x2f30('0xd')]=!0x0);this['isEnabled']=!0x1;}[_0x2f30('0x1')]({threadId:_0x517acf=_0x3b6038()}={}){const _0x4e7ce0=this[_0x2f30('0xf')][_0x2f30('0x3')],_0x1a8c94=[];for(const _0x3781bd of _0x4e7ce0[_0x2f30('0xc')][_0x2f30('0x15')][_0x2f30('0x8')]())this[_0x2f30('0xb')](_0x3781bd)&&_0x1a8c94[_0x2f30('0x5')](this[_0x2f30('0x11')](_0x3781bd));_0x4e7ce0[_0x2f30('0x12')](_0x17412a=>{for(const _0x343d10 of _0x1a8c94){const _0x101359=_0x3b6038()['substr'](0x1,0x5),_0x205165=_0x2f30('0xa')+_0x517acf+':'+_0x101359;_0x17412a['addMarker'](_0x205165,{'range':_0x343d10,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x2f30('0xb')](_0x31c4ac){for(const _0x4be31b of _0x31c4ac[_0x2f30('0x10')]())if(this[_0x2f30('0xe')](_0x4be31b))return!0x0;return!0x1;}[_0x2f30('0xe')](_0x31545f){return _0x31545f['is'](_0x2f30('0x2'))||this[_0x2f30('0xf')][_0x2f30('0x3')]['schema'][_0x2f30('0x4')](_0x31545f)&&!_0x31545f['is'](_0x2f30('0x6'),_0x2f30('0x14'));}[_0x2f30('0x11')](_0x21b96a){const _0x495ebd=_0x22fb59=>!this[_0x2f30('0xe')](_0x22fb59['item']),_0x50818b=_0x21b96a[_0x2f30('0x16')][_0x2f30('0x0')](_0x495ebd),_0x1a2a9e=_0x21b96a['end'][_0x2f30('0x0')](_0x495ebd,{'direction':_0x2f30('0x9')});return this['editor'][_0x2f30('0x3')][_0x2f30('0x13')](_0x50818b,_0x1a2a9e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fd2=['stop','plugins','getAllMarkersForId','attachTo','_handleMarkerAddAndRemove','includes','removeMarker','text','_attachedThreads','rootName','registerAnnotation','markerName','isThreadsLoadingPaused','update:comment','destroyed','_attachMarkerToThread','CommentsRepository','reconvertMarker','EditorAnnotations','activeMarker','set','render','hasMarkerForId','left','addCommentThread','getWalker','change:activeMarker','delete','addComment','affectsData','isCollapsed','ck-comment-marker','isObject','createRange','getAttribute','collaboration.channelId','name','isEqual','getChangedMarkers','_detachCommentThread','end','_initializeMarkerConverters','filter','newRange','createPositionBefore','get','has','change:isThreadsLoadingPaused','hasCommentThread','high','dataDowncast','updateMarker','switchReadOnly','getCommentThread','requires','data','once','editor','sort','editing','getByInnerView','length','push','upcast','markerToData','add','createElement','ck-comment-marker--active','split','low','comment','markerToHighlight','config','document','destroy','for','conversion','markers','listenTo','model','start','hasContent','size','view','$marker','dataToMarker','managedUsingOperations','change','schema'];(function(_0x4db3c7,_0x4fd21d){const _0x969c8b=function(_0x2d6e74){while(--_0x2d6e74){_0x4db3c7['push'](_0x4db3c7['shift']());}};_0x969c8b(++_0x4fd21d);}(_0x4fd2,0x1aa));const _0x969c=function(_0x4db3c7,_0x4fd21d){_0x4db3c7=_0x4db3c7-0x0;let _0x969c8b=_0x4fd2[_0x4db3c7];return _0x969c8b;};import{Plugin as _0xf4a8a7}from'ckeditor5/src/core';import{Rect as _0xbb98f6}from'ckeditor5/src/utils';import _0x550ce0 from'./commentsrepository';import _0x4e2050 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x2db17a}from'ckeditor5-collaboration/src/collaboration-core';import _0x5cd1e5 from'../annotations/editorannotations';import _0x4720de from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x48a3a6 from'./integrations/importword';export default class r extends _0xf4a8a7{static get[_0x969c('0x49')](){return[_0x550ce0,_0x5cd1e5,_0x4720de,_0x48a3a6];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x48a9ab){super(_0x48a9ab),this[_0x969c('0x27')]('isThreadsLoadingPaused',!0x0),_0x48a9ab[_0x969c('0x4a')][_0x969c('0x4b')]('ready',()=>this[_0x969c('0x1f')]=!0x1),this['set'](_0x969c('0x26'),null),this['on'](_0x969c('0x2d'),(_0x27cdf0,_0x3d1071,_0xdc0ba3,_0x36cad9)=>{_0x48a9ab[_0x969c('0x9')]['change'](()=>{if(_0xdc0ba3){const {id:_0x4f1ffa}=H(_0xdc0ba3),_0xe36d97=this[_0x969c('0x15')](_0x4f1ffa);for(const _0x23048b of _0xe36d97)_0x48a9ab['editing'][_0x969c('0x24')](_0x23048b);}if(_0x36cad9){const {id:_0x500df5}=H(_0x36cad9),_0x3a6d73=this[_0x969c('0x15')](_0x500df5);for(const _0xdf7c37 of _0x3a6d73)_0x48a9ab[_0x969c('0x4e')][_0x969c('0x24')](_0xdf7c37);}});}),this[_0x969c('0x1b')]=new Map();}['init'](){const _0x3821c2=this[_0x969c('0x4c')],_0x601f05=_0x3821c2['plugins'][_0x969c('0x40')]('CommentsRepository'),_0x1285e6=_0x3821c2['config']['get'](_0x969c('0x36'));_0x3821c2['commands'][_0x969c('0x54')](_0x969c('0x2b'),new _0x4e2050(_0x3821c2)),this[_0x969c('0x8')](_0x3821c2,'change:isReadOnly',(_0x3a08c2,_0xd7e7c0,_0x3c4b25)=>{_0x601f05[_0x969c('0x47')](_0x3c4b25,_0x3821c2['config'][_0x969c('0x40')](_0x969c('0x36')));}),this[_0x969c('0x8')](_0x601f05,G('removeCommentThread',_0x1285e6),(_0x24286f,{threadId:_0x2cce80})=>{_0x3821c2[_0x969c('0x9')][_0x969c('0x11')](_0xb1bd48=>{for(const _0x144e78 of this[_0x969c('0x15')](_0x2cce80))_0xb1bd48[_0x969c('0x19')](_0x144e78);});const _0x323391=_0x601f05[_0x969c('0x48')](_0x2cce80);_0x601f05['hasCommentThread'](_0x2cce80)&&!_0x323391[_0x969c('0x50')]||_0x24286f[_0x969c('0x13')]();},{'priority':_0x969c('0x44')}),this[_0x969c('0x8')](_0x601f05,G(_0x969c('0x2f'),_0x1285e6),(_0x18b1a5,{threadId:_0x445adf,isFromAdapter:_0x4bb035})=>{const _0x5add1b=this[_0x969c('0x15')](_0x445adf);if(_0x4bb035||0x0==_0x5add1b[_0x969c('0x50')]||!_0x601f05[_0x969c('0x43')](_0x445adf))return;0x1===_0x601f05['getCommentThread'](_0x445adf)[_0x969c('0x50')]&&_0x3821c2['model'][_0x969c('0x11')](_0x21b265=>{for(const _0x3c83a6 of _0x5add1b)_0x21b265[_0x969c('0x46')](_0x3c83a6,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x969c('0x58')}),this['_initializeMarkerConverters'](),this[_0x969c('0x17')]();}[_0x969c('0x4')](){const _0x51e46c=this[_0x969c('0x4c')][_0x969c('0x14')][_0x969c('0x40')](_0x969c('0x23')),_0x4bd499=this[_0x969c('0x4c')][_0x969c('0x2')][_0x969c('0x40')](_0x969c('0x36'));for(const _0x137475 of _0x51e46c['getCommentThreads']({'channelId':_0x4bd499}))_0x51e46c[_0x969c('0x3a')](_0x137475['id']),_0x51e46c['_threads']['delete'](_0x137475['id']);super[_0x969c('0x4')]();}['hasMarkerForId'](_0x2b38b5){return this[_0x969c('0x15')](_0x2b38b5)[_0x969c('0x50')]>0x0;}[_0x969c('0x15')](_0x46a5ac){return(this[_0x969c('0x1b')]['get'](_0x46a5ac)||[])['map'](_0xc2fe17=>this['editor'][_0x969c('0x9')]['markers']['get'](_0xc2fe17))[_0x969c('0x3d')](_0x5b53b4=>_0x5b53b4);}[_0x969c('0x3c')](){const _0x5e505b=this[_0x969c('0x4c')];_0x5e505b[_0x969c('0x6')]['for']('editingDowncast')[_0x969c('0x1')]({'model':_0x969c('0x0'),'view':_0x4af387=>{const {id:_0x1b48ac}=H(_0x4af387[_0x969c('0x1e')]),_0x55f4a0=[_0x969c('0x32')];return this['activeMarker']&&H(this[_0x969c('0x26')])['id']===_0x1b48ac&&_0x55f4a0[_0x969c('0x51')](_0x969c('0x56')),{'classes':_0x55f4a0,'attributes':{'data-comment':_0x1b48ac}};}}),_0x5e505b['conversion'][_0x969c('0x5')](_0x969c('0x45'))[_0x969c('0x53')]({'model':_0x969c('0x0'),'view':_0x15c3cc=>{const _0x33f0ad=_0x5e505b[_0x969c('0x9')][_0x969c('0x7')][_0x969c('0x40')](_0x15c3cc),{id:_0x44e3f1,part:_0x31c86b}=H(_0x15c3cc);return _0x33f0ad&&!_0x33f0ad[_0x969c('0x30')]?null:{'group':_0x969c('0x0'),'name':_0x31c86b?_0x44e3f1+':'+_0x31c86b:_0x44e3f1};}}),_0x5e505b['conversion'][_0x969c('0x5')]('upcast')['elementToElement']({'view':{'name':_0x969c('0x0'),'attribute':{'id':/^\w/}},'model':(_0x56153b,{writer:_0x36343d})=>_0x36343d[_0x969c('0x55')](_0x969c('0xe'),{'data-name':'comment:'+_0x56153b[_0x969c('0x35')]('id')})}),_0x5e505b[_0x969c('0x6')][_0x969c('0x5')](_0x969c('0x52'))[_0x969c('0xf')]({'view':_0x969c('0x0')});}[_0x969c('0x17')](){const _0x1a6920=this[_0x969c('0x4c')],_0x577a4b=_0x1a6920[_0x969c('0x14')][_0x969c('0x40')]('CommentsRepository'),_0x12aae=new Set();_0x1a6920['model'][_0x969c('0x3')]['registerPostFixer'](_0x283568=>{let _0x21e9d9=!0x1;for(const {name:_0xc66d3,data:_0x50f3cd}of _0x1a6920[_0x969c('0x9')][_0x969c('0x3')]['differ'][_0x969c('0x39')]()){const {group:_0x2b6709,id:_0x37108c}=H(_0xc66d3);let _0x438592=_0x50f3cd[_0x969c('0x3e')];if(_0x969c('0x0')!==_0x2b6709||!_0x438592)continue;const _0x619fc5='$graveyard'===_0x438592['root'][_0x969c('0x1c')];_0x619fc5||(_0x438592=J(_0x438592,_0x1a6920['model']),!_0x438592||_0x438592[_0x969c('0x38')](_0x50f3cd[_0x969c('0x3e')]))?!_0x438592||!_0x1a6920[_0x969c('0x9')][_0x969c('0xb')](_0x438592)||this[_0x969c('0x1b')][_0x969c('0x41')](_0x37108c)&&_0x619fc5?(_0x283568['removeMarker'](_0xc66d3),_0x21e9d9=!0x0):_0x619fc5||(this[_0x969c('0x1f')]?_0x12aae['add'](_0xc66d3):this[_0x969c('0x22')](_0xc66d3,_0x37108c)):(_0x283568[_0x969c('0x46')](_0xc66d3,{'range':_0x438592}),_0x21e9d9=!0x0);}return _0x21e9d9;}),this['on'](_0x969c('0x42'),(_0x15caaf,_0x38b361,_0x436891)=>{if(!_0x436891&&_0x12aae[_0x969c('0xc')])for(const _0x36348a of _0x12aae){const {id:_0x3a6ce6}=H(_0x36348a);_0x12aae[_0x969c('0x2e')](_0x3a6ce6),_0x1a6920[_0x969c('0x9')]['markers'][_0x969c('0x40')](_0x36348a)&&this[_0x969c('0x22')](_0x36348a,_0x3a6ce6);}}),this['listenTo'](_0x1a6920[_0x969c('0x9')][_0x969c('0x7')],_0x969c('0x20'),(_0x2b6b45,_0xa3e7b,_0x5259f5,_0x2794b8)=>{if(_0x2794b8)return;const {id:_0x4abe4c}=H(_0xa3e7b[_0x969c('0x37')]),_0x2435a7=_0x1a6920[_0x969c('0x14')][_0x969c('0x40')]('CommentsRepository')['getCommentThread'](_0x4abe4c);_0x12aae[_0x969c('0x2e')](_0x4abe4c),_0x2435a7&&!this[_0x969c('0x29')](_0x4abe4c)&&(this[_0x969c('0x1b')]['delete'](_0x4abe4c),_0x577a4b[_0x969c('0x3a')](_0x4abe4c));});}[_0x969c('0x22')](_0x96c6bf,_0x5d9b80){if(this[_0x969c('0x1b')][_0x969c('0x41')](_0x5d9b80)){const _0x4ab790=this[_0x969c('0x1b')][_0x969c('0x40')](_0x5d9b80);return void(_0x4ab790[_0x969c('0x18')](_0x96c6bf)||_0x4ab790[_0x969c('0x51')](_0x96c6bf));}this[_0x969c('0x1b')][_0x969c('0x27')](_0x5d9b80,[_0x96c6bf]);const _0x21c1e7=this[_0x969c('0x4c')],_0x9fa100=_0x21c1e7['plugins'][_0x969c('0x40')](_0x969c('0x23')),_0x598870=_0x21c1e7[_0x969c('0x2')][_0x969c('0x40')](_0x969c('0x36')),_0x4353ff=_0x21c1e7['plugins']['get'](_0x969c('0x25')),_0x50c2c5=()=>{const _0x1207fe=this[_0x969c('0x15')](_0x5d9b80);if(0x0===_0x1207fe['length'])return null;if(0x1===_0x1207fe[_0x969c('0x50')])return _0x2db17a(_0x21c1e7['editing'],_0x1207fe[0x0]);const _0x308d73=_0x1207fe['map'](_0x33a353=>_0x2db17a(_0x21c1e7[_0x969c('0x4e')],_0x33a353));return _0x308d73[_0x969c('0x4d')]((_0x63596c,_0x21f951)=>{const _0x32236c=new _0xbb98f6(_0x63596c),_0x3f502d=new _0xbb98f6(_0x21f951),_0x82dad=_0x32236c['top']-_0x3f502d['top'];return 0x0==_0x82dad?_0x32236c[_0x969c('0x2a')]-_0x3f502d[_0x969c('0x2a')]:_0x82dad;}),_0x308d73[0x0];};!this[_0x969c('0x15')](_0x5d9b80)[0x0][_0x969c('0x10')]?_0x21c1e7[_0x969c('0x4e')][_0x969c('0xd')][_0x969c('0x4b')](_0x969c('0x28'),()=>{const _0x5ca6cd=_0x21c1e7['plugins']['get']('Annotations'),_0x94e612=_0x9fa100['openNewCommentThread']({'channelId':_0x598870,'threadId':_0x5d9b80,'target':_0x50c2c5}),_0x7266f8=_0x9fa100['_threadToController']['get'](_0x94e612)[_0x969c('0xd')],_0x2d71e6=_0x5ca6cd[_0x969c('0x4f')](_0x7266f8);_0x4353ff[_0x969c('0x1d')](_0x2d71e6);},{'priority':_0x969c('0x58')}):_0x9fa100['fetchCommentThread']({'channelId':_0x598870,'threadId':_0x5d9b80})['then'](_0x1274ac=>{if(_0x969c('0x21')!==_0x21c1e7['state']){if(_0x1274ac){const _0x5117aa=_0x1274ac[_0x969c('0x16')](_0x50c2c5);_0x4353ff['registerAnnotation'](_0x5117aa);}else{const _0x3dd8ae=this[_0x969c('0x15')](_0x5d9b80);_0x21c1e7[_0x969c('0x9')][_0x969c('0x11')](_0x2cbeb4=>{for(const _0x317e87 of _0x3dd8ae)_0x2cbeb4['removeMarker'](_0x317e87);});}}});}}function G(_0x552e65,_0x13ef25){return _0x13ef25?_0x552e65+':'+_0x13ef25:_0x552e65;}function H(_0x28aade){const _0x349728=_0x28aade[_0x969c('0x57')](':');return{'group':_0x349728[0x0],'id':_0x349728[0x1],'part':_0x349728[0x2]};}function J(_0x584da7,_0x22d6ac){const _0x471667=_0x22d6ac[_0x969c('0x12')],_0x3ba907=_0x22d6ac[_0x969c('0x34')](_0x584da7['start']);for(const _0x13a85c of _0x584da7[_0x969c('0x2c')]()){const {type:_0x73bdcc,item:_0x4de431,nextPosition:_0x486ccc}=_0x13a85c;if(_0x969c('0x1a')===_0x73bdcc||_0x471667[_0x969c('0x33')](_0x4de431)){const _0x5aa535=_0x22d6ac[_0x969c('0x3f')](_0x4de431);_0x3ba907[_0x969c('0x31')]&&(_0x3ba907[_0x969c('0xa')]=_0x5aa535),_0x3ba907[_0x969c('0x3b')]=_0x486ccc;}}return _0x3ba907[_0x969c('0x31')]?null:_0x3ba907;}
23
+ const _0x1d9d=['comment:','map','addCommentThread','model','change:isReadOnly','left','_attachedThreads','collaboration.channelId','_attachMarkerToThread','_threadToController','low','newRange','view','destroyed','markers','EditorAnnotations','activeMarker','getWalker','end','hasCommentThread','includes','sort','pluginName','attachTo','upcast','hasContent','updateMarker','reconvertMarker','state','hasMarkerForId','change','dataDowncast','CommentsRepository','_threads','removeMarker','removeCommentThread','editing','_handleMarkerAddAndRemove','switchReadOnly','for','Annotations','CommentsEditing','conversion','document','ck-comment-marker','elementToElement','getCommentThreads','editingDowncast','high','ck-comment-marker--active','managedUsingOperations','addComment','editor','once','_detachCommentThread','delete','isThreadsLoadingPaused','get','push','markerName','$marker','update:comment','destroy','markerToData','registerAnnotation','has','plugins','set','getChangedMarkers','getAllMarkersForId','config','registerPostFixer','ready','isEqual','length','affectsData','createRange','listenTo','_initializeMarkerConverters','top','add','stop','render','start','getCommentThread','comment','split','change:activeMarker','init'];(function(_0x2b430b,_0x1d9ded){const _0x441163=function(_0x430561){while(--_0x430561){_0x2b430b['push'](_0x2b430b['shift']());}};_0x441163(++_0x1d9ded);}(_0x1d9d,0x119));const _0x4411=function(_0x2b430b,_0x1d9ded){_0x2b430b=_0x2b430b-0x0;let _0x441163=_0x1d9d[_0x2b430b];return _0x441163;};import{Plugin as _0x419b69}from'ckeditor5/src/core';import{Rect as _0x5cb5fb}from'ckeditor5/src/utils';import _0x9e4f81 from'./commentsrepository';import _0x53a99b from'./addcommentthreadcommand';import{getMarkerDomElement as _0x32257c}from'ckeditor5-collaboration/src/collaboration-core';import _0x4ff866 from'../annotations/editorannotations';import _0x1c9b90 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x111038 from'./integrations/importword';export default class r extends _0x419b69{static get['requires'](){return[_0x9e4f81,_0x4ff866,_0x1c9b90,_0x111038];}static get[_0x4411('0x8')](){return _0x4411('0x1b');}constructor(_0x2ae435){super(_0x2ae435),this['set'](_0x4411('0x2a'),!0x0),_0x2ae435['data']['once'](_0x4411('0x3a'),()=>this[_0x4411('0x2a')]=!0x1),this[_0x4411('0x35')](_0x4411('0x2'),null),this['on'](_0x4411('0x49'),(_0x33a18b,_0xf35889,_0x56e6c1,_0x311867)=>{_0x2ae435[_0x4411('0x4e')]['change'](()=>{if(_0x56e6c1){const {id:_0x4c7dd6}=H(_0x56e6c1),_0x5194ab=this[_0x4411('0x37')](_0x4c7dd6);for(const _0x323ffc of _0x5194ab)_0x2ae435[_0x4411('0x16')]['reconvertMarker'](_0x323ffc);}if(_0x311867){const {id:_0x1a9f10}=H(_0x311867),_0x1b467c=this['getAllMarkersForId'](_0x1a9f10);for(const _0x19fc1a of _0x1b467c)_0x2ae435['editing'][_0x4411('0xd')](_0x19fc1a);}});}),this[_0x4411('0x51')]=new Map();}[_0x4411('0x4a')](){const _0x89465a=this[_0x4411('0x26')],_0xf1efb=_0x89465a[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12')),_0x363aa8=_0x89465a[_0x4411('0x38')][_0x4411('0x2b')](_0x4411('0x52'));_0x89465a['commands'][_0x4411('0x42')](_0x4411('0x4d'),new _0x53a99b(_0x89465a)),this[_0x4411('0x3f')](_0x89465a,_0x4411('0x4f'),(_0x1c0409,_0x1fe8d9,_0x1b3134)=>{_0xf1efb[_0x4411('0x18')](_0x1b3134,_0x89465a[_0x4411('0x38')][_0x4411('0x2b')](_0x4411('0x52')));}),this['listenTo'](_0xf1efb,G(_0x4411('0x15'),_0x363aa8),(_0x25233a,{threadId:_0x1568fb})=>{_0x89465a[_0x4411('0x4e')][_0x4411('0x10')](_0x5251af=>{for(const _0x9ec4bd of this[_0x4411('0x37')](_0x1568fb))_0x5251af['removeMarker'](_0x9ec4bd);});const _0x5dc71d=_0xf1efb['getCommentThread'](_0x1568fb);_0xf1efb[_0x4411('0x5')](_0x1568fb)&&!_0x5dc71d[_0x4411('0x3c')]||_0x25233a[_0x4411('0x43')]();},{'priority':_0x4411('0x22')}),this[_0x4411('0x3f')](_0xf1efb,G(_0x4411('0x25'),_0x363aa8),(_0x2ec35b,{threadId:_0x31cc7f,isFromAdapter:_0x39d424})=>{const _0x372b5a=this[_0x4411('0x37')](_0x31cc7f);if(_0x39d424||0x0==_0x372b5a[_0x4411('0x3c')]||!_0xf1efb[_0x4411('0x5')](_0x31cc7f))return;0x1===_0xf1efb[_0x4411('0x46')](_0x31cc7f)['length']&&_0x89465a[_0x4411('0x4e')][_0x4411('0x10')](_0x39aa4e=>{for(const _0x5398e4 of _0x372b5a)_0x39aa4e['updateMarker'](_0x5398e4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4411('0x55')}),this[_0x4411('0x40')](),this[_0x4411('0x17')]();}[_0x4411('0x30')](){const _0x259c8b=this[_0x4411('0x26')][_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12')),_0x7b5f03=this[_0x4411('0x26')][_0x4411('0x38')]['get']('collaboration.channelId');for(const _0x354ec1 of _0x259c8b[_0x4411('0x20')]({'channelId':_0x7b5f03}))_0x259c8b['_detachCommentThread'](_0x354ec1['id']),_0x259c8b[_0x4411('0x13')][_0x4411('0x29')](_0x354ec1['id']);super[_0x4411('0x30')]();}[_0x4411('0xf')](_0x181efb){return this[_0x4411('0x37')](_0x181efb)[_0x4411('0x3c')]>0x0;}[_0x4411('0x37')](_0x40a764){return(this[_0x4411('0x51')][_0x4411('0x2b')](_0x40a764)||[])[_0x4411('0x4c')](_0x1ce2c3=>this[_0x4411('0x26')]['model']['markers'][_0x4411('0x2b')](_0x1ce2c3))['filter'](_0x3a65fd=>_0x3a65fd);}[_0x4411('0x40')](){const _0x25e355=this['editor'];_0x25e355[_0x4411('0x1c')][_0x4411('0x19')](_0x4411('0x21'))['markerToHighlight']({'model':_0x4411('0x47'),'view':_0x41cc18=>{const {id:_0x1e3a09}=H(_0x41cc18[_0x4411('0x2d')]),_0x3dbf8f=[_0x4411('0x1e')];return this[_0x4411('0x2')]&&H(this['activeMarker'])['id']===_0x1e3a09&&_0x3dbf8f[_0x4411('0x2c')](_0x4411('0x23')),{'classes':_0x3dbf8f,'attributes':{'data-comment':_0x1e3a09}};}}),_0x25e355[_0x4411('0x1c')][_0x4411('0x19')](_0x4411('0x11'))[_0x4411('0x31')]({'model':_0x4411('0x47'),'view':_0x29c847=>{const _0x39cb34=_0x25e355['model'][_0x4411('0x0')][_0x4411('0x2b')](_0x29c847),{id:_0x3dd112,part:_0x25267e}=H(_0x29c847);return _0x39cb34&&!_0x39cb34[_0x4411('0x3d')]?null:{'group':'comment','name':_0x25267e?_0x3dd112+':'+_0x25267e:_0x3dd112};}}),_0x25e355[_0x4411('0x1c')][_0x4411('0x19')]('upcast')[_0x4411('0x1f')]({'view':{'name':_0x4411('0x47'),'attribute':{'id':/^\w/}},'model':(_0x10b2bc,{writer:_0x33b4e1})=>_0x33b4e1['createElement'](_0x4411('0x2e'),{'data-name':_0x4411('0x4b')+_0x10b2bc['getAttribute']('id')})}),_0x25e355[_0x4411('0x1c')][_0x4411('0x19')](_0x4411('0xa'))['dataToMarker']({'view':_0x4411('0x47')});}[_0x4411('0x17')](){const _0x1236d9=this[_0x4411('0x26')],_0x2bf781=_0x1236d9[_0x4411('0x34')]['get'](_0x4411('0x12')),_0x4ace6c=new Set();_0x1236d9['model'][_0x4411('0x1d')][_0x4411('0x39')](_0x478341=>{let _0x5e9d22=!0x1;for(const {name:_0xead489,data:_0x2433a5}of _0x1236d9[_0x4411('0x4e')]['document']['differ'][_0x4411('0x36')]()){const {group:_0x165c36,id:_0x189fc7}=H(_0xead489);let _0x524019=_0x2433a5[_0x4411('0x56')];if(_0x4411('0x47')!==_0x165c36||!_0x524019)continue;const _0x386887='$graveyard'===_0x524019['root']['rootName'];_0x386887||(_0x524019=J(_0x524019,_0x1236d9['model']),!_0x524019||_0x524019[_0x4411('0x3b')](_0x2433a5[_0x4411('0x56')]))?!_0x524019||!_0x1236d9[_0x4411('0x4e')][_0x4411('0xb')](_0x524019)||this[_0x4411('0x51')][_0x4411('0x33')](_0x189fc7)&&_0x386887?(_0x478341[_0x4411('0x14')](_0xead489),_0x5e9d22=!0x0):_0x386887||(this[_0x4411('0x2a')]?_0x4ace6c['add'](_0xead489):this[_0x4411('0x53')](_0xead489,_0x189fc7)):(_0x478341[_0x4411('0xc')](_0xead489,{'range':_0x524019}),_0x5e9d22=!0x0);}return _0x5e9d22;}),this['on']('change:isThreadsLoadingPaused',(_0x2e8f79,_0x4f2056,_0x51d628)=>{if(!_0x51d628&&_0x4ace6c['size'])for(const _0x343b65 of _0x4ace6c){const {id:_0x608adf}=H(_0x343b65);_0x4ace6c['delete'](_0x608adf),_0x1236d9[_0x4411('0x4e')][_0x4411('0x0')]['get'](_0x343b65)&&this[_0x4411('0x53')](_0x343b65,_0x608adf);}}),this[_0x4411('0x3f')](_0x1236d9[_0x4411('0x4e')]['markers'],_0x4411('0x2f'),(_0x3b4546,_0x255628,_0x316fcb,_0x522d30)=>{if(_0x522d30)return;const {id:_0x3fcede}=H(_0x255628['name']),_0x50fb72=_0x1236d9[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12'))['getCommentThread'](_0x3fcede);_0x4ace6c[_0x4411('0x29')](_0x3fcede),_0x50fb72&&!this[_0x4411('0xf')](_0x3fcede)&&(this['_attachedThreads'][_0x4411('0x29')](_0x3fcede),_0x2bf781[_0x4411('0x28')](_0x3fcede));});}[_0x4411('0x53')](_0x3a6980,_0x12cc16){if(this[_0x4411('0x51')][_0x4411('0x33')](_0x12cc16)){const _0x179ea6=this[_0x4411('0x51')][_0x4411('0x2b')](_0x12cc16);return void(_0x179ea6[_0x4411('0x6')](_0x3a6980)||_0x179ea6[_0x4411('0x2c')](_0x3a6980));}this[_0x4411('0x51')][_0x4411('0x35')](_0x12cc16,[_0x3a6980]);const _0xb9eed6=this[_0x4411('0x26')],_0x19a99c=_0xb9eed6[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12')),_0x407245=_0xb9eed6['config'][_0x4411('0x2b')](_0x4411('0x52')),_0x45571d=_0xb9eed6['plugins'][_0x4411('0x2b')](_0x4411('0x1')),_0xd89bf9=()=>{const _0x52519e=this['getAllMarkersForId'](_0x12cc16);if(0x0===_0x52519e['length'])return null;if(0x1===_0x52519e[_0x4411('0x3c')])return _0x32257c(_0xb9eed6[_0x4411('0x16')],_0x52519e[0x0]);const _0x4a8a28=_0x52519e[_0x4411('0x4c')](_0x35162d=>_0x32257c(_0xb9eed6[_0x4411('0x16')],_0x35162d));return _0x4a8a28[_0x4411('0x7')]((_0x10c5bf,_0x2da48b)=>{const _0xfa8239=new _0x5cb5fb(_0x10c5bf),_0x569f95=new _0x5cb5fb(_0x2da48b),_0x1638f8=_0xfa8239[_0x4411('0x41')]-_0x569f95[_0x4411('0x41')];return 0x0==_0x1638f8?_0xfa8239['left']-_0x569f95[_0x4411('0x50')]:_0x1638f8;}),_0x4a8a28[0x0];};!this['getAllMarkersForId'](_0x12cc16)[0x0][_0x4411('0x24')]?_0xb9eed6[_0x4411('0x16')][_0x4411('0x57')][_0x4411('0x27')](_0x4411('0x44'),()=>{const _0x2d816c=_0xb9eed6[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x1a')),_0x245010=_0x19a99c['openNewCommentThread']({'channelId':_0x407245,'threadId':_0x12cc16,'target':_0xd89bf9}),_0x45eb54=_0x19a99c[_0x4411('0x54')][_0x4411('0x2b')](_0x245010)[_0x4411('0x57')],_0x771150=_0x2d816c['getByInnerView'](_0x45eb54);_0x45571d['registerAnnotation'](_0x771150);},{'priority':_0x4411('0x55')}):_0x19a99c['fetchCommentThread']({'channelId':_0x407245,'threadId':_0x12cc16})['then'](_0x5982f2=>{if(_0x4411('0x58')!==_0xb9eed6[_0x4411('0xe')]){if(_0x5982f2){const _0x4e7446=_0x5982f2[_0x4411('0x9')](_0xd89bf9);_0x45571d[_0x4411('0x32')](_0x4e7446);}else{const _0x1b8167=this[_0x4411('0x37')](_0x12cc16);_0xb9eed6[_0x4411('0x4e')][_0x4411('0x10')](_0x5ca531=>{for(const _0x25fcc4 of _0x1b8167)_0x5ca531[_0x4411('0x14')](_0x25fcc4);});}}});}}function G(_0x532fbc,_0x303317){return _0x303317?_0x532fbc+':'+_0x303317:_0x532fbc;}function H(_0x5705bf){const _0x3b2833=_0x5705bf[_0x4411('0x48')](':');return{'group':_0x3b2833[0x0],'id':_0x3b2833[0x1],'part':_0x3b2833[0x2]};}function J(_0x2cbbdd,_0x17fb9e){const _0x24d929=_0x17fb9e['schema'],_0x29ff3a=_0x17fb9e[_0x4411('0x3e')](_0x2cbbdd[_0x4411('0x45')]);for(const _0x587cc5 of _0x2cbbdd[_0x4411('0x3')]()){const {type:_0x311b15,item:_0x2fbac6,nextPosition:_0x13f1ed}=_0x587cc5;if('text'===_0x311b15||_0x24d929['isObject'](_0x2fbac6)){const _0x29f185=_0x17fb9e['createPositionBefore'](_0x2fbac6);_0x29ff3a['isCollapsed']&&(_0x29ff3a['start']=_0x29f185),_0x29ff3a[_0x4411('0x4')]=_0x13f1ed;}}return _0x29ff3a['isCollapsed']?null:_0x29ff3a;}