@ckeditor/ckeditor5-comments 34.1.0 → 34.2.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 (45) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/es.js +1 -1
  3. package/build/translations/fr.js +1 -1
  4. package/build/translations/it.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/lang/translations/es.po +2 -1
  7. package/lang/translations/fr.po +2 -1
  8. package/lang/translations/it.po +2 -1
  9. package/lang/translations/pt-br.po +2 -1
  10. package/package.json +3 -3
  11. package/src/annotations/annotation.js +1 -1
  12. package/src/annotations/annotationcollection.js +1 -1
  13. package/src/annotations/annotations.js +1 -1
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.js +1 -1
  16. package/src/annotations/inlineannotations.js +1 -1
  17. package/src/annotations/narrowsidebar.js +1 -1
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  20. package/src/annotations/view/annotationview.js +1 -1
  21. package/src/annotations/view/sidebaritemview.js +1 -1
  22. package/src/annotations/view/sidebarview.js +1 -1
  23. package/src/annotations/widesidebar.js +1 -1
  24. package/src/comments/addcommentthreadcommand.js +1 -1
  25. package/src/comments/commentsediting.js +1 -1
  26. package/src/comments/commentsrepository.js +1 -1
  27. package/src/comments/commentsui.js +1 -1
  28. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  30. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  32. package/src/comments/ui/commentthreadcontroller.js +1 -1
  33. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  34. package/src/comments/ui/view/basecommentview.js +1 -1
  35. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  36. package/src/comments/ui/view/commentcontentview.js +1 -1
  37. package/src/comments/ui/view/commentinputview.js +1 -1
  38. package/src/comments/ui/view/commentslistview.js +1 -1
  39. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  40. package/src/comments/ui/view/commentthreadview.js +1 -1
  41. package/src/comments/ui/view/commentview.js +1 -1
  42. package/src/comments.js +1 -1
  43. package/src/commentsonly.js +1 -1
  44. package/src/utils/common-translations.js +1 -1
  45. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eea=['_detachFromContainer','addAnnotation','destroy','_getItemBefore','render','height','content','minHeight','listenTo','define','add','getSidebarItemView','_getTargetTop','getIndex','isAnimationDisabled','_getMaxAvailableTop','view','bottom','pluginName','_alignBeforeItem','isActive','_destroySidebarItemView','_spaceBetweenItems','stopListening','list','delete','_setItemTop','target','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_targetTop','class','rearrange','refresh','context','config','change:bottom','_annotations','_annotationToSidebarItemView','init','sidebar-attachtocontainer-missing-container','remove','_updateLastItem','sidebar.preventScrollOutOfView','_createSidebarView','locale','appendChild','_alignToTargetRect','Sidebar','_alignAfterItem','set','container','sidebar.container','get','setContainer','updateHeight','max','top','_activeAnnotation','element','_attachToContainer','_lastItem','targetRect','length','_getItemAfter'];(function(_0x3ae4af,_0x4eea32){const _0x3ee09d=function(_0x15aab5){while(--_0x15aab5){_0x3ae4af['push'](_0x3ae4af['shift']());}};_0x3ee09d(++_0x4eea32);}(_0x4eea,0x15b));const _0x3ee0=function(_0x3ae4af,_0x4eea32){_0x3ae4af=_0x3ae4af-0x0;let _0x3ee09d=_0x4eea[_0x3ae4af];return _0x3ee09d;};import{ContextPlugin as _0x68dfe1}from'ckeditor5/src/core';import _0x51e552 from'./view/sidebarview';import _0x25479c from'./view/sidebaritemview';import{Rect as _0x58211e,CKEditorError as _0x12c62f}from'ckeditor5/src/utils';import{isElement as _0x54a130,throttle as _0x34f717}from'lodash-es';export default class it extends _0x68dfe1{static get[_0x3ee0('0x3d')](){return _0x3ee0('0x1a');}constructor(_0x41dbad){super(_0x41dbad),this[_0x3ee0('0x1c')](_0x3ee0('0x27')),this[_0x3ee0('0x3b')]=this[_0x3ee0('0x16')](),this[_0x3ee0('0x1c')](_0x3ee0('0x1d'),null),this[_0x3ee0('0x0')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3ee0('0x10')]=new Map(),this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x34')](_0x3ee0('0x15'),!0x1),this[_0x3ee0('0xf')]=null,this[_0x3ee0('0x24')]=null;}[_0x3ee0('0x11')](){const _0xe5e9df=this['context'][_0x3ee0('0xd')]['get'](_0x3ee0('0x1e'));_0xe5e9df&&this['setContainer'](_0xe5e9df);}[_0x3ee0('0x20')](_0x40e5f4){if(!_0x54a130(_0x40e5f4))throw new _0x12c62f(_0x3ee0('0x6'));this[_0x3ee0('0x1d')]=_0x40e5f4;}[_0x3ee0('0x26')]({viewClass:_0x52a4d9='',spaceBetweenItems:_0x17ed67=0x19}={}){if(!_0x54a130(this['container']))throw new _0x12c62f(_0x3ee0('0x12'),this);this[_0x3ee0('0x1d')][_0x3ee0('0x18')](this[_0x3ee0('0x3b')]['element']),this[_0x3ee0('0x3b')]['class']=_0x52a4d9,this[_0x3ee0('0x0')]=_0x17ed67;}[_0x3ee0('0xa')]({removedAnnotation:_0x10e1af,previousAnnotation:_0x55aadb,nextAnnotation:_0x454736}){const _0xdde4b3=this[_0x3ee0('0x36')](_0x10e1af);this[_0x3ee0('0x3b')]['list'][_0x3ee0('0x13')](_0xdde4b3),this[_0x3ee0('0x40')](_0x10e1af),_0x55aadb&&this[_0x3ee0('0x19')](this[_0x3ee0('0x36')](_0x55aadb)),_0x454736&&this['_alignToTargetRect'](this[_0x3ee0('0x36')](_0x454736)),this[_0x3ee0('0x14')]();}[_0x3ee0('0xb')]({blurredAnnotation:_0x3e0441,activatedAnnotation:_0xc7966d,disableAnimationOnActivatedAnnotation:_0xa5e066}){if(this['_activeAnnotation']=_0xc7966d,_0x3e0441){_0x3e0441[_0x3ee0('0x3f')]=!0x1;const _0x385766=this[_0x3ee0('0x36')](_0x3e0441);_0x385766&&_0xa5e066&&(_0x385766[_0x3ee0('0x39')]=!0x1);}if(_0xc7966d){const _0x59b1b2=this[_0x3ee0('0x36')](_0xc7966d);_0x59b1b2&&(_0xc7966d[_0x3ee0('0x3f')]=!0x0,_0xa5e066&&(_0x59b1b2[_0x3ee0('0x39')]=!0x0,_0x59b1b2[_0x3ee0('0x23')]+=0x1),this[_0x3ee0('0x19')](_0x59b1b2));}}[_0x3ee0('0x2b')](_0x4b1f35){this[_0x3ee0('0x1')](),this[_0x3ee0('0x3b')][_0x3ee0('0x25')][_0x3ee0('0x13')]();for(const _0x371891 of _0x4b1f35)this[_0x3ee0('0x40')](_0x371891);this[_0x3ee0('0x3b')][_0x3ee0('0x2')]['clear'](),this['view'][_0x3ee0('0x9')]='',this['_lastItem']=null;}[_0x3ee0('0x2c')](_0x319d22,_0x3836c3){_0x3836c3||(_0x3836c3=_0x319d22['view']);const _0x39eecc=new _0x25479c(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1c')](_0x39eecc,_0x319d22),this[_0x3ee0('0x10')]['set'](_0x319d22,_0x39eecc),_0x39eecc['content'][_0x3ee0('0x35')](_0x3836c3),this[_0x3ee0('0x19')](_0x39eecc),this[_0x3ee0('0x33')](_0x319d22['view'],'change:targetRect',()=>{const _0x42a51b=this[_0x3ee0('0x37')](_0x39eecc);_0x39eecc[_0x3ee0('0x8')]!=_0x42a51b&&(_0x39eecc[_0x3ee0('0x8')]=_0x42a51b,this[_0x3ee0('0x4')](_0x39eecc,_0x42a51b));}),this['listenTo'](_0x39eecc,'change:top',_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x5e69b7=this['_getItemBefore'](_0x39eecc);if(!_0x5e69b7)return;const _0x218afc=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x5e69b7),_0x5e71ed=this[_0x3ee0('0x24')];_0x5e71ed&&_0x5e71ed===_0x218afc?this[_0x3ee0('0x1b')](_0x5e69b7,_0x39eecc):this['_alignBeforeItem'](_0x39eecc,_0x5e69b7);},0xa,{'leading':!0x1})),this[_0x3ee0('0x33')](_0x39eecc,_0x3ee0('0xe'),_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x32c47b=this[_0x3ee0('0x2a')](_0x39eecc);if(!_0x32c47b)return;const _0x59c6e9=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x32c47b),_0x26067e=this['context'][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15')),_0x14e459=this[_0x3ee0('0x24')];_0x14e459&&_0x14e459===_0x59c6e9&&_0x26067e?(this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc),this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b)):_0x14e459&&_0x14e459===_0x59c6e9?this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc):this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b);},0xa,{'leading':!0x1}));const _0x196184=this[_0x3ee0('0x2e')](_0x39eecc);if(_0x196184)this[_0x3ee0('0x1b')](_0x196184,_0x39eecc)||this[_0x3ee0('0x19')](_0x39eecc);else this[_0x3ee0('0x19')](_0x39eecc);return this[_0x3ee0('0x14')](),this['view'][_0x3ee0('0x2')][_0x3ee0('0x35')](_0x39eecc),_0x39eecc;}[_0x3ee0('0x36')](_0x2b7e83){return this[_0x3ee0('0x10')][_0x3ee0('0x1f')](_0x2b7e83);}[_0x3ee0('0x2d')](){this[_0x3ee0('0x3b')][_0x3ee0('0x2d')]();}[_0x3ee0('0x40')](_0x16182c){const _0x7b6795=this[_0x3ee0('0x36')](_0x16182c);this['stopListening'](_0x7b6795),this[_0x3ee0('0x1')](_0x16182c[_0x3ee0('0x3b')]),_0x7b6795[_0x3ee0('0x2d')](),this[_0x3ee0('0x10')][_0x3ee0('0x3')](_0x16182c),this['_sidebarItemViewToAnnotation'][_0x3ee0('0x3')](_0x7b6795);}['_createSidebarView'](){const _0x58d6eb=new _0x51e552(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);return _0x58d6eb[_0x3ee0('0x2f')](),this['on']('change:_lastItem',(_0x497f81,_0x4a0e92,_0x566c8b,_0xa99dc9)=>{_0xa99dc9&&_0x58d6eb['unbind'](_0x3ee0('0x32')),_0x566c8b?_0x58d6eb['bind']('minHeight')['to'](_0x566c8b,_0x3ee0('0x3c')):_0x58d6eb[_0x3ee0('0x32')]=null;}),_0x58d6eb;}['_updateLastItem'](){this['_lastItem']=this['getSidebarItemView'](this[_0x3ee0('0xf')]['last']);}[_0x3ee0('0x2e')](_0x42e376){const _0x2ef8db=this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1f')](_0x42e376),_0x1a6767=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')]['getIndex'](_0x2ef8db)-0x1);return _0x1a6767&&this[_0x3ee0('0x36')](_0x1a6767);}[_0x3ee0('0x2a')](_0x1a0b25){const _0x387dab=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x1a0b25),_0x44fab4=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')][_0x3ee0('0x38')](_0x387dab)+0x1);return _0x44fab4&&this['getSidebarItemView'](_0x44fab4);}[_0x3ee0('0x3e')](_0x1a9db9,_0x51c35e){_0x1a9db9['updateHeight']();const _0x514790=lt(_0x51c35e[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x1a9db9[_0x3ee0('0x23')]);return!!_0x514790&&(this[_0x3ee0('0x4')](_0x51c35e,_0x51c35e['top']-_0x514790),!0x0);}[_0x3ee0('0x1b')](_0x3e12d3,_0x3d287d){_0x3e12d3[_0x3ee0('0x21')]();const _0x4d09d1=lt(_0x3e12d3[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x3d287d['top']);return!!_0x4d09d1&&(this['_setItemTop'](_0x3d287d,_0x3d287d[_0x3ee0('0x23')]+_0x4d09d1,!0x1),!0x0);}[_0x3ee0('0x19')](_0x4a00b9){const _0x5d6591=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x4a00b9);if(!_0x5d6591||!_0x5d6591[_0x3ee0('0x5')])return;const _0x52ec68=this[_0x3ee0('0x37')](_0x4a00b9);this[_0x3ee0('0x4')](_0x4a00b9,_0x52ec68);}[_0x3ee0('0x37')](_0x48ff99){const _0x366983=this['_sidebarItemViewToAnnotation']['get'](_0x48ff99);if(null===_0x366983[_0x3ee0('0x28')])return 0x0;if(_0x366983['target']instanceof _0x58211e)return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')];{const _0x5ee56b=new _0x58211e(this[_0x3ee0('0x3b')][_0x3ee0('0x25')])[_0x3ee0('0x23')];return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')]-_0x5ee56b;}}[_0x3ee0('0x4')](_0x1593f6,_0x20dc09,_0x4f6385=this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15'))){_0x4f6385&&(_0x20dc09=Math[_0x3ee0('0x22')](_0x20dc09,this[_0x3ee0('0x3a')](_0x1593f6))),_0x1593f6[_0x3ee0('0x23')]=_0x20dc09;}[_0x3ee0('0x3a')](_0x47b95c){let _0xb404bb=this[_0x3ee0('0x2e')](_0x47b95c),_0x56044=0x0;for(;_0xb404bb;)_0xb404bb[_0x3ee0('0x21')](),_0x56044+=this[_0x3ee0('0x0')]+_0xb404bb[_0x3ee0('0x30')],_0xb404bb=this[_0x3ee0('0x2e')](_0xb404bb);return _0x56044;}}function lt(_0x12bdb5,_0x2f68f3){return Math[_0x3ee0('0x22')](_0x12bdb5-_0x2f68f3,0x0);}
23
+ const _0x1549=['listenTo','add','_alignToTargetRect','length','targetRect','height','updateHeight','clear','delete','sidebar.container','get','container','define','element','_alignAfterItem','bottom','_destroySidebarItemView','change:targetRect','_getItemBefore','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_alignBeforeItem','destroy','_createSidebarView','_getMaxAvailableTop','context','view','config','refresh','list','change:bottom','_updateLastItem','content','_spaceBetweenItems','_attachToContainer','unbind','top','_sidebarItemViewToAnnotation','set','locale','remove','bind','_lastItem','_activeAnnotation','pluginName','minHeight','setContainer','sidebar.preventScrollOutOfView','class','_getTargetTop','stopListening','isAnimationDisabled','_setItemTop','change:top','_annotations','addAnnotation','getIndex','last','change:_lastItem','_targetTop','sidebar-attachtocontainer-missing-container','max','rearrange','getSidebarItemView'];(function(_0xf10924,_0x15490d){const _0x2ce7dc=function(_0x4a41d6){while(--_0x4a41d6){_0xf10924['push'](_0xf10924['shift']());}};_0x2ce7dc(++_0x15490d);}(_0x1549,0xa3));const _0x2ce7=function(_0xf10924,_0x15490d){_0xf10924=_0xf10924-0x0;let _0x2ce7dc=_0x1549[_0xf10924];return _0x2ce7dc;};import{ContextPlugin as _0x5f0abb}from'ckeditor5/src/core';import _0x5c03fb from'./view/sidebarview';import _0x324977 from'./view/sidebaritemview';import{Rect as _0x46aa1b,CKEditorError as _0x15d584}from'ckeditor5/src/utils';import{isElement as _0x134f43,throttle as _0x2b543c}from'lodash-es';export default class b extends _0x5f0abb{static get[_0x2ce7('0x9')](){return'Sidebar';}constructor(_0x963f41){super(_0x963f41),this[_0x2ce7('0x3')](_0x2ce7('0x7')),this['view']=this[_0x2ce7('0x34')](),this['set'](_0x2ce7('0x28'),null),this[_0x2ce7('0x3e')]=0x19,this[_0x2ce7('0x2')]=new Map(),this[_0x2ce7('0x30')]=new Map(),this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x29')](_0x2ce7('0xc'),!0x1),this[_0x2ce7('0x13')]=null,this[_0x2ce7('0x8')]=null;}['init'](){const _0x4a787f=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0x26'));_0x4a787f&&this[_0x2ce7('0xb')](_0x4a787f);}[_0x2ce7('0xb')](_0x332013){if(!_0x134f43(_0x332013))throw new _0x15d584(_0x2ce7('0x31'));this[_0x2ce7('0x28')]=_0x332013;}[_0x2ce7('0x3f')]({viewClass:_0x5c99f5='',spaceBetweenItems:_0x8a6ced=0x19}={}){if(!_0x134f43(this[_0x2ce7('0x28')]))throw new _0x15d584(_0x2ce7('0x19'),this);this[_0x2ce7('0x28')]['appendChild'](this[_0x2ce7('0x37')][_0x2ce7('0x2a')]),this[_0x2ce7('0x37')][_0x2ce7('0xd')]=_0x5c99f5,this[_0x2ce7('0x3e')]=_0x8a6ced;}[_0x2ce7('0x1b')]({removedAnnotation:_0x534d5d,previousAnnotation:_0x440480,nextAnnotation:_0x2d043d}){const _0x3433aa=this['getSidebarItemView'](_0x534d5d);this[_0x2ce7('0x37')]['list'][_0x2ce7('0x5')](_0x3433aa),this['_destroySidebarItemView'](_0x534d5d),_0x440480&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x440480)),_0x2d043d&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x2d043d)),this[_0x2ce7('0x3c')]();}[_0x2ce7('0x39')]({blurredAnnotation:_0x5ccf69,activatedAnnotation:_0x57eae4,disableAnimationOnActivatedAnnotation:_0xbe22a}){if(this['_activeAnnotation']=_0x57eae4,_0x5ccf69){_0x5ccf69['isActive']=!0x1;const _0x1a4b90=this[_0x2ce7('0x1c')](_0x5ccf69);_0x1a4b90&&_0xbe22a&&(_0x1a4b90[_0x2ce7('0x10')]=!0x1);}if(_0x57eae4){const _0xcc8c1=this[_0x2ce7('0x1c')](_0x57eae4);_0xcc8c1&&(_0x57eae4['isActive']=!0x0,_0xbe22a&&(_0xcc8c1[_0x2ce7('0x10')]=!0x0,_0xcc8c1[_0x2ce7('0x1')]+=0x1),this['_alignToTargetRect'](_0xcc8c1));}}['_detachFromContainer'](_0x5d8411){this[_0x2ce7('0xf')](),this['view'][_0x2ce7('0x2a')][_0x2ce7('0x5')]();for(const _0x4431af of _0x5d8411)this[_0x2ce7('0x2d')](_0x4431af);this[_0x2ce7('0x37')][_0x2ce7('0x3a')][_0x2ce7('0x24')](),this['view'][_0x2ce7('0xd')]='',this[_0x2ce7('0x7')]=null;}[_0x2ce7('0x14')](_0x370146,_0x7a244){_0x7a244||(_0x7a244=_0x370146[_0x2ce7('0x37')]);const _0xfb5705=new _0x324977(this[_0x2ce7('0x36')][_0x2ce7('0x4')]);this[_0x2ce7('0x2')][_0x2ce7('0x3')](_0xfb5705,_0x370146),this['_annotationToSidebarItemView'][_0x2ce7('0x3')](_0x370146,_0xfb5705),_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x1e')](_0x7a244),this['_alignToTargetRect'](_0xfb5705),this[_0x2ce7('0x1d')](_0x370146[_0x2ce7('0x37')],_0x2ce7('0x2e'),()=>{const _0x3f7ffe=this['_getTargetTop'](_0xfb5705);_0xfb5705[_0x2ce7('0x18')]!=_0x3f7ffe&&(_0xfb5705['_targetTop']=_0x3f7ffe,this['_setItemTop'](_0xfb5705,_0x3f7ffe));}),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x12'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x2a314c=this[_0x2ce7('0x2f')](_0xfb5705);if(!_0x2a314c)return;const _0x267712=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x2a314c),_0x1df41b=this[_0x2ce7('0x8')];_0x1df41b&&_0x1df41b===_0x267712?this[_0x2ce7('0x2b')](_0x2a314c,_0xfb5705):this[_0x2ce7('0x32')](_0xfb5705,_0x2a314c);},0xa,{'leading':!0x1})),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x3b'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x18f899=this['_getItemAfter'](_0xfb5705);if(!_0x18f899)return;const _0xccf227=this['_sidebarItemViewToAnnotation'][_0x2ce7('0x27')](_0x18f899),_0x24bd13=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0xc')),_0x3e41f5=this[_0x2ce7('0x8')];_0x3e41f5&&_0x3e41f5===_0xccf227&&_0x24bd13?(this[_0x2ce7('0x32')](_0x18f899,_0xfb5705),this['_alignAfterItem'](_0xfb5705,_0x18f899)):_0x3e41f5&&_0x3e41f5===_0xccf227?this[_0x2ce7('0x32')](_0x18f899,_0xfb5705):this[_0x2ce7('0x2b')](_0xfb5705,_0x18f899);},0xa,{'leading':!0x1}));const _0x2a990d=this[_0x2ce7('0x2f')](_0xfb5705);if(_0x2a990d)this['_alignAfterItem'](_0x2a990d,_0xfb5705)||this['_alignToTargetRect'](_0xfb5705);else this['_alignToTargetRect'](_0xfb5705);return this[_0x2ce7('0x3c')](),this['view']['list']['add'](_0xfb5705),_0xfb5705;}['getSidebarItemView'](_0x1f0817){return this[_0x2ce7('0x30')][_0x2ce7('0x27')](_0x1f0817);}['destroy'](){this[_0x2ce7('0x37')][_0x2ce7('0x33')]();}[_0x2ce7('0x2d')](_0x110673){const _0x536429=this[_0x2ce7('0x1c')](_0x110673);this['stopListening'](_0x536429),this[_0x2ce7('0xf')](_0x110673['view']),_0x536429[_0x2ce7('0x33')](),this['_annotationToSidebarItemView'][_0x2ce7('0x25')](_0x110673),this[_0x2ce7('0x2')][_0x2ce7('0x25')](_0x536429);}[_0x2ce7('0x34')](){const _0x461ad6=new _0x5c03fb(this['context'][_0x2ce7('0x4')]);return _0x461ad6['render'](),this['on'](_0x2ce7('0x17'),(_0x40df4d,_0x5a82ff,_0x4ee22a,_0x3c9b56)=>{_0x3c9b56&&_0x461ad6[_0x2ce7('0x0')]('minHeight'),_0x4ee22a?_0x461ad6[_0x2ce7('0x6')]('minHeight')['to'](_0x4ee22a,_0x2ce7('0x2c')):_0x461ad6[_0x2ce7('0xa')]=null;}),_0x461ad6;}[_0x2ce7('0x3c')](){this[_0x2ce7('0x7')]=this['getSidebarItemView'](this[_0x2ce7('0x13')][_0x2ce7('0x16')]);}[_0x2ce7('0x2f')](_0x28d65b){const _0x14711e=this['_sidebarItemViewToAnnotation']['get'](_0x28d65b),_0x54910b=this[_0x2ce7('0x13')][_0x2ce7('0x27')](this[_0x2ce7('0x13')][_0x2ce7('0x15')](_0x14711e)-0x1);return _0x54910b&&this[_0x2ce7('0x1c')](_0x54910b);}['_getItemAfter'](_0x43db57){const _0x521a95=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x43db57),_0x249c6f=this['_annotations'][_0x2ce7('0x27')](this['_annotations'][_0x2ce7('0x15')](_0x521a95)+0x1);return _0x249c6f&&this['getSidebarItemView'](_0x249c6f);}[_0x2ce7('0x32')](_0x385dc7,_0x23e9e8){_0x385dc7[_0x2ce7('0x23')]();const _0x38f454=H(_0x23e9e8['bottom']+this[_0x2ce7('0x3e')],_0x385dc7[_0x2ce7('0x1')]);return!!_0x38f454&&(this[_0x2ce7('0x11')](_0x23e9e8,_0x23e9e8[_0x2ce7('0x1')]-_0x38f454),!0x0);}[_0x2ce7('0x2b')](_0x5550ff,_0x2935c3){_0x5550ff['updateHeight']();const _0x55a8d3=H(_0x5550ff[_0x2ce7('0x2c')]+this[_0x2ce7('0x3e')],_0x2935c3['top']);return!!_0x55a8d3&&(this[_0x2ce7('0x11')](_0x2935c3,_0x2935c3[_0x2ce7('0x1')]+_0x55a8d3,!0x1),!0x0);}[_0x2ce7('0x1f')](_0x35c0db){const _0x54cac4=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x35c0db);if(!_0x54cac4||!_0x54cac4['target'])return;const _0x3e9c17=this[_0x2ce7('0xe')](_0x35c0db);this[_0x2ce7('0x11')](_0x35c0db,_0x3e9c17);}[_0x2ce7('0xe')](_0x4581c2){const _0x644612=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x4581c2);if(null===_0x644612[_0x2ce7('0x21')])return 0x0;if(_0x644612['target']instanceof _0x46aa1b)return _0x644612[_0x2ce7('0x21')][_0x2ce7('0x1')];{const _0x3d3d94=new _0x46aa1b(this['view'][_0x2ce7('0x2a')])[_0x2ce7('0x1')];return _0x644612['targetRect']['top']-_0x3d3d94;}}[_0x2ce7('0x11')](_0x758b79,_0x41a26f,_0x1c5293=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')]('sidebar.preventScrollOutOfView')){_0x1c5293&&(_0x41a26f=Math['max'](_0x41a26f,this[_0x2ce7('0x35')](_0x758b79))),_0x758b79['top']=_0x41a26f;}[_0x2ce7('0x35')](_0x5d7832){let _0x2ef42c=this[_0x2ce7('0x2f')](_0x5d7832),_0xe8676f=0x0;for(;_0x2ef42c;)_0x2ef42c[_0x2ce7('0x23')](),_0xe8676f+=this['_spaceBetweenItems']+_0x2ef42c[_0x2ce7('0x22')],_0x2ef42c=this[_0x2ce7('0x2f')](_0x2ef42c);return _0xe8676f;}}function H(_0x1eff2f,_0x55b945){return Math[_0x2ce7('0x1a')](_0x1eff2f-_0x55b945,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5660=['isDirty','setTemplate','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','span','ck-annotation-counter__badge--','icon','bindTemplate','number','...','ck-annotation-counter__badge','children','set','annotationType','counterView','_badge'];(function(_0x4e77b1,_0x5660d4){const _0xeb2b7d=function(_0x51cec7){while(--_0x51cec7){_0x4e77b1['push'](_0x4e77b1['shift']());}};_0xeb2b7d(++_0x5660d4);}(_0x5660,0x1ad));const _0xeb2b=function(_0x4e77b1,_0x5660d4){_0x4e77b1=_0x4e77b1-0x0;let _0xeb2b7d=_0x5660[_0x4e77b1];return _0xeb2b7d;};import{ButtonView as _0x3e25bf,View as _0x343d94}from'ckeditor5/src/ui';import _0x32c20a from'../../../theme/icons/add-comment.svg';export default class st extends _0x3e25bf{constructor(_0x53007f){super(_0x53007f);const _0x25088a=this[_0xeb2b('0xa')];this['set'](_0xeb2b('0x3'),!0x1),this[_0xeb2b('0xf')](_0xeb2b('0xb'),0x0),this['bind'](_0xeb2b('0x2'))['to'](this,_0xeb2b('0x3'),this,_0xeb2b('0xb'),(_0x3e3120,_0x2adb3a)=>_0x3e3120?_0xeb2b('0xc'):_0x2adb3a),this[_0xeb2b('0xf')](_0xeb2b('0x0'),''),this[_0xeb2b('0x9')]=_0x32c20a,this['extendTemplate']({'attributes':{'class':[_0xeb2b('0x5')]}}),this[_0xeb2b('0x1')]=new _0x343d94(),this[_0xeb2b('0x1')][_0xeb2b('0x4')]({'tag':_0xeb2b('0x7'),'attributes':{'class':[_0xeb2b('0xd'),_0x25088a['to'](_0xeb2b('0x0'),_0x32f22e=>_0xeb2b('0x8')+_0x32f22e),_0x25088a['if'](_0xeb2b('0x3'),_0xeb2b('0x6'))]},'children':[{'text':_0x25088a['to']('_badge')}]}),this[_0xeb2b('0xe')]['add'](this[_0xeb2b('0x1')]);}}
23
+ const _0x1579=['annotationType','number','isDirty','counterView','children','set','extendTemplate','ck-annotation-counter__badge--','bindTemplate','_badge','ck-annotation-counter__badge','span','...','bind'];(function(_0x5ece19,_0x157916){const _0x1becfa=function(_0x3ace4b){while(--_0x3ace4b){_0x5ece19['push'](_0x5ece19['shift']());}};_0x1becfa(++_0x157916);}(_0x1579,0x1f2));const _0x1bec=function(_0x5ece19,_0x157916){_0x5ece19=_0x5ece19-0x0;let _0x1becfa=_0x1579[_0x5ece19];return _0x1becfa;};import{ButtonView as _0x10f1d5,View as _0x273e2a}from'ckeditor5/src/ui';import _0x5c9623 from'../../../theme/icons/add-comment.svg';export default class B extends _0x10f1d5{constructor(_0x292811){super(_0x292811);const _0x52c117=this[_0x1bec('0x0')];this[_0x1bec('0xb')]('isDirty',!0x1),this[_0x1bec('0xb')](_0x1bec('0x7'),0x0),this[_0x1bec('0x5')]('_badge')['to'](this,_0x1bec('0x8'),this,_0x1bec('0x7'),(_0x3f9321,_0x38d900)=>_0x3f9321?_0x1bec('0x4'):_0x38d900),this[_0x1bec('0xb')](_0x1bec('0x6'),''),this['icon']=_0x5c9623,this[_0x1bec('0xc')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x273e2a(),this[_0x1bec('0x9')]['setTemplate']({'tag':_0x1bec('0x3'),'attributes':{'class':[_0x1bec('0x2'),_0x52c117['to'](_0x1bec('0x6'),_0x4663c7=>_0x1bec('0xd')+_0x4663c7),_0x52c117['if'](_0x1bec('0x8'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x52c117['to'](_0x1bec('0x1'))}]}),this[_0x1bec('0xa')]['add'](this[_0x1bec('0x9')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4978=['keystrokes','clear','ck-annotation-wrapper--active','type','isActive','setTemplate','isDirty','focus','set','listenTo','clientHeight','focusTracker','Esc','detach','length','div','element','add','fire','_mutationObserver','destroy','ck-rounded-corners','render','content','height','bindTemplate','targetRect','attach','_updateHeight'];(function(_0x42c95a,_0x49788e){const _0x223e85=function(_0x5ae1a5){while(--_0x5ae1a5){_0x42c95a['push'](_0x42c95a['shift']());}};_0x223e85(++_0x49788e);}(_0x4978,0x17c));const _0x223e=function(_0x42c95a,_0x49788e){_0x42c95a=_0x42c95a-0x0;let _0x223e85=_0x4978[_0x42c95a];return _0x223e85;};import{View as _0x146a39}from'ckeditor5/src/ui';import{FocusTracker as _0x4c4409,KeystrokeHandler as _0x1254e7,uid as _0x25b69b}from'ckeditor5/src/utils';import _0x39d89a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class S extends _0x146a39{constructor(_0x102757,_0x46c650){super(_0x102757),this['id']=_0x25b69b(),this[_0x223e('0x8')]=new _0x4c4409(),this[_0x223e('0x1a')]=new _0x1254e7(),this[_0x223e('0x1a')][_0x223e('0x5')](_0x223e('0x9'),(_0x5b60df,_0x5d500e)=>this[_0x223e('0xf')]('Esc',_0x5d500e)),this['set'](_0x223e('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x223e('0x5')](_0x223e('0x15'),0x0),this['set'](_0x223e('0x1'),!0x1),this['set'](_0x223e('0x3'),!0x1),this[_0x223e('0x5')](_0x223e('0xb'),0x0),this[_0x223e('0x5')](_0x223e('0x0'),''),this['_mutationObserver']=_0x39d89a(()=>this[_0x223e('0x19')]()),this[_0x223e('0x14')]=this['createCollection'](),this[_0x223e('0x14')][_0x223e('0xe')](_0x46c650),this['mainView']=_0x46c650;const _0x555d10=this[_0x223e('0x16')];this[_0x223e('0x2')]({'tag':_0x223e('0xc'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x223e('0x12'),_0x555d10['if'](_0x223e('0x1'),_0x223e('0x1c'))],'tabindex':-0x1},'children':this[_0x223e('0x14')]});}[_0x223e('0x13')](){super[_0x223e('0x13')](),this[_0x223e('0x8')][_0x223e('0xe')](this['element']),this[_0x223e('0x1a')][_0x223e('0x6')](this['element']),this[_0x223e('0x10')][_0x223e('0x18')](this[_0x223e('0xd')]);}[_0x223e('0x11')](){this[_0x223e('0x14')][_0x223e('0x1b')](),this['keystrokes'][_0x223e('0x11')](),this[_0x223e('0x8')][_0x223e('0x11')](),this[_0x223e('0x10')][_0x223e('0xa')](),super[_0x223e('0x11')]();}[_0x223e('0x4')](){this[_0x223e('0xd')][_0x223e('0x4')]();}[_0x223e('0x19')](){const _0x2f7c5b=this['element'][_0x223e('0x7')];_0x2f7c5b&&(this[_0x223e('0x15')]=_0x2f7c5b);}}
23
+ const _0x5402=['div','bindTemplate','focus','destroy','isDirty','ck-rounded-corners','ck-annotation-wrapper','focusTracker','height','targetRect','clear','clientHeight','add','content','_updateHeight','render','_mutationObserver','isActive','listenTo','type','createCollection','set','keystrokes','element','Esc'];(function(_0x29347d,_0x540265){const _0x210c79=function(_0x43dbc0){while(--_0x43dbc0){_0x29347d['push'](_0x29347d['shift']());}};_0x210c79(++_0x540265);}(_0x5402,0x111));const _0x210c=function(_0x29347d,_0x540265){_0x29347d=_0x29347d-0x0;let _0x210c79=_0x5402[_0x29347d];return _0x210c79;};import{View as _0x3a30dd}from'ckeditor5/src/ui';import{FocusTracker as _0x168e0a,KeystrokeHandler as _0x47bc39,uid as _0x3cfc80}from'ckeditor5/src/utils';import _0x421512 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x3a30dd{constructor(_0x344ca1,_0x72919f){super(_0x344ca1),this['id']=_0x3cfc80(),this[_0x210c('0x9')]=new _0x168e0a(),this[_0x210c('0x18')]=new _0x47bc39(),this[_0x210c('0x18')][_0x210c('0x17')](_0x210c('0x1'),(_0x449607,_0x51101a)=>this['fire'](_0x210c('0x1'),_0x51101a)),this['set'](_0x210c('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x210c('0xa'),0x0),this[_0x210c('0x17')](_0x210c('0x13'),!0x1),this['set'](_0x210c('0x6'),!0x1),this[_0x210c('0x17')]('length',0x0),this[_0x210c('0x17')](_0x210c('0x15'),''),this['_mutationObserver']=_0x421512(()=>this[_0x210c('0x10')]()),this[_0x210c('0xf')]=this[_0x210c('0x16')](),this[_0x210c('0xf')][_0x210c('0xe')](_0x72919f),this['mainView']=_0x72919f;const _0x260897=this[_0x210c('0x3')];this['setTemplate']({'tag':_0x210c('0x2'),'attributes':{'class':['ck',_0x210c('0x8'),_0x210c('0x7'),_0x260897['if'](_0x210c('0x13'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x210c('0xf')]});}[_0x210c('0x11')](){super[_0x210c('0x11')](),this['focusTracker'][_0x210c('0xe')](this[_0x210c('0x0')]),this['keystrokes'][_0x210c('0x14')](this['element']),this['_mutationObserver']['attach'](this[_0x210c('0x0')]);}[_0x210c('0x5')](){this[_0x210c('0xf')][_0x210c('0xc')](),this[_0x210c('0x18')][_0x210c('0x5')](),this['focusTracker'][_0x210c('0x5')](),this[_0x210c('0x12')]['detach'](),super[_0x210c('0x5')]();}[_0x210c('0x4')](){this['element'][_0x210c('0x4')]();}[_0x210c('0x10')](){const _0x5be1ad=this[_0x210c('0x0')][_0x210c('0xd')];_0x5be1ad&&(this[_0x210c('0xa')]=_0x5be1ad);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x180e=['createCollection','clientHeight','set','bind','updateHeight','render','setTemplate','div','ck-sidebar-item--no-animation','_targetTop','destroy','height','bindTemplate','_mutationObserver','element','bottom','content','top','attach','detach','clear','isAnimationDisabled'];(function(_0x206dfd,_0x180e23){const _0x4b01c5=function(_0x47274b){while(--_0x47274b){_0x206dfd['push'](_0x206dfd['shift']());}};_0x4b01c5(++_0x180e23);}(_0x180e,0xec));const _0x4b01=function(_0x206dfd,_0x180e23){_0x206dfd=_0x206dfd-0x0;let _0x4b01c5=_0x180e[_0x206dfd];return _0x4b01c5;};import{View as _0x1933e7}from'ckeditor5/src/ui';import{toUnit as _0x5926c5}from'ckeditor5/src/utils';import _0x3570d7 from'../../utils/createmutationobserver';const ft=_0x5926c5('px');export default class ct extends _0x1933e7{constructor(_0x325e8d){super(_0x325e8d),this[_0x4b01('0x8')](_0x4b01('0x1')),this[_0x4b01('0x8')]('height',0x0),this[_0x4b01('0x9')](_0x4b01('0x15'))['to'](this,'top',this,_0x4b01('0x11'),(_0xc56dee,_0x12d122)=>(_0xc56dee||0x0)+_0x12d122),this[_0x4b01('0x8')]('isAnimationDisabled',!0x1),this['_mutationObserver']=_0x3570d7(()=>this['updateHeight']()),this[_0x4b01('0xf')]=null,this[_0x4b01('0x0')]=this[_0x4b01('0x6')]();const _0x289be2=this[_0x4b01('0x12')];this[_0x4b01('0xc')]({'tag':_0x4b01('0xd'),'attributes':{'class':['ck-sidebar-item',_0x289be2['to'](_0x4b01('0x5'),_0x2cfc3d=>_0x2cfc3d?_0x4b01('0xe'):'')],'style':{'top':_0x289be2['to'](_0x4b01('0x1'),ft)}},'children':this[_0x4b01('0x0')]});}[_0x4b01('0xb')](){super[_0x4b01('0xb')](),this[_0x4b01('0x13')][_0x4b01('0x2')](this[_0x4b01('0x14')]);}[_0x4b01('0xa')](){const _0x176bfd=this[_0x4b01('0x14')][_0x4b01('0x7')];_0x176bfd&&(this['height']=_0x176bfd);}[_0x4b01('0x10')](){this[_0x4b01('0x0')][_0x4b01('0x4')](),this[_0x4b01('0x13')][_0x4b01('0x3')](),super['destroy']();}}
23
+ const _0x5cbc=['setTemplate','ck-sidebar-item--no-animation','ck-sidebar-item','isAnimationDisabled','div','bind','render','destroy','set','detach','_mutationObserver','height','_targetTop','bottom','element','clear','top','updateHeight','createCollection','content'];(function(_0x142c3c,_0x5cbc64){const _0x300634=function(_0x45dcbd){while(--_0x45dcbd){_0x142c3c['push'](_0x142c3c['shift']());}};_0x300634(++_0x5cbc64);}(_0x5cbc,0xb8));const _0x3006=function(_0x142c3c,_0x5cbc64){_0x142c3c=_0x142c3c-0x0;let _0x300634=_0x5cbc[_0x142c3c];return _0x300634;};import{View as _0xfcbcee}from'ckeditor5/src/ui';import{toUnit as _0x2f9657}from'ckeditor5/src/utils';import _0x1d2041 from'../../utils/createmutationobserver';const ft=_0x2f9657('px');export default class C extends _0xfcbcee{constructor(_0x42f737){super(_0x42f737),this[_0x3006('0x4')]('top'),this['set'](_0x3006('0x7'),0x0),this[_0x3006('0x1')](_0x3006('0x9'))['to'](this,'top',this,'height',(_0x28f35c,_0x265990)=>(_0x28f35c||0x0)+_0x265990),this[_0x3006('0x4')](_0x3006('0x13'),!0x1),this['_mutationObserver']=_0x1d2041(()=>this[_0x3006('0xd')]()),this[_0x3006('0x8')]=null,this[_0x3006('0xf')]=this[_0x3006('0xe')]();const _0x3cac25=this['bindTemplate'];this[_0x3006('0x10')]({'tag':_0x3006('0x0'),'attributes':{'class':[_0x3006('0x12'),_0x3cac25['to'](_0x3006('0x13'),_0x43ef88=>_0x43ef88?_0x3006('0x11'):'')],'style':{'top':_0x3cac25['to'](_0x3006('0xc'),ft)}},'children':this[_0x3006('0xf')]});}['render'](){super[_0x3006('0x2')](),this['_mutationObserver']['attach'](this['element']);}[_0x3006('0xd')](){const _0x26c899=this[_0x3006('0xa')]['clientHeight'];_0x26c899&&(this['height']=_0x26c899);}[_0x3006('0x3')](){this['content'][_0x3006('0xb')](),this[_0x3006('0x6')][_0x3006('0x5')](),super[_0x3006('0x3')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x300b=['class','list','ck-sidebar','createCollection','minHeight','setTemplate','set'];(function(_0x2e453f,_0x300b24){const _0x10c099=function(_0x41ba89){while(--_0x41ba89){_0x2e453f['push'](_0x2e453f['shift']());}};_0x10c099(++_0x300b24);}(_0x300b,0x126));const _0x10c0=function(_0x2e453f,_0x300b24){_0x2e453f=_0x2e453f-0x0;let _0x10c099=_0x300b[_0x2e453f];return _0x10c099;};import{View as _0x43ae25}from'ckeditor5/src/ui';import{toUnit as _0x12c1a3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12c1a3('px');export default class at extends _0x43ae25{constructor(_0x1cc185){super(_0x1cc185);const _0x5a2b4b=this['bindTemplate'];this[_0x10c0('0x6')](_0x10c0('0x4'),0x0),this[_0x10c0('0x6')](_0x10c0('0x0'),''),this[_0x10c0('0x1')]=this[_0x10c0('0x3')](),this[_0x10c0('0x5')]({'tag':'div','attributes':{'class':['ck',_0x10c0('0x2'),'ck-reset',_0x5a2b4b['to'](_0x10c0('0x0'))],'style':{'minHeight':_0x5a2b4b['to'](_0x10c0('0x4'),_0x358f96=>_0x358f96?ft(_0x358f96+0xa):null)}},'children':this[_0x10c0('0x1')]});}}
23
+ const _0x3ddf=['ck-reset','bindTemplate','list','createCollection','class','minHeight','ck-sidebar','set','div'];(function(_0x178d57,_0x3ddf2f){const _0x2f1b66=function(_0x4c8f1c){while(--_0x4c8f1c){_0x178d57['push'](_0x178d57['shift']());}};_0x2f1b66(++_0x3ddf2f);}(_0x3ddf,0xc7));const _0x2f1b=function(_0x178d57,_0x3ddf2f){_0x178d57=_0x178d57-0x0;let _0x2f1b66=_0x3ddf[_0x178d57];return _0x2f1b66;};import{View as _0x1f24f9}from'ckeditor5/src/ui';import{toUnit as _0x59b7ab}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x59b7ab('px');export default class T extends _0x1f24f9{constructor(_0x5ac5d2){super(_0x5ac5d2);const _0x375791=this[_0x2f1b('0x0')];this[_0x2f1b('0x6')](_0x2f1b('0x4'),0x0),this[_0x2f1b('0x6')](_0x2f1b('0x3'),''),this['list']=this[_0x2f1b('0x2')](),this['setTemplate']({'tag':_0x2f1b('0x7'),'attributes':{'class':['ck',_0x2f1b('0x5'),_0x2f1b('0x8'),_0x375791['to']('class')],'style':{'minHeight':_0x375791['to'](_0x2f1b('0x4'),_0x157d86=>_0x157d86?ft(_0x157d86+0xa):null)}},'children':this[_0x2f1b('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c09=['from','_integrateWithEditorAnnotations','plugins','addEventListener','focus','ready','rearrange','WideSidebar','blur','editors','add','_detachFromContainer','wideSidebar','stopListening','hasDomSelection','set:container','register','set','context','init','widesidebar-detach-not-attached','refresh','has','switchTo','removeEventListener','_annotations','_editorAnnotations','addAnnotation','high','activeAnnotation','stop','cancel','setActiveAnnotation','Sidebar','isAttached','change:container','pluginName','listenTo','resize','remove','attach','widesidebar-attach-already-attached','updateTargetRect','uiUpdate','off','EditorAnnotations','requires','detach','_destroyEditorAnnotationsIntegration','refreshPositioning','_throttledPositioningRefresh','ck-sidebar--wide','getOrderedSelectedAnnotations','get'];(function(_0x49e85b,_0x1c090b){const _0x159278=function(_0x8dacd7){while(--_0x8dacd7){_0x49e85b['push'](_0x49e85b['shift']());}};_0x159278(++_0x1c090b);}(_0x1c09,0x19a));const _0x1592=function(_0x49e85b,_0x1c090b){_0x49e85b=_0x49e85b-0x0;let _0x159278=_0x1c09[_0x49e85b];return _0x159278;};import{ContextPlugin as _0x511b34}from'ckeditor5/src/core';import _0x58ba6a from'./annotationsuis';import _0x17ca9a from'./sidebar';import{CKEditorError as _0x3b9337,Collection as _0x13dde0}from'ckeditor5/src/utils';import{throttle as _0x1b46fd}from'lodash-es';export default class i extends _0x511b34{static get[_0x1592('0xe')](){return[_0x17ca9a,_0x58ba6a];}static get[_0x1592('0x4')](){return _0x1592('0x1d');}constructor(_0x4d4e15){super(_0x4d4e15),this[_0x1592('0x2')]=!0x1,this[_0x1592('0x27')](_0x1592('0x33'),null),this[_0x1592('0x2f')]=null,this[_0x1592('0x30')]=new _0x13dde0(),this[_0x1592('0x12')]=_0x1b46fd(()=>{this['_annotations']['refreshPositioning']();},0x190,{'leading':!0x1});}[_0x1592('0x29')](){const _0x3a1b56=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x58ba6a),_0xaf092b=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x3a1b56[_0x1592('0x26')](_0x1592('0x22'),this),_0xaf092b['container']&&_0x3a1b56[_0x1592('0x2d')](_0x1592('0x22'));}[_0x1592('0x0')](_0x33cd04){if(_0x33cd04===this[_0x1592('0x33')])return;const _0x2acbfa=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x2acbfa['_activeAnnotation']=_0x33cd04;const _0x2928d7=this['activeAnnotation'];this[_0x1592('0x33')]=_0x33cd04,_0x2acbfa[_0x1592('0x2b')]({'blurredAnnotation':_0x2928d7,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x525b45){this['_annotations']=_0x525b45;const _0xce7d7d=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x1592('0x1'));if(_0xce7d7d[_0x1592('0x2f')]=_0x525b45,this[_0x1592('0x2')])throw new _0x3b9337(_0x1592('0x9'),this);this[_0x1592('0x2')]=!0x0,this['listenTo'](_0xce7d7d,_0x1592('0x25'),()=>{this[_0x1592('0xf')](),this[_0x1592('0x5')](_0xce7d7d,_0x1592('0x3'),_0x470b93=>{_0x470b93[_0x1592('0xc')](),this[_0x1592('0x8')](_0x525b45);});}),_0xce7d7d['_attachToContainer']({'viewClass':_0x1592('0x13')});const _0x493c0c=_0xe918dd=>{_0xe918dd[_0x1592('0xa')](),_0xce7d7d[_0x1592('0x31')](_0xe918dd);};for(const _0x2404a3 of _0x525b45)_0x493c0c(_0x2404a3);this['listenTo'](_0x525b45,'add',(_0x1f0b75,_0x24908a)=>{_0x493c0c(_0x24908a);}),this['listenTo'](_0x525b45,_0x1592('0x7'),(_0xde60ab,_0x3e8ac9,_0xb558d9)=>{_0xce7d7d[_0x1592('0x1c')]({'removedAnnotation':_0x3e8ac9,'previousAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9-0x1),'nextAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9+0x1)}),_0x3e8ac9===this['activeAnnotation']&&this[_0x1592('0x0')](null);},{'priority':_0x1592('0x32')}),this[_0x1592('0x5')](_0x525b45,_0x1592('0x1a'),(_0x517bc9,_0x8b97a5)=>{this[_0x1592('0x0')](_0x8b97a5);}),this[_0x1592('0x5')](_0x525b45,'blur',()=>{this[_0x1592('0x0')](null);});const _0x2ab434=this[_0x1592('0x28')][_0x1592('0x1f')]?this[_0x1592('0x28')][_0x1592('0x1f')]:new _0x13dde0([this['context']]);for(const _0xa43372 of _0x2ab434)this[_0x1592('0x17')](_0xa43372);this[_0x1592('0x5')](_0x2ab434,'add',(_0x4747d0,_0x57675b)=>{this[_0x1592('0x5')](_0x57675b,_0x1592('0x1b'),()=>{this['_integrateWithEditorAnnotations'](_0x57675b);});}),this[_0x1592('0x5')](_0x2ab434,_0x1592('0x7'),(_0x3b313e,_0x34a714)=>{_0x34a714[_0x1592('0x18')][_0x1592('0x2c')]('EditorAnnotations')&&this[_0x1592('0x10')](_0x34a714[_0x1592('0x18')][_0x1592('0x15')]('EditorAnnotations'));}),window[_0x1592('0x19')](_0x1592('0x6'),this[_0x1592('0x12')]),this['_annotations'][_0x1592('0x11')]();}[_0x1592('0xf')](){if(!this['isAttached'])throw new _0x3b9337(_0x1592('0x2a'),this);this[_0x1592('0x0')](null);const _0xbc81c4=this['context'][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0xbc81c4[_0x1592('0x21')](this[_0x1592('0x2f')]),this[_0x1592('0x23')](_0xbc81c4),this[_0x1592('0x23')](this['_annotations']),this['stopListening'](this[_0x1592('0x28')][_0x1592('0x1f')]);for(const _0x3a5e87 of Array[_0x1592('0x16')](this[_0x1592('0x30')]))this[_0x1592('0x10')](_0x3a5e87);window[_0x1592('0x2e')]('resize',this['_throttledPositioningRefresh']),this[_0x1592('0x12')][_0x1592('0x35')](),this[_0x1592('0x33')]=null,this[_0x1592('0x2')]=!0x1;}['destroy'](){this[_0x1592('0x2')]&&this[_0x1592('0xf')]();}[_0x1592('0x17')](_0x57e869){const _0x33505f=_0x57e869['plugins'][_0x1592('0x15')](_0x1592('0xd'));if(!_0x33505f)return;const _0x240285=()=>{const _0xe8f660=_0x33505f[_0x1592('0x14')]({'annotations':this[_0x1592('0x2f')],'activeAnnotation':this[_0x1592('0x33')]});this[_0x1592('0x0')](_0xe8f660[0x0]||null);};this[_0x1592('0x5')](_0x33505f,_0x1592('0x2b'),_0x240285),this['listenTo'](_0x33505f,_0x1592('0x1e'),(_0x410e73,{isAnnotationTracked:_0x367cba})=>{this[_0x1592('0x33')]&&_0x367cba(this[_0x1592('0x33')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x33505f,_0x1592('0xb'),()=>{this[_0x1592('0x2f')][_0x1592('0x11')]();}),this[_0x1592('0x5')](this['_annotations'],_0x1592('0x1e'),_0x19992a=>{_0x33505f[_0x1592('0x24')]()&&(_0x240285(),_0x19992a[_0x1592('0x34')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1592('0x20')](_0x33505f);}['_destroyEditorAnnotationsIntegration'](_0x6bb4d6){_0x6bb4d6&&(this[_0x1592('0x23')](_0x6bb4d6),this[_0x1592('0x30')][_0x1592('0x7')](_0x6bb4d6));}}
23
+ const _0x5b13=['refresh','high','context','_throttledPositioningRefresh','attach','refreshPositioning','_attachToContainer','has','detach','get','add','_destroyEditorAnnotationsIntegration','init','activeAnnotation','stop','_integrateWithEditorAnnotations','annotations','focus','resize','Sidebar','EditorAnnotations','widesidebar-attach-already-attached','hasDomSelection','setActiveAnnotation','_editorAnnotations','isAttached','widesidebar-detach-not-attached','editors','from','addEventListener','wideSidebar','_annotations','removeEventListener','listenTo','updateTargetRect','cancel','stopListening','change:container','getOrderedSelectedAnnotations','set','plugins','container','uiUpdate','_detachFromContainer','remove','blur','register','requires','_activeAnnotation','rearrange','off','WideSidebar'];(function(_0x44ca2e,_0x5b130a){const _0x541c8e=function(_0x4e4cbc){while(--_0x4e4cbc){_0x44ca2e['push'](_0x44ca2e['shift']());}};_0x541c8e(++_0x5b130a);}(_0x5b13,0x185));const _0x541c=function(_0x44ca2e,_0x5b130a){_0x44ca2e=_0x44ca2e-0x0;let _0x541c8e=_0x5b13[_0x44ca2e];return _0x541c8e;};import{ContextPlugin as _0x4e5b96}from'ckeditor5/src/core';import _0x1ce71c from'./annotationsuis';import _0x56ff0d from'./sidebar';import{CKEditorError as _0x1f4264,Collection as _0x24c177}from'ckeditor5/src/utils';import{throttle as _0x220022}from'lodash-es';export default class i extends _0x4e5b96{static get[_0x541c('0x16')](){return[_0x56ff0d,_0x1ce71c];}static get['pluginName'](){return _0x541c('0x1a');}constructor(_0x22e277){super(_0x22e277),this[_0x541c('0x0')]=!0x1,this[_0x541c('0xe')]('activeAnnotation',null),this[_0x541c('0x2b')]=null,this[_0x541c('0x33')]=new _0x24c177(),this['_throttledPositioningRefresh']=_0x220022(()=>{this[_0x541c('0x2b')][_0x541c('0x20')]();},0x190,{'leading':!0x1});}[_0x541c('0x27')](){const _0x402404=this[_0x541c('0x1d')][_0x541c('0xf')]['get'](_0x1ce71c),_0x4b9d56=this['context'][_0x541c('0xf')][_0x541c('0x24')](_0x56ff0d);_0x402404[_0x541c('0x15')]('wideSidebar',this),_0x4b9d56[_0x541c('0x10')]&&_0x402404['switchTo'](_0x541c('0x5'));}[_0x541c('0x32')](_0x157ea4){if(_0x157ea4===this[_0x541c('0x28')])return;const _0x19b422=this[_0x541c('0x1d')][_0x541c('0xf')][_0x541c('0x24')](_0x56ff0d);_0x19b422[_0x541c('0x17')]=_0x157ea4;const _0xfcb62f=this[_0x541c('0x28')];this[_0x541c('0x28')]=_0x157ea4,_0x19b422[_0x541c('0x1b')]({'blurredAnnotation':_0xfcb62f,'activatedAnnotation':this[_0x541c('0x28')]});}[_0x541c('0x1f')](_0xe3c85c){this[_0x541c('0x2b')]=_0xe3c85c;const _0x22d402=this[_0x541c('0x1d')][_0x541c('0xf')][_0x541c('0x24')](_0x541c('0x2e'));if(_0x22d402[_0x541c('0x6')]=_0xe3c85c,this['isAttached'])throw new _0x1f4264(_0x541c('0x30'),this);this[_0x541c('0x0')]=!0x0,this[_0x541c('0x8')](_0x22d402,'set:container',()=>{this['detach'](),this[_0x541c('0x8')](_0x22d402,_0x541c('0xc'),_0x3de28c=>{_0x3de28c[_0x541c('0x19')](),this[_0x541c('0x1f')](_0xe3c85c);});}),_0x22d402[_0x541c('0x21')]({'viewClass':'ck-sidebar--wide'});const _0x45d379=_0x1bdaf2=>{_0x1bdaf2[_0x541c('0x9')](),_0x22d402['addAnnotation'](_0x1bdaf2);};for(const _0x23a860 of _0xe3c85c)_0x45d379(_0x23a860);this[_0x541c('0x8')](_0xe3c85c,'add',(_0x5aa494,_0x586b14)=>{_0x45d379(_0x586b14);}),this['listenTo'](_0xe3c85c,_0x541c('0x13'),(_0x6215f2,_0x598caf,_0x528857)=>{_0x22d402[_0x541c('0x18')]({'removedAnnotation':_0x598caf,'previousAnnotation':_0xe3c85c[_0x541c('0x24')](_0x528857-0x1),'nextAnnotation':_0xe3c85c['get'](_0x528857+0x1)}),_0x598caf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0x541c('0x8')](_0xe3c85c,_0x541c('0x2c'),(_0x2c4d76,_0x49074f)=>{this[_0x541c('0x32')](_0x49074f);}),this[_0x541c('0x8')](_0xe3c85c,_0x541c('0x14'),()=>{this[_0x541c('0x32')](null);});const _0x168d68=this[_0x541c('0x1d')]['editors']?this[_0x541c('0x1d')][_0x541c('0x2')]:new _0x24c177([this[_0x541c('0x1d')]]);for(const _0x2e0a53 of _0x168d68)this[_0x541c('0x2a')](_0x2e0a53);this[_0x541c('0x8')](_0x168d68,'add',(_0x377f4d,_0x4c77ac)=>{this[_0x541c('0x8')](_0x4c77ac,'ready',()=>{this[_0x541c('0x2a')](_0x4c77ac);});}),this['listenTo'](_0x168d68,'remove',(_0x37242d,_0x2829e4)=>{_0x2829e4[_0x541c('0xf')][_0x541c('0x22')]('EditorAnnotations')&&this[_0x541c('0x26')](_0x2829e4[_0x541c('0xf')][_0x541c('0x24')]('EditorAnnotations'));}),window[_0x541c('0x4')](_0x541c('0x2d'),this[_0x541c('0x1e')]),this[_0x541c('0x2b')][_0x541c('0x20')]();}[_0x541c('0x23')](){if(!this[_0x541c('0x0')])throw new _0x1f4264(_0x541c('0x1'),this);this[_0x541c('0x32')](null);const _0x43bc74=this[_0x541c('0x1d')][_0x541c('0xf')][_0x541c('0x24')](_0x56ff0d);_0x43bc74[_0x541c('0x12')](this[_0x541c('0x2b')]),this[_0x541c('0xb')](_0x43bc74),this[_0x541c('0xb')](this[_0x541c('0x2b')]),this[_0x541c('0xb')](this[_0x541c('0x1d')][_0x541c('0x2')]);for(const _0xf412c4 of Array[_0x541c('0x3')](this[_0x541c('0x33')]))this['_destroyEditorAnnotationsIntegration'](_0xf412c4);window[_0x541c('0x7')]('resize',this[_0x541c('0x1e')]),this[_0x541c('0x1e')][_0x541c('0xa')](),this[_0x541c('0x28')]=null,this['isAttached']=!0x1,this[_0x541c('0x2b')]=null;}['destroy'](){this[_0x541c('0x0')]&&this['detach']();}[_0x541c('0x2a')](_0x3477b1){const _0x3f4a1f=_0x3477b1[_0x541c('0xf')]['get'](_0x541c('0x2f'));if(!_0x3f4a1f)return;const _0x102e56=()=>{const _0x21354c=_0x3f4a1f[_0x541c('0xd')]({'annotations':this['annotations'],'activeAnnotation':this[_0x541c('0x28')]});this[_0x541c('0x32')](_0x21354c[0x0]||null);};this['listenTo'](_0x3f4a1f,_0x541c('0x1b'),_0x102e56),this['listenTo'](_0x3f4a1f,_0x541c('0x14'),(_0x3d8b95,{isAnnotationTracked:_0x22549a})=>{this[_0x541c('0x28')]&&_0x22549a(this['activeAnnotation'])&&this[_0x541c('0x32')](null);}),this[_0x541c('0x8')](_0x3f4a1f,_0x541c('0x11'),()=>{this[_0x541c('0x2b')][_0x541c('0x20')]();}),this['listenTo'](this[_0x541c('0x2b')],'blur',_0x4be8a2=>{_0x3f4a1f[_0x541c('0x31')]()&&(_0x102e56(),_0x4be8a2[_0x541c('0x29')]());},{'priority':_0x541c('0x1c')}),this[_0x541c('0x33')][_0x541c('0x25')](_0x3f4a1f);}[_0x541c('0x26')](_0x319224){_0x319224&&(this[_0x541c('0xb')](_0x319224),this[_0x541c('0x33')][_0x541c('0x13')](_0x319224));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54b8=['document','getRanges','start','end','refresh','item','selection','getLastMatchingPosition','push','addMarker','isEnabled','textProxy','change','schema','comment:','_itemIsContent','createRange','execute','model','_hasContent','_trimToContent','isObject','editor','element'];(function(_0x4e027b,_0x54b85b){const _0x40464a=function(_0x804e2a){while(--_0x804e2a){_0x4e027b['push'](_0x4e027b['shift']());}};_0x40464a(++_0x54b85b);}(_0x54b8,0x1ac));const _0x4046=function(_0x4e027b,_0x54b85b){_0x4e027b=_0x4e027b-0x0;let _0x40464a=_0x54b8[_0x4e027b];return _0x40464a;};import{Command as _0xb1ec13}from'ckeditor5/src/core';import{uid as _0x96c094}from'ckeditor5/src/utils';export default class d extends _0xb1ec13{[_0x4046('0x8')](){const _0x44928f=this[_0x4046('0x2')][_0x4046('0x16')]['document'][_0x4046('0xa')];for(const _0x7d0eaf of _0x44928f['getRanges']())if(this['_hasContent'](_0x7d0eaf))return void(this[_0x4046('0xe')]=!0x0);this[_0x4046('0xe')]=!0x1;}[_0x4046('0x15')]({threadId:_0x1d03a6=_0x96c094()}={}){const _0x1e1799=this[_0x4046('0x2')][_0x4046('0x16')],_0x562990=[];for(const _0x4edd42 of _0x1e1799[_0x4046('0x4')][_0x4046('0xa')][_0x4046('0x5')]())this[_0x4046('0x17')](_0x4edd42)&&_0x562990[_0x4046('0xc')](this[_0x4046('0x0')](_0x4edd42));_0x1e1799[_0x4046('0x10')](_0x273063=>{for(const _0x1163cf of _0x562990){const _0x1ca667=_0x96c094()['substr'](0x1,0x5),_0x45e88c=_0x4046('0x12')+_0x1d03a6+':'+_0x1ca667;_0x273063[_0x4046('0xd')](_0x45e88c,{'range':_0x1163cf,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x4046('0x17')](_0x4e3cda){for(const _0x2001bd of _0x4e3cda['getItems']())if(this['_itemIsContent'](_0x2001bd))return!0x0;return!0x1;}[_0x4046('0x13')](_0x54aee3){return _0x54aee3['is'](_0x4046('0xf'))||this[_0x4046('0x2')][_0x4046('0x16')][_0x4046('0x11')][_0x4046('0x1')](_0x54aee3)&&!_0x54aee3['is'](_0x4046('0x3'),'tableCell');}[_0x4046('0x0')](_0x324004){const _0x4aa6ff=_0x1a4481=>!this['_itemIsContent'](_0x1a4481[_0x4046('0x9')]),_0x5756c8=_0x324004[_0x4046('0x6')][_0x4046('0xb')](_0x4aa6ff),_0x16deb8=_0x324004[_0x4046('0x7')]['getLastMatchingPosition'](_0x4aa6ff,{'direction':'backward'});return this[_0x4046('0x2')][_0x4046('0x16')][_0x4046('0x14')](_0x5756c8,_0x16deb8);}}
23
+ const _0x5408=['element','_hasContent','selection','editor','start','model','push','execute','document','createRange','_itemIsContent','end','tableCell','backward','getItems','addMarker','isObject','substr','getLastMatchingPosition','item','_trimToContent','comment:','isEnabled','getRanges'];(function(_0x2ef77f,_0x5408f9){const _0x39adf5=function(_0x58fd3b){while(--_0x58fd3b){_0x2ef77f['push'](_0x2ef77f['shift']());}};_0x39adf5(++_0x5408f9);}(_0x5408,0x129));const _0x39ad=function(_0x2ef77f,_0x5408f9){_0x2ef77f=_0x2ef77f-0x0;let _0x39adf5=_0x5408[_0x2ef77f];return _0x39adf5;};import{Command as _0x88ce03}from'ckeditor5/src/core';import{uid as _0x54531e}from'ckeditor5/src/utils';export default class j extends _0x88ce03{['refresh'](){const _0x38efc4=this[_0x39ad('0x12')][_0x39ad('0x14')][_0x39ad('0x17')][_0x39ad('0x11')];for(const _0x2d232b of _0x38efc4[_0x39ad('0xe')]())if(this['_hasContent'](_0x2d232b))return void(this[_0x39ad('0xd')]=!0x0);this[_0x39ad('0xd')]=!0x1;}[_0x39ad('0x16')]({threadId:_0x5538a0=_0x54531e()}={}){const _0x31b0a8=this[_0x39ad('0x12')][_0x39ad('0x14')],_0x527499=[];for(const _0x444677 of _0x31b0a8['document'][_0x39ad('0x11')][_0x39ad('0xe')]())this[_0x39ad('0x10')](_0x444677)&&_0x527499[_0x39ad('0x15')](this['_trimToContent'](_0x444677));_0x31b0a8['change'](_0x56804b=>{for(const _0x3859cd of _0x527499){const _0x222eae=_0x54531e()[_0x39ad('0x8')](0x1,0x5),_0x207e17=_0x39ad('0xc')+_0x5538a0+':'+_0x222eae;_0x56804b[_0x39ad('0x6')](_0x207e17,{'range':_0x3859cd,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x39ad('0x10')](_0x38718a){for(const _0x1719a2 of _0x38718a[_0x39ad('0x5')]())if(this[_0x39ad('0x1')](_0x1719a2))return!0x0;return!0x1;}[_0x39ad('0x1')](_0x190d63){return _0x190d63['is']('textProxy')||this[_0x39ad('0x12')][_0x39ad('0x14')]['schema'][_0x39ad('0x7')](_0x190d63)&&!_0x190d63['is'](_0x39ad('0xf'),_0x39ad('0x3'));}[_0x39ad('0xb')](_0x387efb){const _0x2aac4f=_0x4939eb=>!this[_0x39ad('0x1')](_0x4939eb[_0x39ad('0xa')]),_0x5be5e6=_0x387efb[_0x39ad('0x13')][_0x39ad('0x9')](_0x2aac4f),_0x194bcd=_0x387efb[_0x39ad('0x2')][_0x39ad('0x9')](_0x2aac4f,{'direction':_0x39ad('0x4')});return this['editor'][_0x39ad('0x14')][_0x39ad('0x0')](_0x5be5e6,_0x194bcd);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8627=['left','view','registerPostFixer','markers','split','createElement','length','document','ck-comment-marker','destroyed','_attachedThreads','affectsData','comment:','activeMarker','isObject','updateMarker','model','rootName','destroy','fetchCommentThread','state','isThreadsLoadingPaused','pluginName','getAllMarkersForId','$graveyard','start','elementToElement','from','editor','has','CommentsRepository','dataToMarker','ck-comment-marker--active','change','ready','markerName','switchReadOnly','requires','editingDowncast','_initializeMarkerConverters','_attachThreadToMarker','hasMarkerForId','createRange','end','config','then','listenTo','upcast','set','add','change:isReadOnly','delete','newRange','_threads','push','once','name','_handleMarkerAddAndRemove','addCommentThread','managedUsingOperations','isCollapsed','editing','removeMarker','getMarkersGroup','root','createPositionBefore','data','isEqual','markerToData','getWalker','_detachCommentThread','hasContent','get','conversion','top','addComment','high','low','getCommentThread','plugins','for','getAttribute','markerToHighlight','hasCommentThread','change:activeMarker','text','getCommentThreads','openNewCommentThread','reconvertMarker','getChangedMarkers','collaboration.channelId','stop','CommentsEditing','comment'];(function(_0x254eab,_0x862765){const _0x3cb2ef=function(_0x21210e){while(--_0x21210e){_0x254eab['push'](_0x254eab['shift']());}};_0x3cb2ef(++_0x862765);}(_0x8627,0x100));const _0x3cb2=function(_0x254eab,_0x862765){_0x254eab=_0x254eab-0x0;let _0x3cb2ef=_0x8627[_0x254eab];return _0x3cb2ef;};import{Plugin as _0x34e8d3}from'ckeditor5/src/core';import{Rect as _0x2d58dc}from'ckeditor5/src/utils';import _0x37fc1e from'./commentsrepository';import _0x32519e from'./addcommentthreadcommand';import{getMarkerDomElement as _0x589f3f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0adf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x34e8d3{static get[_0x3cb2('0x3f')](){return[_0x37fc1e,_0x2f0adf];}static get[_0x3cb2('0x30')](){return _0x3cb2('0x18');}constructor(_0x2f378b){super(_0x2f378b),this[_0x3cb2('0x4a')](_0x3cb2('0x2f'),!0x0),_0x2f378b[_0x3cb2('0x5c')][_0x3cb2('0x51')](_0x3cb2('0x3c'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x3cb2('0x27'),null),this['on'](_0x3cb2('0x10'),(_0x129487,_0x38de5c,_0x160043,_0x31f6a3)=>{_0x2f378b[_0x3cb2('0x2a')][_0x3cb2('0x3b')](()=>{if(_0x160043){const {id:_0x5ca7c4}=k(_0x160043),_0x56688b=this['getAllMarkersForId'](_0x5ca7c4);for(const _0x2a3728 of _0x56688b)_0x2f378b['editing'][_0x3cb2('0x14')](_0x2a3728);}if(_0x31f6a3){const {id:_0x3919f7}=k(_0x31f6a3),_0x3d3b1d=this[_0x3cb2('0x31')](_0x3919f7);for(const _0x3a531b of _0x3d3b1d)_0x2f378b[_0x3cb2('0x57')][_0x3cb2('0x14')](_0x3a531b);}});}),this[_0x3cb2('0x24')]=new Set();}['init'](){const _0x4bcca5=this[_0x3cb2('0x36')],_0x135844=_0x4bcca5[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x37b1e9=_0x4bcca5[_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));_0x4bcca5['commands'][_0x3cb2('0x4b')](_0x3cb2('0x54'),new _0x32519e(_0x4bcca5)),this[_0x3cb2('0x48')](_0x4bcca5,_0x3cb2('0x4c'),(_0x27a3c6,_0x4e938c,_0x37f969)=>{_0x135844[_0x3cb2('0x3e')](_0x37f969,_0x4bcca5['config'][_0x3cb2('0x4')]('collaboration.channelId'));}),this[_0x3cb2('0x48')](_0x135844,g('removeCommentThread',_0x37b1e9),(_0x4533e0,{threadId:_0x296609})=>{_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x23f5e3=>{for(const _0x56f0b6 of this['getAllMarkersForId'](_0x296609))_0x23f5e3['removeMarker'](_0x56f0b6);});const _0x8bf635=_0x135844[_0x3cb2('0xa')](_0x296609);_0x135844[_0x3cb2('0xf')](_0x296609)&&!_0x8bf635[_0x3cb2('0x20')]||_0x4533e0[_0x3cb2('0x17')]();},{'priority':_0x3cb2('0x8')}),this[_0x3cb2('0x48')](_0x135844,g(_0x3cb2('0x7'),_0x37b1e9),(_0x438346,{threadId:_0xe3663d,isFromAdapter:_0x206faf})=>{const _0x4b6a89=this[_0x3cb2('0x31')](_0xe3663d);if(_0x206faf||0x0==_0x4b6a89[_0x3cb2('0x20')]||!_0x135844[_0x3cb2('0xf')](_0xe3663d))return;0x1===_0x135844['getCommentThread'](_0xe3663d)[_0x3cb2('0x20')]&&_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x263c2e=>{for(const _0x52c6da of _0x4b6a89)_0x263c2e[_0x3cb2('0x29')](_0x52c6da,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x3cb2('0x2c')](){const _0x2ee4aa=this[_0x3cb2('0x36')]['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x334b9a=this['editor'][_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));for(const _0x4b9ab3 of _0x2ee4aa[_0x3cb2('0x12')]({'channelId':_0x334b9a}))_0x2ee4aa[_0x3cb2('0x2')](_0x4b9ab3['id']),_0x2ee4aa[_0x3cb2('0x4f')]['delete'](_0x4b9ab3['id']);super[_0x3cb2('0x2c')]();}[_0x3cb2('0x43')](_0x45a99f){return this[_0x3cb2('0x31')](_0x45a99f)['length']>0x0;}[_0x3cb2('0x31')](_0x586c5a){const _0x109f9f=this[_0x3cb2('0x36')][_0x3cb2('0x2a')][_0x3cb2('0x1d')]['get'](_0x3cb2('0x26')+_0x586c5a);return _0x109f9f?[_0x109f9f]:Array[_0x3cb2('0x35')](this[_0x3cb2('0x36')]['model']['markers'][_0x3cb2('0x59')](_0x3cb2('0x26')+_0x586c5a));}[_0x3cb2('0x41')](){const _0x371177=this[_0x3cb2('0x36')];_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')](_0x3cb2('0x40'))[_0x3cb2('0xe')]({'model':'comment','view':_0x2cc780=>{const {id:_0x46ac5e}=k(_0x2cc780[_0x3cb2('0x3d')]),_0x1f0c4c=[_0x3cb2('0x22')];return this[_0x3cb2('0x27')]&&k(this[_0x3cb2('0x27')])['id']===_0x46ac5e&&_0x1f0c4c[_0x3cb2('0x50')](_0x3cb2('0x3a')),{'classes':_0x1f0c4c,'attributes':{'data-comment':_0x46ac5e}};}}),_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')]('dataDowncast')[_0x3cb2('0x0')]({'model':_0x3cb2('0x19'),'view':_0x159b69=>{const _0x18099c=_0x371177[_0x3cb2('0x2a')][_0x3cb2('0x1d')][_0x3cb2('0x4')](_0x159b69),{id:_0x21f6b0,part:_0x5dc2af}=k(_0x159b69);return _0x18099c&&!_0x18099c[_0x3cb2('0x25')]?null:{'group':_0x3cb2('0x19'),'name':_0x5dc2af?_0x21f6b0+':'+_0x5dc2af:_0x21f6b0};}}),_0x371177[_0x3cb2('0x5')]['for'](_0x3cb2('0x49'))[_0x3cb2('0x34')]({'view':{'name':_0x3cb2('0x19'),'attribute':{'id':/^\w/}},'model':(_0x4afaa9,{writer:_0x25a5ae})=>_0x25a5ae[_0x3cb2('0x1f')]('$marker',{'data-name':_0x3cb2('0x26')+_0x4afaa9[_0x3cb2('0xd')]('id')})}),_0x371177['conversion']['for'](_0x3cb2('0x49'))[_0x3cb2('0x39')]({'view':_0x3cb2('0x19')});}[_0x3cb2('0x53')](){const _0x254a48=this[_0x3cb2('0x36')],_0x20e65c=_0x254a48['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0xd6c207=new Set();_0x254a48['model'][_0x3cb2('0x21')][_0x3cb2('0x1c')](_0xf6e2b8=>{let _0xb0dd81=!0x1;for(const {name:_0x5206c1,data:_0xe92ee9}of _0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x21')]['differ'][_0x3cb2('0x15')]()){const {group:_0x5c0dcd,id:_0x1a2f2c}=k(_0x5206c1);let _0x46ef07=_0xe92ee9[_0x3cb2('0x4e')];if(_0x3cb2('0x19')!==_0x5c0dcd||!_0x46ef07)continue;const _0x59ac37=_0x3cb2('0x32')===_0x46ef07[_0x3cb2('0x5a')][_0x3cb2('0x2b')];_0x59ac37||(_0x46ef07=y(_0x46ef07,_0x254a48[_0x3cb2('0x2a')]),!_0x46ef07||_0x46ef07[_0x3cb2('0x5d')](_0xe92ee9[_0x3cb2('0x4e')]))?!_0x46ef07||!_0x254a48['model'][_0x3cb2('0x3')](_0x46ef07)||this[_0x3cb2('0x24')][_0x3cb2('0x37')](_0x1a2f2c)&&_0x59ac37?(_0xf6e2b8[_0x3cb2('0x58')](_0x5206c1),_0xb0dd81=!0x0):_0x59ac37||(this[_0x3cb2('0x2f')]?_0xd6c207[_0x3cb2('0x4b')](_0x1a2f2c):this[_0x3cb2('0x42')](_0x1a2f2c)):(_0xf6e2b8[_0x3cb2('0x29')](_0x5206c1,{'range':_0x46ef07}),_0xb0dd81=!0x0);}return _0xb0dd81;}),this['on']('change:isThreadsLoadingPaused',(_0x193919,_0x2edbd5,_0x46b5db)=>{if(!_0x46b5db&&_0xd6c207['size'])for(const _0xbb6cc4 of _0xd6c207)this[_0x3cb2('0x42')](_0xbb6cc4),_0xd6c207[_0x3cb2('0x4d')](_0xbb6cc4);}),this[_0x3cb2('0x48')](_0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x1d')],'update:comment',(_0xaa2536,_0xcec9ab,_0x165637,_0x730d37)=>{if(_0x730d37)return;const {id:_0x369486}=k(_0xcec9ab[_0x3cb2('0x52')]),_0x394006=_0x254a48[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38'))[_0x3cb2('0xa')](_0x369486);_0xd6c207['delete'](_0x369486),_0x394006&&!this['hasMarkerForId'](_0x369486)&&(this['_attachedThreads'][_0x3cb2('0x4d')](_0x369486),_0x20e65c[_0x3cb2('0x2')](_0x369486));});}['_attachThreadToMarker'](_0x350b9b){if(this['_attachedThreads'][_0x3cb2('0x37')](_0x350b9b))return;this[_0x3cb2('0x24')][_0x3cb2('0x4b')](_0x350b9b);const _0x3b3808=this[_0x3cb2('0x36')],_0xcb0816=_0x3b3808['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x184e29=_0x3b3808['config']['get'](_0x3cb2('0x16')),_0x3c2655=()=>{const _0x49b413=this[_0x3cb2('0x31')](_0x350b9b);if(0x0==_0x49b413['length'])return null;const _0x22a1fc=_0x49b413['map'](_0x36b4b7=>_0x589f3f(_0x3b3808[_0x3cb2('0x57')],_0x36b4b7));return _0x22a1fc['sort']((_0x16b786,_0x3441f0)=>{const _0x3710c4=new _0x2d58dc(_0x16b786),_0x57de1f=new _0x2d58dc(_0x3441f0),_0x55a13a=_0x3710c4[_0x3cb2('0x6')]-_0x57de1f['top'];return 0x0==_0x55a13a?_0x3710c4[_0x3cb2('0x1a')]-_0x57de1f[_0x3cb2('0x1a')]:_0x55a13a;}),_0x22a1fc[0x0];};!this[_0x3cb2('0x31')](_0x350b9b)[0x0][_0x3cb2('0x55')]?_0x3b3808[_0x3cb2('0x57')][_0x3cb2('0x1b')][_0x3cb2('0x51')]('render',()=>{_0xcb0816[_0x3cb2('0x13')]({'channelId':_0x184e29,'threadId':_0x350b9b,'target':_0x3c2655});},{'priority':_0x3cb2('0x9')}):_0xcb0816[_0x3cb2('0x2d')]({'channelId':_0x184e29,'threadId':_0x350b9b})[_0x3cb2('0x47')](_0x471c8d=>{if(_0x3cb2('0x23')!==_0x3b3808[_0x3cb2('0x2e')]){if(_0x471c8d)_0x471c8d['attachTo'](_0x3c2655);else{const _0x3f09e1=this['getAllMarkersForId'](_0x350b9b);_0x3b3808[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x32d507=>{for(const _0x83cf2e of _0x3f09e1)_0x32d507[_0x3cb2('0x58')](_0x83cf2e);});}}});}}function g(_0xfe698,_0x29cae9){return _0x29cae9?_0xfe698+':'+_0x29cae9:_0xfe698;}function k(_0x19cabe){const _0x457808=_0x19cabe[_0x3cb2('0x1e')](':');return{'group':_0x457808[0x0],'id':_0x457808[0x1],'part':_0x457808[0x2]};}function y(_0x324943,_0x51c759){const _0x166928=_0x51c759['schema'],_0x5c0d20=_0x51c759[_0x3cb2('0x44')](_0x324943[_0x3cb2('0x33')]);for(const _0x22a5e8 of _0x324943[_0x3cb2('0x1')]()){const {type:_0x37ac65,item:_0x45dbce,nextPosition:_0x12367a}=_0x22a5e8;if(_0x3cb2('0x11')===_0x37ac65||_0x166928[_0x3cb2('0x28')](_0x45dbce)){const _0x5ed87e=_0x51c759[_0x3cb2('0x5b')](_0x45dbce);_0x5c0d20[_0x3cb2('0x56')]&&(_0x5c0d20[_0x3cb2('0x33')]=_0x5ed87e),_0x5c0d20[_0x3cb2('0x45')]=_0x12367a;}}return _0x5c0d20[_0x3cb2('0x56')]?null:_0x5c0d20;}
23
+ const _0x27ad=['updateMarker','elementToElement','markerToHighlight','model','comment:','ready','removeCommentThread','markers','change','change:activeMarker','addComment','plugins','differ','add','markerName','editingDowncast','once','isObject','fetchCommentThread','rootName','length','left','for','set','schema','low','conversion','getWalker','isCollapsed','ck-comment-marker','name','end','getAllMarkersForId','reconvertMarker','affectsData','stop','managedUsingOperations','change:isReadOnly','split','view','state','$graveyard','high','_attachThreadToMarker','from','removeMarker','createPositionBefore','_handleMarkerAddAndRemove','listenTo','collaboration.channelId','getCommentThread','text','ck-comment-marker--active','createRange','config','then','CommentsRepository','destroy','has','hasCommentThread','isThreadsLoadingPaused','createElement','getAttribute','destroyed','delete','hasMarkerForId','attachTo','top','editor','document','_detachCommentThread','dataDowncast','get','newRange','_attachedThreads','upcast','root','comment','sort','render','$marker','dataToMarker','editing','activeMarker','CommentsEditing','map','_initializeMarkerConverters','pluginName','isEqual'];(function(_0x42581f,_0x27ad80){const _0x3136ca=function(_0x54cc89){while(--_0x54cc89){_0x42581f['push'](_0x42581f['shift']());}};_0x3136ca(++_0x27ad80);}(_0x27ad,0x17a));const _0x3136=function(_0x42581f,_0x27ad80){_0x42581f=_0x42581f-0x0;let _0x3136ca=_0x27ad[_0x42581f];return _0x3136ca;};import{Plugin as _0x42ab6c}from'ckeditor5/src/core';import{Rect as _0x570c3a}from'ckeditor5/src/utils';import _0x50a161 from'./commentsrepository';import _0x3ae289 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x5b22ba}from'ckeditor5-collaboration/src/collaboration-core';import _0xa26fd0 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x42ab6c{static get['requires'](){return[_0x50a161,_0xa26fd0];}static get[_0x3136('0x41')](){return _0x3136('0x3e');}constructor(_0xb205e0){super(_0xb205e0),this[_0x3136('0x1')](_0x3136('0x26'),!0x0),_0xb205e0['data'][_0x3136('0x53')](_0x3136('0x48'),()=>this[_0x3136('0x26')]=!0x1),this['set'](_0x3136('0x3d'),null),this['on'](_0x3136('0x4c'),(_0x3d16dc,_0x26b1e3,_0x409f39,_0x2479df)=>{_0xb205e0[_0x3136('0x46')]['change'](()=>{if(_0x409f39){const {id:_0x5712b9}=G(_0x409f39),_0x301b5d=this[_0x3136('0xa')](_0x5712b9);for(const _0x170e3f of _0x301b5d)_0xb205e0[_0x3136('0x3c')][_0x3136('0xb')](_0x170e3f);}if(_0x2479df){const {id:_0x47a23f}=G(_0x2479df),_0x233ec5=this[_0x3136('0xa')](_0x47a23f);for(const _0x4bd571 of _0x233ec5)_0xb205e0[_0x3136('0x3c')][_0x3136('0xb')](_0x4bd571);}});}),this['_attachedThreads']=new Set();}['init'](){const _0x1e3711=this['editor'],_0xa97ca1=_0x1e3711[_0x3136('0x4e')][_0x3136('0x32')](_0x3136('0x22')),_0x584b28=_0x1e3711['config'][_0x3136('0x32')](_0x3136('0x1b'));_0x1e3711['commands']['add']('addCommentThread',new _0x3ae289(_0x1e3711)),this[_0x3136('0x1a')](_0x1e3711,_0x3136('0xf'),(_0x2bcbbe,_0x408296,_0xb82cbd)=>{_0xa97ca1['switchReadOnly'](_0xb82cbd,_0x1e3711[_0x3136('0x20')][_0x3136('0x32')](_0x3136('0x1b')));}),this[_0x3136('0x1a')](_0xa97ca1,q(_0x3136('0x49'),_0x584b28),(_0x4b3dbb,{threadId:_0x180074})=>{_0x1e3711['model']['change'](_0x4dfbb9=>{for(const _0x213d0f of this[_0x3136('0xa')](_0x180074))_0x4dfbb9[_0x3136('0x17')](_0x213d0f);});const _0x163ed2=_0xa97ca1[_0x3136('0x1c')](_0x180074);_0xa97ca1[_0x3136('0x25')](_0x180074)&&!_0x163ed2[_0x3136('0x57')]||_0x4b3dbb[_0x3136('0xd')]();},{'priority':_0x3136('0x14')}),this[_0x3136('0x1a')](_0xa97ca1,q(_0x3136('0x4d'),_0x584b28),(_0x43f5cf,{threadId:_0x300385,isFromAdapter:_0x211da6})=>{const _0xa0abee=this[_0x3136('0xa')](_0x300385);if(_0x211da6||0x0==_0xa0abee[_0x3136('0x57')]||!_0xa97ca1[_0x3136('0x25')](_0x300385))return;0x1===_0xa97ca1['getCommentThread'](_0x300385)['length']&&_0x1e3711[_0x3136('0x46')][_0x3136('0x4b')](_0x1960c7=>{for(const _0x3953d7 of _0xa0abee)_0x1960c7[_0x3136('0x43')](_0x3953d7,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3136('0x3')}),this[_0x3136('0x40')](),this[_0x3136('0x19')]();}[_0x3136('0x23')](){const _0x13cead=this[_0x3136('0x2e')][_0x3136('0x4e')]['get'](_0x3136('0x22')),_0x245bc0=this[_0x3136('0x2e')][_0x3136('0x20')][_0x3136('0x32')](_0x3136('0x1b'));for(const _0x41cc4d of _0x13cead['getCommentThreads']({'channelId':_0x245bc0}))_0x13cead[_0x3136('0x30')](_0x41cc4d['id']),_0x13cead['_threads'][_0x3136('0x2a')](_0x41cc4d['id']);super[_0x3136('0x23')]();}[_0x3136('0x2b')](_0x154df8){return this[_0x3136('0xa')](_0x154df8)[_0x3136('0x57')]>0x0;}[_0x3136('0xa')](_0x3560cd){const _0x412678=this[_0x3136('0x2e')][_0x3136('0x46')][_0x3136('0x4a')][_0x3136('0x32')]('comment:'+_0x3560cd);return _0x412678?[_0x412678]:Array[_0x3136('0x16')](this[_0x3136('0x2e')]['model'][_0x3136('0x4a')]['getMarkersGroup'](_0x3136('0x47')+_0x3560cd));}[_0x3136('0x40')](){const _0x1f0e75=this[_0x3136('0x2e')];_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x52'))[_0x3136('0x45')]({'model':_0x3136('0x37'),'view':_0x13b594=>{const {id:_0x25d5bc}=G(_0x13b594[_0x3136('0x51')]),_0x2b1b04=[_0x3136('0x7')];return this[_0x3136('0x3d')]&&G(this[_0x3136('0x3d')])['id']===_0x25d5bc&&_0x2b1b04['push'](_0x3136('0x1e')),{'classes':_0x2b1b04,'attributes':{'data-comment':_0x25d5bc}};}}),_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x31'))['markerToData']({'model':_0x3136('0x37'),'view':_0x1d8a7e=>{const _0x5ab987=_0x1f0e75['model']['markers'][_0x3136('0x32')](_0x1d8a7e),{id:_0x42055d,part:_0x4a9f40}=G(_0x1d8a7e);return _0x5ab987&&!_0x5ab987[_0x3136('0xc')]?null:{'group':_0x3136('0x37'),'name':_0x4a9f40?_0x42055d+':'+_0x4a9f40:_0x42055d};}}),_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x35'))[_0x3136('0x44')]({'view':{'name':_0x3136('0x37'),'attribute':{'id':/^\w/}},'model':(_0x868f96,{writer:_0x5e2bbd})=>_0x5e2bbd[_0x3136('0x27')](_0x3136('0x3a'),{'data-name':_0x3136('0x47')+_0x868f96[_0x3136('0x28')]('id')})}),_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x35'))[_0x3136('0x3b')]({'view':_0x3136('0x37')});}['_handleMarkerAddAndRemove'](){const _0x238bdc=this[_0x3136('0x2e')],_0x4b8b7f=_0x238bdc[_0x3136('0x4e')][_0x3136('0x32')](_0x3136('0x22')),_0x2ffba7=new Set();_0x238bdc[_0x3136('0x46')][_0x3136('0x2f')]['registerPostFixer'](_0x63252c=>{let _0x333f0f=!0x1;for(const {name:_0x2238ef,data:_0x3a962f}of _0x238bdc[_0x3136('0x46')][_0x3136('0x2f')][_0x3136('0x4f')]['getChangedMarkers']()){const {group:_0x256609,id:_0x58d5d8}=G(_0x2238ef);let _0x1ace98=_0x3a962f[_0x3136('0x33')];if(_0x3136('0x37')!==_0x256609||!_0x1ace98)continue;const _0x177957=_0x3136('0x13')===_0x1ace98[_0x3136('0x36')][_0x3136('0x56')];_0x177957||(_0x1ace98=J(_0x1ace98,_0x238bdc['model']),!_0x1ace98||_0x1ace98[_0x3136('0x42')](_0x3a962f['newRange']))?!_0x1ace98||!_0x238bdc[_0x3136('0x46')]['hasContent'](_0x1ace98)||this['_attachedThreads'][_0x3136('0x24')](_0x58d5d8)&&_0x177957?(_0x63252c['removeMarker'](_0x2238ef),_0x333f0f=!0x0):_0x177957||(this[_0x3136('0x26')]?_0x2ffba7[_0x3136('0x50')](_0x58d5d8):this[_0x3136('0x15')](_0x58d5d8)):(_0x63252c[_0x3136('0x43')](_0x2238ef,{'range':_0x1ace98}),_0x333f0f=!0x0);}return _0x333f0f;}),this['on']('change:isThreadsLoadingPaused',(_0x2a8618,_0x2112e8,_0x17f8ae)=>{if(!_0x17f8ae&&_0x2ffba7['size'])for(const _0x4cd5e8 of _0x2ffba7)this['_attachThreadToMarker'](_0x4cd5e8),_0x2ffba7[_0x3136('0x2a')](_0x4cd5e8);}),this['listenTo'](_0x238bdc['model'][_0x3136('0x4a')],'update:comment',(_0x2c388a,_0x5989ad,_0x3fa86f,_0x86b2a5)=>{if(_0x86b2a5)return;const {id:_0x31469b}=G(_0x5989ad[_0x3136('0x8')]),_0x3e9c41=_0x238bdc[_0x3136('0x4e')][_0x3136('0x32')]('CommentsRepository')[_0x3136('0x1c')](_0x31469b);_0x2ffba7[_0x3136('0x2a')](_0x31469b),_0x3e9c41&&!this[_0x3136('0x2b')](_0x31469b)&&(this[_0x3136('0x34')][_0x3136('0x2a')](_0x31469b),_0x4b8b7f['_detachCommentThread'](_0x31469b));});}[_0x3136('0x15')](_0x955d76){if(this[_0x3136('0x34')][_0x3136('0x24')](_0x955d76))return;this[_0x3136('0x34')][_0x3136('0x50')](_0x955d76);const _0x167e19=this[_0x3136('0x2e')],_0x40af66=_0x167e19[_0x3136('0x4e')]['get'](_0x3136('0x22')),_0x269214=_0x167e19['config'][_0x3136('0x32')](_0x3136('0x1b')),_0x903a3b=()=>{const _0x22caac=this[_0x3136('0xa')](_0x955d76);if(0x0==_0x22caac[_0x3136('0x57')])return null;const _0x4eb714=_0x22caac[_0x3136('0x3f')](_0x2361ef=>_0x5b22ba(_0x167e19[_0x3136('0x3c')],_0x2361ef));return _0x4eb714[_0x3136('0x38')]((_0x25eef4,_0x48806d)=>{const _0x3a39a3=new _0x570c3a(_0x25eef4),_0x287f94=new _0x570c3a(_0x48806d),_0xaca8f9=_0x3a39a3['top']-_0x287f94[_0x3136('0x2d')];return 0x0==_0xaca8f9?_0x3a39a3[_0x3136('0x58')]-_0x287f94[_0x3136('0x58')]:_0xaca8f9;}),_0x4eb714[0x0];};!this[_0x3136('0xa')](_0x955d76)[0x0][_0x3136('0xe')]?_0x167e19[_0x3136('0x3c')][_0x3136('0x11')][_0x3136('0x53')](_0x3136('0x39'),()=>{_0x40af66['openNewCommentThread']({'channelId':_0x269214,'threadId':_0x955d76,'target':_0x903a3b});},{'priority':_0x3136('0x3')}):_0x40af66[_0x3136('0x55')]({'channelId':_0x269214,'threadId':_0x955d76})[_0x3136('0x21')](_0x46d831=>{if(_0x3136('0x29')!==_0x167e19[_0x3136('0x12')]){if(_0x46d831)_0x46d831[_0x3136('0x2c')](_0x903a3b);else{const _0x1fe0d9=this['getAllMarkersForId'](_0x955d76);_0x167e19['model'][_0x3136('0x4b')](_0x5abae6=>{for(const _0x5f0e7f of _0x1fe0d9)_0x5abae6[_0x3136('0x17')](_0x5f0e7f);});}}});}}function q(_0x5f1e4a,_0x3d3220){return _0x3d3220?_0x5f1e4a+':'+_0x3d3220:_0x5f1e4a;}function G(_0x5330a2){const _0x3d131a=_0x5330a2[_0x3136('0x10')](':');return{'group':_0x3d131a[0x0],'id':_0x3d131a[0x1],'part':_0x3d131a[0x2]};}function J(_0x3afe12,_0x964518){const _0x39e843=_0x964518[_0x3136('0x2')],_0x220814=_0x964518[_0x3136('0x1f')](_0x3afe12['start']);for(const _0x4277da of _0x3afe12[_0x3136('0x5')]()){const {type:_0x57dd1b,item:_0x35590a,nextPosition:_0x4a50d4}=_0x4277da;if(_0x3136('0x1d')===_0x57dd1b||_0x39e843[_0x3136('0x54')](_0x35590a)){const _0x15f363=_0x964518[_0x3136('0x18')](_0x35590a);_0x220814[_0x3136('0x6')]&&(_0x220814['start']=_0x15f363),_0x220814[_0x3136('0x9')]=_0x4a50d4;}}return _0x220814[_0x3136('0x6')]?null:_0x220814;}