@ckeditor/ckeditor5-comments 32.0.0 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/ko.js +1 -0
  22. package/build/translations/nl.js +1 -0
  23. package/build/translations/no.js +1 -0
  24. package/build/translations/pl.js +1 -0
  25. package/build/translations/pt-br.js +1 -0
  26. package/build/translations/ro.js +1 -0
  27. package/build/translations/ru.js +1 -0
  28. package/build/translations/sk.js +1 -0
  29. package/build/translations/sr-latn.js +1 -0
  30. package/build/translations/sr.js +1 -0
  31. package/build/translations/tk.js +1 -0
  32. package/build/translations/tr.js +1 -0
  33. package/build/translations/ug.js +1 -0
  34. package/build/translations/uk.js +1 -0
  35. package/build/translations/zh-cn.js +1 -0
  36. package/build/translations/zh.js +1 -0
  37. package/lang/translations/el.po +79 -0
  38. package/package.json +4 -9
  39. package/src/annotations/annotation.js +1 -1
  40. package/src/annotations/annotationcollection.js +1 -1
  41. package/src/annotations/annotations.js +1 -1
  42. package/src/annotations/annotationsuis.js +1 -1
  43. package/src/annotations/editorannotations.js +1 -1
  44. package/src/annotations/inlineannotations.js +1 -1
  45. package/src/annotations/narrowsidebar.js +1 -1
  46. package/src/annotations/sidebar.js +1 -1
  47. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  48. package/src/annotations/view/annotationview.js +1 -1
  49. package/src/annotations/view/sidebaritemview.js +1 -1
  50. package/src/annotations/view/sidebarview.js +1 -1
  51. package/src/annotations/widesidebar.js +1 -1
  52. package/src/comments/addcommentthreadcommand.js +1 -1
  53. package/src/comments/commentsediting.js +1 -1
  54. package/src/comments/commentsrepository.js +1 -1
  55. package/src/comments/commentsui.js +1 -1
  56. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  57. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  59. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  60. package/src/comments/ui/commentthreadcontroller.js +1 -1
  61. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  62. package/src/comments/ui/view/basecommentview.js +1 -1
  63. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  64. package/src/comments/ui/view/commentcontentview.js +1 -1
  65. package/src/comments/ui/view/commentinputview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.js +1 -1
  67. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  68. package/src/comments/ui/view/commentthreadview.js +1 -1
  69. package/src/comments/ui/view/commentview.js +1 -1
  70. package/src/comments/ui/view/confirmmixin.js +1 -1
  71. package/src/comments/ui/view/confirmview.js +1 -1
  72. package/src/comments.js +1 -1
  73. package/src/commentsonly.js +1 -1
  74. package/src/{utils/getmarkerdomelement.js → index.js} +1 -1
  75. package/src/utils/common-translations.js +1 -1
  76. package/src/utils/createmutationobserver.js +1 -1
  77. package/theme/annotation-inline.css +1 -1
  78. package/theme/annotation.css +1 -1
  79. package/theme/comment.css +1 -1
  80. package/theme/commentinput.css +1 -1
  81. package/theme/commentmarker.css +1 -1
  82. package/theme/commentthread.css +1 -1
  83. package/theme/icons/add-comment.svg +1 -1
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +1 -1
  87. package/theme/sidebar.css +1 -1
  88. package/src/utils/getdatetimeformatter.js +0 -23
  89. package/src/utils/trim-html.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a07=['_spaceBetweenItems','minHeight','length','addAnnotation','_updateLastItem','_annotationToSidebarItemView','_annotations','view','content','delete','_getTargetTop','getIndex','bottom','_getItemAfter','top','updateHeight','_detachFromContainer','rearrange','_getItemBefore','_lastItem','remove','sidebar.preventScrollOutOfView','listenTo','last','_destroySidebarItemView','context','sidebar-setcontainer-invalid-element','target','_attachToContainer','change:_lastItem','getSidebarItemView','add','_setItemTop','bind','config','_activeAnnotation','destroy','_createSidebarView','_sidebarItemViewToAnnotation','list','change:bottom','Sidebar','_alignBeforeItem','container','_alignAfterItem','sidebar-attachtocontainer-missing-container','setContainer','set','_targetTop','max','isAnimationDisabled','pluginName','element','change:top','init','stopListening','class','locale','clear','appendChild','change:targetRect','define','sidebar.container','isActive','get','targetRect','refresh','_getMaxAvailableTop','_alignToTargetRect','height'];(function(_0x4f7cb2,_0x2a0701){const _0x32202f=function(_0x23ba6b){while(--_0x23ba6b){_0x4f7cb2['push'](_0x4f7cb2['shift']());}};_0x32202f(++_0x2a0701);}(_0x2a07,0x1b2));const _0x3220=function(_0x4f7cb2,_0x2a0701){_0x4f7cb2=_0x4f7cb2-0x0;let _0x32202f=_0x2a07[_0x4f7cb2];return _0x32202f;};import{ContextPlugin as _0x30bcc9}from'ckeditor5/src/core';import _0x36d231 from'./view/sidebarview';import _0x31561d from'./view/sidebaritemview';import{Rect as _0x4fa7f3,CKEditorError as _0x5aa609}from'ckeditor5/src/utils';import{isElement as _0x5c2a45,throttle as _0x5cfa75}from'lodash-es';export default class b extends _0x30bcc9{static get[_0x3220('0x25')](){return _0x3220('0x1b');}constructor(_0x107353){super(_0x107353),this[_0x3220('0x21')](_0x3220('0x5')),this[_0x3220('0x3f')]=this[_0x3220('0x17')](),this['set'](_0x3220('0x1d'),null),this[_0x3220('0x38')]=0x19,this[_0x3220('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x3220('0x14')][_0x3220('0x2f')](_0x3220('0x7'),!0x1),this[_0x3220('0x3e')]=null,this[_0x3220('0x15')]=null;}[_0x3220('0x28')](){const _0x490712=this['context'][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x30'));_0x490712&&this[_0x3220('0x20')](_0x490712);}['setContainer'](_0x324f2f){if(!_0x5c2a45(_0x324f2f))throw new _0x5aa609(_0x3220('0xc'));this[_0x3220('0x1d')]=_0x324f2f;}[_0x3220('0xe')]({viewClass:_0xce7e41='',spaceBetweenItems:_0x1fb45a=0x19}={}){if(!_0x5c2a45(this[_0x3220('0x1d')]))throw new _0x5aa609(_0x3220('0x1f'),this);this[_0x3220('0x1d')][_0x3220('0x2d')](this['view'][_0x3220('0x26')]),this[_0x3220('0x3f')][_0x3220('0x2a')]=_0xce7e41,this[_0x3220('0x38')]=_0x1fb45a;}[_0x3220('0x3')]({removedAnnotation:_0x4e5029,previousAnnotation:_0x4b3ca8,nextAnnotation:_0x3307a7}){const _0x30e497=this[_0x3220('0x10')](_0x4e5029);this[_0x3220('0x3f')][_0x3220('0x19')][_0x3220('0x6')](_0x30e497),this[_0x3220('0xa')](_0x4e5029),_0x4b3ca8&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x4b3ca8)),_0x3307a7&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x3307a7)),this['_updateLastItem']();}[_0x3220('0x34')]({blurredAnnotation:_0x5cdeab,activatedAnnotation:_0x19b67e,disableAnimationOnActivatedAnnotation:_0x1a0764}){if(this[_0x3220('0x15')]=_0x19b67e,_0x5cdeab){_0x5cdeab[_0x3220('0x31')]=!0x1;const _0x3e74ee=this[_0x3220('0x10')](_0x5cdeab);_0x3e74ee&&_0x1a0764&&(_0x3e74ee[_0x3220('0x24')]=!0x1);}if(_0x19b67e){const _0x175c7e=this[_0x3220('0x10')](_0x19b67e);_0x175c7e&&(_0x19b67e[_0x3220('0x31')]=!0x0,_0x1a0764&&(_0x175c7e['isAnimationDisabled']=!0x0,_0x175c7e[_0x3220('0x0')]+=0x1),this['_alignToTargetRect'](_0x175c7e));}}[_0x3220('0x2')](_0x377973){this[_0x3220('0x29')](),this[_0x3220('0x3f')][_0x3220('0x26')][_0x3220('0x6')]();for(const _0xc816e0 of _0x377973)this[_0x3220('0xa')](_0xc816e0);this['view'][_0x3220('0x19')][_0x3220('0x2c')](),this['view']['class']='',this[_0x3220('0x5')]=null;}[_0x3220('0x3b')](_0x456072,_0x467621){_0x467621||(_0x467621=_0x456072[_0x3220('0x3f')]);const _0x1f5e25=new _0x31561d(this[_0x3220('0xb')][_0x3220('0x2b')]);this[_0x3220('0x18')][_0x3220('0x21')](_0x1f5e25,_0x456072),this[_0x3220('0x3d')]['set'](_0x456072,_0x1f5e25),_0x1f5e25[_0x3220('0x40')][_0x3220('0x11')](_0x467621),this[_0x3220('0x36')](_0x1f5e25),this['listenTo'](_0x456072[_0x3220('0x3f')],_0x3220('0x2e'),()=>{const _0x421033=this[_0x3220('0x42')](_0x1f5e25);_0x1f5e25[_0x3220('0x22')]!=_0x421033&&(_0x1f5e25[_0x3220('0x22')]=_0x421033,this[_0x3220('0x12')](_0x1f5e25,_0x421033));}),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x27'),_0x5cfa75(()=>{if(!_0x1f5e25[_0x3220('0x40')][_0x3220('0x3a')])return;const _0x594e79=this[_0x3220('0x4')](_0x1f5e25);if(!_0x594e79)return;const _0x2724dc=this[_0x3220('0x18')][_0x3220('0x32')](_0x594e79),_0x56c4a4=this['_activeAnnotation'];_0x56c4a4&&_0x56c4a4===_0x2724dc?this[_0x3220('0x1e')](_0x594e79,_0x1f5e25):this[_0x3220('0x1c')](_0x1f5e25,_0x594e79);},0xa,{'leading':!0x1})),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x1a'),_0x5cfa75(()=>{if(!_0x1f5e25['content'][_0x3220('0x3a')])return;const _0x3f44ee=this[_0x3220('0x45')](_0x1f5e25);if(!_0x3f44ee)return;const _0x26d6d1=this[_0x3220('0x18')][_0x3220('0x32')](_0x3f44ee),_0x28d4ce=this[_0x3220('0xb')][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x7')),_0x5c2cfb=this['_activeAnnotation'];_0x5c2cfb&&_0x5c2cfb===_0x26d6d1&&_0x28d4ce?(this[_0x3220('0x1c')](_0x3f44ee,_0x1f5e25),this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee)):_0x5c2cfb&&_0x5c2cfb===_0x26d6d1?this['_alignBeforeItem'](_0x3f44ee,_0x1f5e25):this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee);},0xa,{'leading':!0x1}));const _0x283c35=this[_0x3220('0x4')](_0x1f5e25);if(_0x283c35)this[_0x3220('0x1e')](_0x283c35,_0x1f5e25)||this['_alignToTargetRect'](_0x1f5e25);else this[_0x3220('0x36')](_0x1f5e25);return this['_updateLastItem'](),this[_0x3220('0x3f')]['list'][_0x3220('0x11')](_0x1f5e25),_0x1f5e25;}[_0x3220('0x10')](_0x1a1496){return this[_0x3220('0x3d')][_0x3220('0x32')](_0x1a1496);}['destroy'](){this[_0x3220('0x3f')][_0x3220('0x16')]();}[_0x3220('0xa')](_0x69917){const _0x4b50aa=this['getSidebarItemView'](_0x69917);this[_0x3220('0x29')](_0x4b50aa),this[_0x3220('0x29')](_0x69917['view']),_0x4b50aa[_0x3220('0x16')](),this[_0x3220('0x3d')][_0x3220('0x41')](_0x69917),this[_0x3220('0x18')][_0x3220('0x41')](_0x4b50aa);}[_0x3220('0x17')](){const _0x46fbd2=new _0x36d231(this[_0x3220('0xb')][_0x3220('0x2b')]);return _0x46fbd2['render'](),this['on'](_0x3220('0xf'),(_0x39761d,_0x2127ce,_0x2c0c1f,_0x41d1b6)=>{_0x41d1b6&&_0x46fbd2['unbind'](_0x3220('0x39')),_0x2c0c1f?_0x46fbd2[_0x3220('0x13')](_0x3220('0x39'))['to'](_0x2c0c1f,_0x3220('0x44')):_0x46fbd2[_0x3220('0x39')]=null;}),_0x46fbd2;}[_0x3220('0x3c')](){this['_lastItem']=this[_0x3220('0x10')](this['_annotations'][_0x3220('0x9')]);}[_0x3220('0x4')](_0x17337f){const _0xbc4708=this[_0x3220('0x18')][_0x3220('0x32')](_0x17337f),_0x137844=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0xbc4708)-0x1);return _0x137844&&this['getSidebarItemView'](_0x137844);}['_getItemAfter'](_0x3d095d){const _0x32e84e=this[_0x3220('0x18')][_0x3220('0x32')](_0x3d095d),_0x4292b9=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0x32e84e)+0x1);return _0x4292b9&&this[_0x3220('0x10')](_0x4292b9);}['_alignBeforeItem'](_0x318bfb,_0x27608e){_0x318bfb[_0x3220('0x1')]();const _0x560500=C(_0x27608e['bottom']+this[_0x3220('0x38')],_0x318bfb[_0x3220('0x0')]);return!!_0x560500&&(this[_0x3220('0x12')](_0x27608e,_0x27608e[_0x3220('0x0')]-_0x560500),!0x0);}['_alignAfterItem'](_0xf7943a,_0x3dfce2){_0xf7943a[_0x3220('0x1')]();const _0x539fea=C(_0xf7943a[_0x3220('0x44')]+this['_spaceBetweenItems'],_0x3dfce2[_0x3220('0x0')]);return!!_0x539fea&&(this[_0x3220('0x12')](_0x3dfce2,_0x3dfce2[_0x3220('0x0')]+_0x539fea,!0x1),!0x0);}[_0x3220('0x36')](_0x131abd){const _0xbc1962=this['_sidebarItemViewToAnnotation'][_0x3220('0x32')](_0x131abd);if(!_0xbc1962||!_0xbc1962[_0x3220('0xd')])return;const _0x72ecc3=this[_0x3220('0x42')](_0x131abd);this[_0x3220('0x12')](_0x131abd,_0x72ecc3);}[_0x3220('0x42')](_0x30fb82){const _0x131b9f=this[_0x3220('0x18')][_0x3220('0x32')](_0x30fb82);if(null===_0x131b9f[_0x3220('0x33')])return 0x0;if(_0x131b9f['target']instanceof _0x4fa7f3)return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')];{const _0x46cdd8=new _0x4fa7f3(this['view'][_0x3220('0x26')])['top'];return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')]-_0x46cdd8;}}[_0x3220('0x12')](_0x1e22d2,_0x31f3ff,_0x5119a5=this[_0x3220('0xb')]['config'][_0x3220('0x32')](_0x3220('0x7'))){_0x5119a5&&(_0x31f3ff=Math['max'](_0x31f3ff,this[_0x3220('0x35')](_0x1e22d2))),_0x1e22d2[_0x3220('0x0')]=_0x31f3ff;}[_0x3220('0x35')](_0x17b881){let _0x14e1c5=this['_getItemBefore'](_0x17b881),_0x4e227d=0x0;for(;_0x14e1c5;)_0x14e1c5[_0x3220('0x1')](),_0x4e227d+=this['_spaceBetweenItems']+_0x14e1c5[_0x3220('0x37')],_0x14e1c5=this[_0x3220('0x4')](_0x14e1c5);return _0x4e227d;}}function C(_0x754e11,_0x19ea72){return Math[_0x3220('0x23')](_0x754e11-_0x19ea72,0x0);}
23
+ const _0x5636=['isActive','getSidebarItemView','addAnnotation','_updateLastItem','config','element','bottom','max','minHeight','_sidebarItemViewToAnnotation','locale','_destroySidebarItemView','_annotationToSidebarItemView','getIndex','_targetTop','_getItemAfter','targetRect','_getItemBefore','refresh','change:top','_annotations','sidebar.container','_setItemTop','change:targetRect','unbind','list','height','sidebar-attachtocontainer-missing-container','appendChild','container','pluginName','define','_alignAfterItem','class','remove','destroy','_getTargetTop','target','init','Sidebar','updateHeight','delete','top','add','_alignBeforeItem','_activeAnnotation','sidebar.preventScrollOutOfView','set','stopListening','view','isAnimationDisabled','_spaceBetweenItems','listenTo','clear','get','content','length','_alignToTargetRect','setContainer','context','sidebar-setcontainer-invalid-element'];(function(_0x13c60d,_0x563682){const _0x5e96fe=function(_0x345068){while(--_0x345068){_0x13c60d['push'](_0x13c60d['shift']());}};_0x5e96fe(++_0x563682);}(_0x5636,0x69));const _0x5e96=function(_0x13c60d,_0x563682){_0x13c60d=_0x13c60d-0x0;let _0x5e96fe=_0x5636[_0x13c60d];return _0x5e96fe;};import{ContextPlugin as _0x599806}from'ckeditor5/src/core';import _0x5af177 from'./view/sidebarview';import _0x2f9e08 from'./view/sidebaritemview';import{Rect as _0x300841,CKEditorError as _0x575631}from'ckeditor5/src/utils';import{isElement as _0x4568e7,throttle as _0x5cf3c5}from'lodash-es';export default class b extends _0x599806{static get[_0x5e96('0x2f')](){return _0x5e96('0x38');}constructor(_0x52226b){super(_0x52226b),this[_0x5e96('0x3')]('_lastItem'),this[_0x5e96('0x5')]=this['_createSidebarView'](),this[_0x5e96('0x3')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5e96('0x1a')]=new Map(),this[_0x5e96('0x1d')]=new Map(),this['context'][_0x5e96('0x15')][_0x5e96('0x30')](_0x5e96('0x2'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}[_0x5e96('0x37')](){const _0x1b3d79=this[_0x5e96('0xf')]['config']['get'](_0x5e96('0x26'));_0x1b3d79&&this[_0x5e96('0xe')](_0x1b3d79);}['setContainer'](_0x52b848){if(!_0x4568e7(_0x52b848))throw new _0x575631(_0x5e96('0x10'));this[_0x5e96('0x2e')]=_0x52b848;}['_attachToContainer']({viewClass:_0x3c59b3='',spaceBetweenItems:_0x5f37e3=0x19}={}){if(!_0x4568e7(this[_0x5e96('0x2e')]))throw new _0x575631(_0x5e96('0x2c'),this);this[_0x5e96('0x2e')][_0x5e96('0x2d')](this[_0x5e96('0x5')]['element']),this[_0x5e96('0x5')][_0x5e96('0x32')]=_0x3c59b3,this[_0x5e96('0x7')]=_0x5f37e3;}['rearrange']({removedAnnotation:_0x3cb0f9,previousAnnotation:_0x3b2037,nextAnnotation:_0x496768}){const _0x35f329=this[_0x5e96('0x12')](_0x3cb0f9);this[_0x5e96('0x5')]['list']['remove'](_0x35f329),this[_0x5e96('0x1c')](_0x3cb0f9),_0x3b2037&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x3b2037)),_0x496768&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x496768)),this[_0x5e96('0x14')]();}[_0x5e96('0x23')]({blurredAnnotation:_0x47c201,activatedAnnotation:_0x44fb00,disableAnimationOnActivatedAnnotation:_0x43231b}){if(this[_0x5e96('0x1')]=_0x44fb00,_0x47c201){_0x47c201[_0x5e96('0x11')]=!0x1;const _0x2bd0d0=this[_0x5e96('0x12')](_0x47c201);_0x2bd0d0&&_0x43231b&&(_0x2bd0d0[_0x5e96('0x6')]=!0x1);}if(_0x44fb00){const _0x1d21d3=this[_0x5e96('0x12')](_0x44fb00);_0x1d21d3&&(_0x44fb00['isActive']=!0x0,_0x43231b&&(_0x1d21d3[_0x5e96('0x6')]=!0x0,_0x1d21d3[_0x5e96('0x3b')]+=0x1),this[_0x5e96('0xd')](_0x1d21d3));}}['_detachFromContainer'](_0x4e40af){this[_0x5e96('0x4')](),this[_0x5e96('0x5')][_0x5e96('0x16')][_0x5e96('0x33')]();for(const _0x482e98 of _0x4e40af)this[_0x5e96('0x1c')](_0x482e98);this['view']['list'][_0x5e96('0x9')](),this[_0x5e96('0x5')][_0x5e96('0x32')]='',this['_lastItem']=null;}[_0x5e96('0x13')](_0x4f5944,_0x598cb9){_0x598cb9||(_0x598cb9=_0x4f5944[_0x5e96('0x5')]);const _0x5cddcf=new _0x2f9e08(this['context']['locale']);this[_0x5e96('0x1a')][_0x5e96('0x3')](_0x5cddcf,_0x4f5944),this[_0x5e96('0x1d')]['set'](_0x4f5944,_0x5cddcf),_0x5cddcf[_0x5e96('0xb')][_0x5e96('0x3c')](_0x598cb9),this[_0x5e96('0xd')](_0x5cddcf),this[_0x5e96('0x8')](_0x4f5944[_0x5e96('0x5')],_0x5e96('0x28'),()=>{const _0x2edc12=this[_0x5e96('0x35')](_0x5cddcf);_0x5cddcf[_0x5e96('0x1f')]!=_0x2edc12&&(_0x5cddcf[_0x5e96('0x1f')]=_0x2edc12,this['_setItemTop'](_0x5cddcf,_0x2edc12));}),this[_0x5e96('0x8')](_0x5cddcf,_0x5e96('0x24'),_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x2b90b4=this['_getItemBefore'](_0x5cddcf);if(!_0x2b90b4)return;const _0x2e0142=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x2b90b4),_0xab0bc7=this['_activeAnnotation'];_0xab0bc7&&_0xab0bc7===_0x2e0142?this[_0x5e96('0x31')](_0x2b90b4,_0x5cddcf):this['_alignBeforeItem'](_0x5cddcf,_0x2b90b4);},0xa,{'leading':!0x1})),this[_0x5e96('0x8')](_0x5cddcf,'change:bottom',_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x4280cc=this[_0x5e96('0x20')](_0x5cddcf);if(!_0x4280cc)return;const _0x500ebe=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4280cc),_0x3909f1=this[_0x5e96('0xf')][_0x5e96('0x15')][_0x5e96('0xa')]('sidebar.preventScrollOutOfView'),_0x320dae=this[_0x5e96('0x1')];_0x320dae&&_0x320dae===_0x500ebe&&_0x3909f1?(this['_alignBeforeItem'](_0x4280cc,_0x5cddcf),this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc)):_0x320dae&&_0x320dae===_0x500ebe?this[_0x5e96('0x0')](_0x4280cc,_0x5cddcf):this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc);},0xa,{'leading':!0x1}));const _0x21690a=this[_0x5e96('0x22')](_0x5cddcf);if(_0x21690a)this[_0x5e96('0x31')](_0x21690a,_0x5cddcf)||this['_alignToTargetRect'](_0x5cddcf);else this['_alignToTargetRect'](_0x5cddcf);return this['_updateLastItem'](),this[_0x5e96('0x5')][_0x5e96('0x2a')]['add'](_0x5cddcf),_0x5cddcf;}[_0x5e96('0x12')](_0x5fe8c7){return this[_0x5e96('0x1d')][_0x5e96('0xa')](_0x5fe8c7);}[_0x5e96('0x34')](){this['view']['destroy']();}[_0x5e96('0x1c')](_0x54c132){const _0x31451f=this[_0x5e96('0x12')](_0x54c132);this[_0x5e96('0x4')](_0x31451f),this[_0x5e96('0x4')](_0x54c132[_0x5e96('0x5')]),_0x31451f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x54c132),this[_0x5e96('0x1a')][_0x5e96('0x3a')](_0x31451f);}['_createSidebarView'](){const _0x2f74df=new _0x5af177(this[_0x5e96('0xf')][_0x5e96('0x1b')]);return _0x2f74df['render'](),this['on']('change:_lastItem',(_0x282aec,_0x588038,_0x2534fa,_0x5a0d30)=>{_0x5a0d30&&_0x2f74df[_0x5e96('0x29')](_0x5e96('0x19')),_0x2534fa?_0x2f74df['bind']('minHeight')['to'](_0x2534fa,_0x5e96('0x17')):_0x2f74df[_0x5e96('0x19')]=null;}),_0x2f74df;}[_0x5e96('0x14')](){this['_lastItem']=this[_0x5e96('0x12')](this[_0x5e96('0x25')]['last']);}[_0x5e96('0x22')](_0x49ae64){const _0x19c9cb=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x49ae64),_0x3cfca2=this['_annotations'][_0x5e96('0xa')](this[_0x5e96('0x25')][_0x5e96('0x1e')](_0x19c9cb)-0x1);return _0x3cfca2&&this['getSidebarItemView'](_0x3cfca2);}[_0x5e96('0x20')](_0x447ded){const _0x1d16c1=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x447ded),_0x43a435=this[_0x5e96('0x25')]['get'](this[_0x5e96('0x25')]['getIndex'](_0x1d16c1)+0x1);return _0x43a435&&this[_0x5e96('0x12')](_0x43a435);}[_0x5e96('0x0')](_0x4bd367,_0x3235b8){_0x4bd367[_0x5e96('0x39')]();const _0x1d35be=H(_0x3235b8['bottom']+this['_spaceBetweenItems'],_0x4bd367[_0x5e96('0x3b')]);return!!_0x1d35be&&(this[_0x5e96('0x27')](_0x3235b8,_0x3235b8[_0x5e96('0x3b')]-_0x1d35be),!0x0);}[_0x5e96('0x31')](_0x280a58,_0x18aa2b){_0x280a58[_0x5e96('0x39')]();const _0x16fcea=H(_0x280a58['bottom']+this[_0x5e96('0x7')],_0x18aa2b['top']);return!!_0x16fcea&&(this['_setItemTop'](_0x18aa2b,_0x18aa2b[_0x5e96('0x3b')]+_0x16fcea,!0x1),!0x0);}[_0x5e96('0xd')](_0x573451){const _0x527113=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x573451);if(!_0x527113||!_0x527113[_0x5e96('0x36')])return;const _0x5f463f=this[_0x5e96('0x35')](_0x573451);this[_0x5e96('0x27')](_0x573451,_0x5f463f);}[_0x5e96('0x35')](_0x4ddc80){const _0x29dd81=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4ddc80);if(null===_0x29dd81['targetRect'])return 0x0;if(_0x29dd81[_0x5e96('0x36')]instanceof _0x300841)return _0x29dd81['targetRect'][_0x5e96('0x3b')];{const _0x1ddb33=new _0x300841(this['view'][_0x5e96('0x16')])[_0x5e96('0x3b')];return _0x29dd81[_0x5e96('0x21')][_0x5e96('0x3b')]-_0x1ddb33;}}[_0x5e96('0x27')](_0x1c9a73,_0x3d4184,_0x5e4c78=this[_0x5e96('0xf')]['config'][_0x5e96('0xa')](_0x5e96('0x2'))){_0x5e4c78&&(_0x3d4184=Math[_0x5e96('0x18')](_0x3d4184,this['_getMaxAvailableTop'](_0x1c9a73))),_0x1c9a73[_0x5e96('0x3b')]=_0x3d4184;}['_getMaxAvailableTop'](_0x14fef2){let _0x239d31=this[_0x5e96('0x22')](_0x14fef2),_0x42054c=0x0;for(;_0x239d31;)_0x239d31[_0x5e96('0x39')](),_0x42054c+=this['_spaceBetweenItems']+_0x239d31[_0x5e96('0x2b')],_0x239d31=this[_0x5e96('0x22')](_0x239d31);return _0x42054c;}}function H(_0x12999a,_0x4dad12){return Math[_0x5e96('0x18')](_0x12999a-_0x4dad12,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x135b=['annotationType','add','ck-annotation-counter__badge--edit-mode','bind','children','ck-annotation-counter__badge--','ck-annotation-counter','icon','counterView','isDirty','ck-annotation-counter__badge','set','number'];(function(_0x519ce,_0x135b7c){const _0xdfd35=function(_0x482f09){while(--_0x482f09){_0x519ce['push'](_0x519ce['shift']());}};_0xdfd35(++_0x135b7c);}(_0x135b,0x65));const _0xdfd3=function(_0x519ce,_0x135b7c){_0x519ce=_0x519ce-0x0;let _0xdfd35=_0x135b[_0x519ce];return _0xdfd35;};import{ButtonView as _0x1e4576,View as _0x2d718f}from'ckeditor5/src/ui';import _0x360a61 from'../../../theme/icons/add-comment.svg';export default class B extends _0x1e4576{constructor(_0x4056f8){super(_0x4056f8);const _0x48770b=this['bindTemplate'];this[_0xdfd3('0x1')](_0xdfd3('0xc'),!0x1),this[_0xdfd3('0x1')](_0xdfd3('0x2'),0x0),this[_0xdfd3('0x6')]('_badge')['to'](this,_0xdfd3('0xc'),this,_0xdfd3('0x2'),(_0x1d5d67,_0x55524e)=>_0x1d5d67?'...':_0x55524e),this[_0xdfd3('0x1')](_0xdfd3('0x3'),''),this[_0xdfd3('0xa')]=_0x360a61,this['extendTemplate']({'attributes':{'class':[_0xdfd3('0x9')]}}),this[_0xdfd3('0xb')]=new _0x2d718f(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0xdfd3('0x0'),_0x48770b['to'](_0xdfd3('0x3'),_0x3486d2=>_0xdfd3('0x8')+_0x3486d2),_0x48770b['if'](_0xdfd3('0xc'),_0xdfd3('0x5'))]},'children':[{'text':_0x48770b['to']('_badge')}]}),this[_0xdfd3('0x7')][_0xdfd3('0x4')](this[_0xdfd3('0xb')]);}}
23
+ const _0x139d=['annotationType','add','setTemplate','ck-annotation-counter','isDirty','_badge','icon','...','ck-annotation-counter__badge','set','ck-annotation-counter__badge--edit-mode','bind','counterView','number','span'];(function(_0x540025,_0x139df4){const _0x4c0511=function(_0x2ae88b){while(--_0x2ae88b){_0x540025['push'](_0x540025['shift']());}};_0x4c0511(++_0x139df4);}(_0x139d,0x1c5));const _0x4c05=function(_0x540025,_0x139df4){_0x540025=_0x540025-0x0;let _0x4c0511=_0x139d[_0x540025];return _0x4c0511;};import{ButtonView as _0x1a1cb7,View as _0x11a9dc}from'ckeditor5/src/ui';import _0x4ecc5d from'../../../theme/icons/add-comment.svg';export default class B extends _0x1a1cb7{constructor(_0x5bbc85){super(_0x5bbc85);const _0x5950b4=this['bindTemplate'];this['set'](_0x4c05('0x1'),!0x1),this[_0x4c05('0x6')](_0x4c05('0xa'),0x0),this[_0x4c05('0x8')](_0x4c05('0x2'))['to'](this,_0x4c05('0x1'),this,'number',(_0x58c1b3,_0x2ef73c)=>_0x58c1b3?_0x4c05('0x4'):_0x2ef73c),this[_0x4c05('0x6')](_0x4c05('0xc'),''),this[_0x4c05('0x3')]=_0x4ecc5d,this['extendTemplate']({'attributes':{'class':[_0x4c05('0x0')]}}),this[_0x4c05('0x9')]=new _0x11a9dc(),this[_0x4c05('0x9')][_0x4c05('0xe')]({'tag':_0x4c05('0xb'),'attributes':{'class':[_0x4c05('0x5'),_0x5950b4['to']('annotationType',_0x3d343d=>'ck-annotation-counter__badge--'+_0x3d343d),_0x5950b4['if']('isDirty',_0x4c05('0x7'))]},'children':[{'text':_0x5950b4['to'](_0x4c05('0x2'))}]}),this['children'][_0x4c05('0xd')](this[_0x4c05('0x9')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e5a=['focusTracker','mainView','clientHeight','div','render','_mutationObserver','add','isActive','focus','detach','bindTemplate','content','element','ck-rounded-corners','keystrokes','listenTo','attach','ck-annotation-wrapper','type','height','Esc','createCollection','isDirty','_updateHeight','destroy','setTemplate','set','fire'];(function(_0x5eb722,_0x2e5a13){const _0x5adf90=function(_0x31752f){while(--_0x31752f){_0x5eb722['push'](_0x5eb722['shift']());}};_0x5adf90(++_0x2e5a13);}(_0x2e5a,0x1f2));const _0x5adf=function(_0x5eb722,_0x2e5a13){_0x5eb722=_0x5eb722-0x0;let _0x5adf90=_0x2e5a[_0x5eb722];return _0x5adf90;};import{View as _0x52f669}from'ckeditor5/src/ui';import{FocusTracker as _0x348e70,KeystrokeHandler as _0x3a5703,uid as _0x5b956f}from'ckeditor5/src/utils';import _0x5ba1b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class it extends _0x52f669{constructor(_0x597702,_0x55c8fb){super(_0x597702),this['id']=_0x5b956f(),this['focusTracker']=new _0x348e70(),this[_0x5adf('0x14')]=new _0x3a5703(),this[_0x5adf('0x14')][_0x5adf('0x4')](_0x5adf('0x1a'),(_0x4608cb,_0x1a190f)=>this[_0x5adf('0x5')](_0x5adf('0x1a'),_0x1a190f)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5adf('0x4')](_0x5adf('0x19'),0x0),this[_0x5adf('0x4')](_0x5adf('0xd'),!0x1),this[_0x5adf('0x4')](_0x5adf('0x0'),!0x1),this[_0x5adf('0x4')]('length',0x0),this[_0x5adf('0x4')](_0x5adf('0x18'),''),this[_0x5adf('0xb')]=_0x5ba1b(()=>this[_0x5adf('0x1')]()),this[_0x5adf('0x11')]=this[_0x5adf('0x1b')](),this['content'][_0x5adf('0xc')](_0x55c8fb),this[_0x5adf('0x7')]=_0x55c8fb;const _0x1d4079=this[_0x5adf('0x10')];this[_0x5adf('0x3')]({'tag':_0x5adf('0x9'),'attributes':{'class':['ck',_0x5adf('0x17'),_0x5adf('0x13'),_0x1d4079['if'](_0x5adf('0xd'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5adf('0x11')]});}[_0x5adf('0xa')](){super['render'](),this[_0x5adf('0x6')]['add'](this[_0x5adf('0x12')]),this[_0x5adf('0x14')][_0x5adf('0x15')](this['element']),this[_0x5adf('0xb')][_0x5adf('0x16')](this[_0x5adf('0x12')]);}[_0x5adf('0x2')](){this[_0x5adf('0x11')]['clear'](),this[_0x5adf('0x14')][_0x5adf('0x2')](),this['focusTracker']['destroy'](),this[_0x5adf('0xb')][_0x5adf('0xf')](),super[_0x5adf('0x2')]();}[_0x5adf('0xe')](){this[_0x5adf('0x12')][_0x5adf('0xe')]();}[_0x5adf('0x1')](){const _0x4e5ec7=this[_0x5adf('0x12')][_0x5adf('0x8')];_0x4e5ec7&&(this[_0x5adf('0x19')]=_0x4e5ec7);}}
23
+ const _0x2957=['add','height','ck-annotation-wrapper','element','isActive','mainView','clear','detach','keystrokes','Esc','targetRect','render','_mutationObserver','fire','listenTo','content','setTemplate','focus','_updateHeight','set','createCollection','bindTemplate','focusTracker','isDirty','destroy','length','ck-rounded-corners'];(function(_0x52ca42,_0x2957a9){const _0x30037f=function(_0x785402){while(--_0x785402){_0x52ca42['push'](_0x52ca42['shift']());}};_0x30037f(++_0x2957a9);}(_0x2957,0x1c0));const _0x3003=function(_0x52ca42,_0x2957a9){_0x52ca42=_0x52ca42-0x0;let _0x30037f=_0x2957[_0x52ca42];return _0x30037f;};import{View as _0xb9d63a}from'ckeditor5/src/ui';import{FocusTracker as _0x96e13c,KeystrokeHandler as _0x2fd355,uid as _0x2f5818}from'ckeditor5/src/utils';import _0x5bbc4d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xb9d63a{constructor(_0x18af2b,_0x52567b){super(_0x18af2b),this['id']=_0x2f5818(),this[_0x3003('0x6')]=new _0x96e13c(),this[_0x3003('0x13')]=new _0x2fd355(),this[_0x3003('0x13')][_0x3003('0x3')](_0x3003('0x14'),(_0x2ea949,_0x8154bc)=>this[_0x3003('0x18')]('Esc',_0x8154bc)),this[_0x3003('0x3')](_0x3003('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3003('0x3')](_0x3003('0xc'),0x0),this['set'](_0x3003('0xf'),!0x1),this[_0x3003('0x3')](_0x3003('0x7'),!0x1),this['set'](_0x3003('0x9'),0x0),this[_0x3003('0x3')]('type',''),this[_0x3003('0x17')]=_0x5bbc4d(()=>this[_0x3003('0x2')]()),this['content']=this[_0x3003('0x4')](),this['content'][_0x3003('0xb')](_0x52567b),this[_0x3003('0x10')]=_0x52567b;const _0x130c2c=this[_0x3003('0x5')];this[_0x3003('0x0')]({'tag':'div','attributes':{'class':['ck',_0x3003('0xd'),_0x3003('0xa'),_0x130c2c['if'](_0x3003('0xf'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x3003('0x1a')]});}[_0x3003('0x16')](){super['render'](),this[_0x3003('0x6')][_0x3003('0xb')](this[_0x3003('0xe')]),this[_0x3003('0x13')][_0x3003('0x19')](this[_0x3003('0xe')]),this[_0x3003('0x17')]['attach'](this[_0x3003('0xe')]);}[_0x3003('0x8')](){this[_0x3003('0x1a')][_0x3003('0x11')](),this[_0x3003('0x13')][_0x3003('0x8')](),this[_0x3003('0x6')][_0x3003('0x8')](),this['_mutationObserver'][_0x3003('0x12')](),super[_0x3003('0x8')]();}[_0x3003('0x1')](){this[_0x3003('0xe')][_0x3003('0x1')]();}[_0x3003('0x2')](){const _0x191ac6=this[_0x3003('0xe')]['clientHeight'];_0x191ac6&&(this[_0x3003('0xc')]=_0x191ac6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d9f=['_mutationObserver','top','bind','set','setTemplate','bottom','render','element','height','content','bindTemplate','createCollection','updateHeight','ck-sidebar-item','destroy','isAnimationDisabled','clientHeight','detach','attach','_targetTop'];(function(_0x1c3a0b,_0x5d9f57){const _0x189dd0=function(_0x4d06b7){while(--_0x4d06b7){_0x1c3a0b['push'](_0x1c3a0b['shift']());}};_0x189dd0(++_0x5d9f57);}(_0x5d9f,0x6b));const _0x189d=function(_0x1c3a0b,_0x5d9f57){_0x1c3a0b=_0x1c3a0b-0x0;let _0x189dd0=_0x5d9f[_0x1c3a0b];return _0x189dd0;};import{View as _0x5a04fc}from'ckeditor5/src/ui';import{toUnit as _0x28f1b0}from'ckeditor5/src/utils';import _0x40690c from'../../utils/createmutationobserver';const gt=_0x28f1b0('px');export default class V extends _0x5a04fc{constructor(_0x4fef88){super(_0x4fef88),this['set']('top'),this[_0x189d('0x10')]('height',0x0),this[_0x189d('0xf')](_0x189d('0x12'))['to'](this,_0x189d('0xe'),this,_0x189d('0x1'),(_0x160580,_0xd3467f)=>(_0x160580||0x0)+_0xd3467f),this[_0x189d('0x10')](_0x189d('0x8'),!0x1),this[_0x189d('0xd')]=_0x40690c(()=>this[_0x189d('0x5')]()),this[_0x189d('0xc')]=null,this[_0x189d('0x2')]=this[_0x189d('0x4')]();const _0x42917e=this[_0x189d('0x3')];this[_0x189d('0x11')]({'tag':'div','attributes':{'class':[_0x189d('0x6'),_0x42917e['to'](_0x189d('0x8'),_0x2f2292=>_0x2f2292?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x42917e['to'](_0x189d('0xe'),gt)}},'children':this[_0x189d('0x2')]});}['render'](){super[_0x189d('0x13')](),this[_0x189d('0xd')][_0x189d('0xb')](this[_0x189d('0x0')]);}[_0x189d('0x5')](){const _0x83fd3d=this['element'][_0x189d('0x9')];_0x83fd3d&&(this[_0x189d('0x1')]=_0x83fd3d);}[_0x189d('0x7')](){this['content']['clear'](),this[_0x189d('0xd')][_0x189d('0xa')](),super[_0x189d('0x7')]();}}
23
+ const _0x37d4=['render','content','ck-sidebar-item','height','set','div','_mutationObserver','_targetTop','detach','top','setTemplate','isAnimationDisabled','destroy','element','createCollection','clear','updateHeight','bottom'];(function(_0x3f3dc2,_0x37d448){const _0x225348=function(_0x51ef93){while(--_0x51ef93){_0x3f3dc2['push'](_0x3f3dc2['shift']());}};_0x225348(++_0x37d448);}(_0x37d4,0x16d));const _0x2253=function(_0x3f3dc2,_0x37d448){_0x3f3dc2=_0x3f3dc2-0x0;let _0x225348=_0x37d4[_0x3f3dc2];return _0x225348;};import{View as _0x39d37e}from'ckeditor5/src/ui';import{toUnit as _0x203877}from'ckeditor5/src/utils';import _0x2610e5 from'../../utils/createmutationobserver';const ft=_0x203877('px');export default class C extends _0x39d37e{constructor(_0x489d53){super(_0x489d53),this['set'](_0x2253('0x4')),this[_0x2253('0x11')](_0x2253('0x10'),0x0),this['bind'](_0x2253('0xc'))['to'](this,_0x2253('0x4'),this,'height',(_0x12f13e,_0xb2ee93)=>(_0x12f13e||0x0)+_0xb2ee93),this['set'](_0x2253('0x6'),!0x1),this[_0x2253('0x1')]=_0x2610e5(()=>this[_0x2253('0xb')]()),this[_0x2253('0x2')]=null,this['content']=this[_0x2253('0x9')]();const _0x18cc40=this['bindTemplate'];this[_0x2253('0x5')]({'tag':_0x2253('0x0'),'attributes':{'class':[_0x2253('0xf'),_0x18cc40['to']('isAnimationDisabled',_0x4200db=>_0x4200db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x18cc40['to'](_0x2253('0x4'),ft)}},'children':this['content']});}[_0x2253('0xd')](){super[_0x2253('0xd')](),this[_0x2253('0x1')]['attach'](this[_0x2253('0x8')]);}[_0x2253('0xb')](){const _0x1859a9=this['element']['clientHeight'];_0x1859a9&&(this[_0x2253('0x10')]=_0x1859a9);}[_0x2253('0x7')](){this[_0x2253('0xe')][_0x2253('0xa')](),this[_0x2253('0x1')][_0x2253('0x3')](),super[_0x2253('0x7')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30c3=['set','class','setTemplate','ck-reset','div','list','createCollection','bindTemplate','minHeight'];(function(_0xed5014,_0x30c38f){const _0x178aa0=function(_0x3ea671){while(--_0x3ea671){_0xed5014['push'](_0xed5014['shift']());}};_0x178aa0(++_0x30c38f);}(_0x30c3,0xa2));const _0x178a=function(_0xed5014,_0x30c38f){_0xed5014=_0xed5014-0x0;let _0x178aa0=_0x30c3[_0xed5014];return _0x178aa0;};import{View as _0x278cfa}from'ckeditor5/src/ui';import{toUnit as _0x6dd516}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x6dd516('px');export default class T extends _0x278cfa{constructor(_0x54db50){super(_0x54db50);const _0x590762=this[_0x178a('0x7')];this['set'](_0x178a('0x8'),0x0),this[_0x178a('0x0')]('class',''),this['list']=this[_0x178a('0x6')](),this[_0x178a('0x2')]({'tag':_0x178a('0x4'),'attributes':{'class':['ck','ck-sidebar',_0x178a('0x3'),_0x590762['to'](_0x178a('0x1'))],'style':{'minHeight':_0x590762['to'](_0x178a('0x8'),_0x1056b2=>_0x1056b2?gt(_0x1056b2+0xa):null)}},'children':this[_0x178a('0x5')]});}}
23
+ const _0x53bb=['class','list','div','createCollection','bindTemplate','set','setTemplate'];(function(_0x55312b,_0x53bbe6){const _0x4e89ec=function(_0x1f43ba){while(--_0x1f43ba){_0x55312b['push'](_0x55312b['shift']());}};_0x4e89ec(++_0x53bbe6);}(_0x53bb,0x1ca));const _0x4e89=function(_0x55312b,_0x53bbe6){_0x55312b=_0x55312b-0x0;let _0x4e89ec=_0x53bb[_0x55312b];return _0x4e89ec;};import{View as _0x52ef09}from'ckeditor5/src/ui';import{toUnit as _0x2b4746}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2b4746('px');export default class T extends _0x52ef09{constructor(_0x51fa9c){super(_0x51fa9c);const _0x374698=this[_0x4e89('0x1')];this[_0x4e89('0x2')]('minHeight',0x0),this['set'](_0x4e89('0x4'),''),this[_0x4e89('0x5')]=this[_0x4e89('0x0')](),this[_0x4e89('0x3')]({'tag':_0x4e89('0x6'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x374698['to'](_0x4e89('0x4'))],'style':{'minHeight':_0x374698['to']('minHeight',_0x86199=>_0x86199?ft(_0x86199+0xa):null)}},'children':this[_0x4e89('0x5')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x169e=['widesidebar-detach-not-attached','activeAnnotation','off','removeEventListener','refresh','stopListening','_annotations','_destroyEditorAnnotationsIntegration','_editorAnnotations','isAttached','ready','set','_integrateWithEditorAnnotations','setActiveAnnotation','requires','_attachToContainer','EditorAnnotations','hasDomSelection','add','register','_throttledPositioningRefresh','WideSidebar','addEventListener','high','pluginName','container','plugins','resize','widesidebar-attach-already-attached','wideSidebar','_detachFromContainer','_activeAnnotation','change:container','stop','context','uiUpdate','listenTo','remove','editors','refreshPositioning','has','blur','switchTo','getOrderedSelectedAnnotations','get','ck-sidebar--wide','detach','updateTargetRect','attach'];(function(_0x5542e7,_0x169e45){const _0x31236d=function(_0x434294){while(--_0x434294){_0x5542e7['push'](_0x5542e7['shift']());}};_0x31236d(++_0x169e45);}(_0x169e,0x1ca));const _0x3123=function(_0x5542e7,_0x169e45){_0x5542e7=_0x5542e7-0x0;let _0x31236d=_0x169e[_0x5542e7];return _0x31236d;};import{ContextPlugin as _0x20b92f}from'ckeditor5/src/core';import _0x2c81a3 from'./annotationsuis';import _0x6f2571 from'./sidebar';import{CKEditorError as _0x7fcb2c,Collection as _0x4d7e75}from'ckeditor5/src/utils';import{throttle as _0x1c865e}from'lodash-es';export default class i extends _0x20b92f{static get[_0x3123('0x2e')](){return[_0x6f2571,_0x2c81a3];}static get[_0x3123('0x7')](){return _0x3123('0x4');}constructor(_0x37a96b){super(_0x37a96b),this[_0x3123('0x29')]=!0x1,this[_0x3123('0x2b')](_0x3123('0x21'),null),this[_0x3123('0x26')]=null,this[_0x3123('0x28')]=new _0x4d7e75(),this[_0x3123('0x3')]=_0x1c865e(()=>{this[_0x3123('0x26')][_0x3123('0x16')]();},0x190,{'leading':!0x1});}['init'](){const _0xdd4cc9=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x2c81a3),_0x34d007=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x6f2571);_0xdd4cc9[_0x3123('0x2')]('wideSidebar',this),_0x34d007[_0x3123('0x8')]&&_0xdd4cc9[_0x3123('0x19')](_0x3123('0xc'));}[_0x3123('0x2d')](_0x21d5ec){if(_0x21d5ec===this[_0x3123('0x21')])return;const _0x511109=this['context'][_0x3123('0x9')]['get'](_0x6f2571);_0x511109[_0x3123('0xe')]=_0x21d5ec;const _0x2ac4cb=this[_0x3123('0x21')];this[_0x3123('0x21')]=_0x21d5ec,_0x511109[_0x3123('0x24')]({'blurredAnnotation':_0x2ac4cb,'activatedAnnotation':this[_0x3123('0x21')]});}[_0x3123('0x1f')](_0x2f4f2b){this['_annotations']=_0x2f4f2b;const _0xbe80cb=this[_0x3123('0x11')]['plugins'][_0x3123('0x1b')]('Sidebar');if(_0xbe80cb[_0x3123('0x26')]=_0x2f4f2b,this[_0x3123('0x29')])throw new _0x7fcb2c(_0x3123('0xb'),this);this[_0x3123('0x29')]=!0x0,this[_0x3123('0x13')](_0xbe80cb,'set:container',()=>{this[_0x3123('0x1d')](),this[_0x3123('0x13')](_0xbe80cb,_0x3123('0xf'),_0x30220b=>{_0x30220b[_0x3123('0x22')](),this['attach'](_0x2f4f2b);});}),_0xbe80cb[_0x3123('0x2f')]({'viewClass':_0x3123('0x1c')});const _0x2490ed=_0x469c10=>{_0x469c10[_0x3123('0x1e')](),_0xbe80cb['addAnnotation'](_0x469c10);};for(const _0x186a58 of _0x2f4f2b)_0x2490ed(_0x186a58);this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x1'),(_0x34f142,_0x56497c)=>{_0x2490ed(_0x56497c);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x14'),(_0x2cec4f,_0x50851b,_0x2a4be8)=>{_0xbe80cb['rearrange']({'removedAnnotation':_0x50851b,'previousAnnotation':_0x2f4f2b['get'](_0x2a4be8-0x1),'nextAnnotation':_0x2f4f2b['get'](_0x2a4be8+0x1)}),_0x50851b===this[_0x3123('0x21')]&&this[_0x3123('0x2d')](null);},{'priority':_0x3123('0x6')}),this[_0x3123('0x13')](_0x2f4f2b,'focus',(_0x1446d3,_0x4792ac)=>{this['setActiveAnnotation'](_0x4792ac);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x18'),()=>{this[_0x3123('0x2d')](null);});const _0x3f4860=this['context'][_0x3123('0x15')]?this[_0x3123('0x11')][_0x3123('0x15')]:new _0x4d7e75([this[_0x3123('0x11')]]);for(const _0x5881ec of _0x3f4860)this[_0x3123('0x2c')](_0x5881ec);this[_0x3123('0x13')](_0x3f4860,_0x3123('0x1'),(_0x16d712,_0x546826)=>{this[_0x3123('0x13')](_0x546826,_0x3123('0x2a'),()=>{this[_0x3123('0x2c')](_0x546826);});}),this[_0x3123('0x13')](_0x3f4860,_0x3123('0x14'),(_0x5abde6,_0x208097)=>{_0x208097[_0x3123('0x9')][_0x3123('0x17')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x208097[_0x3123('0x9')]['get'](_0x3123('0x30')));}),window[_0x3123('0x5')](_0x3123('0xa'),this[_0x3123('0x3')]),this['_annotations'][_0x3123('0x16')]();}[_0x3123('0x1d')](){if(!this['isAttached'])throw new _0x7fcb2c(_0x3123('0x20'),this);this[_0x3123('0x2d')](null);const _0x5061db=this[_0x3123('0x11')][_0x3123('0x9')]['get'](_0x6f2571);_0x5061db[_0x3123('0xd')](this[_0x3123('0x26')]),this[_0x3123('0x25')](_0x5061db),this[_0x3123('0x25')](this[_0x3123('0x26')]),this[_0x3123('0x25')](this['context'][_0x3123('0x15')]);for(const _0x11105f of Array['from'](this[_0x3123('0x28')]))this[_0x3123('0x27')](_0x11105f);window[_0x3123('0x23')](_0x3123('0xa'),this['_throttledPositioningRefresh']),this[_0x3123('0x3')]['cancel'](),this['activeAnnotation']=null,this[_0x3123('0x29')]=!0x1;}['destroy'](){this['isAttached']&&this[_0x3123('0x1d')]();}[_0x3123('0x2c')](_0x238c68){const _0xc1eb75=_0x238c68[_0x3123('0x9')][_0x3123('0x1b')](_0x3123('0x30'));if(!_0xc1eb75)return;const _0x5affe6=()=>{const _0x118e7c=_0xc1eb75[_0x3123('0x1a')]({'annotations':this[_0x3123('0x26')],'activeAnnotation':this[_0x3123('0x21')]});this[_0x3123('0x2d')](_0x118e7c[0x0]||null);};this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x24'),_0x5affe6),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x18'),(_0x45576e,{isAnnotationTracked:_0x14f3c1})=>{this[_0x3123('0x21')]&&_0x14f3c1(this[_0x3123('0x21')])&&this['setActiveAnnotation'](null);}),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x12'),()=>{this[_0x3123('0x26')]['refreshPositioning']();}),this[_0x3123('0x13')](this[_0x3123('0x26')],'blur',_0x12a7c5=>{_0xc1eb75[_0x3123('0x0')]()&&(_0x5affe6(),_0x12a7c5[_0x3123('0x10')]());},{'priority':_0x3123('0x6')}),this['_editorAnnotations'][_0x3123('0x1')](_0xc1eb75);}[_0x3123('0x27')](_0x3d355d){_0x3d355d&&(this[_0x3123('0x25')](_0x3d355d),this[_0x3123('0x28')]['remove'](_0x3d355d));}}
23
+ const _0x3b44=['blur','widesidebar-detach-not-attached','pluginName','rearrange','plugins','change:container','add','init','_integrateWithEditorAnnotations','refreshPositioning','attach','requires','_activeAnnotation','off','has','resize','destroy','isAttached','switchTo','_annotations','_detachFromContainer','removeEventListener','setActiveAnnotation','stopListening','editors','set','register','detach','addEventListener','_editorAnnotations','uiUpdate','_attachToContainer','getOrderedSelectedAnnotations','listenTo','_throttledPositioningRefresh','_destroyEditorAnnotationsIntegration','updateTargetRect','Sidebar','context','wideSidebar','from','get','refresh','remove','EditorAnnotations','addAnnotation','widesidebar-attach-already-attached','activeAnnotation','container','high'];(function(_0x235b23,_0x3b449f){const _0x59cd79=function(_0x261a8e){while(--_0x261a8e){_0x235b23['push'](_0x235b23['shift']());}};_0x59cd79(++_0x3b449f);}(_0x3b44,0xf8));const _0x59cd=function(_0x235b23,_0x3b449f){_0x235b23=_0x235b23-0x0;let _0x59cd79=_0x3b44[_0x235b23];return _0x59cd79;};import{ContextPlugin as _0x34690f}from'ckeditor5/src/core';import _0x1c9a65 from'./annotationsuis';import _0x52b296 from'./sidebar';import{CKEditorError as _0x5c0f65,Collection as _0xe86e9b}from'ckeditor5/src/utils';import{throttle as _0x3fb23a}from'lodash-es';export default class i extends _0x34690f{static get[_0x59cd('0xd')](){return[_0x52b296,_0x1c9a65];}static get[_0x59cd('0x4')](){return'WideSidebar';}constructor(_0x477a81){super(_0x477a81),this[_0x59cd('0x13')]=!0x1,this[_0x59cd('0x1b')](_0x59cd('0x31'),null),this[_0x59cd('0x15')]=null,this[_0x59cd('0x1f')]=new _0xe86e9b(),this[_0x59cd('0x24')]=_0x3fb23a(()=>{this['_annotations'][_0x59cd('0xb')]();},0x190,{'leading':!0x1});}[_0x59cd('0x9')](){const _0x5c8e05=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x1c9a65),_0x5338b8=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x5c8e05[_0x59cd('0x1c')](_0x59cd('0x29'),this),_0x5338b8[_0x59cd('0x0')]&&_0x5c8e05[_0x59cd('0x14')](_0x59cd('0x29'));}['setActiveAnnotation'](_0x5873e6){if(_0x5873e6===this[_0x59cd('0x31')])return;const _0x584095=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x52b296);_0x584095[_0x59cd('0xe')]=_0x5873e6;const _0x1aee30=this[_0x59cd('0x31')];this[_0x59cd('0x31')]=_0x5873e6,_0x584095[_0x59cd('0x2c')]({'blurredAnnotation':_0x1aee30,'activatedAnnotation':this[_0x59cd('0x31')]});}[_0x59cd('0xc')](_0x3a76aa){this['_annotations']=_0x3a76aa;const _0x1607e5=this[_0x59cd('0x28')][_0x59cd('0x6')][_0x59cd('0x2b')](_0x59cd('0x27'));if(_0x1607e5[_0x59cd('0x15')]=_0x3a76aa,this['isAttached'])throw new _0x5c0f65(_0x59cd('0x30'),this);this[_0x59cd('0x13')]=!0x0,this['listenTo'](_0x1607e5,'set:container',()=>{this['detach'](),this['listenTo'](_0x1607e5,_0x59cd('0x7'),_0xc725a1=>{_0xc725a1[_0x59cd('0xf')](),this[_0x59cd('0xc')](_0x3a76aa);});}),_0x1607e5[_0x59cd('0x21')]({'viewClass':'ck-sidebar--wide'});const _0x57b8ed=_0x305a36=>{_0x305a36[_0x59cd('0x26')](),_0x1607e5[_0x59cd('0x2f')](_0x305a36);};for(const _0x3d588e of _0x3a76aa)_0x57b8ed(_0x3d588e);this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x8'),(_0x483324,_0x1b52f0)=>{_0x57b8ed(_0x1b52f0);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2d'),(_0x2e9abf,_0x36ccc3,_0x1fdc8a)=>{_0x1607e5[_0x59cd('0x5')]({'removedAnnotation':_0x36ccc3,'previousAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a-0x1),'nextAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a+0x1)}),_0x36ccc3===this['activeAnnotation']&&this[_0x59cd('0x18')](null);},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x23')](_0x3a76aa,'focus',(_0x583b03,_0x256caa)=>{this[_0x59cd('0x18')](_0x256caa);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2'),()=>{this['setActiveAnnotation'](null);});const _0x37f7d6=this[_0x59cd('0x28')][_0x59cd('0x1a')]?this['context'][_0x59cd('0x1a')]:new _0xe86e9b([this[_0x59cd('0x28')]]);for(const _0x458b54 of _0x37f7d6)this[_0x59cd('0xa')](_0x458b54);this['listenTo'](_0x37f7d6,_0x59cd('0x8'),(_0x465c25,_0x1e9a8d)=>{this[_0x59cd('0x23')](_0x1e9a8d,'ready',()=>{this[_0x59cd('0xa')](_0x1e9a8d);});}),this['listenTo'](_0x37f7d6,_0x59cd('0x2d'),(_0x406dee,_0x118e29)=>{_0x118e29[_0x59cd('0x6')][_0x59cd('0x10')](_0x59cd('0x2e'))&&this[_0x59cd('0x25')](_0x118e29[_0x59cd('0x6')]['get'](_0x59cd('0x2e')));}),window[_0x59cd('0x1e')](_0x59cd('0x11'),this['_throttledPositioningRefresh']),this[_0x59cd('0x15')][_0x59cd('0xb')]();}['detach'](){if(!this['isAttached'])throw new _0x5c0f65(_0x59cd('0x3'),this);this[_0x59cd('0x18')](null);const _0x1829c4=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x1829c4[_0x59cd('0x16')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](_0x1829c4),this[_0x59cd('0x19')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](this['context'][_0x59cd('0x1a')]);for(const _0x2642ea of Array[_0x59cd('0x2a')](this[_0x59cd('0x1f')]))this[_0x59cd('0x25')](_0x2642ea);window[_0x59cd('0x17')](_0x59cd('0x11'),this[_0x59cd('0x24')]),this[_0x59cd('0x24')]['cancel'](),this[_0x59cd('0x31')]=null,this[_0x59cd('0x13')]=!0x1;}[_0x59cd('0x12')](){this[_0x59cd('0x13')]&&this[_0x59cd('0x1d')]();}[_0x59cd('0xa')](_0x431b50){const _0x1f8ee9=_0x431b50['plugins']['get'](_0x59cd('0x2e'));if(!_0x1f8ee9)return;const _0x429cb9=()=>{const _0x2fcfbf=_0x1f8ee9[_0x59cd('0x22')]({'annotations':this[_0x59cd('0x15')],'activeAnnotation':this[_0x59cd('0x31')]});this[_0x59cd('0x18')](_0x2fcfbf[0x0]||null);};this['listenTo'](_0x1f8ee9,'refresh',_0x429cb9),this['listenTo'](_0x1f8ee9,_0x59cd('0x2'),(_0x13e8c9,{isAnnotationTracked:_0x2c2d21})=>{this[_0x59cd('0x31')]&&_0x2c2d21(this[_0x59cd('0x31')])&&this[_0x59cd('0x18')](null);}),this[_0x59cd('0x23')](_0x1f8ee9,_0x59cd('0x20'),()=>{this[_0x59cd('0x15')][_0x59cd('0xb')]();}),this[_0x59cd('0x23')](this[_0x59cd('0x15')],_0x59cd('0x2'),_0xfea603=>{_0x1f8ee9['hasDomSelection']()&&(_0x429cb9(),_0xfea603['stop']());},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x1f')][_0x59cd('0x8')](_0x1f8ee9);}[_0x59cd('0x25')](_0x34fdd3){_0x34fdd3&&(this['stopListening'](_0x34fdd3),this[_0x59cd('0x1f')][_0x59cd('0x2d')](_0x34fdd3));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1407=['_trimToContent','substr','document','backward','comment:','createRange','getLastMatchingPosition','selection','getItems','model','push','_itemIsContent','_hasContent','addMarker','end','isObject','refresh','tableCell','schema','execute','editor','element','getRanges','isEnabled'];(function(_0x483f47,_0x140754){const _0x5486e3=function(_0x11eb09){while(--_0x11eb09){_0x483f47['push'](_0x483f47['shift']());}};_0x5486e3(++_0x140754);}(_0x1407,0x193));const _0x5486=function(_0x483f47,_0x140754){_0x483f47=_0x483f47-0x0;let _0x5486e3=_0x1407[_0x483f47];return _0x5486e3;};import{Command as _0x525d39}from'ckeditor5/src/core';import{uid as _0x44c44c}from'ckeditor5/src/utils';export default class j extends _0x525d39{[_0x5486('0x15')](){const _0x4c7d96=this[_0x5486('0x1')]['model'][_0x5486('0x7')][_0x5486('0xc')];for(const _0x3fcafa of _0x4c7d96[_0x5486('0x3')]())if(this['_hasContent'](_0x3fcafa))return void(this[_0x5486('0x4')]=!0x0);this[_0x5486('0x4')]=!0x1;}[_0x5486('0x0')]({threadId:_0x4fc6c6=_0x44c44c()}={}){const _0x241e53=this[_0x5486('0x1')][_0x5486('0xe')],_0x5e105e=[];for(const _0x26baba of _0x241e53[_0x5486('0x7')][_0x5486('0xc')]['getRanges']())this[_0x5486('0x11')](_0x26baba)&&_0x5e105e[_0x5486('0xf')](this[_0x5486('0x5')](_0x26baba));_0x241e53['change'](_0xa375c5=>{for(const _0x54a098 of _0x5e105e){const _0x4bbbf1=_0x44c44c()[_0x5486('0x6')](0x1,0x5),_0xbdba4d=_0x5486('0x9')+_0x4fc6c6+':'+_0x4bbbf1;_0xa375c5[_0x5486('0x12')](_0xbdba4d,{'range':_0x54a098,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x5486('0x11')](_0x14df8f){for(const _0x177d72 of _0x14df8f[_0x5486('0xd')]())if(this[_0x5486('0x10')](_0x177d72))return!0x0;return!0x1;}['_itemIsContent'](_0xff764f){return _0xff764f['is']('textProxy')||this[_0x5486('0x1')][_0x5486('0xe')][_0x5486('0x17')][_0x5486('0x14')](_0xff764f)&&!_0xff764f['is'](_0x5486('0x2'),_0x5486('0x16'));}[_0x5486('0x5')](_0x4f214d){const _0x58b78f=_0x22c560=>!this[_0x5486('0x10')](_0x22c560['item']),_0x2432c0=_0x4f214d['start']['getLastMatchingPosition'](_0x58b78f),_0x5aa563=_0x4f214d[_0x5486('0x13')][_0x5486('0xb')](_0x58b78f,{'direction':_0x5486('0x8')});return this[_0x5486('0x1')][_0x5486('0xe')][_0x5486('0xa')](_0x2432c0,_0x5aa563);}}
23
+ const _0x4341=['getLastMatchingPosition','start','_itemIsContent','selection','getRanges','backward','editor','end','tableCell','getItems','addMarker','textProxy','substr','_hasContent','document','isObject','model','change','push','schema','_trimToContent','createRange','element','isEnabled'];(function(_0x4334ea,_0x4341b3){const _0x44dd43=function(_0x4b46bd){while(--_0x4b46bd){_0x4334ea['push'](_0x4334ea['shift']());}};_0x44dd43(++_0x4341b3);}(_0x4341,0x17e));const _0x44dd=function(_0x4334ea,_0x4341b3){_0x4334ea=_0x4334ea-0x0;let _0x44dd43=_0x4341[_0x4334ea];return _0x44dd43;};import{Command as _0x51822c}from'ckeditor5/src/core';import{uid as _0x1e6a16}from'ckeditor5/src/utils';export default class j extends _0x51822c{['refresh'](){const _0x35ae32=this['editor'][_0x44dd('0x12')]['document']['selection'];for(const _0x161325 of _0x35ae32[_0x44dd('0x6')]())if(this[_0x44dd('0xf')](_0x161325))return void(this[_0x44dd('0x1')]=!0x0);this[_0x44dd('0x1')]=!0x1;}['execute']({threadId:_0x20bd1b=_0x1e6a16()}={}){const _0x593ac0=this[_0x44dd('0x8')][_0x44dd('0x12')],_0x545a50=[];for(const _0x22eaf8 of _0x593ac0[_0x44dd('0x10')][_0x44dd('0x5')]['getRanges']())this[_0x44dd('0xf')](_0x22eaf8)&&_0x545a50[_0x44dd('0x14')](this[_0x44dd('0x16')](_0x22eaf8));_0x593ac0[_0x44dd('0x13')](_0x2351d0=>{for(const _0x2bcc31 of _0x545a50){const _0x3af345=_0x1e6a16()[_0x44dd('0xe')](0x1,0x5),_0x23d132='comment:'+_0x20bd1b+':'+_0x3af345;_0x2351d0[_0x44dd('0xc')](_0x23d132,{'range':_0x2bcc31,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x44dd('0xf')](_0x1bb425){for(const _0x1ec730 of _0x1bb425[_0x44dd('0xb')]())if(this[_0x44dd('0x4')](_0x1ec730))return!0x0;return!0x1;}[_0x44dd('0x4')](_0x153ea8){return _0x153ea8['is'](_0x44dd('0xd'))||this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x15')][_0x44dd('0x11')](_0x153ea8)&&!_0x153ea8['is'](_0x44dd('0x0'),_0x44dd('0xa'));}[_0x44dd('0x16')](_0x2cb452){const _0x57a3c1=_0x2520b4=>!this['_itemIsContent'](_0x2520b4['item']),_0x36618b=_0x2cb452[_0x44dd('0x3')]['getLastMatchingPosition'](_0x57a3c1),_0x4cd6b7=_0x2cb452[_0x44dd('0x9')][_0x44dd('0x2')](_0x57a3c1,{'direction':_0x44dd('0x7')});return this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x17')](_0x36618b,_0x4cd6b7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a7d=['managedUsingOperations','left','stop','markers','getAllMarkersForId','change:isThreadsLoadingPaused','isThreadsLoadingPaused','root','elementToElement','init','once','model','pluginName','markerToData','CommentsEditing','_attachedThreads','change','plugins','dataToMarker','CommentsRepository','document','add','_attachThreadToMarker','collaboration.channelId','newRange','fetchCommentThread','hasCommentThread','createPositionBefore','openNewCommentThread','has','view','getAttribute','length','removeMarker','addCommentThread','switchReadOnly','editingDowncast','start','updateMarker','for','_initializeMarkerConverters','isCollapsed','name','editing','schema','change:isReadOnly','$graveyard','requires','differ','set','_handleMarkerAddAndRemove','delete','conversion','createRange','ck-comment-marker--active','markerToHighlight','low','affectsData','high','from','attachTo','getWalker','push','size','dataDowncast','hasMarkerForId','listenTo','upcast','commands','addComment','config','isEqual','rootName','registerPostFixer','state','activeMarker','hasContent','top','editor','destroy','createElement','get','sort','comment:','getMarkersGroup','comment','isObject'];(function(_0x4b08d3,_0x5a7da4){const _0x36e198=function(_0x1e5dfc){while(--_0x1e5dfc){_0x4b08d3['push'](_0x4b08d3['shift']());}};_0x36e198(++_0x5a7da4);}(_0x5a7d,0x19f));const _0x36e1=function(_0x4b08d3,_0x5a7da4){_0x4b08d3=_0x4b08d3-0x0;let _0x36e198=_0x5a7d[_0x4b08d3];return _0x36e198;};import{Plugin as _0x5f5304}from'ckeditor5/src/core';import{Rect as _0x4ac2ea}from'ckeditor5/src/utils';import _0x325fe7 from'./commentsrepository';import _0x338796 from'./addcommentthreadcommand';import _0xe6a47a from'../utils/getmarkerdomelement';import _0x876afa from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x5f5304{static get[_0x36e1('0x43')](){return[_0x325fe7,_0x876afa];}static get[_0x36e1('0x20')](){return _0x36e1('0x22');}constructor(_0x279635){super(_0x279635),this[_0x36e1('0x45')](_0x36e1('0x1a'),!0x0),_0x279635['data']['once']('ready',()=>this[_0x36e1('0x1a')]=!0x1),this[_0x36e1('0x45')](_0x36e1('0x8'),null),this['on']('change:activeMarker',(_0xa3418c,_0x2c948b,_0x251455,_0x414e52)=>{_0x279635[_0x36e1('0x1f')][_0x36e1('0x24')](_0x5f4a73=>{if(_0x251455){const {id:_0x5f19c1}=G(_0x251455),_0x52787f=this[_0x36e1('0x18')](_0x5f19c1);for(const _0xb1e2a5 of _0x52787f)_0x5f4a73[_0x36e1('0x3a')](_0xb1e2a5);}if(_0x414e52){const {id:_0x3480a8}=G(_0x414e52),_0x3a2c33=this[_0x36e1('0x18')](_0x3480a8);for(const _0x3c1d9b of _0x3a2c33)_0x5f4a73['updateMarker'](_0x3c1d9b);}});}),this['_attachedThreads']=new Set();}[_0x36e1('0x1d')](){const _0xc0225=this[_0x36e1('0xb')],_0x8eb12a=_0xc0225[_0x36e1('0x25')]['get']('CommentsRepository'),_0x14f5c8=_0xc0225[_0x36e1('0x3')]['get']('collaboration.channelId');_0xc0225[_0x36e1('0x1')][_0x36e1('0x29')](_0x36e1('0x36'),new _0x338796(_0xc0225)),this[_0x36e1('0x56')](_0xc0225,_0x36e1('0x41'),(_0x268078,_0xb3b1f7,_0x1f40cc)=>{_0x8eb12a[_0x36e1('0x37')](_0x1f40cc,_0xc0225[_0x36e1('0x3')]['get'](_0x36e1('0x2b')));}),this[_0x36e1('0x56')](_0x8eb12a,q('removeCommentThread',_0x14f5c8),(_0x5d13ac,{threadId:_0x165831})=>{_0xc0225[_0x36e1('0x1f')][_0x36e1('0x24')](_0x154750=>{for(const _0x45d4f7 of this['getAllMarkersForId'](_0x165831))_0x154750['removeMarker'](_0x45d4f7);});const _0x3457dc=_0x8eb12a['getCommentThread'](_0x165831);_0x8eb12a['hasCommentThread'](_0x165831)&&!_0x3457dc[_0x36e1('0x34')]||_0x5d13ac[_0x36e1('0x16')]();},{'priority':_0x36e1('0x4e')}),this[_0x36e1('0x56')](_0x8eb12a,q(_0x36e1('0x2'),_0x14f5c8),(_0x2c37da,{threadId:_0x414e4e,isFromAdapter:_0x424f31})=>{const _0x3b8052=this[_0x36e1('0x18')](_0x414e4e);if(_0x424f31||0x0==_0x3b8052[_0x36e1('0x34')]||!_0x8eb12a[_0x36e1('0x2e')](_0x414e4e))return;0x1===_0x8eb12a['getCommentThread'](_0x414e4e)[_0x36e1('0x34')]&&_0xc0225[_0x36e1('0x1f')][_0x36e1('0x24')](_0xfc4f59=>{for(const _0x7b0587 of _0x3b8052)_0xfc4f59[_0x36e1('0x3a')](_0x7b0587,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x36e1('0x4c')}),this[_0x36e1('0x3c')](),this['_handleMarkerAddAndRemove']();}[_0x36e1('0xc')](){const _0x1cc563=this['editor'][_0x36e1('0x25')][_0x36e1('0xe')]('CommentsRepository'),_0x3608cd=this['editor'][_0x36e1('0x3')][_0x36e1('0xe')]('collaboration.channelId');for(const _0x2b6200 of _0x1cc563['getCommentThreads']({'channelId':_0x3608cd}))_0x1cc563['_detachCommentThread'](_0x2b6200['id']),_0x1cc563['_threads']['delete'](_0x2b6200['id']);super[_0x36e1('0xc')]();}[_0x36e1('0x55')](_0x517fe7){return this['getAllMarkersForId'](_0x517fe7)[_0x36e1('0x34')]>0x0;}[_0x36e1('0x18')](_0xf72697){const _0x27babb=this['editor'][_0x36e1('0x1f')][_0x36e1('0x17')]['get']('comment:'+_0xf72697);return _0x27babb?[_0x27babb]:Array[_0x36e1('0x4f')](this[_0x36e1('0xb')]['model'][_0x36e1('0x17')][_0x36e1('0x11')](_0x36e1('0x10')+_0xf72697));}[_0x36e1('0x3c')](){const _0x59b508=this[_0x36e1('0xb')];_0x59b508[_0x36e1('0x48')][_0x36e1('0x3b')](_0x36e1('0x38'))[_0x36e1('0x4b')]({'model':_0x36e1('0x12'),'view':_0x3cbd47=>{const {id:_0x4a396b}=G(_0x3cbd47['markerName']),_0x34cfb1=['ck-comment-marker'];return this[_0x36e1('0x8')]&&G(this[_0x36e1('0x8')])['id']===_0x4a396b&&_0x34cfb1[_0x36e1('0x52')](_0x36e1('0x4a')),{'classes':_0x34cfb1,'attributes':{'data-comment':_0x4a396b}};}}),_0x59b508['conversion'][_0x36e1('0x3b')](_0x36e1('0x54'))[_0x36e1('0x21')]({'model':_0x36e1('0x12'),'view':_0x35e866=>{const _0x592cca=_0x59b508['model'][_0x36e1('0x17')]['get'](_0x35e866),{id:_0x3ba78b,part:_0x2d7b6a}=G(_0x35e866);return _0x592cca&&!_0x592cca[_0x36e1('0x4d')]?null:{'group':_0x36e1('0x12'),'name':_0x2d7b6a?_0x3ba78b+':'+_0x2d7b6a:_0x3ba78b};}}),_0x59b508[_0x36e1('0x48')][_0x36e1('0x3b')](_0x36e1('0x0'))[_0x36e1('0x1c')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0x5b5f1a,{writer:_0x179044})=>_0x179044[_0x36e1('0xd')]('$marker',{'data-name':_0x36e1('0x10')+_0x5b5f1a[_0x36e1('0x33')]('id')})}),_0x59b508['conversion'][_0x36e1('0x3b')](_0x36e1('0x0'))[_0x36e1('0x26')]({'view':_0x36e1('0x12')});}[_0x36e1('0x46')](){const _0x3c1725=this[_0x36e1('0xb')],_0x61c5e4=_0x3c1725[_0x36e1('0x25')][_0x36e1('0xe')](_0x36e1('0x27')),_0x35a1f7=new Set();_0x3c1725[_0x36e1('0x1f')][_0x36e1('0x28')][_0x36e1('0x6')](_0x584ec8=>{let _0x39632a=!0x1;for(const [_0x5a2ff0,_0x6a8c87]of _0x3c1725[_0x36e1('0x1f')][_0x36e1('0x28')][_0x36e1('0x44')]['_changedMarkers']){const {group:_0xfc28e5,id:_0x218f89}=G(_0x5a2ff0);let _0x1adadd=_0x6a8c87['newRange'];if(_0x36e1('0x12')!==_0xfc28e5||!_0x1adadd)continue;const _0x481ca9=_0x36e1('0x42')===_0x1adadd[_0x36e1('0x1b')][_0x36e1('0x5')];_0x481ca9||(_0x1adadd=H(_0x1adadd,_0x3c1725[_0x36e1('0x1f')]),!_0x1adadd||_0x1adadd[_0x36e1('0x4')](_0x6a8c87[_0x36e1('0x2c')]))?!_0x1adadd||!_0x3c1725['model'][_0x36e1('0x9')](_0x1adadd)||this['_attachedThreads'][_0x36e1('0x31')](_0x218f89)&&_0x481ca9?(_0x584ec8['removeMarker'](_0x5a2ff0),_0x39632a=!0x0):_0x481ca9||(this[_0x36e1('0x1a')]?_0x35a1f7['add'](_0x218f89):this[_0x36e1('0x2a')](_0x218f89)):(_0x584ec8[_0x36e1('0x3a')](_0x5a2ff0,{'range':_0x1adadd}),_0x39632a=!0x0);}return _0x39632a;}),this['on'](_0x36e1('0x19'),(_0x233468,_0x4ce5e5,_0x146c6a)=>{if(!_0x146c6a&&_0x35a1f7[_0x36e1('0x53')])for(const _0x3c58a3 of _0x35a1f7)this[_0x36e1('0x2a')](_0x3c58a3),_0x35a1f7[_0x36e1('0x47')](_0x3c58a3);}),this[_0x36e1('0x56')](_0x3c1725[_0x36e1('0x1f')][_0x36e1('0x17')],'update:comment',(_0x918540,_0x105238,_0x5d4e1e,_0x380c4c)=>{if(_0x380c4c)return;const {id:_0x4bb8ef}=G(_0x105238[_0x36e1('0x3e')]),_0x42dd51=_0x3c1725[_0x36e1('0x25')][_0x36e1('0xe')](_0x36e1('0x27'))['getCommentThread'](_0x4bb8ef);_0x35a1f7[_0x36e1('0x47')](_0x4bb8ef),_0x42dd51&&!this[_0x36e1('0x55')](_0x4bb8ef)&&(this[_0x36e1('0x23')][_0x36e1('0x47')](_0x4bb8ef),_0x61c5e4['_detachCommentThread'](_0x4bb8ef));});}[_0x36e1('0x2a')](_0x498c48){if(this[_0x36e1('0x23')][_0x36e1('0x31')](_0x498c48))return;this[_0x36e1('0x23')][_0x36e1('0x29')](_0x498c48);const _0x48ff3c=this[_0x36e1('0xb')],_0x21fde9=_0x48ff3c[_0x36e1('0x25')][_0x36e1('0xe')](_0x36e1('0x27')),_0x2f08b6=_0x48ff3c[_0x36e1('0x3')][_0x36e1('0xe')](_0x36e1('0x2b')),_0x263214=()=>{const _0x2be9a6=this[_0x36e1('0x18')](_0x498c48);if(0x0==_0x2be9a6[_0x36e1('0x34')])return null;const _0x234b50=_0x2be9a6['map'](_0x1fc5eb=>_0xe6a47a(_0x48ff3c[_0x36e1('0x3f')],_0x1fc5eb));return _0x234b50[_0x36e1('0xf')]((_0x5a4c8c,_0x5e950c)=>{const _0x4e7f30=new _0x4ac2ea(_0x5a4c8c),_0x51317d=new _0x4ac2ea(_0x5e950c),_0x248d40=_0x4e7f30[_0x36e1('0xa')]-_0x51317d[_0x36e1('0xa')];return 0x0==_0x248d40?_0x4e7f30[_0x36e1('0x15')]-_0x51317d[_0x36e1('0x15')]:_0x248d40;}),_0x234b50[0x0];};!this[_0x36e1('0x18')](_0x498c48)[0x0][_0x36e1('0x14')]?_0x48ff3c['editing'][_0x36e1('0x32')][_0x36e1('0x1e')]('render',()=>{_0x21fde9[_0x36e1('0x30')]({'channelId':_0x2f08b6,'threadId':_0x498c48,'target':_0x263214});},{'priority':_0x36e1('0x4c')}):_0x21fde9[_0x36e1('0x2d')]({'channelId':_0x2f08b6,'threadId':_0x498c48})['then'](_0x3f0932=>{if('destroyed'!==_0x48ff3c[_0x36e1('0x7')]){if(_0x3f0932)_0x3f0932[_0x36e1('0x50')](_0x263214);else{const _0x427150=this[_0x36e1('0x18')](_0x498c48);_0x48ff3c['model'][_0x36e1('0x24')](_0x453015=>{for(const _0x3dbca9 of _0x427150)_0x453015[_0x36e1('0x35')](_0x3dbca9);});}}});}}function q(_0x68d7bb,_0x5d0c96){return _0x5d0c96?_0x68d7bb+':'+_0x5d0c96:_0x68d7bb;}function G(_0x3ec8d0){const _0x75eab5=_0x3ec8d0['split'](':');return{'group':_0x75eab5[0x0],'id':_0x75eab5[0x1],'part':_0x75eab5[0x2]};}function H(_0x29a52f,_0x2077dc){const _0xf762b5=_0x2077dc[_0x36e1('0x40')],_0x189ce3=_0x2077dc[_0x36e1('0x49')](_0x29a52f[_0x36e1('0x39')]);for(const _0x308c91 of _0x29a52f[_0x36e1('0x51')]()){const {type:_0x35bbee,item:_0x4f8575,nextPosition:_0x211fea}=_0x308c91;if('text'===_0x35bbee||_0xf762b5[_0x36e1('0x13')](_0x4f8575)){const _0x32bca3=_0x2077dc[_0x36e1('0x2f')](_0x4f8575);_0x189ce3[_0x36e1('0x3d')]&&(_0x189ce3[_0x36e1('0x39')]=_0x32bca3),_0x189ce3['end']=_0x211fea;}}return _0x189ce3[_0x36e1('0x3d')]?null:_0x189ce3;}
23
+ const _0x713a=['end','editing','getAllMarkersForId','root','hasMarkerForId','getMarkersGroup','editor','removeMarker','start','fetchCommentThread','dataToMarker','CommentsRepository','destroy','listenTo','get','createPositionBefore','config','_handleMarkerAddAndRemove','has','schema','getWalker','isThreadsLoadingPaused','_detachCommentThread','attachTo','state','markerToHighlight','markerName','hasCommentThread','view','ck-comment-marker--active','upcast','render','elementToElement','comment:','requires','getAttribute','from','data','$graveyard','map','markerToData','plugins','reconvertMarker','for','size','change:isThreadsLoadingPaused','registerPostFixer','updateMarker','change','openNewCommentThread','editingDowncast','name','getChangedMarkers','rootName','differ','low','managedUsingOperations','isEqual','delete','isObject','add','removeCommentThread','init','set','comment','length','ck-comment-marker','conversion','markers','activeMarker','push','high','createRange','model','once','_attachedThreads','getCommentThread','$marker','_initializeMarkerConverters','split','createElement','stop','_attachThreadToMarker','newRange','document','dataDowncast','pluginName','collaboration.channelId','then','isCollapsed','text','top','left','sort'];(function(_0x4e35d1,_0x713a10){const _0x7edd58=function(_0x5d9ff3){while(--_0x5d9ff3){_0x4e35d1['push'](_0x4e35d1['shift']());}};_0x7edd58(++_0x713a10);}(_0x713a,0x1ac));const _0x7edd=function(_0x4e35d1,_0x713a10){_0x4e35d1=_0x4e35d1-0x0;let _0x7edd58=_0x713a[_0x4e35d1];return _0x7edd58;};import{Plugin as _0x44f512}from'ckeditor5/src/core';import{Rect as _0x41f675}from'ckeditor5/src/utils';import _0x850e87 from'./commentsrepository';import _0x514de2 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x4066a3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4110ee from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x44f512{static get[_0x7edd('0x4c')](){return[_0x850e87,_0x4110ee];}static get[_0x7edd('0x22')](){return'CommentsEditing';}constructor(_0x17746d){super(_0x17746d),this[_0x7edd('0xb')]('isThreadsLoadingPaused',!0x0),_0x17746d[_0x7edd('0x4f')][_0x7edd('0x16')]('ready',()=>this[_0x7edd('0x3f')]=!0x1),this[_0x7edd('0xb')](_0x7edd('0x11'),null),this['on']('change:activeMarker',(_0x273136,_0x5c1ea8,_0x20a9e4,_0x4c8fd7)=>{_0x17746d[_0x7edd('0x15')][_0x7edd('0x5a')](()=>{if(_0x20a9e4){const {id:_0x404418}=G(_0x20a9e4),_0x4a565d=this[_0x7edd('0x2c')](_0x404418);for(const _0xe87111 of _0x4a565d)_0x17746d['editing'][_0x7edd('0x54')](_0xe87111);}if(_0x4c8fd7){const {id:_0x1ec8f3}=G(_0x4c8fd7),_0x4f955b=this[_0x7edd('0x2c')](_0x1ec8f3);for(const _0x21bc81 of _0x4f955b)_0x17746d[_0x7edd('0x2b')]['reconvertMarker'](_0x21bc81);}});}),this['_attachedThreads']=new Set();}[_0x7edd('0xa')](){const _0x3b0593=this[_0x7edd('0x30')],_0x3c9b7b=_0x3b0593[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0x4988eb=_0x3b0593[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));_0x3b0593['commands'][_0x7edd('0x8')]('addCommentThread',new _0x514de2(_0x3b0593)),this['listenTo'](_0x3b0593,'change:isReadOnly',(_0x33c7bb,_0x581d9c,_0x2dcd48)=>{_0x3c9b7b['switchReadOnly'](_0x2dcd48,_0x3b0593['config'][_0x7edd('0x38')](_0x7edd('0x23')));}),this['listenTo'](_0x3c9b7b,q(_0x7edd('0x9'),_0x4988eb),(_0x8a5be8,{threadId:_0x5370e6})=>{_0x3b0593[_0x7edd('0x15')][_0x7edd('0x5a')](_0x353ccf=>{for(const _0x1ec456 of this[_0x7edd('0x2c')](_0x5370e6))_0x353ccf[_0x7edd('0x31')](_0x1ec456);});const _0x4b8cfa=_0x3c9b7b[_0x7edd('0x18')](_0x5370e6);_0x3c9b7b['hasCommentThread'](_0x5370e6)&&!_0x4b8cfa[_0x7edd('0xd')]||_0x8a5be8[_0x7edd('0x1d')]();},{'priority':_0x7edd('0x13')}),this['listenTo'](_0x3c9b7b,q('addComment',_0x4988eb),(_0x483faf,{threadId:_0x2f96ab,isFromAdapter:_0x4abeec})=>{const _0xcb40ed=this['getAllMarkersForId'](_0x2f96ab);if(_0x4abeec||0x0==_0xcb40ed[_0x7edd('0xd')]||!_0x3c9b7b[_0x7edd('0x45')](_0x2f96ab))return;0x1===_0x3c9b7b[_0x7edd('0x18')](_0x2f96ab)[_0x7edd('0xd')]&&_0x3b0593['model'][_0x7edd('0x5a')](_0x532d51=>{for(const _0x10edfc of _0xcb40ed)_0x532d51[_0x7edd('0x59')](_0x10edfc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x7edd('0x3')}),this['_initializeMarkerConverters'](),this[_0x7edd('0x3b')]();}[_0x7edd('0x36')](){const _0x319fd4=this[_0x7edd('0x30')][_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x305ce7=this['editor'][_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));for(const _0x5c245f of _0x319fd4['getCommentThreads']({'channelId':_0x305ce7}))_0x319fd4[_0x7edd('0x40')](_0x5c245f['id']),_0x319fd4['_threads']['delete'](_0x5c245f['id']);super[_0x7edd('0x36')]();}['hasMarkerForId'](_0x31faff){return this[_0x7edd('0x2c')](_0x31faff)[_0x7edd('0xd')]>0x0;}['getAllMarkersForId'](_0x52b7b0){const _0x2e2b9a=this[_0x7edd('0x30')]['model']['markers'][_0x7edd('0x38')](_0x7edd('0x4b')+_0x52b7b0);return _0x2e2b9a?[_0x2e2b9a]:Array[_0x7edd('0x4e')](this['editor'][_0x7edd('0x15')][_0x7edd('0x10')][_0x7edd('0x2f')](_0x7edd('0x4b')+_0x52b7b0));}[_0x7edd('0x1a')](){const _0x56ec6f=this['editor'];_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x5c'))[_0x7edd('0x43')]({'model':_0x7edd('0xc'),'view':_0x458917=>{const {id:_0x2736d2}=G(_0x458917[_0x7edd('0x44')]),_0x4f2d6a=[_0x7edd('0xe')];return this[_0x7edd('0x11')]&&G(this[_0x7edd('0x11')])['id']===_0x2736d2&&_0x4f2d6a[_0x7edd('0x12')](_0x7edd('0x47')),{'classes':_0x4f2d6a,'attributes':{'data-comment':_0x2736d2}};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x21'))[_0x7edd('0x52')]({'model':'comment','view':_0x18b58b=>{const _0x3eb60c=_0x56ec6f['model']['markers'][_0x7edd('0x38')](_0x18b58b),{id:_0x3b102f,part:_0x26d144}=G(_0x18b58b);return _0x3eb60c&&!_0x3eb60c['affectsData']?null:{'group':'comment','name':_0x26d144?_0x3b102f+':'+_0x26d144:_0x3b102f};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x4a')]({'view':{'name':_0x7edd('0xc'),'attribute':{'id':/^\w/}},'model':(_0x2aedf0,{writer:_0x40ce68})=>_0x40ce68[_0x7edd('0x1c')](_0x7edd('0x19'),{'data-name':_0x7edd('0x4b')+_0x2aedf0[_0x7edd('0x4d')]('id')})}),_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x34')]({'view':'comment'});}[_0x7edd('0x3b')](){const _0x403c46=this[_0x7edd('0x30')],_0x5ada91=_0x403c46[_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x26ad0a=new Set();_0x403c46['model'][_0x7edd('0x20')][_0x7edd('0x58')](_0xd6ce07=>{let _0xabd219=!0x1;for(const {name:_0xf5316,data:_0x4e6956}of _0x403c46[_0x7edd('0x15')][_0x7edd('0x20')][_0x7edd('0x2')][_0x7edd('0x0')]()){const {group:_0xc3535c,id:_0x5bcfc9}=G(_0xf5316);let _0x24b695=_0x4e6956['newRange'];if(_0x7edd('0xc')!==_0xc3535c||!_0x24b695)continue;const _0x3d57d9=_0x7edd('0x50')===_0x24b695[_0x7edd('0x2d')][_0x7edd('0x1')];_0x3d57d9||(_0x24b695=J(_0x24b695,_0x403c46[_0x7edd('0x15')]),!_0x24b695||_0x24b695[_0x7edd('0x5')](_0x4e6956[_0x7edd('0x1f')]))?!_0x24b695||!_0x403c46[_0x7edd('0x15')]['hasContent'](_0x24b695)||this[_0x7edd('0x17')][_0x7edd('0x3c')](_0x5bcfc9)&&_0x3d57d9?(_0xd6ce07[_0x7edd('0x31')](_0xf5316),_0xabd219=!0x0):_0x3d57d9||(this[_0x7edd('0x3f')]?_0x26ad0a['add'](_0x5bcfc9):this[_0x7edd('0x1e')](_0x5bcfc9)):(_0xd6ce07['updateMarker'](_0xf5316,{'range':_0x24b695}),_0xabd219=!0x0);}return _0xabd219;}),this['on'](_0x7edd('0x57'),(_0x5f5cf6,_0x418094,_0x426220)=>{if(!_0x426220&&_0x26ad0a[_0x7edd('0x56')])for(const _0x4e2e26 of _0x26ad0a)this['_attachThreadToMarker'](_0x4e2e26),_0x26ad0a[_0x7edd('0x6')](_0x4e2e26);}),this[_0x7edd('0x37')](_0x403c46[_0x7edd('0x15')][_0x7edd('0x10')],'update:comment',(_0x9b19e,_0x8ffa7c,_0x2d8b7a,_0x3ea200)=>{if(_0x3ea200)return;const {id:_0x52459c}=G(_0x8ffa7c[_0x7edd('0x5d')]),_0x19c2e9=_0x403c46[_0x7edd('0x53')]['get'](_0x7edd('0x35'))[_0x7edd('0x18')](_0x52459c);_0x26ad0a[_0x7edd('0x6')](_0x52459c),_0x19c2e9&&!this[_0x7edd('0x2e')](_0x52459c)&&(this[_0x7edd('0x17')]['delete'](_0x52459c),_0x5ada91[_0x7edd('0x40')](_0x52459c));});}['_attachThreadToMarker'](_0xa3bfd4){if(this[_0x7edd('0x17')]['has'](_0xa3bfd4))return;this['_attachedThreads'][_0x7edd('0x8')](_0xa3bfd4);const _0x15f349=this[_0x7edd('0x30')],_0x156563=_0x15f349[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0xc91a4f=_0x15f349[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23')),_0x2c0970=()=>{const _0x135ec3=this['getAllMarkersForId'](_0xa3bfd4);if(0x0==_0x135ec3[_0x7edd('0xd')])return null;const _0x5e73e4=_0x135ec3[_0x7edd('0x51')](_0x5106ee=>_0x4066a3(_0x15f349['editing'],_0x5106ee));return _0x5e73e4[_0x7edd('0x29')]((_0x12f220,_0x1cf7bc)=>{const _0x6dd3a0=new _0x41f675(_0x12f220),_0x1e9809=new _0x41f675(_0x1cf7bc),_0x442b37=_0x6dd3a0[_0x7edd('0x27')]-_0x1e9809[_0x7edd('0x27')];return 0x0==_0x442b37?_0x6dd3a0[_0x7edd('0x28')]-_0x1e9809['left']:_0x442b37;}),_0x5e73e4[0x0];};!this[_0x7edd('0x2c')](_0xa3bfd4)[0x0][_0x7edd('0x4')]?_0x15f349[_0x7edd('0x2b')][_0x7edd('0x46')][_0x7edd('0x16')](_0x7edd('0x49'),()=>{_0x156563[_0x7edd('0x5b')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4,'target':_0x2c0970});},{'priority':_0x7edd('0x3')}):_0x156563[_0x7edd('0x33')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4})[_0x7edd('0x24')](_0x1e1ac6=>{if('destroyed'!==_0x15f349[_0x7edd('0x42')]){if(_0x1e1ac6)_0x1e1ac6[_0x7edd('0x41')](_0x2c0970);else{const _0x1bd17d=this[_0x7edd('0x2c')](_0xa3bfd4);_0x15f349[_0x7edd('0x15')][_0x7edd('0x5a')](_0x49b9a0=>{for(const _0x5c9563 of _0x1bd17d)_0x49b9a0[_0x7edd('0x31')](_0x5c9563);});}}});}}function q(_0x3d3d12,_0x1674fe){return _0x1674fe?_0x3d3d12+':'+_0x1674fe:_0x3d3d12;}function G(_0x2f72a7){const _0x575d51=_0x2f72a7[_0x7edd('0x1b')](':');return{'group':_0x575d51[0x0],'id':_0x575d51[0x1],'part':_0x575d51[0x2]};}function J(_0x3b166b,_0x3c3c12){const _0xa6c89=_0x3c3c12[_0x7edd('0x3d')],_0x25639c=_0x3c3c12[_0x7edd('0x14')](_0x3b166b['start']);for(const _0x24d058 of _0x3b166b[_0x7edd('0x3e')]()){const {type:_0x5d785a,item:_0x326b0a,nextPosition:_0x573300}=_0x24d058;if(_0x7edd('0x26')===_0x5d785a||_0xa6c89[_0x7edd('0x7')](_0x326b0a)){const _0x226bc7=_0x3c3c12[_0x7edd('0x39')](_0x326b0a);_0x25639c[_0x7edd('0x25')]&&(_0x25639c[_0x7edd('0x32')]=_0x226bc7),_0x25639c[_0x7edd('0x2a')]=_0x573300;}}return _0x25639c[_0x7edd('0x25')]?null:_0x25639c;}