@ckeditor/ckeditor5-comments 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bd5=['_mutationObserver','focus','add','type','render','fire','destroy','attach','set','ck-annotation-wrapper--active','setTemplate','keystrokes','clear','listenTo','content','div','ck-annotation-wrapper','detach','height','isDirty','_updateHeight','isActive','targetRect','clientHeight','length','element','createCollection'];(function(_0xa00aa2,_0x3bd581){const _0xa9035f=function(_0x416ecb){while(--_0x416ecb){_0xa00aa2['push'](_0xa00aa2['shift']());}};_0xa9035f(++_0x3bd581);}(_0x3bd5,0x8e));const _0xa903=function(_0xa00aa2,_0x3bd581){_0xa00aa2=_0xa00aa2-0x0;let _0xa9035f=_0x3bd5[_0xa00aa2];return _0xa9035f;};import{View as _0x4d3249}from'ckeditor5/src/ui';import{FocusTracker as _0x15dcb6,KeystrokeHandler as _0x59f6a3,uid as _0x523f67}from'ckeditor5/src/utils';import _0x51d96f from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4d3249{constructor(_0x4c261f,_0x26551d){super(_0x4c261f),this['id']=_0x523f67(),this['focusTracker']=new _0x15dcb6(),this['keystrokes']=new _0x59f6a3(),this[_0xa903('0x4')]['set']('Esc',(_0x8f8ae,_0x2d73e5)=>this[_0xa903('0x19')]('Esc',_0x2d73e5)),this[_0xa903('0x1')](_0xa903('0xf'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xa903('0x1')](_0xa903('0xb'),0x0),this[_0xa903('0x1')](_0xa903('0xe'),!0x1),this[_0xa903('0x1')](_0xa903('0xc'),!0x1),this[_0xa903('0x1')](_0xa903('0x11'),0x0),this[_0xa903('0x1')](_0xa903('0x17'),''),this[_0xa903('0x14')]=_0x51d96f(()=>this[_0xa903('0xd')]()),this['content']=this[_0xa903('0x13')](),this[_0xa903('0x7')][_0xa903('0x16')](_0x26551d),this['mainView']=_0x26551d;const _0x4a91da=this['bindTemplate'];this[_0xa903('0x3')]({'tag':_0xa903('0x8'),'attributes':{'class':['ck',_0xa903('0x9'),'ck-rounded-corners',_0x4a91da['if'](_0xa903('0xe'),_0xa903('0x2'))],'tabindex':-0x1},'children':this[_0xa903('0x7')]});}[_0xa903('0x18')](){super[_0xa903('0x18')](),this['focusTracker'][_0xa903('0x16')](this[_0xa903('0x12')]),this[_0xa903('0x4')][_0xa903('0x6')](this[_0xa903('0x12')]),this['_mutationObserver'][_0xa903('0x0')](this[_0xa903('0x12')]);}[_0xa903('0x1a')](){this[_0xa903('0x7')][_0xa903('0x5')](),this[_0xa903('0x4')]['destroy'](),this['focusTracker'][_0xa903('0x1a')](),this[_0xa903('0x14')][_0xa903('0xa')](),super[_0xa903('0x1a')]();}[_0xa903('0x15')](){this['element']['focus']();}[_0xa903('0xd')](){const _0x4446dc=this[_0xa903('0x12')][_0xa903('0x10')];_0x4446dc&&(this[_0xa903('0xb')]=_0x4446dc);}}
23
+ const _0x56aa=['length','ck-rounded-corners','isDirty','createCollection','content','element','add','clientHeight','isActive','_mutationObserver','type','render','_updateHeight','keystrokes','focusTracker','clear','ck-annotation-wrapper--active','height','destroy','focus','mainView','targetRect','bindTemplate','set'];(function(_0x438cee,_0x56aa06){const _0x1a2101=function(_0x500f18){while(--_0x500f18){_0x438cee['push'](_0x438cee['shift']());}};_0x1a2101(++_0x56aa06);}(_0x56aa,0x180));const _0x1a21=function(_0x438cee,_0x56aa06){_0x438cee=_0x438cee-0x0;let _0x1a2101=_0x56aa[_0x438cee];return _0x1a2101;};import{View as _0x498772}from'ckeditor5/src/ui';import{FocusTracker as _0x28e574,KeystrokeHandler as _0x477c68,uid as _0x5e6395}from'ckeditor5/src/utils';import _0x418cb2 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x498772{constructor(_0x56111d,_0x5c5e16){super(_0x56111d),this['id']=_0x5e6395(),this['focusTracker']=new _0x28e574(),this['keystrokes']=new _0x477c68(),this[_0x1a21('0xd')][_0x1a21('0x17')]('Esc',(_0x230e55,_0x33a6ef)=>this['fire']('Esc',_0x33a6ef)),this[_0x1a21('0x17')](_0x1a21('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1a21('0x11'),0x0),this[_0x1a21('0x17')](_0x1a21('0x8'),!0x1),this['set'](_0x1a21('0x2'),!0x1),this['set'](_0x1a21('0x0'),0x0),this[_0x1a21('0x17')](_0x1a21('0xa'),''),this['_mutationObserver']=_0x418cb2(()=>this['_updateHeight']()),this[_0x1a21('0x4')]=this[_0x1a21('0x3')](),this[_0x1a21('0x4')][_0x1a21('0x6')](_0x5c5e16),this[_0x1a21('0x14')]=_0x5c5e16;const _0x5a7d7d=this[_0x1a21('0x16')];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x1a21('0x1'),_0x5a7d7d['if'](_0x1a21('0x8'),_0x1a21('0x10'))],'tabindex':-0x1},'children':this[_0x1a21('0x4')]});}[_0x1a21('0xb')](){super[_0x1a21('0xb')](),this['focusTracker'][_0x1a21('0x6')](this[_0x1a21('0x5')]),this[_0x1a21('0xd')]['listenTo'](this[_0x1a21('0x5')]),this[_0x1a21('0x9')]['attach'](this[_0x1a21('0x5')]);}[_0x1a21('0x12')](){this[_0x1a21('0x4')][_0x1a21('0xf')](),this[_0x1a21('0xd')]['destroy'](),this[_0x1a21('0xe')][_0x1a21('0x12')](),this['_mutationObserver']['detach'](),super[_0x1a21('0x12')]();}[_0x1a21('0x13')](){this['element'][_0x1a21('0x13')]();}[_0x1a21('0xc')](){const _0x3da19f=this[_0x1a21('0x5')][_0x1a21('0x7')];_0x3da19f&&(this['height']=_0x3da19f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42eb=['setTemplate','top','bottom','isAnimationDisabled','set','_targetTop','clear','height','ck-sidebar-item','updateHeight','element','content','render','createCollection','bind','div','destroy','attach','clientHeight','bindTemplate','_mutationObserver'];(function(_0x5d1eee,_0x42ebbd){const _0x2afce5=function(_0x4e60ef){while(--_0x4e60ef){_0x5d1eee['push'](_0x5d1eee['shift']());}};_0x2afce5(++_0x42ebbd);}(_0x42eb,0x1eb));const _0x2afc=function(_0x5d1eee,_0x42ebbd){_0x5d1eee=_0x5d1eee-0x0;let _0x2afce5=_0x42eb[_0x5d1eee];return _0x2afce5;};import{View as _0x2862c8}from'ckeditor5/src/ui';import{toUnit as _0x4940ed}from'ckeditor5/src/utils';import _0x47ba45 from'../../utils/createmutationobserver';const At=_0x4940ed('px');export default class C extends _0x2862c8{constructor(_0x368f7c){super(_0x368f7c),this[_0x2afc('0x11')](_0x2afc('0xe'),0x0),this[_0x2afc('0x11')]('height',0x0),this[_0x2afc('0x6')](_0x2afc('0xf'))['to'](this,'top',this,_0x2afc('0x14'),(_0x4e1a92,_0x50265f)=>_0x4e1a92+_0x50265f),this['set']('isAnimationDisabled',!0x1),this[_0x2afc('0xc')]=_0x47ba45(()=>this['updateHeight']()),this[_0x2afc('0x12')]=null,this['content']=this[_0x2afc('0x5')]();const _0x127412=this[_0x2afc('0xb')];this[_0x2afc('0xd')]({'tag':_0x2afc('0x7'),'attributes':{'class':[_0x2afc('0x0'),_0x127412['to'](_0x2afc('0x10'),_0x5d1d90=>_0x5d1d90?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x127412['to'](_0x2afc('0xe'),_0x3a07fd=>At(_0x3a07fd))}},'children':this[_0x2afc('0x3')]});}['render'](){super[_0x2afc('0x4')](),this[_0x2afc('0xc')][_0x2afc('0x9')](this[_0x2afc('0x2')]);}[_0x2afc('0x1')](){const _0x189199=this['element'][_0x2afc('0xa')];_0x189199&&(this[_0x2afc('0x14')]=_0x189199);}[_0x2afc('0x8')](){this['content'][_0x2afc('0x13')](),this[_0x2afc('0xc')]['detach'](),super[_0x2afc('0x8')]();}}
23
+ const _0x30d0=['content','ck-sidebar-item','element','clear','_targetTop','destroy','set','isAnimationDisabled','height','top','_mutationObserver','createCollection','bottom','setTemplate','ck-sidebar-item--no-animation','div','bindTemplate','render','detach'];(function(_0x4a1e05,_0x30d048){const _0x119a2a=function(_0x3a5676){while(--_0x3a5676){_0x4a1e05['push'](_0x4a1e05['shift']());}};_0x119a2a(++_0x30d048);}(_0x30d0,0x19b));const _0x119a=function(_0x4a1e05,_0x30d048){_0x4a1e05=_0x4a1e05-0x0;let _0x119a2a=_0x30d0[_0x4a1e05];return _0x119a2a;};import{View as _0x25731f}from'ckeditor5/src/ui';import{toUnit as _0x27c6ac}from'ckeditor5/src/utils';import _0x2aec71 from'../../utils/createmutationobserver';const At=_0x27c6ac('px');export default class C extends _0x25731f{constructor(_0x2a4698){super(_0x2a4698),this[_0x119a('0xd')](_0x119a('0x10'),0x0),this[_0x119a('0xd')](_0x119a('0xf'),0x0),this['bind'](_0x119a('0x0'))['to'](this,_0x119a('0x10'),this,'height',(_0x5ef910,_0x5a40d0)=>_0x5ef910+_0x5a40d0),this['set'](_0x119a('0xe'),!0x1),this[_0x119a('0x11')]=_0x2aec71(()=>this['updateHeight']()),this[_0x119a('0xb')]=null,this[_0x119a('0x7')]=this[_0x119a('0x12')]();const _0x446cf1=this[_0x119a('0x4')];this[_0x119a('0x1')]({'tag':_0x119a('0x3'),'attributes':{'class':[_0x119a('0x8'),_0x446cf1['to'](_0x119a('0xe'),_0x18c124=>_0x18c124?_0x119a('0x2'):'')],'style':{'top':_0x446cf1['to'](_0x119a('0x10'),_0x4e069e=>At(_0x4e069e))}},'children':this[_0x119a('0x7')]});}[_0x119a('0x5')](){super['render'](),this[_0x119a('0x11')]['attach'](this[_0x119a('0x9')]);}['updateHeight'](){const _0x28abb2=this[_0x119a('0x9')]['clientHeight'];_0x28abb2&&(this['height']=_0x28abb2);}[_0x119a('0xc')](){this[_0x119a('0x7')][_0x119a('0xa')](),this[_0x119a('0x11')][_0x119a('0x6')](),super[_0x119a('0xc')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf0b7=['class','createCollection','set','list','ck-reset','minHeight','div','bindTemplate','ck-sidebar'];(function(_0x461426,_0xf0b704){const _0x47737a=function(_0x3c092a){while(--_0x3c092a){_0x461426['push'](_0x461426['shift']());}};_0x47737a(++_0xf0b704);}(_0xf0b7,0x18a));const _0x4773=function(_0x461426,_0xf0b704){_0x461426=_0x461426-0x0;let _0x47737a=_0xf0b7[_0x461426];return _0x47737a;};import{View as _0xef54d5}from'ckeditor5/src/ui';import{toUnit as _0x26e890}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x26e890('px');export default class T extends _0xef54d5{constructor(_0x3c8a4d){super(_0x3c8a4d);const _0x2d5090=this[_0x4773('0x0')];this[_0x4773('0x4')](_0x4773('0x7'),0x0),this['set'](_0x4773('0x2'),''),this['list']=this[_0x4773('0x3')](),this['setTemplate']({'tag':_0x4773('0x8'),'attributes':{'class':['ck',_0x4773('0x1'),_0x4773('0x6'),_0x2d5090['to'](_0x4773('0x2'))],'style':{'minHeight':_0x2d5090['to'](_0x4773('0x7'),_0x35020d=>'number'==typeof _0x35020d?At(_0x35020d+0xa):null)}},'children':this[_0x4773('0x5')]});}}
23
+ const _0x579f=['ck-reset','minHeight','set','class','ck-sidebar','setTemplate','list'];(function(_0x11e1f1,_0x579ffc){const _0x70fb20=function(_0x126679){while(--_0x126679){_0x11e1f1['push'](_0x11e1f1['shift']());}};_0x70fb20(++_0x579ffc);}(_0x579f,0xaf));const _0x70fb=function(_0x11e1f1,_0x579ffc){_0x11e1f1=_0x11e1f1-0x0;let _0x70fb20=_0x579f[_0x11e1f1];return _0x70fb20;};import{View as _0x1f15a7}from'ckeditor5/src/ui';import{toUnit as _0x36d901}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x36d901('px');export default class T extends _0x1f15a7{constructor(_0x31e823){super(_0x31e823);const _0x3ff583=this['bindTemplate'];this[_0x70fb('0x2')](_0x70fb('0x1'),0x0),this['set']('class',''),this[_0x70fb('0x6')]=this['createCollection'](),this[_0x70fb('0x5')]({'tag':'div','attributes':{'class':['ck',_0x70fb('0x4'),_0x70fb('0x0'),_0x3ff583['to'](_0x70fb('0x3'))],'style':{'minHeight':_0x3ff583['to'](_0x70fb('0x1'),_0x1faa42=>'number'==typeof _0x1faa42?At(_0x1faa42+0xa):null)}},'children':this[_0x70fb('0x6')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47a9=['hasDomSelection','set:container','get','getOrderedSelectedAnnotations','updateTargetRect','set','refreshPositioning','stopListening','blur','editors','_destroyEditorAnnotationsIntegration','resize','isAttached','_integrateWithEditorAnnotations','_annotations','stop','activeAnnotation','listenTo','from','setActiveAnnotation','cancel','rearrange','removeEventListener','plugins','ck-sidebar--wide','annotations','WideSidebar','remove','requires','focus','_refreshPositioningDebounced','addAnnotation','add','_editorAnnotations','attach','EditorAnnotations','wideSidebar','widesidebar-attach-already-attached','refresh','context','off','_activeAnnotation','uiUpdate','register','detach','container','high','ready'];(function(_0x3f612d,_0x47a937){const _0x185915=function(_0x469b18){while(--_0x469b18){_0x3f612d['push'](_0x3f612d['shift']());}};_0x185915(++_0x47a937);}(_0x47a9,0x16e));const _0x1859=function(_0x3f612d,_0x47a937){_0x3f612d=_0x3f612d-0x0;let _0x185915=_0x47a9[_0x3f612d];return _0x185915;};import{ContextPlugin as _0xec89e7,Context as _0x33f83b}from'ckeditor5/src/core';import _0x3de453 from'./annotationsuis';import _0x1a250a from'./sidebar';import{CKEditorError as _0x365a1e,Collection as _0x211758}from'ckeditor5/src/utils';import{debounce as _0xf29f2b}from'lodash-es';import _0x53c614 from'./editorannotations';export default class i extends _0xec89e7{static get[_0x1859('0x2e')](){return[_0x1a250a,_0x3de453];}static get['pluginName'](){return _0x1859('0x2c');}constructor(_0x19d96a){super(_0x19d96a),this[_0x1859('0x1e')]=!0x1,this[_0x1859('0x17')](_0x1859('0x22'),null),this['annotations']=null,this[_0x1859('0x3')]=new _0x211758(),this[_0x1859('0x0')]=_0xf29f2b(()=>{this[_0x1859('0x2b')][_0x1859('0x18')]();},0xfa,{'leading':!0x1});}['init'](){const _0x5efc9c=this[_0x1859('0x9')][_0x1859('0x29')]['get'](_0x3de453),_0x26620b=this['context'][_0x1859('0x29')]['get'](_0x1a250a);_0x5efc9c[_0x1859('0xd')](_0x1859('0x6'),this),_0x26620b[_0x1859('0xf')]&&_0x5efc9c['switchTo'](_0x1859('0x6'));}[_0x1859('0x25')](_0x500ab8){if(_0x500ab8===this['activeAnnotation'])return;const _0x4765f6=this['context'][_0x1859('0x29')][_0x1859('0x14')](_0x1a250a);_0x4765f6[_0x1859('0xb')]=_0x500ab8;const _0x393bed=this[_0x1859('0x22')];this[_0x1859('0x22')]=_0x500ab8,_0x4765f6['refresh']({'blurredAnnotation':_0x393bed,'activatedAnnotation':this[_0x1859('0x22')]});}[_0x1859('0x4')](_0x1af58c){this['annotations']=_0x1af58c;const _0x478684=this[_0x1859('0x9')]['plugins'][_0x1859('0x14')](_0x1a250a);if(_0x478684[_0x1859('0x20')]=_0x1af58c,this['isAttached'])throw new _0x365a1e(_0x1859('0x7'),this);this['isAttached']=!0x0,this['listenTo'](_0x478684,_0x1859('0x13'),()=>{this[_0x1859('0xe')](),this[_0x1859('0x23')](_0x478684,'change:container',_0x278678=>{_0x278678[_0x1859('0xa')](),this[_0x1859('0x4')](_0x1af58c);});}),_0x478684['_attachToContainer']({'viewClass':_0x1859('0x2a')});const _0x563d1a=_0x28d66=>{_0x28d66[_0x1859('0x16')](),_0x478684[_0x1859('0x1')](_0x28d66);};for(const _0x5d46fa of _0x1af58c)_0x563d1a(_0x5d46fa);this['listenTo'](_0x1af58c,_0x1859('0x2'),(_0x3e3336,_0x206f48)=>{_0x563d1a(_0x206f48);}),this['listenTo'](_0x1af58c,_0x1859('0x2d'),(_0x360cdb,_0x1bd5b1,_0xf0fda6)=>{_0x478684[_0x1859('0x27')]({'removedAnnotation':_0x1bd5b1,'previousAnnotation':_0x1af58c[_0x1859('0x14')](_0xf0fda6-0x1),'nextAnnotation':_0x1af58c['get'](_0xf0fda6+0x1)}),_0x1bd5b1===this[_0x1859('0x22')]&&this[_0x1859('0x25')](null);},{'priority':_0x1859('0x10')}),this[_0x1859('0x23')](_0x1af58c,_0x1859('0x2f'),(_0x3d9ecc,_0x47e894)=>{this[_0x1859('0x25')](_0x47e894);}),this['listenTo'](_0x1af58c,_0x1859('0x1a'),()=>{this[_0x1859('0x25')](null);});const _0x4e74db=this['context']instanceof _0x33f83b?this['context'][_0x1859('0x1b')]:new _0x211758([this[_0x1859('0x9')]]);for(const _0x5f0a94 of _0x4e74db)this[_0x1859('0x1f')](_0x5f0a94);this[_0x1859('0x23')](_0x4e74db,_0x1859('0x2'),(_0x434197,_0x499b13)=>{this[_0x1859('0x23')](_0x499b13,_0x1859('0x11'),()=>{this['_integrateWithEditorAnnotations'](_0x499b13);});}),this[_0x1859('0x23')](_0x4e74db,_0x1859('0x2d'),(_0x1cd7f0,_0x288bd2)=>{_0x288bd2[_0x1859('0x29')]['has']('EditorAnnotations')&&this[_0x1859('0x1c')](_0x288bd2[_0x1859('0x29')][_0x1859('0x14')](_0x1859('0x5')));}),window['addEventListener'](_0x1859('0x1d'),this['_refreshPositioningDebounced']),this[_0x1859('0x2b')][_0x1859('0x18')]();}[_0x1859('0xe')](){if(!this['isAttached'])throw new _0x365a1e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1fb4f6=this[_0x1859('0x9')][_0x1859('0x29')][_0x1859('0x14')](_0x1a250a);_0x1fb4f6['_detachFromContainer'](this[_0x1859('0x2b')]),this[_0x1859('0x19')](_0x1fb4f6),this[_0x1859('0x19')](this['annotations']),this[_0x1859('0x9')]instanceof _0x33f83b&&this[_0x1859('0x19')](this[_0x1859('0x9')]['editors']);for(const _0x5e226f of Array[_0x1859('0x24')](this[_0x1859('0x3')]))this[_0x1859('0x1c')](_0x5e226f);window[_0x1859('0x28')](_0x1859('0x1d'),this['_refreshPositioningDebounced']),this[_0x1859('0x0')][_0x1859('0x26')](),this[_0x1859('0x22')]=null,this[_0x1859('0x1e')]=!0x1,this[_0x1859('0x2b')]=null;}['destroy'](){this['isAttached']&&this['detach']();}[_0x1859('0x1f')](_0x554d47){const _0xcddcb8=_0x554d47[_0x1859('0x29')][_0x1859('0x14')](_0x53c614);if(!_0xcddcb8)return;const _0x35ae0d=()=>{const _0x2a563e=_0xcddcb8[_0x1859('0x15')]({'annotations':this[_0x1859('0x2b')],'activeAnnotation':this['activeAnnotation']});this[_0x1859('0x25')](_0x2a563e[0x0]||null);};this['listenTo'](_0xcddcb8,_0x1859('0x8'),_0x35ae0d),this[_0x1859('0x23')](_0xcddcb8,'blur',(_0x2fa849,{isAnnotationTracked:_0x5353da})=>{this[_0x1859('0x22')]&&_0x5353da(this['activeAnnotation'])&&this[_0x1859('0x25')](null);}),this[_0x1859('0x23')](_0xcddcb8,_0x1859('0xc'),()=>{this[_0x1859('0x0')]();}),this[_0x1859('0x23')](this[_0x1859('0x2b')],'blur',_0x4c82b4=>{_0xcddcb8[_0x1859('0x12')]()&&(_0x35ae0d(),_0x4c82b4[_0x1859('0x21')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1859('0x2')](_0xcddcb8);}['_destroyEditorAnnotationsIntegration'](_0x3d359d){this['stopListening'](_0x3d359d),this[_0x1859('0x3')]['remove'](_0x3d359d);}}
23
+ const _0xa6d5=['refresh','_editorAnnotations','has','attach','WideSidebar','_destroyEditorAnnotationsIntegration','context','_annotations','_detachFromContainer','updateTargetRect','widesidebar-attach-already-attached','_refreshPositioningDebounced','removeEventListener','blur','listenTo','change:container','off','ready','stopListening','high','cancel','hasDomSelection','register','getOrderedSelectedAnnotations','remove','annotations','uiUpdate','container','get','detach','widesidebar-detach-not-attached','pluginName','init','EditorAnnotations','_attachToContainer','_integrateWithEditorAnnotations','activeAnnotation','rearrange','setActiveAnnotation','add','ck-sidebar--wide','focus','editors','addAnnotation','requires','refreshPositioning','resize','isAttached','plugins','wideSidebar'];(function(_0x50fd31,_0xa6d5da){const _0x20f84b=function(_0x42b1a6){while(--_0x42b1a6){_0x50fd31['push'](_0x50fd31['shift']());}};_0x20f84b(++_0xa6d5da);}(_0xa6d5,0x1b8));const _0x20f8=function(_0x50fd31,_0xa6d5da){_0x50fd31=_0x50fd31-0x0;let _0x20f84b=_0xa6d5[_0x50fd31];return _0x20f84b;};import{ContextPlugin as _0x159ae4,Context as _0x3e8f43}from'ckeditor5/src/core';import _0x41cff4 from'./annotationsuis';import _0x3db9e5 from'./sidebar';import{CKEditorError as _0xf70a61,Collection as _0x2d2b7c}from'ckeditor5/src/utils';import{debounce as _0xba5437}from'lodash-es';import _0x202b82 from'./editorannotations';export default class i extends _0x159ae4{static get[_0x20f8('0x4')](){return[_0x3db9e5,_0x41cff4];}static get[_0x20f8('0x29')](){return _0x20f8('0xe');}constructor(_0x11e39e){super(_0x11e39e),this['isAttached']=!0x1,this['set'](_0x20f8('0x2e'),null),this[_0x20f8('0x23')]=null,this['_editorAnnotations']=new _0x2d2b7c(),this['_refreshPositioningDebounced']=_0xba5437(()=>{this[_0x20f8('0x23')][_0x20f8('0x5')]();},0xfa,{'leading':!0x1});}[_0x20f8('0x2a')](){const _0x409ffd=this['context'][_0x20f8('0x8')][_0x20f8('0x26')](_0x41cff4),_0x145695=this[_0x20f8('0x10')][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);_0x409ffd[_0x20f8('0x20')](_0x20f8('0x9'),this),_0x145695[_0x20f8('0x25')]&&_0x409ffd['switchTo']('wideSidebar');}[_0x20f8('0x30')](_0x1f61a2){if(_0x1f61a2===this['activeAnnotation'])return;const _0x1571e4=this[_0x20f8('0x10')][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);_0x1571e4['_activeAnnotation']=_0x1f61a2;const _0x2e720a=this['activeAnnotation'];this[_0x20f8('0x2e')]=_0x1f61a2,_0x1571e4[_0x20f8('0xa')]({'blurredAnnotation':_0x2e720a,'activatedAnnotation':this[_0x20f8('0x2e')]});}[_0x20f8('0xd')](_0x2ab79f){this[_0x20f8('0x23')]=_0x2ab79f;const _0xfd3eaf=this['context'][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);if(_0xfd3eaf[_0x20f8('0x11')]=_0x2ab79f,this[_0x20f8('0x7')])throw new _0xf70a61(_0x20f8('0x14'),this);this[_0x20f8('0x7')]=!0x0,this['listenTo'](_0xfd3eaf,'set:container',()=>{this[_0x20f8('0x27')](),this['listenTo'](_0xfd3eaf,_0x20f8('0x19'),_0x350f25=>{_0x350f25[_0x20f8('0x1a')](),this[_0x20f8('0xd')](_0x2ab79f);});}),_0xfd3eaf[_0x20f8('0x2c')]({'viewClass':_0x20f8('0x0')});const _0x293be8=_0x7bc3e6=>{_0x7bc3e6[_0x20f8('0x13')](),_0xfd3eaf[_0x20f8('0x3')](_0x7bc3e6);};for(const _0x4b95f0 of _0x2ab79f)_0x293be8(_0x4b95f0);this[_0x20f8('0x18')](_0x2ab79f,_0x20f8('0x31'),(_0x36b669,_0x90ad4b)=>{_0x293be8(_0x90ad4b);}),this['listenTo'](_0x2ab79f,_0x20f8('0x22'),(_0x532741,_0x2d8bd2,_0x57515a)=>{_0xfd3eaf[_0x20f8('0x2f')]({'removedAnnotation':_0x2d8bd2,'previousAnnotation':_0x2ab79f[_0x20f8('0x26')](_0x57515a-0x1),'nextAnnotation':_0x2ab79f['get'](_0x57515a+0x1)}),_0x2d8bd2===this[_0x20f8('0x2e')]&&this[_0x20f8('0x30')](null);},{'priority':'high'}),this[_0x20f8('0x18')](_0x2ab79f,_0x20f8('0x1'),(_0xcd2599,_0x8cb290)=>{this[_0x20f8('0x30')](_0x8cb290);}),this[_0x20f8('0x18')](_0x2ab79f,'blur',()=>{this[_0x20f8('0x30')](null);});const _0x2cff92=this[_0x20f8('0x10')]instanceof _0x3e8f43?this[_0x20f8('0x10')][_0x20f8('0x2')]:new _0x2d2b7c([this[_0x20f8('0x10')]]);for(const _0x5cc99c of _0x2cff92)this[_0x20f8('0x2d')](_0x5cc99c);this[_0x20f8('0x18')](_0x2cff92,_0x20f8('0x31'),(_0x4a0229,_0x15adf2)=>{this['listenTo'](_0x15adf2,_0x20f8('0x1b'),()=>{this[_0x20f8('0x2d')](_0x15adf2);});}),this['listenTo'](_0x2cff92,'remove',(_0x1c2365,_0x4f0c2e)=>{_0x4f0c2e[_0x20f8('0x8')][_0x20f8('0xc')](_0x20f8('0x2b'))&&this['_destroyEditorAnnotationsIntegration'](_0x4f0c2e[_0x20f8('0x8')][_0x20f8('0x26')](_0x20f8('0x2b')));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this[_0x20f8('0x23')]['refreshPositioning']();}[_0x20f8('0x27')](){if(!this[_0x20f8('0x7')])throw new _0xf70a61(_0x20f8('0x28'),this);this[_0x20f8('0x30')](null);const _0x22a6a5=this[_0x20f8('0x10')][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);_0x22a6a5[_0x20f8('0x12')](this['annotations']),this[_0x20f8('0x1c')](_0x22a6a5),this['stopListening'](this[_0x20f8('0x23')]),this[_0x20f8('0x10')]instanceof _0x3e8f43&&this[_0x20f8('0x1c')](this[_0x20f8('0x10')]['editors']);for(const _0x1ea203 of Array['from'](this[_0x20f8('0xb')]))this['_destroyEditorAnnotationsIntegration'](_0x1ea203);window[_0x20f8('0x16')](_0x20f8('0x6'),this[_0x20f8('0x15')]),this['_refreshPositioningDebounced'][_0x20f8('0x1e')](),this[_0x20f8('0x2e')]=null,this['isAttached']=!0x1,this[_0x20f8('0x23')]=null;}['destroy'](){this[_0x20f8('0x7')]&&this[_0x20f8('0x27')]();}[_0x20f8('0x2d')](_0x543a01){const _0x89fb3=_0x543a01['plugins'][_0x20f8('0x26')](_0x202b82);if(!_0x89fb3)return;const _0x2e1ee3=()=>{const _0xced747=_0x89fb3[_0x20f8('0x21')]({'annotations':this[_0x20f8('0x23')],'activeAnnotation':this[_0x20f8('0x2e')]});this[_0x20f8('0x30')](_0xced747[0x0]||null);};this[_0x20f8('0x18')](_0x89fb3,_0x20f8('0xa'),_0x2e1ee3),this[_0x20f8('0x18')](_0x89fb3,_0x20f8('0x17'),(_0x12754a,{isAnnotationTracked:_0x1cc215})=>{this[_0x20f8('0x2e')]&&_0x1cc215(this[_0x20f8('0x2e')])&&this[_0x20f8('0x30')](null);}),this[_0x20f8('0x18')](_0x89fb3,_0x20f8('0x24'),()=>{this[_0x20f8('0x15')]();}),this[_0x20f8('0x18')](this[_0x20f8('0x23')],_0x20f8('0x17'),_0x2ece85=>{_0x89fb3[_0x20f8('0x1f')]()&&(_0x2e1ee3(),_0x2ece85['stop']());},{'priority':_0x20f8('0x1d')}),this[_0x20f8('0xb')][_0x20f8('0x31')](_0x89fb3);}[_0x20f8('0xf')](_0x564139){this[_0x20f8('0x1c')](_0x564139),this[_0x20f8('0xb')][_0x20f8('0x22')](_0x564139);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25d8=['end','_hasContent','_trimToContent','backward','model','isObject','$textProxy','editor','execute','comment:','_itemIsContent','isEnabled','getRanges','tableCell','refresh','getLastMatchingPosition','item','document','addMarker'];(function(_0x5ce29c,_0x25d862){const _0x195879=function(_0x2bb008){while(--_0x2bb008){_0x5ce29c['push'](_0x5ce29c['shift']());}};_0x195879(++_0x25d862);}(_0x25d8,0x1ea));const _0x1958=function(_0x5ce29c,_0x25d862){_0x5ce29c=_0x5ce29c-0x0;let _0x195879=_0x25d8[_0x5ce29c];return _0x195879;};import{Command as _0x592141}from'ckeditor5/src/core';import{uid as _0x6b055f}from'ckeditor5/src/utils';export default class q extends _0x592141{[_0x1958('0x12')](){const _0x3fc08b=this[_0x1958('0xb')][_0x1958('0x8')]['document']['selection'];for(const _0x20ac80 of _0x3fc08b[_0x1958('0x10')]())if(this['_hasContent'](_0x20ac80))return void(this[_0x1958('0xf')]=!0x0);this[_0x1958('0xf')]=!0x1;}[_0x1958('0xc')]({threadId:_0x9aeb35=_0x6b055f()}={}){const _0x1c1410=this['editor'][_0x1958('0x8')],_0x57b07a=[];for(const _0x4da6f8 of _0x1c1410[_0x1958('0x2')]['selection'][_0x1958('0x10')]())this['_hasContent'](_0x4da6f8)&&_0x57b07a['push'](this[_0x1958('0x6')](_0x4da6f8));_0x1c1410['change'](_0xe3a36b=>{for(const _0x3e6c10 of _0x57b07a){const _0x54390a=_0x6b055f()['substr'](0x1,0x5),_0x5a49a0=_0x1958('0xd')+_0x9aeb35+':'+_0x54390a;_0xe3a36b[_0x1958('0x3')](_0x5a49a0,{'range':_0x3e6c10,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1958('0x5')](_0x392565){for(const _0x504520 of _0x392565['getItems']())if(this['_itemIsContent'](_0x504520))return!0x0;return!0x1;}[_0x1958('0xe')](_0x2babf5){return _0x2babf5['is'](_0x1958('0xa'))||this[_0x1958('0xb')][_0x1958('0x8')]['schema'][_0x1958('0x9')](_0x2babf5)&&!_0x2babf5['is']('element',_0x1958('0x11'));}[_0x1958('0x6')](_0x24ff75){const _0x333476=_0x50ec21=>!this['_itemIsContent'](_0x50ec21[_0x1958('0x1')]),_0x3ae63d=_0x24ff75['start'][_0x1958('0x0')](_0x333476),_0x5dd9d0=_0x24ff75[_0x1958('0x4')]['getLastMatchingPosition'](_0x333476,{'direction':_0x1958('0x7')});return this[_0x1958('0xb')]['model']['createRange'](_0x3ae63d,_0x5dd9d0);}}
23
+ const _0x1e4f=['getRanges','addMarker','refresh','model','getItems','editor','_hasContent','change','_itemIsContent','substr','createRange','_trimToContent','document','backward','push','selection','end','tableCell','isObject','execute','item','getLastMatchingPosition','comment:','$textProxy','isEnabled'];(function(_0x11ff26,_0x1e4f01){const _0x151baa=function(_0x474504){while(--_0x474504){_0x11ff26['push'](_0x11ff26['shift']());}};_0x151baa(++_0x1e4f01);}(_0x1e4f,0xaf));const _0x151b=function(_0x11ff26,_0x1e4f01){_0x11ff26=_0x11ff26-0x0;let _0x151baa=_0x1e4f[_0x11ff26];return _0x151baa;};import{Command as _0x827c57}from'ckeditor5/src/core';import{uid as _0xa84477}from'ckeditor5/src/utils';export default class q extends _0x827c57{[_0x151b('0x2')](){const _0x5b6af8=this[_0x151b('0x5')][_0x151b('0x3')][_0x151b('0xc')][_0x151b('0xf')];for(const _0x1a4218 of _0x5b6af8[_0x151b('0x0')]())if(this[_0x151b('0x6')](_0x1a4218))return void(this[_0x151b('0x18')]=!0x0);this[_0x151b('0x18')]=!0x1;}[_0x151b('0x13')]({threadId:_0x281f36=_0xa84477()}={}){const _0x3afde5=this['editor'][_0x151b('0x3')],_0x21078d=[];for(const _0x4c1fce of _0x3afde5[_0x151b('0xc')][_0x151b('0xf')]['getRanges']())this[_0x151b('0x6')](_0x4c1fce)&&_0x21078d[_0x151b('0xe')](this[_0x151b('0xb')](_0x4c1fce));_0x3afde5[_0x151b('0x7')](_0x4db73c=>{for(const _0x476f29 of _0x21078d){const _0x59e92f=_0xa84477()[_0x151b('0x9')](0x1,0x5),_0x36c64b=_0x151b('0x16')+_0x281f36+':'+_0x59e92f;_0x4db73c[_0x151b('0x1')](_0x36c64b,{'range':_0x476f29,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x151b('0x6')](_0xb3407d){for(const _0x1a8b91 of _0xb3407d[_0x151b('0x4')]())if(this[_0x151b('0x8')](_0x1a8b91))return!0x0;return!0x1;}[_0x151b('0x8')](_0x5f1a25){return _0x5f1a25['is'](_0x151b('0x17'))||this['editor'][_0x151b('0x3')]['schema'][_0x151b('0x12')](_0x5f1a25)&&!_0x5f1a25['is']('element',_0x151b('0x11'));}['_trimToContent'](_0x49e819){const _0x5477c9=_0x2454c5=>!this[_0x151b('0x8')](_0x2454c5[_0x151b('0x14')]),_0x8fa242=_0x49e819['start']['getLastMatchingPosition'](_0x5477c9),_0x589eb0=_0x49e819[_0x151b('0x10')][_0x151b('0x15')](_0x5477c9,{'direction':_0x151b('0xd')});return this[_0x151b('0x5')]['model'][_0x151b('0xa')](_0x8fa242,_0x589eb0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3348=['requires','listenTo','resolvedThreads','plugins','context','resolvedAt','collection','findIndex','getCommentThread','highest','reopenCommentThread','add','focus','_calculatePosition','init','remove','get','pluginName','isActive','resolveCommentThread','length','removeCommentThread','has'];(function(_0x3c9bd3,_0x334886){const _0x319f19=function(_0x5244e8){while(--_0x5244e8){_0x3c9bd3['push'](_0x3c9bd3['shift']());}};_0x319f19(++_0x334886);}(_0x3348,0x162));const _0x319f=function(_0x3c9bd3,_0x334886){_0x3c9bd3=_0x3c9bd3-0x0;let _0x319f19=_0x3348[_0x3c9bd3];return _0x319f19;};import{ContextPlugin as _0x1367be}from'ckeditor5/src/core';import{Collection as _0x303a05}from'ckeditor5/src/utils';import _0x1374d0 from'./commentsrepository';import _0x5017d9 from'../annotations/annotations';export default class p extends _0x1367be{static get[_0x319f('0x8')](){return'CommentsArchive';}static get[_0x319f('0xe')](){return[_0x1374d0,_0x5017d9];}constructor(_0x2b0b6b){super(_0x2b0b6b),this[_0x319f('0x10')]=new _0x303a05();}[_0x319f('0x5')](){const _0x227748=this[_0x319f('0x12')],_0x31c05e=_0x227748[_0x319f('0x11')][_0x319f('0x7')](_0x1374d0),_0x2dcd4e=_0x227748[_0x319f('0x11')][_0x319f('0x7')](_0x5017d9);this[_0x319f('0xf')](_0x31c05e,'addCommentThread',(_0x11fbf5,{threadId:_0x599eac,resolvedAt:_0x5acf41,deletedAt:_0x2e5b22})=>{if(_0x5acf41&&!_0x2e5b22){const _0x1486db=_0x31c05e['getCommentThread'](_0x599eac);this['resolvedThreads'][_0x319f('0x2')](_0x1486db,this[_0x319f('0x4')](_0x5acf41));}}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0xa'),(_0x196a8e,{threadId:_0x19abb6,resolvedAt:_0x27de6c})=>{const _0x58eef3=_0x31c05e['getCommentThread'](_0x19abb6);this['resolvedThreads'][_0x319f('0x2')](_0x58eef3,this[_0x319f('0x4')](_0x27de6c));},{'priority':_0x319f('0x0')}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0x1'),(_0x355232,{threadId:_0x18385d})=>{const _0x3c90fb=_0x31c05e[_0x319f('0x16')](_0x18385d);this[_0x319f('0x10')][_0x319f('0xd')](_0x3c90fb)&&this['resolvedThreads']['remove'](_0x3c90fb);},{'priority':_0x319f('0x0')}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0xc'),(_0x2dc070,{threadId:_0x49f5b0})=>{const _0x4cef81=_0x31c05e[_0x319f('0x16')](_0x49f5b0);this[_0x319f('0x10')][_0x319f('0xd')](_0x4cef81)&&this[_0x319f('0x10')][_0x319f('0x6')](_0x4cef81);},{'priority':_0x319f('0x0')}),this['listenTo'](_0x2dcd4e[_0x319f('0x14')],_0x319f('0x3'),(_0x1350c2,_0x25546f)=>{_0x25546f[_0x319f('0x9')]=!0x0,_0x2dcd4e['activate'](_0x25546f);});}[_0x319f('0x4')](_0x1ac3f7){const _0x2d73d9=[...this[_0x319f('0x10')]][_0x319f('0x15')](_0x4d10a5=>_0x4d10a5[_0x319f('0x13')]<_0x1ac3f7);return _0x2d73d9>-0x1?_0x2d73d9:this[_0x319f('0x10')][_0x319f('0xb')];}}
23
+ const _0x234c=['resolvedAt','addCommentThread','remove','length','init','resolveCommentThread','resolvedThreads','findIndex','reopenCommentThread','get','removeCommentThread','activate','context','has','CommentsArchive','collection','requires','getCommentThread','add','focus','pluginName','_calculatePosition','plugins','listenTo','highest'];(function(_0x1f16ab,_0x234c9c){const _0xa7a8a9=function(_0x403376){while(--_0x403376){_0x1f16ab['push'](_0x1f16ab['shift']());}};_0xa7a8a9(++_0x234c9c);}(_0x234c,0xe6));const _0xa7a8=function(_0x1f16ab,_0x234c9c){_0x1f16ab=_0x1f16ab-0x0;let _0xa7a8a9=_0x234c[_0x1f16ab];return _0xa7a8a9;};import{ContextPlugin as _0x9cc45f}from'ckeditor5/src/core';import{Collection as _0x579727}from'ckeditor5/src/utils';import _0x24e55a from'./commentsrepository';import _0x281801 from'../annotations/annotations';export default class p extends _0x9cc45f{static get[_0xa7a8('0xf')](){return _0xa7a8('0x9');}static get[_0xa7a8('0xb')](){return[_0x24e55a,_0x281801];}constructor(_0xa2e6f8){super(_0xa2e6f8),this['resolvedThreads']=new _0x579727();}[_0xa7a8('0x18')](){const _0x1261bf=this[_0xa7a8('0x7')],_0x54481f=_0x1261bf['plugins']['get'](_0x24e55a),_0x14aab3=_0x1261bf[_0xa7a8('0x11')][_0xa7a8('0x4')](_0x281801);this[_0xa7a8('0x12')](_0x54481f,_0xa7a8('0x15'),(_0x34f6e1,{threadId:_0x191cb1,resolvedAt:_0x1545c6,deletedAt:_0x249468})=>{if(_0x1545c6&&!_0x249468){const _0x128be3=_0x54481f[_0xa7a8('0xc')](_0x191cb1);this[_0xa7a8('0x1')]['add'](_0x128be3,this[_0xa7a8('0x10')](_0x1545c6));}}),this[_0xa7a8('0x12')](_0x54481f,_0xa7a8('0x0'),(_0x2a4b3a,{threadId:_0xca1886,resolvedAt:_0x4f90c8})=>{const _0x1577be=_0x54481f['getCommentThread'](_0xca1886);this['resolvedThreads'][_0xa7a8('0xd')](_0x1577be,this[_0xa7a8('0x10')](_0x4f90c8));},{'priority':_0xa7a8('0x13')}),this['listenTo'](_0x54481f,_0xa7a8('0x3'),(_0x511556,{threadId:_0x17dfc4})=>{const _0x5d05e6=_0x54481f[_0xa7a8('0xc')](_0x17dfc4);this[_0xa7a8('0x1')][_0xa7a8('0x8')](_0x5d05e6)&&this[_0xa7a8('0x1')][_0xa7a8('0x16')](_0x5d05e6);},{'priority':_0xa7a8('0x13')}),this[_0xa7a8('0x12')](_0x54481f,_0xa7a8('0x5'),(_0x334761,{threadId:_0x556537})=>{const _0x378577=_0x54481f[_0xa7a8('0xc')](_0x556537);this['resolvedThreads'][_0xa7a8('0x8')](_0x378577)&&this[_0xa7a8('0x1')][_0xa7a8('0x16')](_0x378577);},{'priority':'highest'}),this[_0xa7a8('0x12')](_0x14aab3[_0xa7a8('0xa')],_0xa7a8('0xe'),(_0x1b836a,_0x513bd6)=>{_0x513bd6['isActive']=!0x0,_0x14aab3[_0xa7a8('0x6')](_0x513bd6);});}['_calculatePosition'](_0x5493c7){const _0x31df90=[...this[_0xa7a8('0x1')]][_0xa7a8('0x2')](_0x3cc03d=>_0x3cc03d[_0xa7a8('0x14')]<_0x5493c7);return _0x31df90>-0x1?_0x31df90:this[_0xa7a8('0x1')][_0xa7a8('0x17')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3932=['indexOf','_calculatePosition','mainView','classList','editor','locale','commentsArchiveView','extendTemplate','get','focusTracker','CommentsRepository','stopListening','annotationViews','set','push','_threadToController','requires','findIndex','buttonView','isVisible','length','getByInnerView','COMMENTS_ARCHIVE','children','ck-comments-archive-dropdown','innerView','pluginName','plugins','panelView','_handleAnnotationFocusableElements','_pendingThreads','remove','collaboration.channelId','ck-body','channelId','_createArchiveUIDropdown','collection','find','config','contains','_visibleAnnotations','componentFactory','resolvedThreads','position','view','CommentsArchiveUI','listenTo','resolvedAt','focusableElements','add'];(function(_0x1798a5,_0x39322d){const _0x25341c=function(_0x377f5e){while(--_0x377f5e){_0x1798a5['push'](_0x1798a5['shift']());}};_0x25341c(++_0x39322d);}(_0x3932,0xc7));const _0x2534=function(_0x1798a5,_0x39322d){_0x1798a5=_0x1798a5-0x0;let _0x25341c=_0x3932[_0x1798a5];return _0x25341c;};import'../../theme/commentsarchive.css';import{Plugin as _0x3f5a38}from'ckeditor5/src/core';import{createDropdown as _0x27dc41,ViewCollection as _0x4178a0}from'ckeditor5/src/ui';import _0x28ecf2 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x351c73}from'../utils/common-translations';import _0x140eea from'./ui/view/commentsarchiveview';import _0x3cef1a from'./commentsarchive';export default class a extends _0x3f5a38{static get[_0x2534('0x1b')](){return _0x2534('0x2e');}static get[_0x2534('0x11')](){return[_0x3cef1a];}constructor(_0x16410a){super(_0x16410a),this[_0x2534('0xd')]=new _0x4178a0(),this[_0x2534('0x1f')]=[];}['init'](){this[_0x2534('0x5')]['ui'][_0x2534('0x2a')][_0x2534('0x0')]('commentsArchive',()=>this[_0x2534('0x24')]());const _0x488daf=this[_0x2534('0x5')][_0x2534('0x1c')][_0x2534('0x9')](_0x3cef1a),_0x2aae15=this['editor']['plugins'][_0x2534('0x9')]('Annotations'),_0x28171c=this[_0x2534('0x5')][_0x2534('0x1c')][_0x2534('0x9')](_0x2534('0xb'));this[_0x2534('0x2f')](_0x488daf[_0x2534('0x2b')],_0x2534('0x0'),(_0x2836b6,_0x39ef72)=>{const _0x19a719=this['editor'][_0x2534('0x27')][_0x2534('0x9')](_0x2534('0x21'));if(!_0x19a719||_0x39ef72[_0x2534('0x23')]===_0x19a719){const _0x2f98e9=this['_calculatePosition'](_0x39ef72[_0x2534('0x30')]),_0x4ba762=_0x28171c[_0x2534('0x10')][_0x2534('0x9')](_0x39ef72);if(!_0x4ba762)return void this['_pendingThreads'][_0x2534('0xf')]({'thread':_0x39ef72,'position':_0x2f98e9});const _0x56db3b=_0x2aae15['getByInnerView'](_0x4ba762[_0x2534('0x2d')]);_0x56db3b[_0x2534('0x14')]&&_0x2aae15[_0x2534('0x29')]['remove'](_0x56db3b),this[_0x2534('0xd')][_0x2534('0x0')](_0x56db3b[_0x2534('0x2d')],_0x2f98e9);}}),this[_0x2534('0x2f')](_0x2aae15[_0x2534('0x25')],_0x2534('0x0'),(_0x2fcb32,_0x1a8f86)=>{const _0x5b3ada=this[_0x2534('0x1f')][_0x2534('0x26')](({thread:_0x2499f1})=>{const _0x1bee61=_0x28171c[_0x2534('0x10')][_0x2534('0x9')](_0x2499f1);return _0x1bee61&&_0x1a8f86[_0x2534('0x1a')]===_0x1bee61[_0x2534('0x2d')];});_0x5b3ada&&(this['annotationViews'][_0x2534('0x0')](_0x1a8f86[_0x2534('0x2d')],_0x5b3ada[_0x2534('0x2c')]),this[_0x2534('0x1f')]['splice'](this['_pendingThreads'][_0x2534('0x1')](_0x5b3ada),0x1));}),this[_0x2534('0x2f')](_0x488daf[_0x2534('0x2b')],_0x2534('0x20'),(_0x228514,_0x597974)=>{const _0x4c803a=this['editor'][_0x2534('0x27')][_0x2534('0x9')](_0x2534('0x21'));if(!_0x4c803a||_0x597974['channelId']===_0x4c803a){const _0xe92cf1=_0x28171c['_threadToController'][_0x2534('0x9')](_0x597974),_0x53f431=_0x2aae15['getByInnerView'](_0xe92cf1[_0x2534('0x2d')]);this[_0x2534('0xd')][_0x2534('0x20')](_0x53f431[_0x2534('0x2d')]),this[_0x2534('0xc')](_0x53f431[_0x2534('0x31')]);}});}[_0x2534('0x1e')](_0x28c552,_0x1dff77){for(const _0x40510c of _0x1dff77[_0x2534('0x31')])_0x40510c[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x28c552[_0x2534('0xa')][_0x2534('0x0')](_0x40510c);this[_0x2534('0x2f')](_0x1dff77['focusableElements'],_0x2534('0x0'),(_0x39916d,_0x5dbe1d)=>{_0x5dbe1d[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x28c552[_0x2534('0xa')][_0x2534('0x0')](_0x5dbe1d);}),this[_0x2534('0x2f')](_0x1dff77['focusableElements'],_0x2534('0x20'),(_0x4501bf,_0xde4e57)=>{_0xde4e57['classList']['contains']('ck-body')&&_0x28c552['focusTracker']['remove'](_0xde4e57);});}[_0x2534('0x2')](_0x557c35){const _0x5306bb=this[_0x2534('0x5')]['config']['get']('collaboration.channelId'),_0x18f000=[...this['editor']['plugins'][_0x2534('0x9')](_0x3cef1a)[_0x2534('0x2b')]]['filter'](_0x547223=>_0x547223[_0x2534('0x23')]!==_0x5306bb)[_0x2534('0x12')](_0x5bd359=>_0x5bd359[_0x2534('0x30')]<_0x557c35);return _0x18f000>-0x1?_0x18f000:this[_0x2534('0xd')][_0x2534('0x15')];}['_createArchiveUIDropdown'](){const _0x3d84e4=this[_0x2534('0x5')],_0x444ac0=this['editor'][_0x2534('0x1c')][_0x2534('0x9')]('Annotations'),_0x1ac342=_0x27dc41(_0x3d84e4[_0x2534('0x6')]);_0x1ac342[_0x2534('0x13')][_0x2534('0xe')]({'icon':_0x28ecf2,'label':_0x351c73(_0x3d84e4[_0x2534('0x6')],_0x2534('0x17')),'tooltip':!0x0}),_0x1ac342[_0x2534('0x1d')][_0x2534('0x8')]({'attributes':{'class':_0x2534('0x19')}}),_0x1ac342['on']('change:isOpen',(_0x3adc63,_0x3a1fac,_0x818652)=>{this['commentsArchiveView']||(this[_0x2534('0x7')]=new _0x140eea(_0x3d84e4[_0x2534('0x6')],this[_0x2534('0xd')])),_0x818652?_0x1ac342[_0x2534('0x1d')][_0x2534('0x18')][_0x2534('0x0')](this['commentsArchiveView']):_0x1ac342[_0x2534('0x1d')][_0x2534('0x18')][_0x2534('0x20')](this[_0x2534('0x7')]);});for(const _0x330e3f of this['annotationViews']){const _0x502f5b=_0x444ac0[_0x2534('0x16')](_0x330e3f[_0x2534('0x3')]);this[_0x2534('0x1e')](_0x1ac342,_0x502f5b);}return _0x1ac342[_0x2534('0x2f')](this[_0x2534('0xd')],_0x2534('0x0'),(_0x4692ed,_0x406713)=>{const _0x5165f3=_0x444ac0[_0x2534('0x16')](_0x406713[_0x2534('0x3')]);this['_handleAnnotationFocusableElements'](_0x1ac342,_0x5165f3);}),_0x1ac342[_0x2534('0x2f')](this[_0x2534('0xd')],_0x2534('0x20'),(_0x318cae,_0x16c940)=>{const _0x587c39=_0x444ac0['getByInnerView'](_0x16c940[_0x2534('0x3')]);for(const _0x15e241 of _0x587c39['focusableElements'])_0x15e241[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x1ac342[_0x2534('0xa')][_0x2534('0x20')](_0x15e241);}),_0x1ac342;}}
23
+ const _0x3243=['pluginName','_createArchiveUIDropdown','resolvedThreads','classList','locale','CommentsArchiveUI','contains','requires','focusTracker','commentsArchive','editor','config','change:isOpen','focusableElements','splice','_visibleAnnotations','extendTemplate','isVisible','ck-body','_calculatePosition','buttonView','remove','componentFactory','position','innerView','indexOf','_handleAnnotationFocusableElements','plugins','find','_threadToController','commentsArchiveView','resolvedAt','listenTo','collaboration.channelId','findIndex','COMMENTS_ARCHIVE','collection','stopListening','annotationViews','view','panelView','channelId','_pendingThreads','getByInnerView','add','get','CommentsRepository','mainView'];(function(_0x34c131,_0x3243a6){const _0x5617ee=function(_0x2a7a3d){while(--_0x2a7a3d){_0x34c131['push'](_0x34c131['shift']());}};_0x5617ee(++_0x3243a6);}(_0x3243,0x141));const _0x5617=function(_0x34c131,_0x3243a6){_0x34c131=_0x34c131-0x0;let _0x5617ee=_0x3243[_0x34c131];return _0x5617ee;};import'../../theme/commentsarchive.css';import{Plugin as _0x10e993}from'ckeditor5/src/core';import{createDropdown as _0x488389,ViewCollection as _0x37b7c1}from'ckeditor5/src/ui';import _0x918d97 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x1ca012}from'../utils/common-translations';import _0x5aa8ad from'./ui/view/commentsarchiveview';import _0x34d54a from'./commentsarchive';export default class a extends _0x10e993{static get[_0x5617('0xf')](){return _0x5617('0x14');}static get[_0x5617('0x16')](){return[_0x34d54a];}constructor(_0x28bfac){super(_0x28bfac),this[_0x5617('0x5')]=new _0x37b7c1(),this[_0x5617('0x9')]=[];}['init'](){this[_0x5617('0x19')]['ui'][_0x5617('0x25')][_0x5617('0xb')](_0x5617('0x18'),()=>this[_0x5617('0x10')]());const _0xf85303=this[_0x5617('0x19')][_0x5617('0x2a')]['get'](_0x34d54a),_0x318ce5=this[_0x5617('0x19')]['plugins'][_0x5617('0xc')]('Annotations'),_0x2528ff=this[_0x5617('0x19')][_0x5617('0x2a')]['get'](_0x5617('0xd'));this[_0x5617('0x2f')](_0xf85303[_0x5617('0x11')],'add',(_0x390240,_0xaa123f)=>{const _0x42da26=this[_0x5617('0x19')]['config'][_0x5617('0xc')](_0x5617('0x0'));if(!_0x42da26||_0xaa123f[_0x5617('0x8')]===_0x42da26){const _0x5bff98=this[_0x5617('0x22')](_0xaa123f[_0x5617('0x2e')]),_0x3da8ad=_0x2528ff[_0x5617('0x2c')][_0x5617('0xc')](_0xaa123f);if(!_0x3da8ad)return void this[_0x5617('0x9')]['push']({'thread':_0xaa123f,'position':_0x5bff98});const _0x55cbb2=_0x318ce5[_0x5617('0xa')](_0x3da8ad[_0x5617('0x6')]);_0x55cbb2[_0x5617('0x20')]&&_0x318ce5[_0x5617('0x1e')][_0x5617('0x24')](_0x55cbb2),this[_0x5617('0x5')][_0x5617('0xb')](_0x55cbb2[_0x5617('0x6')],_0x5bff98);}}),this[_0x5617('0x2f')](_0x318ce5[_0x5617('0x3')],_0x5617('0xb'),(_0x524627,_0x186dd5)=>{const _0x3de269=this['_pendingThreads'][_0x5617('0x2b')](({thread:_0x3b03e6})=>{const _0x27321d=_0x2528ff[_0x5617('0x2c')]['get'](_0x3b03e6);return _0x27321d&&_0x186dd5[_0x5617('0x27')]===_0x27321d[_0x5617('0x6')];});_0x3de269&&(this[_0x5617('0x5')][_0x5617('0xb')](_0x186dd5['view'],_0x3de269[_0x5617('0x26')]),this[_0x5617('0x9')][_0x5617('0x1d')](this['_pendingThreads'][_0x5617('0x28')](_0x3de269),0x1));}),this[_0x5617('0x2f')](_0xf85303['resolvedThreads'],_0x5617('0x24'),(_0xea5397,_0x231de0)=>{const _0x425916=this[_0x5617('0x19')][_0x5617('0x1a')]['get'](_0x5617('0x0'));if(!_0x425916||_0x231de0[_0x5617('0x8')]===_0x425916){const _0x2cfa55=_0x2528ff['_threadToController']['get'](_0x231de0),_0x5f424a=_0x318ce5[_0x5617('0xa')](_0x2cfa55[_0x5617('0x6')]);this[_0x5617('0x5')]['remove'](_0x5f424a['view']),this[_0x5617('0x4')](_0x5f424a[_0x5617('0x1c')]);}});}[_0x5617('0x29')](_0x4d9887,_0x3956e0){for(const _0x6765ba of _0x3956e0[_0x5617('0x1c')])_0x6765ba[_0x5617('0x12')][_0x5617('0x15')](_0x5617('0x21'))&&_0x4d9887['focusTracker']['add'](_0x6765ba);this[_0x5617('0x2f')](_0x3956e0[_0x5617('0x1c')],_0x5617('0xb'),(_0xdbac2d,_0x23c6f5)=>{_0x23c6f5[_0x5617('0x12')][_0x5617('0x15')](_0x5617('0x21'))&&_0x4d9887[_0x5617('0x17')]['add'](_0x23c6f5);}),this['listenTo'](_0x3956e0[_0x5617('0x1c')],_0x5617('0x24'),(_0x2ef031,_0x37e97b)=>{_0x37e97b[_0x5617('0x12')][_0x5617('0x15')](_0x5617('0x21'))&&_0x4d9887[_0x5617('0x17')][_0x5617('0x24')](_0x37e97b);});}[_0x5617('0x22')](_0x2d0d28){const _0x362490=this['editor'][_0x5617('0x1a')]['get'](_0x5617('0x0')),_0x26e737=[...this[_0x5617('0x19')][_0x5617('0x2a')][_0x5617('0xc')](_0x34d54a)[_0x5617('0x11')]]['filter'](_0x64960b=>_0x64960b[_0x5617('0x8')]!==_0x362490)[_0x5617('0x1')](_0x589b36=>_0x589b36[_0x5617('0x2e')]<_0x2d0d28);return _0x26e737>-0x1?_0x26e737:this[_0x5617('0x5')]['length'];}[_0x5617('0x10')](){const _0x1d7b97=this['editor'],_0x3f7e67=this[_0x5617('0x19')][_0x5617('0x2a')][_0x5617('0xc')]('Annotations'),_0xc540ce=_0x488389(_0x1d7b97[_0x5617('0x13')]);_0xc540ce[_0x5617('0x23')]['set']({'icon':_0x918d97,'label':_0x1ca012(_0x1d7b97[_0x5617('0x13')],_0x5617('0x2')),'tooltip':!0x0}),_0xc540ce[_0x5617('0x7')][_0x5617('0x1f')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0xc540ce['on'](_0x5617('0x1b'),(_0x381087,_0x270614,_0x1ee92d)=>{this[_0x5617('0x2d')]||(this[_0x5617('0x2d')]=new _0x5aa8ad(_0x1d7b97[_0x5617('0x13')],this[_0x5617('0x5')])),_0x1ee92d?_0xc540ce[_0x5617('0x7')]['children'][_0x5617('0xb')](this[_0x5617('0x2d')]):_0xc540ce[_0x5617('0x7')]['children'][_0x5617('0x24')](this[_0x5617('0x2d')]);});for(const _0x233947 of this[_0x5617('0x5')]){const _0x2e2e16=_0x3f7e67[_0x5617('0xa')](_0x233947[_0x5617('0xe')]);this['_handleAnnotationFocusableElements'](_0xc540ce,_0x2e2e16);}return _0xc540ce[_0x5617('0x2f')](this['annotationViews'],_0x5617('0xb'),(_0x5d6968,_0x4aad22)=>{const _0xe43bb1=_0x3f7e67[_0x5617('0xa')](_0x4aad22['mainView']);this[_0x5617('0x29')](_0xc540ce,_0xe43bb1);}),_0xc540ce[_0x5617('0x2f')](this['annotationViews'],_0x5617('0x24'),(_0x1e16c3,_0x37650a)=>{const _0x2c600f=_0x3f7e67['getByInnerView'](_0x37650a[_0x5617('0xe')]);for(const _0x2dc065 of _0x2c600f['focusableElements'])_0x2dc065[_0x5617('0x12')]['contains'](_0x5617('0x21'))&&_0xc540ce[_0x5617('0x17')]['remove'](_0x2dc065);}),_0xc540ce;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f0e=['start','pluginName','_handleMarkerAddAndRemove','$marker','has','activeMarker','hasDomSelection','_threads','_attachedThreads','hasMarkerForId','isEqual','refreshVisibility','consumable','markers','registerPostFixer','from','size','data','_initializeMarkerConverters','end','addCommentThread','map','reconvertMarker','ck-comment-marker','for','state','destroyed','substring','_autoResolvedThreads','conversion','reopenCommentThread','ready','setContext','render','focus','item','_detachCommentThread','document','rootName','addComment','add','once','resolve','high','attachTo','_getTargetForId','removeCommentThread','config','removeMarker:','isThreadsLoadingPaused','registerAnnotation','markerToHighlight','context','upcast','isCollapsed','clear','isResolved','destroy','_handleThreadMarker','change:isReadOnly','$textProxy','scrollToThreadMarker','hasCommentThread','getWalker','_reconvertMarkers','listenTo','getCommentThread','set','createElement','low','ck-comment-marker--active','getAllMarkersForId','model','view','consume','comment','markerName','delete','switchReadOnly','addMarker:','commands','length','managedUsingOperations','getCommentThreads','change','schema','collaboration.channelId','_removedThread','getAttribute','removeMarker','init','editing','CommentsEditing','differ','_hasTargetInContent','newRange','ignoreResolvedComments','enqueueChange','_attachResolvedThread','editingDowncast','getByInnerView','push','plugins','root','_threadToController','editor','_getTextContext','getItems','change:activeMarker','then','text','updateMarker','resolveCommentThread','$graveyard','openNewCommentThread','requires','createPositionBefore','get'];(function(_0x65cdcc,_0x4f0e37){const _0x2be088=function(_0x23882b){while(--_0x23882b){_0x65cdcc['push'](_0x65cdcc['shift']());}};_0x2be088(++_0x4f0e37);}(_0x4f0e,0x7e));const _0x2be0=function(_0x65cdcc,_0x4f0e37){_0x65cdcc=_0x65cdcc-0x0;let _0x2be088=_0x4f0e[_0x65cdcc];return _0x2be088;};import{Plugin as _0xb1c932}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x203557}from'ckeditor5/src/utils';import _0x14340c from'./commentsrepository';import _0x5db15c from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x13b59d}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c6991 from'../annotations/editorannotations';import _0x541953 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x19346f from'./integrations/importword';import _0x514412 from'../annotations/annotations';export default class r extends _0xb1c932{static get[_0x2be0('0x6b')](){return[_0x14340c,_0x1c6991,_0x541953,_0x19346f];}static get[_0x2be0('0x6f')](){return _0x2be0('0x54');}constructor(_0x1ec3a1){super(_0x1ec3a1),this['_removedThread']=null,this[_0x2be0('0x14')]=new Set(),this[_0x2be0('0x3b')](_0x2be0('0x29'),!0x0),_0x1ec3a1[_0x2be0('0x9')][_0x2be0('0x21')](_0x2be0('0x17'),()=>this[_0x2be0('0x29')]=!0x1),this[_0x2be0('0x3b')]('activeMarker',null),this['on'](_0x2be0('0x64'),(_0x5a7a28,_0x507556,_0x3efcc8,_0x2c76c8)=>{const _0x2a8f6a=_0x3efcc8?tt(_0x3efcc8)['id']:null;if(_0x1ec3a1[_0x2be0('0x40')]['change'](()=>{if(_0x2a8f6a){const _0x3a331c=this['getAllMarkersForId'](_0x2a8f6a);for(const _0x55f685 of _0x3a331c)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x55f685);}if(_0x2c76c8){const {id:_0x4a7360}=tt(_0x2c76c8),_0x3aac46=this[_0x2be0('0x3f')](_0x4a7360);for(const _0x954880 of _0x3aac46)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x954880);}}),_0x2a8f6a){const _0x45c69f=_0x1ec3a1[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)['getCommentThread'](_0x2a8f6a);_0x45c69f&&_0x45c69f['isResolved']&&this[_0x2be0('0x35')](_0x2a8f6a);}}),this[_0x2be0('0x0')]=new Map();}[_0x2be0('0x52')](){const _0x1aa5a3=this[_0x2be0('0x61')],_0x309136=_0x1aa5a3[_0x2be0('0x5e')]['get'](_0x14340c),_0x68f2a2=_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e'));_0x1aa5a3[_0x2be0('0x48')][_0x2be0('0x20')](_0x2be0('0xc'),new _0x5db15c(_0x1aa5a3)),this[_0x2be0('0x39')](_0x1aa5a3,_0x2be0('0x33'),(_0x1eb8d0,_0x20533e,_0xd70650)=>{_0x309136[_0x2be0('0x46')](_0xd70650,_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e')));}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0xc'),_0x68f2a2),(_0x53b39a,{threadId:_0x51e386})=>{const _0x554043=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x51e386);_0x554043&&_0x554043[_0x2be0('0x30')]&&this[_0x2be0('0x5a')](_0x51e386);}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x26'),_0x68f2a2),(_0x4bd1ad,{threadId:_0x8d484c})=>{_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x287d2f=>{const _0x578d6a=this[_0x2be0('0x3f')](_0x8d484c);this[_0x2be0('0x0')]['delete'](_0x8d484c),this[_0x2be0('0x4f')]=_0x8d484c;for(const _0x329732 of _0x578d6a)_0x287d2f[_0x2be0('0x51')](_0x329732);}),this['_removedThread']=null;},{'priority':_0x2be0('0x23')}),this['listenTo'](_0x309136,Z(_0x2be0('0x68'),_0x68f2a2),(_0x334d28,{threadId:_0x3686bc})=>{this[_0x2be0('0x5a')](_0x3686bc),this[_0x2be0('0x38')](_0x3686bc),this[_0x2be0('0x61')]['editing'][_0x2be0('0x41')][_0x2be0('0x74')]&&this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x1a')]();},{'priority':_0x2be0('0x3d')}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x16'),_0x68f2a2),(_0x101495,{threadId:_0x2f800c})=>{this[_0x2be0('0x38')](_0x2f800c);},{'priority':_0x2be0('0x3d')}),this['listenTo'](_0x309136,Z(_0x2be0('0x1f'),_0x68f2a2),(_0x31adce,{threadId:_0x195a94,isFromAdapter:_0x377d78})=>{const _0x747388=this[_0x2be0('0x3f')](_0x195a94);if(_0x377d78||0x0==_0x747388[_0x2be0('0x49')]||!_0x309136[_0x2be0('0x36')](_0x195a94))return;0x1===_0x309136[_0x2be0('0x3a')](_0x195a94)[_0x2be0('0x49')]&&_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x4fb570=>{for(const _0x1d0293 of _0x747388)_0x4fb570[_0x2be0('0x67')](_0x1d0293,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2be0('0x3d')}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x2be0('0x31')](){const _0x4488b8=this['editor'][_0x2be0('0x5e')]['get'](_0x14340c),_0x3d358d=this[_0x2be0('0x61')][_0x2be0('0x27')][_0x2be0('0x6d')]('collaboration.channelId');for(const _0xcdf606 of _0x4488b8[_0x2be0('0x4b')]({'channelId':_0x3d358d}))_0x4488b8[_0x2be0('0x1c')](_0xcdf606['id']),_0x4488b8[_0x2be0('0x75')]['delete'](_0xcdf606['id']);super[_0x2be0('0x31')]();}[_0x2be0('0x1')](_0x1a5824){return this[_0x2be0('0x3f')](_0x1a5824)[_0x2be0('0x49')]>0x0;}['getAllMarkersForId'](_0x58ff78){return Array[_0x2be0('0x7')](this['_attachedThreads']['get'](_0x58ff78)||[])[_0x2be0('0xd')](_0x51be71=>this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x5')]['get'](_0x51be71))['filter'](_0x144240=>_0x144240);}[_0x2be0('0x35')](_0x223145){const _0x4bcce4=this[_0x2be0('0x25')](_0x223145);_0x4bcce4&&setTimeout(()=>{this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x223145&&_0x203557({'target':_0x4bcce4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2be0('0x38')](_0x4454f8){this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x4c')](()=>{for(const _0x7f6b8d of this[_0x2be0('0x3f')](_0x4454f8))this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0xe')](_0x7f6b8d);});}[_0x2be0('0x5a')](_0x491bb2){const _0x545b5a=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x5444d6=this[_0x2be0('0x61')]['plugins'][_0x2be0('0x6d')](_0x1c6991),_0x1a5d47=_0x545b5a['getCommentThread'](_0x491bb2);if(!this[_0x2be0('0x0')]['has'](_0x491bb2)){const _0x31c0d6=_0x1a5d47[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1a5d47['id']));_0x5444d6['registerAnnotation'](_0x31c0d6),this['_attachedThreads'][_0x2be0('0x3b')](_0x491bb2,new Set()),_0x1a5d47['_hasTargetInContent']=!0x1;}}[_0x2be0('0xa')](){const _0x158dde=this[_0x2be0('0x61')];_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')](_0x2be0('0x5b'))[_0x2be0('0x2b')]({'model':_0x2be0('0x43'),'view':(_0x37b090,_0x54254b)=>{const {id:_0x5902f5}=tt(_0x37b090[_0x2be0('0x44')]),_0x217a03=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x5902f5),_0x5b566b=this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x5902f5;if(_0x217a03&&_0x217a03['isResolved']&&!_0x5b566b&&_0x37b090[_0x2be0('0x1b')])return _0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x47')+_0x37b090[_0x2be0('0x44')]),_0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x28')+_0x37b090['markerName']),{'classes':[]};const _0x19b944=[_0x2be0('0xf')];return _0x5b566b&&_0x19b944[_0x2be0('0x5d')](_0x2be0('0x3e')),{'classes':_0x19b944,'attributes':{'data-comment':_0x5902f5}};}}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x331531,{options:_0x5ded89})=>{const _0x459ecc=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x57b500=_0x158dde[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x331531),{id:_0x4d6846,part:_0x4a7896}=tt(_0x331531);if(_0x57b500&&!_0x57b500['affectsData'])return null;if(_0x5ded89[_0x2be0('0x58')]){const _0x54ac3f=_0x459ecc[_0x2be0('0x3a')](_0x4d6846);if(_0x54ac3f&&_0x54ac3f[_0x2be0('0x30')])return null;}return{'group':'comment','name':_0x4a7896?_0x4d6846+':'+_0x4a7896:_0x4d6846};}}),_0x158dde['conversion'][_0x2be0('0x10')](_0x2be0('0x2d'))['elementToElement']({'view':{'name':_0x2be0('0x43'),'attributes':{'id':/^\w/}},'model':(_0x550286,{writer:_0x3f7744})=>_0x3f7744[_0x2be0('0x3c')](_0x2be0('0x71'),{'data-name':'comment:'+_0x550286[_0x2be0('0x50')]('id')})}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('upcast')['dataToMarker']({'view':_0x2be0('0x43')});}[_0x2be0('0x70')](){const _0x2ae801=this[_0x2be0('0x61')],_0x4ad008=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x4c7685=new Set(),_0x5015ed=new Set();_0x2ae801['model']['document'][_0x2be0('0x6')](_0x1e12ee=>{let _0x4df1bd=!0x1;for(const {name:_0x1cce09,data:_0x59ffcf}of _0x2ae801[_0x2be0('0x40')][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x424356,id:_0x2c028b}=tt(_0x1cce09);let _0x30abe8=_0x59ffcf[_0x2be0('0x57')];if(_0x2be0('0x43')!==_0x424356||!_0x30abe8)continue;const _0x4a0caa=_0x2be0('0x69')===_0x30abe8[_0x2be0('0x5f')][_0x2be0('0x1e')];_0x4a0caa||(_0x30abe8=ot(_0x30abe8,_0x2ae801[_0x2be0('0x40')]),!_0x30abe8||_0x30abe8['isCollapsed']||!_0x59ffcf[_0x2be0('0x57')]||_0x30abe8[_0x2be0('0x2')](_0x59ffcf[_0x2be0('0x57')]))?_0x2ae801[_0x2be0('0x40')]['hasContent'](_0x30abe8)&&!_0x4a0caa?this[_0x2be0('0x29')]?_0x4c7685[_0x2be0('0x20')](_0x1cce09):this[_0x2be0('0x32')](_0x1cce09,_0x2c028b):(_0x5015ed['add'](_0x1cce09),_0x4c7685[_0x2be0('0x45')](_0x1cce09),_0x1e12ee[_0x2be0('0x51')](_0x1cce09),_0x4df1bd=!0x0):(_0x1e12ee['updateMarker'](_0x1cce09,{'range':_0x30abe8}),_0x4df1bd=!0x0);}return _0x4df1bd;}),this['on']('change:isThreadsLoadingPaused',(_0x3c57dc,_0x28aefd,_0x3e3812)=>{if(!_0x3e3812&&_0x4c7685[_0x2be0('0x8')])for(const _0x3d9158 of _0x4c7685){const {id:_0x5909e2}=tt(_0x3d9158);_0x4c7685[_0x2be0('0x45')](_0x3d9158),_0x2ae801[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x3d9158)&&this[_0x2be0('0x32')](_0x3d9158,_0x5909e2);}}),this[_0x2be0('0x39')](_0x2ae801[_0x2be0('0x40')]['document'],_0x2be0('0x4c'),(_0x1e39d2,_0x107813)=>{for(const {name:_0x16ff82,data:{newRange:_0x3525df}}of _0x2ae801['model'][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x421789,id:_0x22c6b9}=tt(_0x16ff82);if(_0x2be0('0x43')!==_0x421789)continue;const _0x25bf94=_0x4ad008[_0x2be0('0x3a')](_0x22c6b9),_0x52f78f=this['hasMarkerForId'](_0x22c6b9);_0x25bf94&&(_0x25bf94[_0x2be0('0x56')]||_0x2ae801['editing'][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x24ebf3=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412),_0x18fc25=_0x4ad008['_threadToController']['get'](_0x25bf94)['view'];_0x24ebf3[_0x2be0('0x5c')](_0x18fc25)[_0x2be0('0x3')]();},{'priority':_0x2be0('0x3d')}),_0x25bf94['_hasTargetInContent']=_0x52f78f||!!_0x3525df),_0x3525df||(_0x5015ed['add'](_0x16ff82),_0x4c7685[_0x2be0('0x45')](_0x16ff82),this[_0x2be0('0x0')][_0x2be0('0x72')](_0x22c6b9)&&this[_0x2be0('0x0')]['get'](_0x22c6b9)['delete'](_0x16ff82));}if(_0x107813['isLocal'])for(const _0x2299e5 of _0x5015ed){const {id:_0x5ce4af}=tt(_0x2299e5),_0x1b10f6=_0x4ad008[_0x2be0('0x3a')](_0x5ce4af),_0x5c5e73=this[_0x2be0('0x1')](_0x5ce4af);_0x4c7685[_0x2be0('0x45')](_0x2299e5),!_0x1b10f6||_0x5c5e73||_0x1b10f6[_0x2be0('0x30')]||this[_0x2be0('0x4f')]===_0x5ce4af||(this[_0x2be0('0x14')][_0x2be0('0x20')](_0x1b10f6),_0x1b10f6[_0x2be0('0x22')]());}_0x5015ed[_0x2be0('0x2f')]();});}[_0x2be0('0x25')](_0x2bc804){const _0x50edbe=this['editor'],_0x269ab3=this[_0x2be0('0x3f')](_0x2bc804);return _0x13b59d(_0x50edbe[_0x2be0('0x53')],_0x269ab3);}[_0x2be0('0x62')](_0x5d1ac2){const _0x44a649=this[_0x2be0('0x3f')](_0x5d1ac2);let _0x18ba19='',_0x77126e=!0x1;for(const _0xfadf3c of _0x44a649){const _0x54d624=_0xfadf3c['getRange']();for(const _0x1f95c4 of Array['from'](_0x54d624[_0x2be0('0x63')]()))_0x1f95c4['is'](_0x2be0('0x34'))?(_0x18ba19&&_0x77126e&&(_0x18ba19+='\x20',_0x77126e=!0x1),_0x18ba19+=_0x1f95c4[_0x2be0('0x9')]):_0x77126e=!0x0;_0x77126e=!0x0;}return _0x18ba19[_0x2be0('0x13')](0x0,0x96);}['_attachMarkerToThread'](_0x43acf2,_0x1b724f){const _0xd468b5=this[_0x2be0('0x61')],_0x1a2de9=_0xd468b5['plugins'][_0x2be0('0x6d')](_0x14340c);let _0x232b3b=_0x1a2de9['getCommentThread'](_0x1b724f);if(this[_0x2be0('0x0')][_0x2be0('0x72')](_0x1b724f)){const _0x4fed62=this[_0x2be0('0x0')][_0x2be0('0x6d')](_0x1b724f);_0x4fed62[_0x2be0('0x72')](_0x43acf2)||_0x4fed62[_0x2be0('0x20')](_0x43acf2);}const _0x1fe196=_0xd468b5[_0x2be0('0x27')][_0x2be0('0x6d')](_0x2be0('0x4e')),_0x513ddd=_0xd468b5[_0x2be0('0x5e')]['get'](_0x1c6991);if(_0x232b3b&&_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x14')][_0x2be0('0x72')](_0x232b3b)&&(this[_0x2be0('0x14')][_0x2be0('0x45')](_0x232b3b),_0x232b3b['reopen']()),this[_0x2be0('0x0')]['has'](_0x1b724f))return _0x232b3b;return this[_0x2be0('0x0')][_0x2be0('0x3b')](_0x1b724f,new Set([_0x43acf2])),(!this[_0x2be0('0x3f')](_0x1b724f)[0x0][_0x2be0('0x4a')]?_0xd468b5[_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x52e24d=_0xd468b5[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412);_0x232b3b=_0x1a2de9[_0x2be0('0x6a')]({'channelId':_0x1fe196,'threadId':_0x1b724f,'target':()=>this[_0x2be0('0x25')](_0x1b724f),'context':{'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x1b724f)}});const _0x388e75=_0x1a2de9[_0x2be0('0x60')]['get'](_0x232b3b)[_0x2be0('0x41')],_0x291fdc=_0x52e24d['getByInnerView'](_0x388e75);_0x291fdc&&_0x513ddd[_0x2be0('0x2a')](_0x291fdc);},{'priority':_0x2be0('0x3d')}):_0x1a2de9['fetchCommentThread']({'channelId':_0x1fe196,'threadId':_0x1b724f})[_0x2be0('0x65')](_0x2b553c=>{if(_0x2be0('0x12')!==_0xd468b5[_0x2be0('0x11')]){if(_0x232b3b=_0x2b553c,_0x232b3b){const _0xba90b0=_0x232b3b[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1b724f));_0x513ddd['registerAnnotation'](_0xba90b0),_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x38')](_0x1b724f);}else{const _0x14f4eb=this[_0x2be0('0x3f')](_0x1b724f);_0xd468b5['model'][_0x2be0('0x4c')](_0x9cebf3=>{for(const _0x4aea53 of _0x14f4eb)_0x9cebf3[_0x2be0('0x51')](_0x4aea53);});}}}),_0x232b3b);}['_handleThreadMarker'](_0x3ca084,_0x3c91a9){const _0x560db4=this['_attachMarkerToThread'](_0x3ca084,_0x3c91a9);_0x560db4&&!_0x560db4[_0x2be0('0x2c')]&&_0x560db4[_0x2be0('0x18')]({'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x3c91a9)});}}function Z(_0x5192d9,_0x46bdd6){return _0x46bdd6?_0x5192d9+':'+_0x46bdd6:_0x5192d9;}function tt(_0x2da5aa){const _0x53e16a=_0x2da5aa['split'](':');return{'group':_0x53e16a[0x0],'id':_0x53e16a[0x1],'part':_0x53e16a[0x2]};}function ot(_0x364dbf,_0x384db4){const _0x5c19c4=_0x384db4[_0x2be0('0x4d')],_0x71b601=_0x384db4['createRange'](_0x364dbf[_0x2be0('0x6e')]);for(const _0x1035f9 of _0x364dbf[_0x2be0('0x37')]()){const {type:_0x1c908c,item:_0x4a51c4,nextPosition:_0xbed3c9}=_0x1035f9;if(_0x2be0('0x66')===_0x1c908c||_0x5c19c4['isObject'](_0x4a51c4)){const _0xe600d9=_0x384db4[_0x2be0('0x6c')](_0x4a51c4);_0x71b601[_0x2be0('0x2e')]&&(_0x71b601[_0x2be0('0x6e')]=_0xe600d9),_0x71b601[_0x2be0('0xb')]=_0xbed3c9;}}return _0x71b601;}
23
+ const _0x6f84=['_initializeMarkerConverters','enqueueChange','reconvertMarker','_reconvertMarkers','change:isThreadsLoadingPaused','text','destroyed','push','for','_hasTargetInContent','$textProxy','then','_attachResolvedThread','getChangedMarkers','item','init','ready','isThreadsLoadingPaused','isObject','fetchCommentThread','newRange','addComment','consumable','hasMarkerForId','has','change','commands','markers','_handleThreadMarker','reopenCommentThread','_threadToController','isEqual','rootName','pluginName','createRange','state','getItems','split','registerPostFixer','upcast','removeMarker:','resolve','conversion','markerToData','ck-comment-marker','isResolved','requires','change:isReadOnly','isLocal','high','refreshVisibility','length','comment','data','get','_autoResolvedThreads','_attachMarkerToThread','add','from','destroy','plugins','once','hasDomSelection','consume','elementToElement','hasCommentThread','listenTo','setContext','CommentsEditing','model','scrollToThreadMarker','getAttribute','getByInnerView','createPositionBefore','view','attachTo','updateMarker','substring','_attachedThreads','_removedThread','_detachCommentThread','filter','addCommentThread','$graveyard','$marker','config','_getTargetForId','_handleMarkerAddAndRemove','document','collaboration.channelId','registerAnnotation','_getTextContext','dataDowncast','schema','editor','managedUsingOperations','getAllMarkersForId','focus','activeMarker','markerName','openNewCommentThread','start','editing','removeMarker','set','getCommentThread','isCollapsed','differ','reopen','clear','low','root','delete'];(function(_0x1481c5,_0x6f84ac){const _0x5742ea=function(_0x7a1134){while(--_0x7a1134){_0x1481c5['push'](_0x1481c5['shift']());}};_0x5742ea(++_0x6f84ac);}(_0x6f84,0xba));const _0x5742=function(_0x1481c5,_0x6f84ac){_0x1481c5=_0x1481c5-0x0;let _0x5742ea=_0x6f84[_0x1481c5];return _0x5742ea;};import{Plugin as _0x9b538b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1a57e9}from'ckeditor5/src/utils';import _0xc24f2a from'./commentsrepository';import _0x563e8a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4867ab}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b12fe from'../annotations/editorannotations';import _0x44389f from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x33e079 from'./integrations/importword';import _0x2c8dc8 from'../annotations/annotations';export default class r extends _0x9b538b{static get[_0x5742('0x56')](){return[_0xc24f2a,_0x5b12fe,_0x44389f,_0x33e079];}static get[_0x5742('0x49')](){return _0x5742('0x6c');}constructor(_0x3e8f76){super(_0x3e8f76),this[_0x5742('0x6')]=null,this[_0x5742('0x5f')]=new Set(),this[_0x5742('0x1f')](_0x5742('0x39'),!0x0),_0x3e8f76[_0x5742('0x5d')][_0x5742('0x65')](_0x5742('0x38'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x5742('0x19'),null),this['on']('change:activeMarker',(_0x4b0875,_0x15ecc7,_0x43c6ff,_0x35c74a)=>{const _0x51170c=_0x43c6ff?tt(_0x43c6ff)['id']:null;if(_0x3e8f76[_0x5742('0x6d')][_0x5742('0x41')](()=>{if(_0x51170c){const _0x43cb2f=this[_0x5742('0x17')](_0x51170c);for(const _0x17858b of _0x43cb2f)_0x3e8f76[_0x5742('0x1d')][_0x5742('0x2a')](_0x17858b);}if(_0x35c74a){const {id:_0x1015ec}=tt(_0x35c74a),_0x5bde99=this[_0x5742('0x17')](_0x1015ec);for(const _0x5ebd3d of _0x5bde99)_0x3e8f76[_0x5742('0x1d')][_0x5742('0x2a')](_0x5ebd3d);}}),_0x51170c){const _0x5a6489=_0x3e8f76[_0x5742('0x64')]['get'](_0xc24f2a)['getCommentThread'](_0x51170c);_0x5a6489&&_0x5a6489['isResolved']&&this['scrollToThreadMarker'](_0x51170c);}}),this[_0x5742('0x5')]=new Map();}[_0x5742('0x37')](){const _0x332e2b=this['editor'],_0x2cd3f4=_0x332e2b[_0x5742('0x64')]['get'](_0xc24f2a),_0x17011d=_0x332e2b[_0x5742('0xc')]['get'](_0x5742('0x10'));_0x332e2b[_0x5742('0x42')][_0x5742('0x61')](_0x5742('0x9'),new _0x563e8a(_0x332e2b)),this[_0x5742('0x6a')](_0x332e2b,_0x5742('0x57'),(_0x1c9b9b,_0x4671c9,_0x552849)=>{_0x2cd3f4['switchReadOnly'](_0x552849,_0x332e2b[_0x5742('0xc')][_0x5742('0x5e')](_0x5742('0x10')));}),this[_0x5742('0x6a')](_0x2cd3f4,Z(_0x5742('0x9'),_0x17011d),(_0xaaee82,{threadId:_0x5a4458})=>{const _0x163dd3=this['editor'][_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a)[_0x5742('0x20')](_0x5a4458);_0x163dd3&&_0x163dd3[_0x5742('0x55')]&&this[_0x5742('0x34')](_0x5a4458);}),this['listenTo'](_0x2cd3f4,Z('removeCommentThread',_0x17011d),(_0x3421d2,{threadId:_0x4f39e2})=>{_0x332e2b[_0x5742('0x6d')]['enqueueChange']({'isUndoable':!0x1},_0xa9d16a=>{const _0x153c28=this[_0x5742('0x17')](_0x4f39e2);this['_attachedThreads']['delete'](_0x4f39e2),this['_removedThread']=_0x4f39e2;for(const _0x163766 of _0x153c28)_0xa9d16a[_0x5742('0x1e')](_0x163766);}),this[_0x5742('0x6')]=null;},{'priority':_0x5742('0x59')}),this[_0x5742('0x6a')](_0x2cd3f4,Z('resolveCommentThread',_0x17011d),(_0x9e217a,{threadId:_0x2cbe39})=>{this[_0x5742('0x34')](_0x2cbe39),this[_0x5742('0x2b')](_0x2cbe39),this['editor'][_0x5742('0x1d')][_0x5742('0x1')][_0x5742('0x66')]&&this[_0x5742('0x15')][_0x5742('0x1d')][_0x5742('0x1')][_0x5742('0x18')]();},{'priority':_0x5742('0x25')}),this[_0x5742('0x6a')](_0x2cd3f4,Z(_0x5742('0x45'),_0x17011d),(_0x185b16,{threadId:_0x15d02e})=>{this[_0x5742('0x2b')](_0x15d02e);},{'priority':'low'}),this['listenTo'](_0x2cd3f4,Z(_0x5742('0x3d'),_0x17011d),(_0x49f58c,{threadId:_0x39e993,isFromAdapter:_0x34b60e})=>{const _0x1d5aba=this[_0x5742('0x17')](_0x39e993);if(_0x34b60e||0x0==_0x1d5aba['length']||!_0x2cd3f4[_0x5742('0x69')](_0x39e993))return;0x1===_0x2cd3f4[_0x5742('0x20')](_0x39e993)['length']&&_0x332e2b['model'][_0x5742('0x29')]({'isUndoable':!0x1},_0x21e0d1=>{for(const _0x38af2f of _0x1d5aba)_0x21e0d1[_0x5742('0x3')](_0x38af2f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x5742('0xe')]();}[_0x5742('0x63')](){const _0x3c5c98=this[_0x5742('0x15')][_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x2ed2f0=this['editor'][_0x5742('0xc')][_0x5742('0x5e')](_0x5742('0x10'));for(const _0x3fc7c6 of _0x3c5c98['getCommentThreads']({'channelId':_0x2ed2f0}))_0x3c5c98[_0x5742('0x7')](_0x3fc7c6['id']),_0x3c5c98['_threads'][_0x5742('0x27')](_0x3fc7c6['id']);super['destroy']();}[_0x5742('0x3f')](_0x53b532){return this[_0x5742('0x17')](_0x53b532)[_0x5742('0x5b')]>0x0;}[_0x5742('0x17')](_0x480480){return Array[_0x5742('0x62')](this[_0x5742('0x5')][_0x5742('0x5e')](_0x480480)||[])['map'](_0x763d44=>this[_0x5742('0x15')]['model'][_0x5742('0x43')][_0x5742('0x5e')](_0x763d44))[_0x5742('0x8')](_0x10a737=>_0x10a737);}[_0x5742('0x6e')](_0x5a85c0){const _0x32a0e3=this[_0x5742('0xd')](_0x5a85c0);_0x32a0e3&&setTimeout(()=>{this[_0x5742('0x19')]&&tt(this[_0x5742('0x19')])['id']===_0x5a85c0&&_0x1a57e9({'target':_0x32a0e3[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5742('0x2b')](_0x12c792){this[_0x5742('0x15')][_0x5742('0x6d')][_0x5742('0x41')](()=>{for(const _0x1a0eaa of this['getAllMarkersForId'](_0x12c792))this[_0x5742('0x15')][_0x5742('0x1d')][_0x5742('0x2a')](_0x1a0eaa);});}[_0x5742('0x34')](_0x1d2780){const _0x2ade00=this[_0x5742('0x15')][_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x3d0608=this['editor'][_0x5742('0x64')][_0x5742('0x5e')](_0x5b12fe),_0x1f29da=_0x2ade00[_0x5742('0x20')](_0x1d2780);if(!this['_attachedThreads']['has'](_0x1d2780)){const _0x1452b9=_0x1f29da[_0x5742('0x2')](()=>this[_0x5742('0xd')](_0x1f29da['id']));_0x3d0608['registerAnnotation'](_0x1452b9),this[_0x5742('0x5')]['set'](_0x1d2780,new Set()),_0x1f29da[_0x5742('0x31')]=!0x1;}}[_0x5742('0x28')](){const _0x4bb08f=this[_0x5742('0x15')];_0x4bb08f[_0x5742('0x52')][_0x5742('0x30')]('editingDowncast')['markerToHighlight']({'model':_0x5742('0x5c'),'view':(_0x10a6a0,_0x2710cb)=>{const {id:_0x32bc81}=tt(_0x10a6a0[_0x5742('0x1a')]),_0x28e3de=_0x4bb08f[_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a)[_0x5742('0x20')](_0x32bc81),_0x22120c=this[_0x5742('0x19')]&&tt(this[_0x5742('0x19')])['id']===_0x32bc81;if(_0x28e3de&&_0x28e3de[_0x5742('0x55')]&&!_0x22120c&&_0x10a6a0[_0x5742('0x36')])return _0x2710cb[_0x5742('0x3e')][_0x5742('0x67')](_0x10a6a0[_0x5742('0x36')],'addMarker:'+_0x10a6a0['markerName']),_0x2710cb[_0x5742('0x3e')][_0x5742('0x67')](_0x10a6a0[_0x5742('0x36')],_0x5742('0x50')+_0x10a6a0[_0x5742('0x1a')]),{'classes':[]};const _0x35e45c=[_0x5742('0x54')];return _0x22120c&&_0x35e45c[_0x5742('0x2f')]('ck-comment-marker--active'),{'classes':_0x35e45c,'attributes':{'data-comment':_0x32bc81}};}}),_0x4bb08f[_0x5742('0x52')][_0x5742('0x30')](_0x5742('0x13'))[_0x5742('0x53')]({'model':_0x5742('0x5c'),'view':(_0x43d01d,{options:_0x4ddc5c})=>{const _0x5de858=_0x4bb08f[_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x51a5f3=_0x4bb08f[_0x5742('0x6d')][_0x5742('0x43')][_0x5742('0x5e')](_0x43d01d),{id:_0x242127,part:_0xbf40ce}=tt(_0x43d01d);if(_0x51a5f3&&!_0x51a5f3['affectsData'])return null;if(_0x4ddc5c['ignoreResolvedComments']){const _0x278835=_0x5de858[_0x5742('0x20')](_0x242127);if(_0x278835&&_0x278835[_0x5742('0x55')])return null;}return{'group':_0x5742('0x5c'),'name':_0xbf40ce?_0x242127+':'+_0xbf40ce:_0x242127};}}),_0x4bb08f[_0x5742('0x52')][_0x5742('0x30')](_0x5742('0x4f'))[_0x5742('0x68')]({'view':{'name':_0x5742('0x5c'),'attributes':{'id':/^\w/}},'model':(_0x31d2a7,{writer:_0x392dae})=>_0x392dae['createElement'](_0x5742('0xb'),{'data-name':'comment:'+_0x31d2a7[_0x5742('0x6f')]('id')})}),_0x4bb08f['conversion'][_0x5742('0x30')](_0x5742('0x4f'))['dataToMarker']({'view':_0x5742('0x5c')});}['_handleMarkerAddAndRemove'](){const _0x13965d=this[_0x5742('0x15')],_0x599fb9=_0x13965d[_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x2bd922=new Set(),_0x5791bd=new Set();_0x13965d[_0x5742('0x6d')][_0x5742('0xf')][_0x5742('0x4e')](_0x1ee16c=>{let _0xb32992=!0x1;for(const {name:_0xa09b,data:_0x1629a5}of _0x13965d['model'][_0x5742('0xf')][_0x5742('0x22')][_0x5742('0x35')]()){const {group:_0x2e6b6e,id:_0xe3bcc2}=tt(_0xa09b);let _0x48c505=_0x1629a5[_0x5742('0x3c')];if(_0x5742('0x5c')!==_0x2e6b6e||!_0x48c505)continue;const _0x4d053d=_0x5742('0xa')===_0x48c505[_0x5742('0x26')][_0x5742('0x48')];_0x4d053d||(_0x48c505=ot(_0x48c505,_0x13965d[_0x5742('0x6d')]),!_0x48c505||_0x48c505[_0x5742('0x21')]||!_0x1629a5[_0x5742('0x3c')]||_0x48c505[_0x5742('0x47')](_0x1629a5[_0x5742('0x3c')]))?_0x13965d[_0x5742('0x6d')]['hasContent'](_0x48c505)&&!_0x4d053d?this['isThreadsLoadingPaused']?_0x2bd922[_0x5742('0x61')](_0xa09b):this[_0x5742('0x44')](_0xa09b,_0xe3bcc2):(_0x5791bd['add'](_0xa09b),_0x2bd922['delete'](_0xa09b),_0x1ee16c[_0x5742('0x1e')](_0xa09b),_0xb32992=!0x0):(_0x1ee16c[_0x5742('0x3')](_0xa09b,{'range':_0x48c505}),_0xb32992=!0x0);}return _0xb32992;}),this['on'](_0x5742('0x2c'),(_0x530895,_0x259a05,_0x5ab252)=>{if(!_0x5ab252&&_0x2bd922['size'])for(const _0x3ff9c2 of _0x2bd922){const {id:_0x20ccc3}=tt(_0x3ff9c2);_0x2bd922[_0x5742('0x27')](_0x3ff9c2),_0x13965d[_0x5742('0x6d')][_0x5742('0x43')]['get'](_0x3ff9c2)&&this['_handleThreadMarker'](_0x3ff9c2,_0x20ccc3);}}),this[_0x5742('0x6a')](_0x13965d[_0x5742('0x6d')][_0x5742('0xf')],_0x5742('0x41'),(_0x3d4366,_0x8e76be)=>{for(const {name:_0x552ed9,data:{newRange:_0x1dddfc}}of _0x13965d['model']['document'][_0x5742('0x22')][_0x5742('0x35')]()){const {group:_0x326943,id:_0xa91cc5}=tt(_0x552ed9);if(_0x5742('0x5c')!==_0x326943)continue;const _0x10a28e=_0x599fb9[_0x5742('0x20')](_0xa91cc5),_0x3abca3=this[_0x5742('0x3f')](_0xa91cc5);_0x10a28e&&(_0x10a28e['_hasTargetInContent']||_0x13965d[_0x5742('0x1d')][_0x5742('0x1')]['once']('render',()=>{const _0xd7d05c=_0x13965d['plugins'][_0x5742('0x5e')](_0x2c8dc8),_0x3f508c=_0x599fb9[_0x5742('0x46')][_0x5742('0x5e')](_0x10a28e)['view'];_0xd7d05c[_0x5742('0x70')](_0x3f508c)[_0x5742('0x5a')]();},{'priority':_0x5742('0x25')}),_0x10a28e[_0x5742('0x31')]=_0x3abca3||!!_0x1dddfc),_0x1dddfc||(_0x5791bd[_0x5742('0x61')](_0x552ed9),_0x2bd922[_0x5742('0x27')](_0x552ed9),this[_0x5742('0x5')][_0x5742('0x40')](_0xa91cc5)&&this[_0x5742('0x5')][_0x5742('0x5e')](_0xa91cc5)[_0x5742('0x27')](_0x552ed9));}if(_0x8e76be[_0x5742('0x58')])for(const _0x5a4c71 of _0x5791bd){const {id:_0x1908c0}=tt(_0x5a4c71),_0x22f476=_0x599fb9['getCommentThread'](_0x1908c0),_0xbeee66=this['hasMarkerForId'](_0x1908c0);_0x2bd922[_0x5742('0x27')](_0x5a4c71),!_0x22f476||_0xbeee66||_0x22f476[_0x5742('0x55')]||this[_0x5742('0x6')]===_0x1908c0||(this[_0x5742('0x5f')]['add'](_0x22f476),_0x22f476[_0x5742('0x51')]());}_0x5791bd[_0x5742('0x24')]();});}[_0x5742('0xd')](_0x2837ad){const _0x17e900=this[_0x5742('0x15')],_0x136046=this[_0x5742('0x17')](_0x2837ad);return _0x4867ab(_0x17e900[_0x5742('0x1d')],_0x136046);}[_0x5742('0x12')](_0x4a2289){const _0xfb9c79=this[_0x5742('0x17')](_0x4a2289);let _0x4683d7='',_0x5811ed=!0x1;for(const _0x453c37 of _0xfb9c79){const _0x59626c=_0x453c37['getRange']();for(const _0x14498d of Array[_0x5742('0x62')](_0x59626c[_0x5742('0x4c')]()))_0x14498d['is'](_0x5742('0x32'))?(_0x4683d7&&_0x5811ed&&(_0x4683d7+='\x20',_0x5811ed=!0x1),_0x4683d7+=_0x14498d[_0x5742('0x5d')]):_0x5811ed=!0x0;_0x5811ed=!0x0;}return _0x4683d7[_0x5742('0x4')](0x0,0x96);}[_0x5742('0x60')](_0xf474a5,_0x6925b3){const _0x495dd5=this[_0x5742('0x15')],_0x27dd16=_0x495dd5[_0x5742('0x64')]['get'](_0xc24f2a);let _0x2c8818=_0x27dd16[_0x5742('0x20')](_0x6925b3);if(this[_0x5742('0x5')][_0x5742('0x40')](_0x6925b3)){const _0x24395d=this[_0x5742('0x5')][_0x5742('0x5e')](_0x6925b3);_0x24395d['has'](_0xf474a5)||_0x24395d[_0x5742('0x61')](_0xf474a5);}const _0x424f46=_0x495dd5[_0x5742('0xc')][_0x5742('0x5e')](_0x5742('0x10')),_0x548d4b=_0x495dd5[_0x5742('0x64')][_0x5742('0x5e')](_0x5b12fe);if(_0x2c8818&&_0x2c8818[_0x5742('0x55')]&&this['_autoResolvedThreads'][_0x5742('0x40')](_0x2c8818)&&(this[_0x5742('0x5f')][_0x5742('0x27')](_0x2c8818),_0x2c8818[_0x5742('0x23')]()),this[_0x5742('0x5')]['has'](_0x6925b3))return _0x2c8818;return this[_0x5742('0x5')][_0x5742('0x1f')](_0x6925b3,new Set([_0xf474a5])),(!this['getAllMarkersForId'](_0x6925b3)[0x0][_0x5742('0x16')]?_0x495dd5['editing'][_0x5742('0x1')]['once']('render',()=>{const _0x118a80=_0x495dd5[_0x5742('0x64')]['get'](_0x2c8dc8);_0x2c8818=_0x27dd16[_0x5742('0x1b')]({'channelId':_0x424f46,'threadId':_0x6925b3,'target':()=>this['_getTargetForId'](_0x6925b3),'context':{'type':_0x5742('0x2d'),'value':this['_getTextContext'](_0x6925b3)}});const _0x2937d6=_0x27dd16['_threadToController'][_0x5742('0x5e')](_0x2c8818)[_0x5742('0x1')],_0x13fb5a=_0x118a80['getByInnerView'](_0x2937d6);_0x13fb5a&&_0x548d4b[_0x5742('0x11')](_0x13fb5a);},{'priority':'low'}):_0x27dd16[_0x5742('0x3b')]({'channelId':_0x424f46,'threadId':_0x6925b3})[_0x5742('0x33')](_0x2f24c1=>{if(_0x5742('0x2e')!==_0x495dd5[_0x5742('0x4b')]){if(_0x2c8818=_0x2f24c1,_0x2c8818){const _0x30626b=_0x2c8818[_0x5742('0x2')](()=>this[_0x5742('0xd')](_0x6925b3));_0x548d4b[_0x5742('0x11')](_0x30626b),_0x2c8818['isResolved']&&this['_reconvertMarkers'](_0x6925b3);}else{const _0x4040b7=this['getAllMarkersForId'](_0x6925b3);_0x495dd5[_0x5742('0x6d')][_0x5742('0x41')](_0x1d4098=>{for(const _0x25afb6 of _0x4040b7)_0x1d4098['removeMarker'](_0x25afb6);});}}}),_0x2c8818);}[_0x5742('0x44')](_0x2a1862,_0x5708ec){const _0x3d3d01=this[_0x5742('0x60')](_0x2a1862,_0x5708ec);_0x3d3d01&&!_0x3d3d01['context']&&_0x3d3d01[_0x5742('0x6b')]({'type':'text','value':this[_0x5742('0x12')](_0x5708ec)});}}function Z(_0x3afbfc,_0x20a070){return _0x20a070?_0x3afbfc+':'+_0x20a070:_0x3afbfc;}function tt(_0x269222){const _0x157560=_0x269222[_0x5742('0x4d')](':');return{'group':_0x157560[0x0],'id':_0x157560[0x1],'part':_0x157560[0x2]};}function ot(_0x526ea2,_0x31a4e2){const _0x91ebe2=_0x31a4e2[_0x5742('0x14')],_0x28a340=_0x31a4e2[_0x5742('0x4a')](_0x526ea2['start']);for(const _0xa48122 of _0x526ea2['getWalker']()){const {type:_0x1bfe11,item:_0xf5e8b8,nextPosition:_0x595800}=_0xa48122;if(_0x5742('0x2d')===_0x1bfe11||_0x91ebe2[_0x5742('0x3a')](_0xf5e8b8)){const _0xb90071=_0x31a4e2[_0x5742('0x0')](_0xf5e8b8);_0x28a340[_0x5742('0x21')]&&(_0x28a340[_0x5742('0x1c')]=_0xb90071),_0x28a340['end']=_0x595800;}}return _0x28a340;}