@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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 _0xe21e=['_mutationObserver','detach','keystrokes','listenTo','focus','Esc','_updateHeight','createCollection','clientHeight','destroy','fire','setTemplate','isActive','mainView','ck-annotation-wrapper','bindTemplate','render','set','element','ck-rounded-corners','targetRect','focusTracker','isDirty','attach','clear','height','content','add'];(function(_0x441e5a,_0xe21e5f){const _0x22b716=function(_0x358b63){while(--_0x358b63){_0x441e5a['push'](_0x441e5a['shift']());}};_0x22b716(++_0xe21e5f);}(_0xe21e,0x182));const _0x22b7=function(_0x441e5a,_0xe21e5f){_0x441e5a=_0x441e5a-0x0;let _0x22b716=_0xe21e[_0x441e5a];return _0x22b716;};import{View as _0x570eb6}from'ckeditor5/src/ui';import{FocusTracker as _0x39f269,KeystrokeHandler as _0x23a1f5,uid as _0x587250}from'ckeditor5/src/utils';import _0x517262 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x570eb6{constructor(_0x4b1567,_0x1f10e0){super(_0x4b1567),this['id']=_0x587250(),this['focusTracker']=new _0x39f269(),this[_0x22b7('0x8')]=new _0x23a1f5(),this[_0x22b7('0x8')][_0x22b7('0x17')]('Esc',(_0xc39c93,_0x29c603)=>this[_0x22b7('0x10')](_0x22b7('0xb'),_0x29c603)),this['set'](_0x22b7('0x1a'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x22b7('0x17')](_0x22b7('0x3'),0x0),this[_0x22b7('0x17')](_0x22b7('0x12'),!0x1),this[_0x22b7('0x17')](_0x22b7('0x0'),!0x1),this[_0x22b7('0x17')]('length',0x0),this['set']('type',''),this[_0x22b7('0x6')]=_0x517262(()=>this[_0x22b7('0xc')]()),this[_0x22b7('0x4')]=this[_0x22b7('0xd')](),this[_0x22b7('0x4')][_0x22b7('0x5')](_0x1f10e0),this[_0x22b7('0x13')]=_0x1f10e0;const _0x1f839a=this[_0x22b7('0x15')];this[_0x22b7('0x11')]({'tag':'div','attributes':{'class':['ck',_0x22b7('0x14'),_0x22b7('0x19'),_0x1f839a['if'](_0x22b7('0x12'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x22b7('0x4')]});}[_0x22b7('0x16')](){super[_0x22b7('0x16')](),this[_0x22b7('0x1b')][_0x22b7('0x5')](this[_0x22b7('0x18')]),this[_0x22b7('0x8')][_0x22b7('0x9')](this[_0x22b7('0x18')]),this[_0x22b7('0x6')][_0x22b7('0x1')](this[_0x22b7('0x18')]);}['destroy'](){this[_0x22b7('0x4')][_0x22b7('0x2')](),this['keystrokes'][_0x22b7('0xf')](),this[_0x22b7('0x1b')][_0x22b7('0xf')](),this[_0x22b7('0x6')][_0x22b7('0x7')](),super[_0x22b7('0xf')]();}[_0x22b7('0xa')](){this[_0x22b7('0x18')][_0x22b7('0xa')]();}[_0x22b7('0xc')](){const _0x581cb1=this['element'][_0x22b7('0xe')];_0x581cb1&&(this[_0x22b7('0x3')]=_0x581cb1);}}
23
+ const _0x3e04=['ck-annotation-wrapper','focus','clear','_mutationObserver','isDirty','_updateHeight','content','Esc','targetRect','render','isActive','attach','add','mainView','bindTemplate','length','keystrokes','type','element','clientHeight','height','ck-rounded-corners','setTemplate','focusTracker','set','ck-annotation-wrapper--active','createCollection','destroy','listenTo','detach','fire'];(function(_0x2e7ea6,_0x3e040b){const _0x54347c=function(_0x29899e){while(--_0x29899e){_0x2e7ea6['push'](_0x2e7ea6['shift']());}};_0x54347c(++_0x3e040b);}(_0x3e04,0x127));const _0x5434=function(_0x2e7ea6,_0x3e040b){_0x2e7ea6=_0x2e7ea6-0x0;let _0x54347c=_0x3e04[_0x2e7ea6];return _0x54347c;};import{View as _0x577bb8}from'ckeditor5/src/ui';import{FocusTracker as _0x3d0120,KeystrokeHandler as _0x5dee7e,uid as _0x4b0d1d}from'ckeditor5/src/utils';import _0x179313 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x577bb8{constructor(_0x6714dd,_0x516746){super(_0x6714dd),this['id']=_0x4b0d1d(),this[_0x5434('0x7')]=new _0x3d0120(),this['keystrokes']=new _0x5dee7e(),this[_0x5434('0x0')][_0x5434('0x8')](_0x5434('0x16'),(_0x3ca721,_0x9c3164)=>this[_0x5434('0xe')](_0x5434('0x16'),_0x9c3164)),this[_0x5434('0x8')](_0x5434('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5434('0x8')](_0x5434('0x4'),0x0),this['set'](_0x5434('0x19'),!0x1),this['set'](_0x5434('0x13'),!0x1),this[_0x5434('0x8')](_0x5434('0x1e'),0x0),this[_0x5434('0x8')](_0x5434('0x1'),''),this[_0x5434('0x12')]=_0x179313(()=>this[_0x5434('0x14')]()),this[_0x5434('0x15')]=this[_0x5434('0xa')](),this[_0x5434('0x15')][_0x5434('0x1b')](_0x516746),this[_0x5434('0x1c')]=_0x516746;const _0xe77ccc=this[_0x5434('0x1d')];this[_0x5434('0x6')]({'tag':'div','attributes':{'class':['ck',_0x5434('0xf'),_0x5434('0x5'),_0xe77ccc['if']('isActive',_0x5434('0x9'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x5434('0x18')](),this[_0x5434('0x7')][_0x5434('0x1b')](this[_0x5434('0x2')]),this[_0x5434('0x0')][_0x5434('0xc')](this[_0x5434('0x2')]),this[_0x5434('0x12')][_0x5434('0x1a')](this[_0x5434('0x2')]);}[_0x5434('0xb')](){this[_0x5434('0x15')][_0x5434('0x11')](),this[_0x5434('0x0')][_0x5434('0xb')](),this['focusTracker'][_0x5434('0xb')](),this[_0x5434('0x12')][_0x5434('0xd')](),super[_0x5434('0xb')]();}[_0x5434('0x10')](){this[_0x5434('0x2')][_0x5434('0x10')]();}[_0x5434('0x14')](){const _0x537e62=this['element'][_0x5434('0x3')];_0x537e62&&(this[_0x5434('0x4')]=_0x537e62);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c25=['setTemplate','element','ck-sidebar-item--no-animation','attach','updateHeight','ck-sidebar-item','top','_targetTop','bindTemplate','_mutationObserver','clientHeight','render','set','isAnimationDisabled','height','bottom','clear','destroy','content','createCollection'];(function(_0x8c87e7,_0x2c2579){const _0x13811a=function(_0x1df37e){while(--_0x1df37e){_0x8c87e7['push'](_0x8c87e7['shift']());}};_0x13811a(++_0x2c2579);}(_0x2c25,0x88));const _0x1381=function(_0x8c87e7,_0x2c2579){_0x8c87e7=_0x8c87e7-0x0;let _0x13811a=_0x2c25[_0x8c87e7];return _0x13811a;};import{View as _0x179d58}from'ckeditor5/src/ui';import{toUnit as _0x2601f3}from'ckeditor5/src/utils';import _0x5a2ed6 from'../../utils/createmutationobserver';const At=_0x2601f3('px');export default class C extends _0x179d58{constructor(_0xffaca4){super(_0xffaca4),this[_0x1381('0x10')]('top',0x0),this['set']('height',0x0),this['bind'](_0x1381('0x13'))['to'](this,_0x1381('0xa'),this,_0x1381('0x12'),(_0x130e72,_0x414b56)=>_0x130e72+_0x414b56),this['set'](_0x1381('0x11'),!0x1),this[_0x1381('0xd')]=_0x5a2ed6(()=>this[_0x1381('0x8')]()),this[_0x1381('0xb')]=null,this[_0x1381('0x2')]=this[_0x1381('0x3')]();const _0x8d624b=this[_0x1381('0xc')];this[_0x1381('0x4')]({'tag':'div','attributes':{'class':[_0x1381('0x9'),_0x8d624b['to'](_0x1381('0x11'),_0xa407ca=>_0xa407ca?_0x1381('0x6'):'')],'style':{'top':_0x8d624b['to'](_0x1381('0xa'),_0x19a9a0=>At(_0x19a9a0))}},'children':this['content']});}[_0x1381('0xf')](){super[_0x1381('0xf')](),this[_0x1381('0xd')][_0x1381('0x7')](this[_0x1381('0x5')]);}[_0x1381('0x8')](){const _0x2a0ba4=this['element'][_0x1381('0xe')];_0x2a0ba4&&(this[_0x1381('0x12')]=_0x2a0ba4);}[_0x1381('0x1')](){this[_0x1381('0x2')][_0x1381('0x0')](),this[_0x1381('0xd')]['detach'](),super['destroy']();}}
23
+ const _0x1684=['bottom','bindTemplate','content','ck-sidebar-item','clientHeight','isAnimationDisabled','attach','createCollection','setTemplate','top','bind','render','updateHeight','destroy','height','set','_mutationObserver','div','ck-sidebar-item--no-animation','element'];(function(_0x2b85f4,_0x168422){const _0x1a1b85=function(_0x3b414b){while(--_0x3b414b){_0x2b85f4['push'](_0x2b85f4['shift']());}};_0x1a1b85(++_0x168422);}(_0x1684,0x11a));const _0x1a1b=function(_0x2b85f4,_0x168422){_0x2b85f4=_0x2b85f4-0x0;let _0x1a1b85=_0x1684[_0x2b85f4];return _0x1a1b85;};import{View as _0x1c5e1b}from'ckeditor5/src/ui';import{toUnit as _0x400090}from'ckeditor5/src/utils';import _0x502881 from'../../utils/createmutationobserver';const At=_0x400090('px');export default class C extends _0x1c5e1b{constructor(_0x25f552){super(_0x25f552),this[_0x1a1b('0xd')]('top',0x0),this[_0x1a1b('0xd')](_0x1a1b('0xc'),0x0),this[_0x1a1b('0x8')](_0x1a1b('0x12'))['to'](this,'top',this,_0x1a1b('0xc'),(_0xb148a,_0xa8f8ff)=>_0xb148a+_0xa8f8ff),this['set'](_0x1a1b('0x3'),!0x1),this['_mutationObserver']=_0x502881(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x1a1b('0x0')]=this[_0x1a1b('0x5')]();const _0x531461=this[_0x1a1b('0x13')];this[_0x1a1b('0x6')]({'tag':_0x1a1b('0xf'),'attributes':{'class':[_0x1a1b('0x1'),_0x531461['to'](_0x1a1b('0x3'),_0x4434ed=>_0x4434ed?_0x1a1b('0x10'):'')],'style':{'top':_0x531461['to'](_0x1a1b('0x7'),_0x54cd06=>At(_0x54cd06))}},'children':this['content']});}['render'](){super[_0x1a1b('0x9')](),this[_0x1a1b('0xe')][_0x1a1b('0x4')](this[_0x1a1b('0x11')]);}[_0x1a1b('0xa')](){const _0x50f89b=this[_0x1a1b('0x11')][_0x1a1b('0x2')];_0x50f89b&&(this['height']=_0x50f89b);}[_0x1a1b('0xb')](){this[_0x1a1b('0x0')]['clear'](),this[_0x1a1b('0xe')]['detach'](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4841=['number','minHeight','class','setTemplate','ck-sidebar','div','set','list'];(function(_0x2e6bc3,_0x484179){const _0x2cb879=function(_0xe1dccf){while(--_0xe1dccf){_0x2e6bc3['push'](_0x2e6bc3['shift']());}};_0x2cb879(++_0x484179);}(_0x4841,0x127));const _0x2cb8=function(_0x2e6bc3,_0x484179){_0x2e6bc3=_0x2e6bc3-0x0;let _0x2cb879=_0x4841[_0x2e6bc3];return _0x2cb879;};import{View as _0x5af7ab}from'ckeditor5/src/ui';import{toUnit as _0x578900}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x578900('px');export default class T extends _0x5af7ab{constructor(_0x2ed759){super(_0x2ed759);const _0x80deac=this['bindTemplate'];this[_0x2cb8('0x7')]('minHeight',0x0),this[_0x2cb8('0x7')](_0x2cb8('0x3'),''),this[_0x2cb8('0x0')]=this['createCollection'](),this[_0x2cb8('0x4')]({'tag':_0x2cb8('0x6'),'attributes':{'class':['ck',_0x2cb8('0x5'),'ck-reset',_0x80deac['to'](_0x2cb8('0x3'))],'style':{'minHeight':_0x80deac['to'](_0x2cb8('0x2'),_0x510106=>_0x2cb8('0x1')==typeof _0x510106?At(_0x510106+0xa):null)}},'children':this[_0x2cb8('0x0')]});}}
23
+ const _0x2ace=['class','minHeight','bindTemplate','set','createCollection','list','ck-sidebar','div','number'];(function(_0x56647d,_0x2acee0){const _0x10d8b1=function(_0x3bd7d3){while(--_0x3bd7d3){_0x56647d['push'](_0x56647d['shift']());}};_0x10d8b1(++_0x2acee0);}(_0x2ace,0x1cf));const _0x10d8=function(_0x56647d,_0x2acee0){_0x56647d=_0x56647d-0x0;let _0x10d8b1=_0x2ace[_0x56647d];return _0x10d8b1;};import{View as _0x29c208}from'ckeditor5/src/ui';import{toUnit as _0x4b26f3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x4b26f3('px');export default class T extends _0x29c208{constructor(_0x541957){super(_0x541957);const _0x556eb6=this[_0x10d8('0x7')];this[_0x10d8('0x8')](_0x10d8('0x6'),0x0),this[_0x10d8('0x8')](_0x10d8('0x5'),''),this[_0x10d8('0x1')]=this[_0x10d8('0x0')](),this['setTemplate']({'tag':_0x10d8('0x3'),'attributes':{'class':['ck',_0x10d8('0x2'),'ck-reset',_0x556eb6['to']('class')],'style':{'minHeight':_0x556eb6['to'](_0x10d8('0x6'),_0x4451cd=>_0x10d8('0x4')==typeof _0x4451cd?At(_0x4451cd+0xa):null)}},'children':this[_0x10d8('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xae0e=['off','annotations','register','_activeAnnotation','uiUpdate','_refreshPositioningDebounced','container','_editorAnnotations','cancel','_integrateWithEditorAnnotations','add','listenTo','set','editors','ck-sidebar--wide','refreshPositioning','has','from','remove','detach','wideSidebar','WideSidebar','plugins','_detachFromContainer','requires','addAnnotation','rearrange','setActiveAnnotation','pluginName','updateTargetRect','_annotations','high','get','widesidebar-detach-not-attached','EditorAnnotations','_destroyEditorAnnotationsIntegration','addEventListener','switchTo','context','activeAnnotation','stopListening','hasDomSelection','widesidebar-attach-already-attached','blur','stop','removeEventListener','isAttached'];(function(_0x12fe94,_0xae0eb6){const _0x45cdf6=function(_0x8527d9){while(--_0x8527d9){_0x12fe94['push'](_0x12fe94['shift']());}};_0x45cdf6(++_0xae0eb6);}(_0xae0e,0xb3));const _0x45cd=function(_0x12fe94,_0xae0eb6){_0x12fe94=_0x12fe94-0x0;let _0x45cdf6=_0xae0e[_0x12fe94];return _0x45cdf6;};import{ContextPlugin as _0x3f8419,Context as _0x119d24}from'ckeditor5/src/core';import _0x2c6e6d from'./annotationsuis';import _0x7833b8 from'./sidebar';import{CKEditorError as _0x24534d,Collection as _0x2ccff0}from'ckeditor5/src/utils';import{debounce as _0x4134b7}from'lodash-es';import _0x32919e from'./editorannotations';export default class i extends _0x3f8419{static get[_0x45cd('0x21')](){return[_0x7833b8,_0x2c6e6d];}static get[_0x45cd('0x25')](){return _0x45cd('0x1e');}constructor(_0xc48ab3){super(_0xc48ab3),this[_0x45cd('0x8')]=!0x1,this[_0x45cd('0x15')]('activeAnnotation',null),this[_0x45cd('0xa')]=null,this[_0x45cd('0x10')]=new _0x2ccff0(),this['_refreshPositioningDebounced']=_0x4134b7(()=>{this[_0x45cd('0xa')][_0x45cd('0x18')]();},0xfa,{'leading':!0x1});}['init'](){const _0x339b68=this['context']['plugins']['get'](_0x2c6e6d),_0x54bce3=this[_0x45cd('0x0')][_0x45cd('0x1f')][_0x45cd('0x29')](_0x7833b8);_0x339b68[_0x45cd('0xb')](_0x45cd('0x1d'),this),_0x54bce3[_0x45cd('0xf')]&&_0x339b68[_0x45cd('0x2e')](_0x45cd('0x1d'));}[_0x45cd('0x24')](_0x3b5fd2){if(_0x3b5fd2===this[_0x45cd('0x1')])return;const _0x4a5413=this[_0x45cd('0x0')][_0x45cd('0x1f')][_0x45cd('0x29')](_0x7833b8);_0x4a5413[_0x45cd('0xc')]=_0x3b5fd2;const _0x8c2450=this['activeAnnotation'];this[_0x45cd('0x1')]=_0x3b5fd2,_0x4a5413['refresh']({'blurredAnnotation':_0x8c2450,'activatedAnnotation':this[_0x45cd('0x1')]});}['attach'](_0x2a4847){this[_0x45cd('0xa')]=_0x2a4847;const _0x32ad30=this[_0x45cd('0x0')][_0x45cd('0x1f')][_0x45cd('0x29')](_0x7833b8);if(_0x32ad30[_0x45cd('0x27')]=_0x2a4847,this[_0x45cd('0x8')])throw new _0x24534d(_0x45cd('0x4'),this);this[_0x45cd('0x8')]=!0x0,this[_0x45cd('0x14')](_0x32ad30,'set:container',()=>{this[_0x45cd('0x1c')](),this['listenTo'](_0x32ad30,'change:container',_0x3cc5ac=>{_0x3cc5ac[_0x45cd('0x9')](),this['attach'](_0x2a4847);});}),_0x32ad30['_attachToContainer']({'viewClass':_0x45cd('0x17')});const _0xd5d316=_0x4fce03=>{_0x4fce03[_0x45cd('0x26')](),_0x32ad30[_0x45cd('0x22')](_0x4fce03);};for(const _0x36599d of _0x2a4847)_0xd5d316(_0x36599d);this[_0x45cd('0x14')](_0x2a4847,_0x45cd('0x13'),(_0x227f29,_0x276488)=>{_0xd5d316(_0x276488);}),this[_0x45cd('0x14')](_0x2a4847,'remove',(_0x329237,_0x123d10,_0x559415)=>{_0x32ad30[_0x45cd('0x23')]({'removedAnnotation':_0x123d10,'previousAnnotation':_0x2a4847[_0x45cd('0x29')](_0x559415-0x1),'nextAnnotation':_0x2a4847[_0x45cd('0x29')](_0x559415+0x1)}),_0x123d10===this['activeAnnotation']&&this[_0x45cd('0x24')](null);},{'priority':_0x45cd('0x28')}),this[_0x45cd('0x14')](_0x2a4847,'focus',(_0x6aeb76,_0x4b7a1e)=>{this['setActiveAnnotation'](_0x4b7a1e);}),this[_0x45cd('0x14')](_0x2a4847,_0x45cd('0x5'),()=>{this[_0x45cd('0x24')](null);});const _0x5de818=this[_0x45cd('0x0')]instanceof _0x119d24?this[_0x45cd('0x0')][_0x45cd('0x16')]:new _0x2ccff0([this[_0x45cd('0x0')]]);for(const _0x3e3022 of _0x5de818)this[_0x45cd('0x12')](_0x3e3022);this[_0x45cd('0x14')](_0x5de818,_0x45cd('0x13'),(_0x2b2b66,_0x2fe49f)=>{this[_0x45cd('0x14')](_0x2fe49f,'ready',()=>{this[_0x45cd('0x12')](_0x2fe49f);});}),this[_0x45cd('0x14')](_0x5de818,_0x45cd('0x1b'),(_0x1b190e,_0x3e0a3e)=>{_0x3e0a3e[_0x45cd('0x1f')][_0x45cd('0x19')](_0x45cd('0x2b'))&&this['_destroyEditorAnnotationsIntegration'](_0x3e0a3e['plugins'][_0x45cd('0x29')](_0x45cd('0x2b')));}),window[_0x45cd('0x2d')]('resize',this[_0x45cd('0xe')]),this['annotations'][_0x45cd('0x18')]();}[_0x45cd('0x1c')](){if(!this[_0x45cd('0x8')])throw new _0x24534d(_0x45cd('0x2a'),this);this['setActiveAnnotation'](null);const _0x3fee3e=this[_0x45cd('0x0')][_0x45cd('0x1f')][_0x45cd('0x29')](_0x7833b8);_0x3fee3e[_0x45cd('0x20')](this['annotations']),this[_0x45cd('0x2')](_0x3fee3e),this['stopListening'](this[_0x45cd('0xa')]),this[_0x45cd('0x0')]instanceof _0x119d24&&this['stopListening'](this[_0x45cd('0x0')][_0x45cd('0x16')]);for(const _0x15957b of Array[_0x45cd('0x1a')](this[_0x45cd('0x10')]))this[_0x45cd('0x2c')](_0x15957b);window[_0x45cd('0x7')]('resize',this[_0x45cd('0xe')]),this['_refreshPositioningDebounced'][_0x45cd('0x11')](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this[_0x45cd('0x8')]&&this[_0x45cd('0x1c')]();}[_0x45cd('0x12')](_0x231caf){const _0x4991d0=_0x231caf['plugins'][_0x45cd('0x29')](_0x32919e);if(!_0x4991d0)return;const _0x170934=()=>{const _0x5a2bbc=_0x4991d0['getOrderedSelectedAnnotations']({'annotations':this[_0x45cd('0xa')],'activeAnnotation':this[_0x45cd('0x1')]});this[_0x45cd('0x24')](_0x5a2bbc[0x0]||null);};this[_0x45cd('0x14')](_0x4991d0,'refresh',_0x170934),this[_0x45cd('0x14')](_0x4991d0,_0x45cd('0x5'),(_0x7c16a,{isAnnotationTracked:_0x42738e})=>{this[_0x45cd('0x1')]&&_0x42738e(this[_0x45cd('0x1')])&&this[_0x45cd('0x24')](null);}),this[_0x45cd('0x14')](_0x4991d0,_0x45cd('0xd'),()=>{this[_0x45cd('0xe')]();}),this[_0x45cd('0x14')](this[_0x45cd('0xa')],'blur',_0x56c416=>{_0x4991d0[_0x45cd('0x3')]()&&(_0x170934(),_0x56c416[_0x45cd('0x6')]());},{'priority':'high'}),this[_0x45cd('0x10')][_0x45cd('0x13')](_0x4991d0);}['_destroyEditorAnnotationsIntegration'](_0x4f62b9){this[_0x45cd('0x2')](_0x4f62b9),this['_editorAnnotations']['remove'](_0x4f62b9);}}
23
+ const _0x20a0=['getOrderedSelectedAnnotations','high','attach','remove','pluginName','activeAnnotation','focus','uiUpdate','requires','editors','detach','setActiveAnnotation','annotations','EditorAnnotations','off','resize','addAnnotation','hasDomSelection','widesidebar-attach-already-attached','add','stopListening','blur','WideSidebar','_attachToContainer','_refreshPositioningDebounced','widesidebar-detach-not-attached','_annotations','destroy','_integrateWithEditorAnnotations','wideSidebar','context','_editorAnnotations','listenTo','plugins','init','container','isAttached','removeEventListener','get','change:container','set','refreshPositioning','cancel','refresh','switchTo','_detachFromContainer','_destroyEditorAnnotationsIntegration'];(function(_0x4bbe3c,_0x20a025){const _0x3ee6a3=function(_0x3aabb6){while(--_0x3aabb6){_0x4bbe3c['push'](_0x4bbe3c['shift']());}};_0x3ee6a3(++_0x20a025);}(_0x20a0,0x1a2));const _0x3ee6=function(_0x4bbe3c,_0x20a025){_0x4bbe3c=_0x4bbe3c-0x0;let _0x3ee6a3=_0x20a0[_0x4bbe3c];return _0x3ee6a3;};import{ContextPlugin as _0x391fd9,Context as _0x328571}from'ckeditor5/src/core';import _0x415a7a from'./annotationsuis';import _0xad456d from'./sidebar';import{CKEditorError as _0x95d049,Collection as _0x54c3fb}from'ckeditor5/src/utils';import{debounce as _0x40efd3}from'lodash-es';import _0x5778d1 from'./editorannotations';export default class i extends _0x391fd9{static get[_0x3ee6('0xd')](){return[_0xad456d,_0x415a7a];}static get[_0x3ee6('0x9')](){return _0x3ee6('0x1b');}constructor(_0x4b1d51){super(_0x4b1d51),this['isAttached']=!0x1,this[_0x3ee6('0x2d')](_0x3ee6('0xa'),null),this[_0x3ee6('0x11')]=null,this[_0x3ee6('0x24')]=new _0x54c3fb(),this[_0x3ee6('0x1d')]=_0x40efd3(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3ee6('0x27')](){const _0xad4c2a=this['context'][_0x3ee6('0x26')][_0x3ee6('0x2b')](_0x415a7a),_0x2da80d=this[_0x3ee6('0x23')][_0x3ee6('0x26')][_0x3ee6('0x2b')](_0xad456d);_0xad4c2a['register'](_0x3ee6('0x22'),this),_0x2da80d[_0x3ee6('0x28')]&&_0xad4c2a[_0x3ee6('0x2')](_0x3ee6('0x22'));}[_0x3ee6('0x10')](_0x254d07){if(_0x254d07===this[_0x3ee6('0xa')])return;const _0xcbceb0=this[_0x3ee6('0x23')]['plugins'][_0x3ee6('0x2b')](_0xad456d);_0xcbceb0['_activeAnnotation']=_0x254d07;const _0x1de5e9=this[_0x3ee6('0xa')];this[_0x3ee6('0xa')]=_0x254d07,_0xcbceb0[_0x3ee6('0x1')]({'blurredAnnotation':_0x1de5e9,'activatedAnnotation':this[_0x3ee6('0xa')]});}[_0x3ee6('0x7')](_0x4ab1d9){this['annotations']=_0x4ab1d9;const _0x3cea60=this[_0x3ee6('0x23')]['plugins']['get'](_0xad456d);if(_0x3cea60[_0x3ee6('0x1f')]=_0x4ab1d9,this[_0x3ee6('0x29')])throw new _0x95d049(_0x3ee6('0x17'),this);this[_0x3ee6('0x29')]=!0x0,this[_0x3ee6('0x25')](_0x3cea60,'set:container',()=>{this[_0x3ee6('0xf')](),this[_0x3ee6('0x25')](_0x3cea60,_0x3ee6('0x2c'),_0x283621=>{_0x283621[_0x3ee6('0x13')](),this[_0x3ee6('0x7')](_0x4ab1d9);});}),_0x3cea60[_0x3ee6('0x1c')]({'viewClass':'ck-sidebar--wide'});const _0x1ba94b=_0xb426ca=>{_0xb426ca['updateTargetRect'](),_0x3cea60[_0x3ee6('0x15')](_0xb426ca);};for(const _0x5293f2 of _0x4ab1d9)_0x1ba94b(_0x5293f2);this[_0x3ee6('0x25')](_0x4ab1d9,_0x3ee6('0x18'),(_0x354614,_0x5bcf15)=>{_0x1ba94b(_0x5bcf15);}),this['listenTo'](_0x4ab1d9,'remove',(_0x24f122,_0x352e26,_0x1ec742)=>{_0x3cea60['rearrange']({'removedAnnotation':_0x352e26,'previousAnnotation':_0x4ab1d9[_0x3ee6('0x2b')](_0x1ec742-0x1),'nextAnnotation':_0x4ab1d9['get'](_0x1ec742+0x1)}),_0x352e26===this[_0x3ee6('0xa')]&&this[_0x3ee6('0x10')](null);},{'priority':_0x3ee6('0x6')}),this[_0x3ee6('0x25')](_0x4ab1d9,_0x3ee6('0xb'),(_0x122d3d,_0x250917)=>{this[_0x3ee6('0x10')](_0x250917);}),this[_0x3ee6('0x25')](_0x4ab1d9,_0x3ee6('0x1a'),()=>{this[_0x3ee6('0x10')](null);});const _0x25f2b0=this['context']instanceof _0x328571?this[_0x3ee6('0x23')][_0x3ee6('0xe')]:new _0x54c3fb([this[_0x3ee6('0x23')]]);for(const _0x28c3b8 of _0x25f2b0)this[_0x3ee6('0x21')](_0x28c3b8);this[_0x3ee6('0x25')](_0x25f2b0,_0x3ee6('0x18'),(_0x22ec27,_0xde4ef7)=>{this[_0x3ee6('0x25')](_0xde4ef7,'ready',()=>{this[_0x3ee6('0x21')](_0xde4ef7);});}),this[_0x3ee6('0x25')](_0x25f2b0,_0x3ee6('0x8'),(_0x440dd3,_0x3752f2)=>{_0x3752f2['plugins']['has'](_0x3ee6('0x12'))&&this[_0x3ee6('0x4')](_0x3752f2[_0x3ee6('0x26')][_0x3ee6('0x2b')]('EditorAnnotations'));}),window['addEventListener'](_0x3ee6('0x14'),this[_0x3ee6('0x1d')]),this['annotations'][_0x3ee6('0x2e')]();}[_0x3ee6('0xf')](){if(!this[_0x3ee6('0x29')])throw new _0x95d049(_0x3ee6('0x1e'),this);this['setActiveAnnotation'](null);const _0x371954=this[_0x3ee6('0x23')]['plugins'][_0x3ee6('0x2b')](_0xad456d);_0x371954[_0x3ee6('0x3')](this[_0x3ee6('0x11')]),this['stopListening'](_0x371954),this['stopListening'](this[_0x3ee6('0x11')]),this[_0x3ee6('0x23')]instanceof _0x328571&&this['stopListening'](this[_0x3ee6('0x23')][_0x3ee6('0xe')]);for(const _0x51a5ce of Array['from'](this[_0x3ee6('0x24')]))this[_0x3ee6('0x4')](_0x51a5ce);window[_0x3ee6('0x2a')]('resize',this[_0x3ee6('0x1d')]),this[_0x3ee6('0x1d')][_0x3ee6('0x0')](),this[_0x3ee6('0xa')]=null,this['isAttached']=!0x1,this[_0x3ee6('0x11')]=null;}[_0x3ee6('0x20')](){this[_0x3ee6('0x29')]&&this[_0x3ee6('0xf')]();}[_0x3ee6('0x21')](_0xac3621){const _0x4ee041=_0xac3621['plugins']['get'](_0x5778d1);if(!_0x4ee041)return;const _0x410dc8=()=>{const _0x59ced6=_0x4ee041[_0x3ee6('0x5')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x59ced6[0x0]||null);};this[_0x3ee6('0x25')](_0x4ee041,_0x3ee6('0x1'),_0x410dc8),this['listenTo'](_0x4ee041,_0x3ee6('0x1a'),(_0x2f2882,{isAnnotationTracked:_0x5e3278})=>{this[_0x3ee6('0xa')]&&_0x5e3278(this[_0x3ee6('0xa')])&&this[_0x3ee6('0x10')](null);}),this[_0x3ee6('0x25')](_0x4ee041,_0x3ee6('0xc'),()=>{this[_0x3ee6('0x1d')]();}),this['listenTo'](this[_0x3ee6('0x11')],'blur',_0x1df19d=>{_0x4ee041[_0x3ee6('0x16')]()&&(_0x410dc8(),_0x1df19d['stop']());},{'priority':_0x3ee6('0x6')}),this[_0x3ee6('0x24')]['add'](_0x4ee041);}['_destroyEditorAnnotationsIntegration'](_0x4e4c1e){this[_0x3ee6('0x19')](_0x4e4c1e),this[_0x3ee6('0x24')]['remove'](_0x4e4c1e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19f0=['_trimToContent','document','refresh','getLastMatchingPosition','push','element','getRanges','model','start','_hasContent','_itemIsContent','addMarker','createRange','editor','getItems','item','substr','tableCell','comment:','execute','isObject','schema'];(function(_0x572697,_0x19f053){const _0x495330=function(_0xa8a6da){while(--_0xa8a6da){_0x572697['push'](_0x572697['shift']());}};_0x495330(++_0x19f053);}(_0x19f0,0x1d2));const _0x4953=function(_0x572697,_0x19f053){_0x572697=_0x572697-0x0;let _0x495330=_0x19f0[_0x572697];return _0x495330;};import{Command as _0x42adb6}from'ckeditor5/src/core';import{uid as _0x8e6802}from'ckeditor5/src/utils';export default class q extends _0x42adb6{[_0x4953('0x14')](){const _0x1a291a=this[_0x4953('0x9')][_0x4953('0x3')][_0x4953('0x13')]['selection'];for(const _0x5f28b8 of _0x1a291a[_0x4953('0x2')]())if(this['_hasContent'](_0x5f28b8))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x4953('0xf')]({threadId:_0x7622a8=_0x8e6802()}={}){const _0x44d57e=this['editor'][_0x4953('0x3')],_0x11fcb7=[];for(const _0x17a3d5 of _0x44d57e[_0x4953('0x13')]['selection'][_0x4953('0x2')]())this[_0x4953('0x5')](_0x17a3d5)&&_0x11fcb7[_0x4953('0x0')](this['_trimToContent'](_0x17a3d5));_0x44d57e['change'](_0xa564=>{for(const _0xc7b4dc of _0x11fcb7){const _0x4c0be3=_0x8e6802()[_0x4953('0xc')](0x1,0x5),_0x1337a4=_0x4953('0xe')+_0x7622a8+':'+_0x4c0be3;_0xa564[_0x4953('0x7')](_0x1337a4,{'range':_0xc7b4dc,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4953('0x5')](_0x54bba2){for(const _0xa6805b of _0x54bba2[_0x4953('0xa')]())if(this[_0x4953('0x6')](_0xa6805b))return!0x0;return!0x1;}[_0x4953('0x6')](_0x460a11){return _0x460a11['is']('$textProxy')||this[_0x4953('0x9')][_0x4953('0x3')][_0x4953('0x11')][_0x4953('0x10')](_0x460a11)&&!_0x460a11['is'](_0x4953('0x1'),_0x4953('0xd'));}[_0x4953('0x12')](_0x176cb2){const _0x27e65f=_0xb029c6=>!this[_0x4953('0x6')](_0xb029c6[_0x4953('0xb')]),_0x4c0709=_0x176cb2[_0x4953('0x4')]['getLastMatchingPosition'](_0x27e65f),_0x23c904=_0x176cb2['end'][_0x4953('0x15')](_0x27e65f,{'direction':'backward'});return this[_0x4953('0x9')][_0x4953('0x3')][_0x4953('0x8')](_0x4c0709,_0x23c904);}}
23
+ const _0x4334=['addMarker','substr','isEnabled','getItems','_trimToContent','end','document','schema','start','model','$textProxy','isObject','editor','createRange','item','getLastMatchingPosition','change','element','_hasContent','tableCell','_itemIsContent','push'];(function(_0x50acb6,_0x43347a){const _0x1b6d0b=function(_0x29f12d){while(--_0x29f12d){_0x50acb6['push'](_0x50acb6['shift']());}};_0x1b6d0b(++_0x43347a);}(_0x4334,0x1b7));const _0x1b6d=function(_0x50acb6,_0x43347a){_0x50acb6=_0x50acb6-0x0;let _0x1b6d0b=_0x4334[_0x50acb6];return _0x1b6d0b;};import{Command as _0xe882df}from'ckeditor5/src/core';import{uid as _0x3b4519}from'ckeditor5/src/utils';export default class q extends _0xe882df{['refresh'](){const _0x5084a0=this['editor'][_0x1b6d('0xa')][_0x1b6d('0x7')]['selection'];for(const _0x1b6e56 of _0x5084a0['getRanges']())if(this['_hasContent'](_0x1b6e56))return void(this[_0x1b6d('0x3')]=!0x0);this[_0x1b6d('0x3')]=!0x1;}['execute']({threadId:_0x11c242=_0x3b4519()}={}){const _0x3d5e98=this[_0x1b6d('0xd')][_0x1b6d('0xa')],_0x4dd4a0=[];for(const _0x2dc559 of _0x3d5e98['document']['selection']['getRanges']())this[_0x1b6d('0x13')](_0x2dc559)&&_0x4dd4a0[_0x1b6d('0x0')](this[_0x1b6d('0x5')](_0x2dc559));_0x3d5e98[_0x1b6d('0x11')](_0x4104f1=>{for(const _0x18705f of _0x4dd4a0){const _0x334382=_0x3b4519()[_0x1b6d('0x2')](0x1,0x5),_0xdf9707='comment:'+_0x11c242+':'+_0x334382;_0x4104f1[_0x1b6d('0x1')](_0xdf9707,{'range':_0x18705f,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x4661af){for(const _0x43d76d of _0x4661af[_0x1b6d('0x4')]())if(this[_0x1b6d('0x15')](_0x43d76d))return!0x0;return!0x1;}['_itemIsContent'](_0x6e3a0){return _0x6e3a0['is'](_0x1b6d('0xb'))||this['editor'][_0x1b6d('0xa')][_0x1b6d('0x8')][_0x1b6d('0xc')](_0x6e3a0)&&!_0x6e3a0['is'](_0x1b6d('0x12'),_0x1b6d('0x14'));}[_0x1b6d('0x5')](_0x45b86a){const _0x1c233f=_0x5b6604=>!this[_0x1b6d('0x15')](_0x5b6604[_0x1b6d('0xf')]),_0x2fcf96=_0x45b86a[_0x1b6d('0x9')][_0x1b6d('0x10')](_0x1c233f),_0x453715=_0x45b86a[_0x1b6d('0x6')][_0x1b6d('0x10')](_0x1c233f,{'direction':'backward'});return this['editor']['model'][_0x1b6d('0xe')](_0x2fcf96,_0x453715);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x295a=['requires','removeCommentThread','getCommentThread','has','collection','length','listenTo','addCommentThread','context','CommentsArchive','isActive','add','get','resolveCommentThread','activate','pluginName','_calculatePosition','plugins','resolvedThreads','resolvedAt','highest','reopenCommentThread'];(function(_0x4dbde3,_0x295a1e){const _0x26bcbf=function(_0x478822){while(--_0x478822){_0x4dbde3['push'](_0x4dbde3['shift']());}};_0x26bcbf(++_0x295a1e);}(_0x295a,0x1aa));const _0x26bc=function(_0x4dbde3,_0x295a1e){_0x4dbde3=_0x4dbde3-0x0;let _0x26bcbf=_0x295a[_0x4dbde3];return _0x26bcbf;};import{ContextPlugin as _0x5cfec7}from'ckeditor5/src/core';import{Collection as _0x5157ca}from'ckeditor5/src/utils';import _0x92e303 from'./commentsrepository';import _0x451a5f from'../annotations/annotations';export default class p extends _0x5cfec7{static get[_0x26bc('0x7')](){return _0x26bc('0x1');}static get[_0x26bc('0xe')](){return[_0x92e303,_0x451a5f];}constructor(_0x90cd22){super(_0x90cd22),this[_0x26bc('0xa')]=new _0x5157ca();}['init'](){const _0x47a513=this[_0x26bc('0x0')],_0x430bf5=_0x47a513[_0x26bc('0x9')][_0x26bc('0x4')](_0x92e303),_0x77f93=_0x47a513[_0x26bc('0x9')]['get'](_0x451a5f);this[_0x26bc('0x14')](_0x430bf5,_0x26bc('0x15'),(_0x1ed02d,{threadId:_0x2ef87a,resolvedAt:_0x36a81b,deletedAt:_0x504d40})=>{if(_0x36a81b&&!_0x504d40){const _0x163bf3=_0x430bf5['getCommentThread'](_0x2ef87a);this[_0x26bc('0xa')][_0x26bc('0x3')](_0x163bf3,this[_0x26bc('0x8')](_0x36a81b));}}),this[_0x26bc('0x14')](_0x430bf5,_0x26bc('0x5'),(_0x5bf1b2,{threadId:_0x30fc36,resolvedAt:_0x25130b})=>{const _0x3c2db3=_0x430bf5['getCommentThread'](_0x30fc36);this['resolvedThreads'][_0x26bc('0x3')](_0x3c2db3,this[_0x26bc('0x8')](_0x25130b));},{'priority':'highest'}),this['listenTo'](_0x430bf5,_0x26bc('0xd'),(_0x39aa23,{threadId:_0x437216})=>{const _0x2fbab4=_0x430bf5[_0x26bc('0x10')](_0x437216);this[_0x26bc('0xa')][_0x26bc('0x11')](_0x2fbab4)&&this[_0x26bc('0xa')]['remove'](_0x2fbab4);},{'priority':_0x26bc('0xc')}),this[_0x26bc('0x14')](_0x430bf5,_0x26bc('0xf'),(_0xd5be6b,{threadId:_0x228372})=>{const _0x101d9e=_0x430bf5[_0x26bc('0x10')](_0x228372);this[_0x26bc('0xa')][_0x26bc('0x11')](_0x101d9e)&&this[_0x26bc('0xa')]['remove'](_0x101d9e);},{'priority':'highest'}),this[_0x26bc('0x14')](_0x77f93[_0x26bc('0x12')],'focus',(_0x29f39c,_0x593b2d)=>{_0x593b2d[_0x26bc('0x2')]=!0x0,_0x77f93[_0x26bc('0x6')](_0x593b2d);});}[_0x26bc('0x8')](_0xbf0f71){const _0x41e10a=[...this[_0x26bc('0xa')]]['findIndex'](_0x3236ba=>_0x3236ba[_0x26bc('0xb')]<_0xbf0f71);return _0x41e10a>-0x1?_0x41e10a:this[_0x26bc('0xa')][_0x26bc('0x13')];}}
23
+ const _0x2d74=['_calculatePosition','pluginName','resolvedAt','collection','CommentsArchive','length','context','resolvedThreads','highest','findIndex','listenTo','focus','reopenCommentThread','get','has','getCommentThread','resolveCommentThread','isActive','addCommentThread'];(function(_0x20aff0,_0x2d744c){const _0x36a715=function(_0x5764e4){while(--_0x5764e4){_0x20aff0['push'](_0x20aff0['shift']());}};_0x36a715(++_0x2d744c);}(_0x2d74,0xed));const _0x36a7=function(_0x20aff0,_0x2d744c){_0x20aff0=_0x20aff0-0x0;let _0x36a715=_0x2d74[_0x20aff0];return _0x36a715;};import{ContextPlugin as _0x4cc47a}from'ckeditor5/src/core';import{Collection as _0x5046d6}from'ckeditor5/src/utils';import _0x1e8b0a from'./commentsrepository';import _0x49506a from'../annotations/annotations';export default class p extends _0x4cc47a{static get[_0x36a7('0xb')](){return _0x36a7('0xe');}static get['requires'](){return[_0x1e8b0a,_0x49506a];}constructor(_0x226dcf){super(_0x226dcf),this[_0x36a7('0x11')]=new _0x5046d6();}['init'](){const _0x41292d=this[_0x36a7('0x10')],_0x4db8be=_0x41292d['plugins'][_0x36a7('0x4')](_0x1e8b0a),_0x25972d=_0x41292d['plugins']['get'](_0x49506a);this[_0x36a7('0x1')](_0x4db8be,_0x36a7('0x9'),(_0x57574a,{threadId:_0x175c23,resolvedAt:_0x27c177,deletedAt:_0x4aa7f2})=>{if(_0x27c177&&!_0x4aa7f2){const _0x5328e3=_0x4db8be[_0x36a7('0x6')](_0x175c23);this[_0x36a7('0x11')]['add'](_0x5328e3,this[_0x36a7('0xa')](_0x27c177));}}),this[_0x36a7('0x1')](_0x4db8be,_0x36a7('0x7'),(_0x356658,{threadId:_0x59058e,resolvedAt:_0x1ac6a6})=>{const _0x42d263=_0x4db8be[_0x36a7('0x6')](_0x59058e);this[_0x36a7('0x11')]['add'](_0x42d263,this['_calculatePosition'](_0x1ac6a6));},{'priority':_0x36a7('0x12')}),this[_0x36a7('0x1')](_0x4db8be,_0x36a7('0x3'),(_0xf738e,{threadId:_0x47e85f})=>{const _0x111182=_0x4db8be['getCommentThread'](_0x47e85f);this['resolvedThreads'][_0x36a7('0x5')](_0x111182)&&this[_0x36a7('0x11')]['remove'](_0x111182);},{'priority':_0x36a7('0x12')}),this[_0x36a7('0x1')](_0x4db8be,'removeCommentThread',(_0x8dbff4,{threadId:_0x246bc4})=>{const _0x5391fb=_0x4db8be[_0x36a7('0x6')](_0x246bc4);this['resolvedThreads'][_0x36a7('0x5')](_0x5391fb)&&this[_0x36a7('0x11')]['remove'](_0x5391fb);},{'priority':'highest'}),this['listenTo'](_0x25972d[_0x36a7('0xd')],_0x36a7('0x2'),(_0x438f93,_0x886d6a)=>{_0x886d6a[_0x36a7('0x8')]=!0x0,_0x25972d['activate'](_0x886d6a);});}['_calculatePosition'](_0x4378cb){const _0xb789ab=[...this['resolvedThreads']][_0x36a7('0x0')](_0x5084a9=>_0x5084a9[_0x36a7('0xc')]<_0x4378cb);return _0xb789ab>-0x1?_0xb789ab:this[_0x36a7('0x11')][_0x36a7('0xf')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2229=['_calculatePosition','resolvedAt','CommentsRepository','locale','get','buttonView','Annotations','CommentsArchiveUI','_handleAnnotationFocusableElements','find','componentFactory','config','contains','pluginName','focusTracker','filter','remove','_createArchiveUIDropdown','_pendingThreads','commentsArchiveView','plugins','listenTo','stopListening','annotationViews','children','editor','push','add','requires','focusableElements','ck-body','innerView','mainView','findIndex','COMMENTS_ARCHIVE','change:isOpen','indexOf','classList','extendTemplate','channelId','getByInnerView','view','position','_threadToController','commentsArchive','isVisible','resolvedThreads','panelView','collection'];(function(_0x3f7370,_0x22291b){const _0x5aa4cc=function(_0xd8ec7d){while(--_0xd8ec7d){_0x3f7370['push'](_0x3f7370['shift']());}};_0x5aa4cc(++_0x22291b);}(_0x2229,0x74));const _0x5aa4=function(_0x3f7370,_0x22291b){_0x3f7370=_0x3f7370-0x0;let _0x5aa4cc=_0x2229[_0x3f7370];return _0x5aa4cc;};import'../../theme/commentsarchive.css';import{Plugin as _0x40eef5}from'ckeditor5/src/core';import{createDropdown as _0x3e1390,ViewCollection as _0x34a834}from'ckeditor5/src/ui';import _0x5227e6 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5a4608}from'../utils/common-translations';import _0x3ef190 from'./ui/view/commentsarchiveview';import _0x5e9085 from'./commentsarchive';export default class a extends _0x40eef5{static get[_0x5aa4('0x2c')](){return _0x5aa4('0x26');}static get[_0x5aa4('0xa')](){return[_0x5e9085];}constructor(_0x4bdb32){super(_0x4bdb32),this[_0x5aa4('0x5')]=new _0x34a834(),this[_0x5aa4('0x0')]=[];}['init'](){this[_0x5aa4('0x7')]['ui'][_0x5aa4('0x29')]['add'](_0x5aa4('0x1a'),()=>this[_0x5aa4('0x30')]());const _0x45ab65=this[_0x5aa4('0x7')][_0x5aa4('0x2')][_0x5aa4('0x23')](_0x5e9085),_0x1fc65c=this[_0x5aa4('0x7')][_0x5aa4('0x2')]['get'](_0x5aa4('0x25')),_0xff6a00=this['editor'][_0x5aa4('0x2')][_0x5aa4('0x23')](_0x5aa4('0x21'));this[_0x5aa4('0x3')](_0x45ab65[_0x5aa4('0x1c')],_0x5aa4('0x9'),(_0x29bf11,_0x3e4b63)=>{const _0x5cd15e=this[_0x5aa4('0x7')][_0x5aa4('0x2a')]['get']('collaboration.channelId');if(!_0x5cd15e||_0x3e4b63['channelId']===_0x5cd15e){const _0x141477=this[_0x5aa4('0x1f')](_0x3e4b63[_0x5aa4('0x20')]),_0x45018a=_0xff6a00['_threadToController'][_0x5aa4('0x23')](_0x3e4b63);if(!_0x45018a)return void this['_pendingThreads'][_0x5aa4('0x8')]({'thread':_0x3e4b63,'position':_0x141477});const _0x3ec87a=_0x1fc65c[_0x5aa4('0x16')](_0x45018a[_0x5aa4('0x17')]);_0x3ec87a[_0x5aa4('0x1b')]&&_0x1fc65c['_visibleAnnotations']['remove'](_0x3ec87a),this[_0x5aa4('0x5')][_0x5aa4('0x9')](_0x3ec87a[_0x5aa4('0x17')],_0x141477);}}),this[_0x5aa4('0x3')](_0x1fc65c[_0x5aa4('0x1e')],'add',(_0x5b60b8,_0x325eb6)=>{const _0x3ee22c=this[_0x5aa4('0x0')][_0x5aa4('0x28')](({thread:_0x551aeb})=>{const _0xe80e1c=_0xff6a00[_0x5aa4('0x19')][_0x5aa4('0x23')](_0x551aeb);return _0xe80e1c&&_0x325eb6[_0x5aa4('0xd')]===_0xe80e1c['view'];});_0x3ee22c&&(this[_0x5aa4('0x5')][_0x5aa4('0x9')](_0x325eb6[_0x5aa4('0x17')],_0x3ee22c[_0x5aa4('0x18')]),this[_0x5aa4('0x0')]['splice'](this[_0x5aa4('0x0')][_0x5aa4('0x12')](_0x3ee22c),0x1));}),this[_0x5aa4('0x3')](_0x45ab65[_0x5aa4('0x1c')],'remove',(_0x3a54e4,_0x3cab53)=>{const _0x4a663e=this[_0x5aa4('0x7')][_0x5aa4('0x2a')]['get']('collaboration.channelId');if(!_0x4a663e||_0x3cab53[_0x5aa4('0x15')]===_0x4a663e){const _0xa65c0e=_0xff6a00[_0x5aa4('0x19')][_0x5aa4('0x23')](_0x3cab53),_0x2cb9a3=_0x1fc65c[_0x5aa4('0x16')](_0xa65c0e[_0x5aa4('0x17')]);this[_0x5aa4('0x5')][_0x5aa4('0x2f')](_0x2cb9a3[_0x5aa4('0x17')]),this[_0x5aa4('0x4')](_0x2cb9a3['focusableElements']);}});}[_0x5aa4('0x27')](_0x3da5c3,_0x5f26ab){for(const _0x379ad7 of _0x5f26ab[_0x5aa4('0xb')])_0x379ad7[_0x5aa4('0x13')][_0x5aa4('0x2b')](_0x5aa4('0xc'))&&_0x3da5c3[_0x5aa4('0x2d')]['add'](_0x379ad7);this['listenTo'](_0x5f26ab[_0x5aa4('0xb')],'add',(_0x4b6737,_0x257c3f)=>{_0x257c3f[_0x5aa4('0x13')][_0x5aa4('0x2b')](_0x5aa4('0xc'))&&_0x3da5c3[_0x5aa4('0x2d')][_0x5aa4('0x9')](_0x257c3f);}),this[_0x5aa4('0x3')](_0x5f26ab[_0x5aa4('0xb')],_0x5aa4('0x2f'),(_0x31828d,_0x3d9d93)=>{_0x3d9d93[_0x5aa4('0x13')][_0x5aa4('0x2b')](_0x5aa4('0xc'))&&_0x3da5c3[_0x5aa4('0x2d')]['remove'](_0x3d9d93);});}[_0x5aa4('0x1f')](_0x334726){const _0x1a1dfc=this['editor'][_0x5aa4('0x2a')]['get']('collaboration.channelId'),_0x39b2c9=[...this[_0x5aa4('0x7')][_0x5aa4('0x2')][_0x5aa4('0x23')](_0x5e9085)[_0x5aa4('0x1c')]][_0x5aa4('0x2e')](_0x376e05=>_0x376e05[_0x5aa4('0x15')]!==_0x1a1dfc)[_0x5aa4('0xf')](_0x44b2ee=>_0x44b2ee[_0x5aa4('0x20')]<_0x334726);return _0x39b2c9>-0x1?_0x39b2c9:this['annotationViews']['length'];}[_0x5aa4('0x30')](){const _0x7ee46a=this[_0x5aa4('0x7')],_0x390e1d=this[_0x5aa4('0x7')]['plugins'][_0x5aa4('0x23')](_0x5aa4('0x25')),_0x4e0b76=_0x3e1390(_0x7ee46a[_0x5aa4('0x22')]);_0x4e0b76[_0x5aa4('0x24')]['set']({'icon':_0x5227e6,'label':_0x5a4608(_0x7ee46a[_0x5aa4('0x22')],_0x5aa4('0x10')),'tooltip':!0x0}),_0x4e0b76[_0x5aa4('0x1d')][_0x5aa4('0x14')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x4e0b76['on'](_0x5aa4('0x11'),(_0x4a343a,_0x1728ea,_0x32d85b)=>{this[_0x5aa4('0x1')]||(this['commentsArchiveView']=new _0x3ef190(_0x7ee46a[_0x5aa4('0x22')],this[_0x5aa4('0x5')])),_0x32d85b?_0x4e0b76[_0x5aa4('0x1d')]['children'][_0x5aa4('0x9')](this[_0x5aa4('0x1')]):_0x4e0b76[_0x5aa4('0x1d')][_0x5aa4('0x6')][_0x5aa4('0x2f')](this[_0x5aa4('0x1')]);});for(const _0x18d05f of this[_0x5aa4('0x5')]){const _0x835595=_0x390e1d['getByInnerView'](_0x18d05f[_0x5aa4('0xe')]);this[_0x5aa4('0x27')](_0x4e0b76,_0x835595);}return _0x4e0b76['listenTo'](this[_0x5aa4('0x5')],'add',(_0x205acc,_0x2f8e33)=>{const _0x48078f=_0x390e1d[_0x5aa4('0x16')](_0x2f8e33[_0x5aa4('0xe')]);this[_0x5aa4('0x27')](_0x4e0b76,_0x48078f);}),_0x4e0b76[_0x5aa4('0x3')](this[_0x5aa4('0x5')],_0x5aa4('0x2f'),(_0xb933e5,_0x1954ca)=>{const _0x326530=_0x390e1d[_0x5aa4('0x16')](_0x1954ca['mainView']);for(const _0x1b1d97 of _0x326530['focusableElements'])_0x1b1d97['classList']['contains'](_0x5aa4('0xc'))&&_0x4e0b76[_0x5aa4('0x2d')]['remove'](_0x1b1d97);}),_0x4e0b76;}}
23
+ const _0x4d88=['componentFactory','get','commentsArchiveView','init','_threadToController','add','collection','CommentsArchiveUI','children','pluginName','config','requires','buttonView','plugins','contains','annotationViews','push','_handleAnnotationFocusableElements','extendTemplate','change:isOpen','COMMENTS_ARCHIVE','ck-comments-archive-dropdown','focusableElements','Annotations','getByInnerView','filter','_pendingThreads','mainView','channelId','innerView','_visibleAnnotations','view','ck-body','classList','resolvedAt','find','resolvedThreads','editor','panelView','collaboration.channelId','remove','_calculatePosition','listenTo','length','position','locale','findIndex','stopListening','splice','_createArchiveUIDropdown','focusTracker'];(function(_0x586451,_0x4d889b){const _0x1cd730=function(_0x4a4c3c){while(--_0x4a4c3c){_0x586451['push'](_0x586451['shift']());}};_0x1cd730(++_0x4d889b);}(_0x4d88,0x1d7));const _0x1cd7=function(_0x586451,_0x4d889b){_0x586451=_0x586451-0x0;let _0x1cd730=_0x4d88[_0x586451];return _0x1cd730;};import'../../theme/commentsarchive.css';import{Plugin as _0x57f146}from'ckeditor5/src/core';import{createDropdown as _0x48c2be,ViewCollection as _0x1723a6}from'ckeditor5/src/ui';import _0xab2e16 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4488c1}from'../utils/common-translations';import _0x5645a8 from'./ui/view/commentsarchiveview';import _0x41afb2 from'./commentsarchive';export default class a extends _0x57f146{static get[_0x1cd7('0x30')](){return _0x1cd7('0x2e');}static get[_0x1cd7('0x32')](){return[_0x41afb2];}constructor(_0x1b7987){super(_0x1b7987),this[_0x1cd7('0x3')]=new _0x1723a6(),this[_0x1cd7('0xe')]=[];}[_0x1cd7('0x2a')](){this[_0x1cd7('0x19')]['ui'][_0x1cd7('0x27')]['add']('commentsArchive',()=>this[_0x1cd7('0x25')]());const _0x179258=this[_0x1cd7('0x19')][_0x1cd7('0x1')][_0x1cd7('0x28')](_0x41afb2),_0xff5ea1=this[_0x1cd7('0x19')]['plugins'][_0x1cd7('0x28')]('Annotations'),_0x39e88a=this[_0x1cd7('0x19')][_0x1cd7('0x1')][_0x1cd7('0x28')]('CommentsRepository');this[_0x1cd7('0x1e')](_0x179258['resolvedThreads'],'add',(_0x359f1b,_0x2f8e7d)=>{const _0x2f4f08=this[_0x1cd7('0x19')][_0x1cd7('0x31')][_0x1cd7('0x28')]('collaboration.channelId');if(!_0x2f4f08||_0x2f8e7d['channelId']===_0x2f4f08){const _0x8cbc22=this[_0x1cd7('0x1d')](_0x2f8e7d[_0x1cd7('0x16')]),_0x189f37=_0x39e88a[_0x1cd7('0x2b')][_0x1cd7('0x28')](_0x2f8e7d);if(!_0x189f37)return void this[_0x1cd7('0xe')][_0x1cd7('0x4')]({'thread':_0x2f8e7d,'position':_0x8cbc22});const _0x2a0270=_0xff5ea1[_0x1cd7('0xc')](_0x189f37[_0x1cd7('0x13')]);_0x2a0270['isVisible']&&_0xff5ea1[_0x1cd7('0x12')][_0x1cd7('0x1c')](_0x2a0270),this[_0x1cd7('0x3')]['add'](_0x2a0270[_0x1cd7('0x13')],_0x8cbc22);}}),this['listenTo'](_0xff5ea1[_0x1cd7('0x2d')],'add',(_0x57d0d4,_0x4d9140)=>{const _0x2ed10c=this['_pendingThreads'][_0x1cd7('0x17')](({thread:_0x2f566d})=>{const _0x4a6ad2=_0x39e88a[_0x1cd7('0x2b')][_0x1cd7('0x28')](_0x2f566d);return _0x4a6ad2&&_0x4d9140[_0x1cd7('0x11')]===_0x4a6ad2['view'];});_0x2ed10c&&(this[_0x1cd7('0x3')][_0x1cd7('0x2c')](_0x4d9140[_0x1cd7('0x13')],_0x2ed10c[_0x1cd7('0x20')]),this[_0x1cd7('0xe')][_0x1cd7('0x24')](this[_0x1cd7('0xe')]['indexOf'](_0x2ed10c),0x1));}),this[_0x1cd7('0x1e')](_0x179258[_0x1cd7('0x18')],_0x1cd7('0x1c'),(_0x3ea844,_0x25ada3)=>{const _0x5a07af=this['editor'][_0x1cd7('0x31')][_0x1cd7('0x28')](_0x1cd7('0x1b'));if(!_0x5a07af||_0x25ada3[_0x1cd7('0x10')]===_0x5a07af){const _0x3b863b=_0x39e88a['_threadToController']['get'](_0x25ada3),_0x5189f2=_0xff5ea1[_0x1cd7('0xc')](_0x3b863b['view']);this[_0x1cd7('0x3')][_0x1cd7('0x1c')](_0x5189f2[_0x1cd7('0x13')]),this[_0x1cd7('0x23')](_0x5189f2['focusableElements']);}});}['_handleAnnotationFocusableElements'](_0x49bb80,_0x44fb2d){for(const _0x320258 of _0x44fb2d[_0x1cd7('0xa')])_0x320258[_0x1cd7('0x15')][_0x1cd7('0x2')]('ck-body')&&_0x49bb80[_0x1cd7('0x26')][_0x1cd7('0x2c')](_0x320258);this[_0x1cd7('0x1e')](_0x44fb2d[_0x1cd7('0xa')],_0x1cd7('0x2c'),(_0x4bd4f5,_0x3b711d)=>{_0x3b711d['classList'][_0x1cd7('0x2')]('ck-body')&&_0x49bb80['focusTracker'][_0x1cd7('0x2c')](_0x3b711d);}),this[_0x1cd7('0x1e')](_0x44fb2d[_0x1cd7('0xa')],'remove',(_0x3b6e16,_0x4bfc1c)=>{_0x4bfc1c[_0x1cd7('0x15')]['contains'](_0x1cd7('0x14'))&&_0x49bb80['focusTracker'][_0x1cd7('0x1c')](_0x4bfc1c);});}[_0x1cd7('0x1d')](_0x2771f5){const _0x2a9800=this[_0x1cd7('0x19')]['config'][_0x1cd7('0x28')](_0x1cd7('0x1b')),_0x16398c=[...this[_0x1cd7('0x19')][_0x1cd7('0x1')]['get'](_0x41afb2)[_0x1cd7('0x18')]][_0x1cd7('0xd')](_0x2ff162=>_0x2ff162[_0x1cd7('0x10')]!==_0x2a9800)[_0x1cd7('0x22')](_0x113ff0=>_0x113ff0[_0x1cd7('0x16')]<_0x2771f5);return _0x16398c>-0x1?_0x16398c:this[_0x1cd7('0x3')][_0x1cd7('0x1f')];}[_0x1cd7('0x25')](){const _0x545b13=this['editor'],_0x342031=this['editor']['plugins'][_0x1cd7('0x28')](_0x1cd7('0xb')),_0x530ae8=_0x48c2be(_0x545b13[_0x1cd7('0x21')]);_0x530ae8[_0x1cd7('0x0')]['set']({'icon':_0xab2e16,'label':_0x4488c1(_0x545b13[_0x1cd7('0x21')],_0x1cd7('0x8')),'tooltip':!0x0}),_0x530ae8['panelView'][_0x1cd7('0x6')]({'attributes':{'class':_0x1cd7('0x9')}}),_0x530ae8['on'](_0x1cd7('0x7'),(_0x11c782,_0x74e6a1,_0x26997c)=>{this[_0x1cd7('0x29')]||(this[_0x1cd7('0x29')]=new _0x5645a8(_0x545b13['locale'],this[_0x1cd7('0x3')])),_0x26997c?_0x530ae8[_0x1cd7('0x1a')]['children'][_0x1cd7('0x2c')](this['commentsArchiveView']):_0x530ae8[_0x1cd7('0x1a')][_0x1cd7('0x2f')]['remove'](this['commentsArchiveView']);});for(const _0x5717f0 of this[_0x1cd7('0x3')]){const _0x245e4b=_0x342031[_0x1cd7('0xc')](_0x5717f0['mainView']);this[_0x1cd7('0x5')](_0x530ae8,_0x245e4b);}return _0x530ae8[_0x1cd7('0x1e')](this[_0x1cd7('0x3')],_0x1cd7('0x2c'),(_0x4fc6d4,_0x270969)=>{const _0x441dbe=_0x342031[_0x1cd7('0xc')](_0x270969[_0x1cd7('0xf')]);this['_handleAnnotationFocusableElements'](_0x530ae8,_0x441dbe);}),_0x530ae8[_0x1cd7('0x1e')](this[_0x1cd7('0x3')],_0x1cd7('0x1c'),(_0x6c1466,_0x485b16)=>{const _0x870f60=_0x342031[_0x1cd7('0xc')](_0x485b16[_0x1cd7('0xf')]);for(const _0x2c8e47 of _0x870f60[_0x1cd7('0xa')])_0x2c8e47[_0x1cd7('0x15')]['contains'](_0x1cd7('0x14'))&&_0x530ae8['focusTracker']['remove'](_0x2c8e47);}),_0x530ae8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21d5=['createRange','clear','root','createElement','from','_attachedThreads','rootName','_attachResolvedThread','getRange','ready','config','ck-comment-marker--active','ck-comment-marker','render','getAllMarkersForId','conversion','collaboration.channelId','listenTo','substring','view','get','removeMarker','text','delete','data','split','removeCommentThread','_handleMarkerAddAndRemove','editingDowncast','size','destroy','ignoreResolvedComments','dataToMarker','_autoResolvedThreads','addComment','_threads','start','isThreadsLoadingPaused','createPositionBefore','item','document','updateMarker','resolveCommentThread','addCommentThread','$textProxy','push','_getTextContext','consume','getWalker','$marker','markers','once','set','markerToData','change:isThreadsLoadingPaused','hasMarkerForId','then','context','end','focus','managedUsingOperations','setContext','activeMarker','affectsData','reconvertMarker','upcast','differ','CommentsEditing','_getTargetForId','_reconvertMarkers','openNewCommentThread','low','enqueueChange','isObject','requires','refreshVisibility','reopenCommentThread','comment:','getCommentThread','change','markerName','consumable','elementToElement','isLocal','isEqual','markerToHighlight','length','isCollapsed','model','change:activeMarker','schema','plugins','_removedThread','_handleThreadMarker','fetchCommentThread','editor','registerAnnotation','_threadToController','commands','attachTo','comment','_hasTargetInContent','switchReadOnly','getByInnerView','isResolved','hasDomSelection','change:isReadOnly','has','scrollToThreadMarker','_attachMarkerToThread','newRange','init','registerPostFixer','add','reopen','for','$graveyard','editing','_initializeMarkerConverters','map'];(function(_0x3ac9cc,_0x21d558){const _0x3b17e9=function(_0x23489b){while(--_0x23489b){_0x3ac9cc['push'](_0x3ac9cc['shift']());}};_0x3b17e9(++_0x21d558);}(_0x21d5,0x15b));const _0x3b17=function(_0x3ac9cc,_0x21d558){_0x3ac9cc=_0x3ac9cc-0x0;let _0x3b17e9=_0x21d5[_0x3ac9cc];return _0x3b17e9;};import{Plugin as _0x55dc0b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3e671b}from'ckeditor5/src/utils';import _0x182687 from'./commentsrepository';import _0x4ceaca from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3fe713}from'ckeditor5-collaboration/src/collaboration-core';import _0x434320 from'../annotations/editorannotations';import _0xf0f589 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x587004 from'./integrations/importword';import _0x3558a0 from'../annotations/annotations';export default class r extends _0x55dc0b{static get[_0x3b17('0x57')](){return[_0x182687,_0x434320,_0xf0f589,_0x587004];}static get['pluginName'](){return _0x3b17('0x50');}constructor(_0x21feff){super(_0x21feff),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this[_0x3b17('0x41')](_0x3b17('0x32'),!0x0),_0x21feff[_0x3b17('0x25')][_0x3b17('0x40')](_0x3b17('0x16'),()=>this[_0x3b17('0x32')]=!0x1),this['set'](_0x3b17('0x4b'),null),this['on'](_0x3b17('0x66'),(_0x57432c,_0x1f8110,_0x47a477,_0x3747e7)=>{const _0x4fbcb9=_0x47a477?tt(_0x47a477)['id']:null;if(_0x21feff[_0x3b17('0x65')]['change'](()=>{if(_0x4fbcb9){const _0x2b4d84=this['getAllMarkersForId'](_0x4fbcb9);for(const _0x3fca7d of _0x2b4d84)_0x21feff[_0x3b17('0xa')]['reconvertMarker'](_0x3fca7d);}if(_0x3747e7){const {id:_0x1075dd}=tt(_0x3747e7),_0x5c982d=this[_0x3b17('0x1b')](_0x1075dd);for(const _0x3e5816 of _0x5c982d)_0x21feff[_0x3b17('0xa')][_0x3b17('0x4d')](_0x3e5816);}}),_0x4fbcb9){const _0x22e932=_0x21feff[_0x3b17('0x68')][_0x3b17('0x21')](_0x182687)[_0x3b17('0x5b')](_0x4fbcb9);_0x22e932&&_0x22e932[_0x3b17('0x75')]&&this['scrollToThreadMarker'](_0x4fbcb9);}}),this[_0x3b17('0x12')]=new Map();}[_0x3b17('0x4')](){const _0x42dea4=this[_0x3b17('0x6c')],_0x259adb=_0x42dea4[_0x3b17('0x68')]['get'](_0x182687),_0x37a40b=_0x42dea4[_0x3b17('0x17')][_0x3b17('0x21')](_0x3b17('0x1d'));_0x42dea4[_0x3b17('0x6f')]['add'](_0x3b17('0x38'),new _0x4ceaca(_0x42dea4)),this['listenTo'](_0x42dea4,_0x3b17('0x77'),(_0x3b7246,_0xf18d8f,_0x43d62c)=>{_0x259adb[_0x3b17('0x73')](_0x43d62c,_0x42dea4[_0x3b17('0x17')]['get'](_0x3b17('0x1d')));}),this[_0x3b17('0x1e')](_0x259adb,Z('addCommentThread',_0x37a40b),(_0x54476d,{threadId:_0x36a8ef})=>{const _0x10425b=this[_0x3b17('0x6c')][_0x3b17('0x68')]['get'](_0x182687)[_0x3b17('0x5b')](_0x36a8ef);_0x10425b&&_0x10425b[_0x3b17('0x75')]&&this[_0x3b17('0x14')](_0x36a8ef);}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x27'),_0x37a40b),(_0x5f579d,{threadId:_0x4db24e})=>{_0x42dea4[_0x3b17('0x65')][_0x3b17('0x55')]({'isUndoable':!0x1},_0x708aaf=>{const _0x1b3c8a=this[_0x3b17('0x1b')](_0x4db24e);this['_attachedThreads']['delete'](_0x4db24e),this[_0x3b17('0x69')]=_0x4db24e;for(const _0xaa3657 of _0x1b3c8a)_0x708aaf[_0x3b17('0x22')](_0xaa3657);}),this[_0x3b17('0x69')]=null;},{'priority':'high'}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x37'),_0x37a40b),(_0x449c2f,{threadId:_0x1ed4f4})=>{this[_0x3b17('0x14')](_0x1ed4f4),this[_0x3b17('0x52')](_0x1ed4f4),this[_0x3b17('0x6c')][_0x3b17('0xa')][_0x3b17('0x20')][_0x3b17('0x76')]&&this[_0x3b17('0x6c')][_0x3b17('0xa')]['view'][_0x3b17('0x48')]();},{'priority':_0x3b17('0x54')}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x59'),_0x37a40b),(_0x2193b8,{threadId:_0x4f195f})=>{this['_reconvertMarkers'](_0x4f195f);},{'priority':_0x3b17('0x54')}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x2f'),_0x37a40b),(_0x51f62d,{threadId:_0x59b3c1,isFromAdapter:_0x549c5f})=>{const _0x46c5ac=this['getAllMarkersForId'](_0x59b3c1);if(_0x549c5f||0x0==_0x46c5ac[_0x3b17('0x63')]||!_0x259adb['hasCommentThread'](_0x59b3c1))return;0x1===_0x259adb[_0x3b17('0x5b')](_0x59b3c1)[_0x3b17('0x63')]&&_0x42dea4['model'][_0x3b17('0x55')]({'isUndoable':!0x1},_0x1f2caf=>{for(const _0x4b346b of _0x46c5ac)_0x1f2caf['updateMarker'](_0x4b346b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3b17('0x54')}),this[_0x3b17('0xb')](),this[_0x3b17('0x28')]();}['destroy'](){const _0x2db4b0=this[_0x3b17('0x6c')][_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x5b0265=this['editor'][_0x3b17('0x17')][_0x3b17('0x21')](_0x3b17('0x1d'));for(const _0x2a05fc of _0x2db4b0['getCommentThreads']({'channelId':_0x5b0265}))_0x2db4b0['_detachCommentThread'](_0x2a05fc['id']),_0x2db4b0[_0x3b17('0x30')][_0x3b17('0x24')](_0x2a05fc['id']);super[_0x3b17('0x2b')]();}[_0x3b17('0x44')](_0x4ca2e2){return this[_0x3b17('0x1b')](_0x4ca2e2)[_0x3b17('0x63')]>0x0;}[_0x3b17('0x1b')](_0x283eff){return Array[_0x3b17('0x11')](this[_0x3b17('0x12')][_0x3b17('0x21')](_0x283eff)||[])[_0x3b17('0xc')](_0x4d48c7=>this[_0x3b17('0x6c')][_0x3b17('0x65')][_0x3b17('0x3f')]['get'](_0x4d48c7))['filter'](_0x29e94f=>_0x29e94f);}[_0x3b17('0x1')](_0x57401a){const _0x12be33=this[_0x3b17('0x51')](_0x57401a);_0x12be33&&setTimeout(()=>{this[_0x3b17('0x4b')]&&tt(this['activeMarker'])['id']===_0x57401a&&_0x3e671b({'target':_0x12be33[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x55c9d8){this['editor'][_0x3b17('0x65')]['change'](()=>{for(const _0x357366 of this[_0x3b17('0x1b')](_0x55c9d8))this[_0x3b17('0x6c')]['editing'][_0x3b17('0x4d')](_0x357366);});}[_0x3b17('0x14')](_0x3f1725){const _0x502e9d=this['editor'][_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x24f9ba=this[_0x3b17('0x6c')][_0x3b17('0x68')][_0x3b17('0x21')](_0x434320),_0x533701=_0x502e9d[_0x3b17('0x5b')](_0x3f1725);if(!this[_0x3b17('0x12')][_0x3b17('0x0')](_0x3f1725)){const _0x416bb9=_0x533701[_0x3b17('0x70')](()=>this['_getTargetForId'](_0x533701['id']));_0x24f9ba[_0x3b17('0x6d')](_0x416bb9),this[_0x3b17('0x12')]['set'](_0x3f1725,new Set()),_0x533701[_0x3b17('0x72')]=!0x1;}}[_0x3b17('0xb')](){const _0x3b6d59=this['editor'];_0x3b6d59[_0x3b17('0x1c')][_0x3b17('0x8')](_0x3b17('0x29'))[_0x3b17('0x62')]({'model':_0x3b17('0x71'),'view':(_0x27e1e2,_0x3180aa)=>{const {id:_0x7b0caf}=tt(_0x27e1e2[_0x3b17('0x5d')]),_0x1baccf=_0x3b6d59['plugins']['get'](_0x182687)[_0x3b17('0x5b')](_0x7b0caf),_0x17c174=this[_0x3b17('0x4b')]&&tt(this[_0x3b17('0x4b')])['id']===_0x7b0caf;if(_0x1baccf&&_0x1baccf['isResolved']&&!_0x17c174&&_0x27e1e2[_0x3b17('0x34')])return _0x3180aa[_0x3b17('0x5e')][_0x3b17('0x3c')](_0x27e1e2[_0x3b17('0x34')],'addMarker:'+_0x27e1e2['markerName']),_0x3180aa['consumable'][_0x3b17('0x3c')](_0x27e1e2['item'],'removeMarker:'+_0x27e1e2[_0x3b17('0x5d')]),{'classes':[]};const _0x337e69=[_0x3b17('0x19')];return _0x17c174&&_0x337e69[_0x3b17('0x3a')](_0x3b17('0x18')),{'classes':_0x337e69,'attributes':{'data-comment':_0x7b0caf}};}}),_0x3b6d59[_0x3b17('0x1c')][_0x3b17('0x8')]('dataDowncast')[_0x3b17('0x42')]({'model':_0x3b17('0x71'),'view':(_0x46f53e,{options:_0x5e2a91})=>{const _0x47690a=_0x3b6d59[_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x57957d=_0x3b6d59[_0x3b17('0x65')][_0x3b17('0x3f')][_0x3b17('0x21')](_0x46f53e),{id:_0x11f3c1,part:_0x4f8b7c}=tt(_0x46f53e);if(_0x57957d&&!_0x57957d[_0x3b17('0x4c')])return null;if(_0x5e2a91[_0x3b17('0x2c')]){const _0xd3c045=_0x47690a[_0x3b17('0x5b')](_0x11f3c1);if(_0xd3c045&&_0xd3c045[_0x3b17('0x75')])return null;}return{'group':_0x3b17('0x71'),'name':_0x4f8b7c?_0x11f3c1+':'+_0x4f8b7c:_0x11f3c1};}}),_0x3b6d59[_0x3b17('0x1c')][_0x3b17('0x8')](_0x3b17('0x4e'))[_0x3b17('0x5f')]({'view':{'name':_0x3b17('0x71'),'attributes':{'id':/^\w/}},'model':(_0x11cea7,{writer:_0x4e672f})=>_0x4e672f[_0x3b17('0x10')](_0x3b17('0x3e'),{'data-name':_0x3b17('0x5a')+_0x11cea7['getAttribute']('id')})}),_0x3b6d59['conversion'][_0x3b17('0x8')](_0x3b17('0x4e'))[_0x3b17('0x2d')]({'view':_0x3b17('0x71')});}[_0x3b17('0x28')](){const _0x136ca7=this[_0x3b17('0x6c')],_0xb7a203=_0x136ca7[_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x17a5d8=new Set(),_0x4dcd13=new Set();_0x136ca7['model']['document'][_0x3b17('0x5')](_0x4ad957=>{let _0x105a24=!0x1;for(const {name:_0x2d1e7b,data:_0x248042}of _0x136ca7[_0x3b17('0x65')][_0x3b17('0x35')][_0x3b17('0x4f')]['getChangedMarkers']()){const {group:_0x5e4958,id:_0x4b184d}=tt(_0x2d1e7b);let _0x3c1d03=_0x248042[_0x3b17('0x3')];if(_0x3b17('0x71')!==_0x5e4958||!_0x3c1d03)continue;const _0x7cd4c1=_0x3b17('0x9')===_0x3c1d03[_0x3b17('0xf')][_0x3b17('0x13')];_0x7cd4c1||(_0x3c1d03=ot(_0x3c1d03,_0x136ca7[_0x3b17('0x65')]),!_0x3c1d03||_0x3c1d03[_0x3b17('0x64')]||!_0x248042[_0x3b17('0x3')]||_0x3c1d03[_0x3b17('0x61')](_0x248042['newRange']))?_0x136ca7[_0x3b17('0x65')]['hasContent'](_0x3c1d03)&&!_0x7cd4c1?this[_0x3b17('0x32')]?_0x17a5d8[_0x3b17('0x6')](_0x2d1e7b):this[_0x3b17('0x6a')](_0x2d1e7b,_0x4b184d):(_0x4dcd13[_0x3b17('0x6')](_0x2d1e7b),_0x17a5d8[_0x3b17('0x24')](_0x2d1e7b),_0x4ad957[_0x3b17('0x22')](_0x2d1e7b),_0x105a24=!0x0):(_0x4ad957[_0x3b17('0x36')](_0x2d1e7b,{'range':_0x3c1d03}),_0x105a24=!0x0);}return _0x105a24;}),this['on'](_0x3b17('0x43'),(_0x3149b7,_0x7207d9,_0x4fb9a1)=>{if(!_0x4fb9a1&&_0x17a5d8[_0x3b17('0x2a')])for(const _0x311962 of _0x17a5d8){const {id:_0x48fa03}=tt(_0x311962);_0x17a5d8[_0x3b17('0x24')](_0x311962),_0x136ca7['model'][_0x3b17('0x3f')][_0x3b17('0x21')](_0x311962)&&this[_0x3b17('0x6a')](_0x311962,_0x48fa03);}}),this[_0x3b17('0x1e')](_0x136ca7['model'][_0x3b17('0x35')],'change',(_0x539629,_0x5b0269)=>{for(const {name:_0x1874df,data:{newRange:_0x56f79d}}of _0x136ca7[_0x3b17('0x65')][_0x3b17('0x35')][_0x3b17('0x4f')]['getChangedMarkers']()){const {group:_0x1d72b9,id:_0x16ec00}=tt(_0x1874df);if(_0x3b17('0x71')!==_0x1d72b9)continue;const _0x5d6053=_0xb7a203[_0x3b17('0x5b')](_0x16ec00),_0x2a48d2=this[_0x3b17('0x44')](_0x16ec00);_0x5d6053&&(_0x5d6053[_0x3b17('0x72')]||_0x136ca7[_0x3b17('0xa')]['view']['once']('render',()=>{const _0x4391bb=_0x136ca7[_0x3b17('0x68')][_0x3b17('0x21')](_0x3558a0),_0x333b7b=_0xb7a203[_0x3b17('0x6e')]['get'](_0x5d6053)['view'];_0x4391bb[_0x3b17('0x74')](_0x333b7b)[_0x3b17('0x58')]();},{'priority':_0x3b17('0x54')}),_0x5d6053[_0x3b17('0x72')]=_0x2a48d2||!!_0x56f79d),_0x56f79d||(_0x4dcd13[_0x3b17('0x6')](_0x1874df),_0x17a5d8['delete'](_0x1874df),this[_0x3b17('0x12')][_0x3b17('0x0')](_0x16ec00)&&this[_0x3b17('0x12')][_0x3b17('0x21')](_0x16ec00)['delete'](_0x1874df));}if(_0x5b0269[_0x3b17('0x60')])for(const _0xf316fa of _0x4dcd13){const {id:_0x1ee7ff}=tt(_0xf316fa),_0x5c4206=_0xb7a203['getCommentThread'](_0x1ee7ff),_0x1de949=this['hasMarkerForId'](_0x1ee7ff);_0x17a5d8['delete'](_0xf316fa),!_0x5c4206||_0x1de949||_0x5c4206[_0x3b17('0x75')]||this[_0x3b17('0x69')]===_0x1ee7ff||(this['_autoResolvedThreads'][_0x3b17('0x6')](_0x5c4206),_0x5c4206['resolve']());}_0x4dcd13[_0x3b17('0xe')]();});}[_0x3b17('0x51')](_0x1f585f){const _0x59919f=this[_0x3b17('0x6c')],_0x51f4a2=this[_0x3b17('0x1b')](_0x1f585f);return _0x3fe713(_0x59919f[_0x3b17('0xa')],_0x51f4a2);}[_0x3b17('0x3b')](_0x26d2b4){const _0x4f7785=this[_0x3b17('0x1b')](_0x26d2b4);let _0x1b12be='',_0x244aae=!0x1;for(const _0x1510ec of _0x4f7785){const _0x28c561=_0x1510ec[_0x3b17('0x15')]();for(const _0x1728ee of Array[_0x3b17('0x11')](_0x28c561['getItems']()))_0x1728ee['is'](_0x3b17('0x39'))?(_0x1b12be&&_0x244aae&&(_0x1b12be+='\x20',_0x244aae=!0x1),_0x1b12be+=_0x1728ee[_0x3b17('0x25')]):_0x244aae=!0x0;_0x244aae=!0x0;}return _0x1b12be[_0x3b17('0x1f')](0x0,0x96);}[_0x3b17('0x2')](_0x1a9ab1,_0xc744da){const _0x4cf579=this[_0x3b17('0x6c')],_0x493e45=_0x4cf579['plugins']['get'](_0x182687);let _0x42d7e2=_0x493e45[_0x3b17('0x5b')](_0xc744da);if(this[_0x3b17('0x12')][_0x3b17('0x0')](_0xc744da)){const _0x1477bc=this[_0x3b17('0x12')][_0x3b17('0x21')](_0xc744da);_0x1477bc[_0x3b17('0x0')](_0x1a9ab1)||_0x1477bc[_0x3b17('0x6')](_0x1a9ab1);}const _0x3f7122=_0x4cf579['config']['get'](_0x3b17('0x1d')),_0x388bdb=_0x4cf579[_0x3b17('0x68')][_0x3b17('0x21')](_0x434320);if(_0x42d7e2&&_0x42d7e2['isResolved']&&this[_0x3b17('0x2e')][_0x3b17('0x0')](_0x42d7e2)&&(this[_0x3b17('0x2e')][_0x3b17('0x24')](_0x42d7e2),_0x42d7e2[_0x3b17('0x7')]()),this[_0x3b17('0x12')][_0x3b17('0x0')](_0xc744da))return _0x42d7e2;return this[_0x3b17('0x12')][_0x3b17('0x41')](_0xc744da,new Set([_0x1a9ab1])),(!this['getAllMarkersForId'](_0xc744da)[0x0][_0x3b17('0x49')]?_0x4cf579[_0x3b17('0xa')][_0x3b17('0x20')][_0x3b17('0x40')](_0x3b17('0x1a'),()=>{const _0x506d5e=_0x4cf579[_0x3b17('0x68')][_0x3b17('0x21')](_0x3558a0);_0x42d7e2=_0x493e45[_0x3b17('0x53')]({'channelId':_0x3f7122,'threadId':_0xc744da,'target':()=>this[_0x3b17('0x51')](_0xc744da),'context':{'type':'text','value':this[_0x3b17('0x3b')](_0xc744da)}});const _0xf321a8=_0x493e45['_threadToController'][_0x3b17('0x21')](_0x42d7e2)['view'],_0x244c8c=_0x506d5e[_0x3b17('0x74')](_0xf321a8);_0x244c8c&&_0x388bdb['registerAnnotation'](_0x244c8c);},{'priority':'low'}):_0x493e45[_0x3b17('0x6b')]({'channelId':_0x3f7122,'threadId':_0xc744da})[_0x3b17('0x45')](_0x45a477=>{if('destroyed'!==_0x4cf579['state']){if(_0x42d7e2=_0x45a477,_0x42d7e2){const _0x1d67a1=_0x42d7e2[_0x3b17('0x70')](()=>this[_0x3b17('0x51')](_0xc744da));_0x388bdb[_0x3b17('0x6d')](_0x1d67a1),_0x42d7e2['isResolved']&&this[_0x3b17('0x52')](_0xc744da);}else{const _0x56f37d=this['getAllMarkersForId'](_0xc744da);_0x4cf579['model'][_0x3b17('0x5c')](_0x348ff5=>{for(const _0x4f6910 of _0x56f37d)_0x348ff5[_0x3b17('0x22')](_0x4f6910);});}}}),_0x42d7e2);}[_0x3b17('0x6a')](_0x1b9cbf,_0x4a78ae){const _0x494af6=this[_0x3b17('0x2')](_0x1b9cbf,_0x4a78ae);_0x494af6&&!_0x494af6[_0x3b17('0x46')]&&_0x494af6[_0x3b17('0x4a')]({'type':_0x3b17('0x23'),'value':this[_0x3b17('0x3b')](_0x4a78ae)});}}function Z(_0x1ad594,_0x398b0d){return _0x398b0d?_0x1ad594+':'+_0x398b0d:_0x1ad594;}function tt(_0x1a27f0){const _0x18e3f1=_0x1a27f0[_0x3b17('0x26')](':');return{'group':_0x18e3f1[0x0],'id':_0x18e3f1[0x1],'part':_0x18e3f1[0x2]};}function ot(_0x49ad85,_0x357c42){const _0xe4006a=_0x357c42[_0x3b17('0x67')],_0xca5af2=_0x357c42[_0x3b17('0xd')](_0x49ad85['start']);for(const _0x10e01f of _0x49ad85[_0x3b17('0x3d')]()){const {type:_0x3a182a,item:_0x20af80,nextPosition:_0x1dfbfe}=_0x10e01f;if(_0x3b17('0x23')===_0x3a182a||_0xe4006a[_0x3b17('0x56')](_0x20af80)){const _0x390e6c=_0x357c42[_0x3b17('0x33')](_0x20af80);_0xca5af2[_0x3b17('0x64')]&&(_0xca5af2[_0x3b17('0x31')]=_0x390e6c),_0xca5af2[_0x3b17('0x47')]=_0x1dfbfe;}}return _0xca5af2;}
23
+ const _0x35a5=['filter','push','context','model','low','$graveyard','end','text','change','_attachResolvedThread','ck-comment-marker--active','getItems','isThreadsLoadingPaused','markerToData','split','isObject','has','attachTo','$textProxy','ready','delete','getRange','add','length','document','consume','_autoResolvedThreads','resolve','focus','high','requires','getChangedMarkers','upcast','render','hasDomSelection','switchReadOnly','editing','change:isReadOnly','_detachCommentThread','newRange','scrollToThreadMarker','state','consumable','once','markerToHighlight','rootName','_getTargetForId','getAllMarkersForId','fetchCommentThread','openNewCommentThread','clear','_getTextContext','registerPostFixer','start','_hasTargetInContent','isCollapsed','_reconvertMarkers','markerName','isEqual','commands','addCommentThread','getAttribute','updateMarker','_removedThread','destroyed','_attachMarkerToThread','$marker','editor','setContext','_handleThreadMarker','item','enqueueChange','dataToMarker','plugins','removeCommentThread','_threadToController','addComment','getByInnerView','ck-comment-marker','ignoreResolvedComments','_attachedThreads','activeMarker','hasMarkerForId','createPositionBefore','affectsData','config','view','hasContent','isResolved','init','change:activeMarker','dataDowncast','collaboration.channelId','comment','change:isThreadsLoadingPaused','reconvertMarker','from','_initializeMarkerConverters','markers','differ','set','map','getCommentThread','removeMarker','editingDowncast','for','schema','_threads','isLocal','addMarker:','resolveCommentThread','data','getWalker','listenTo','createElement','reopen','_handleMarkerAddAndRemove','getCommentThreads','root','registerAnnotation','get'];(function(_0x307056,_0x35a586){const _0x5d2ae8=function(_0x1fef82){while(--_0x1fef82){_0x307056['push'](_0x307056['shift']());}};_0x5d2ae8(++_0x35a586);}(_0x35a5,0x12f));const _0x5d2a=function(_0x307056,_0x35a586){_0x307056=_0x307056-0x0;let _0x5d2ae8=_0x35a5[_0x307056];return _0x5d2ae8;};import{Plugin as _0x2bdc9c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xbaaaca}from'ckeditor5/src/utils';import _0x3ad7a2 from'./commentsrepository';import _0x3f8346 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3323a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ba2c3 from'../annotations/editorannotations';import _0x42434c from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x2e6800 from'./integrations/importword';import _0x5c0783 from'../annotations/annotations';export default class r extends _0x2bdc9c{static get[_0x5d2a('0x5a')](){return[_0x3ad7a2,_0x5ba2c3,_0x42434c,_0x2e6800];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x3c407e){super(_0x3c407e),this[_0x5d2a('0x2')]=null,this[_0x5d2a('0x56')]=new Set(),this[_0x5d2a('0x27')](_0x5d2a('0x48'),!0x0),_0x3c407e['data'][_0x5d2a('0x67')](_0x5d2a('0x4f'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x5d2a('0x27')](_0x5d2a('0x14'),null),this['on'](_0x5d2a('0x1d'),(_0x27860d,_0x127659,_0x4efc58,_0x5471d2)=>{const _0x43b82c=_0x4efc58?tt(_0x4efc58)['id']:null;if(_0x3c407e[_0x5d2a('0x3f')][_0x5d2a('0x44')](()=>{if(_0x43b82c){const _0x52dd62=this[_0x5d2a('0x6b')](_0x43b82c);for(const _0x4dae06 of _0x52dd62)_0x3c407e[_0x5d2a('0x60')][_0x5d2a('0x22')](_0x4dae06);}if(_0x5471d2){const {id:_0x5c8554}=tt(_0x5471d2),_0x5e5b83=this[_0x5d2a('0x6b')](_0x5c8554);for(const _0x274c2a of _0x5e5b83)_0x3c407e[_0x5d2a('0x60')]['reconvertMarker'](_0x274c2a);}}),_0x43b82c){const _0x173e38=_0x3c407e['plugins']['get'](_0x3ad7a2)[_0x5d2a('0x29')](_0x43b82c);_0x173e38&&_0x173e38[_0x5d2a('0x1b')]&&this[_0x5d2a('0x64')](_0x43b82c);}}),this['_attachedThreads']=new Map();}[_0x5d2a('0x1c')](){const _0x38f025=this[_0x5d2a('0x6')],_0x309707=_0x38f025[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x374f2d=_0x38f025[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f'));_0x38f025[_0x5d2a('0x77')][_0x5d2a('0x52')]('addCommentThread',new _0x3f8346(_0x38f025)),this[_0x5d2a('0x34')](_0x38f025,_0x5d2a('0x61'),(_0x2be323,_0x2e6d0d,_0x5d321f)=>{_0x309707[_0x5d2a('0x5f')](_0x5d321f,_0x38f025[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f')));}),this['listenTo'](_0x309707,Z(_0x5d2a('0x78'),_0x374f2d),(_0x4cdf2a,{threadId:_0x4ea23f})=>{const _0x5b5a4b=this[_0x5d2a('0x6')][_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2)[_0x5d2a('0x29')](_0x4ea23f);_0x5b5a4b&&_0x5b5a4b[_0x5d2a('0x1b')]&&this[_0x5d2a('0x45')](_0x4ea23f);}),this[_0x5d2a('0x34')](_0x309707,Z(_0x5d2a('0xd'),_0x374f2d),(_0x2313f6,{threadId:_0x459104})=>{_0x38f025[_0x5d2a('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x9495d4=>{const _0x417002=this[_0x5d2a('0x6b')](_0x459104);this[_0x5d2a('0x13')][_0x5d2a('0x50')](_0x459104),this['_removedThread']=_0x459104;for(const _0x3002ab of _0x417002)_0x9495d4[_0x5d2a('0x2a')](_0x3002ab);}),this['_removedThread']=null;},{'priority':_0x5d2a('0x59')}),this['listenTo'](_0x309707,Z(_0x5d2a('0x31'),_0x374f2d),(_0x2c3ecd,{threadId:_0x11b835})=>{this[_0x5d2a('0x45')](_0x11b835),this['_reconvertMarkers'](_0x11b835),this[_0x5d2a('0x6')][_0x5d2a('0x60')]['view'][_0x5d2a('0x5e')]&&this[_0x5d2a('0x6')][_0x5d2a('0x60')][_0x5d2a('0x19')][_0x5d2a('0x58')]();},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x34')](_0x309707,Z('reopenCommentThread',_0x374f2d),(_0x38934c,{threadId:_0x2a1318})=>{this[_0x5d2a('0x74')](_0x2a1318);},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x34')](_0x309707,Z(_0x5d2a('0xf'),_0x374f2d),(_0x50b118,{threadId:_0xd1c956,isFromAdapter:_0xba605a})=>{const _0x37d39f=this[_0x5d2a('0x6b')](_0xd1c956);if(_0xba605a||0x0==_0x37d39f[_0x5d2a('0x53')]||!_0x309707['hasCommentThread'](_0xd1c956))return;0x1===_0x309707[_0x5d2a('0x29')](_0xd1c956)[_0x5d2a('0x53')]&&_0x38f025[_0x5d2a('0x3f')][_0x5d2a('0xa')]({'isUndoable':!0x1},_0x5612a7=>{for(const _0x45b809 of _0x37d39f)_0x5612a7[_0x5d2a('0x1')](_0x45b809,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x24')](),this[_0x5d2a('0x37')]();}['destroy'](){const _0x276c81=this[_0x5d2a('0x6')]['plugins'][_0x5d2a('0x3b')](_0x3ad7a2),_0x1edc7e=this[_0x5d2a('0x6')]['config']['get'](_0x5d2a('0x1f'));for(const _0x51bd43 of _0x276c81[_0x5d2a('0x38')]({'channelId':_0x1edc7e}))_0x276c81[_0x5d2a('0x62')](_0x51bd43['id']),_0x276c81[_0x5d2a('0x2e')]['delete'](_0x51bd43['id']);super['destroy']();}[_0x5d2a('0x15')](_0x19407d){return this[_0x5d2a('0x6b')](_0x19407d)[_0x5d2a('0x53')]>0x0;}[_0x5d2a('0x6b')](_0x479be3){return Array[_0x5d2a('0x23')](this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x479be3)||[])[_0x5d2a('0x28')](_0x1bf34d=>this[_0x5d2a('0x6')][_0x5d2a('0x3f')][_0x5d2a('0x25')][_0x5d2a('0x3b')](_0x1bf34d))[_0x5d2a('0x3c')](_0x23d5d8=>_0x23d5d8);}[_0x5d2a('0x64')](_0xf102ff){const _0x1e7b77=this['_getTargetForId'](_0xf102ff);_0x1e7b77&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x5d2a('0x14')])['id']===_0xf102ff&&_0xbaaaca({'target':_0x1e7b77[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5d2a('0x74')](_0xfcf4b0){this['editor'][_0x5d2a('0x3f')][_0x5d2a('0x44')](()=>{for(const _0x2e8bf2 of this['getAllMarkersForId'](_0xfcf4b0))this['editor'][_0x5d2a('0x60')]['reconvertMarker'](_0x2e8bf2);});}[_0x5d2a('0x45')](_0x33c710){const _0x4dc73e=this[_0x5d2a('0x6')][_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x3fde7a=this[_0x5d2a('0x6')][_0x5d2a('0xc')]['get'](_0x5ba2c3),_0x5ef613=_0x4dc73e[_0x5d2a('0x29')](_0x33c710);if(!this['_attachedThreads'][_0x5d2a('0x4c')](_0x33c710)){const _0x4b01a1=_0x5ef613[_0x5d2a('0x4d')](()=>this[_0x5d2a('0x6a')](_0x5ef613['id']));_0x3fde7a[_0x5d2a('0x3a')](_0x4b01a1),this[_0x5d2a('0x13')][_0x5d2a('0x27')](_0x33c710,new Set()),_0x5ef613[_0x5d2a('0x72')]=!0x1;}}['_initializeMarkerConverters'](){const _0xf617ae=this[_0x5d2a('0x6')];_0xf617ae['conversion']['for'](_0x5d2a('0x2b'))[_0x5d2a('0x68')]({'model':_0x5d2a('0x20'),'view':(_0x2fece6,_0x5f0812)=>{const {id:_0x5e9917}=tt(_0x2fece6[_0x5d2a('0x75')]),_0x56bfc9=_0xf617ae[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2)[_0x5d2a('0x29')](_0x5e9917),_0x231e4a=this[_0x5d2a('0x14')]&&tt(this[_0x5d2a('0x14')])['id']===_0x5e9917;if(_0x56bfc9&&_0x56bfc9[_0x5d2a('0x1b')]&&!_0x231e4a&&_0x2fece6[_0x5d2a('0x9')])return _0x5f0812[_0x5d2a('0x66')]['consume'](_0x2fece6['item'],_0x5d2a('0x30')+_0x2fece6[_0x5d2a('0x75')]),_0x5f0812[_0x5d2a('0x66')][_0x5d2a('0x55')](_0x2fece6['item'],'removeMarker:'+_0x2fece6['markerName']),{'classes':[]};const _0x482eb2=[_0x5d2a('0x11')];return _0x231e4a&&_0x482eb2[_0x5d2a('0x3d')](_0x5d2a('0x46')),{'classes':_0x482eb2,'attributes':{'data-comment':_0x5e9917}};}}),_0xf617ae['conversion'][_0x5d2a('0x2c')](_0x5d2a('0x1e'))[_0x5d2a('0x49')]({'model':_0x5d2a('0x20'),'view':(_0x1965f6,{options:_0x970568})=>{const _0x28ae77=_0xf617ae[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x5af1ea=_0xf617ae[_0x5d2a('0x3f')][_0x5d2a('0x25')][_0x5d2a('0x3b')](_0x1965f6),{id:_0x5cfc3d,part:_0x515660}=tt(_0x1965f6);if(_0x5af1ea&&!_0x5af1ea[_0x5d2a('0x17')])return null;if(_0x970568[_0x5d2a('0x12')]){const _0x3938df=_0x28ae77[_0x5d2a('0x29')](_0x5cfc3d);if(_0x3938df&&_0x3938df[_0x5d2a('0x1b')])return null;}return{'group':_0x5d2a('0x20'),'name':_0x515660?_0x5cfc3d+':'+_0x515660:_0x5cfc3d};}}),_0xf617ae['conversion']['for'](_0x5d2a('0x5c'))['elementToElement']({'view':{'name':_0x5d2a('0x20'),'attributes':{'id':/^\w/}},'model':(_0x2b8f6c,{writer:_0x5d5a44})=>_0x5d5a44[_0x5d2a('0x35')](_0x5d2a('0x5'),{'data-name':'comment:'+_0x2b8f6c[_0x5d2a('0x0')]('id')})}),_0xf617ae['conversion'][_0x5d2a('0x2c')](_0x5d2a('0x5c'))[_0x5d2a('0xb')]({'view':_0x5d2a('0x20')});}[_0x5d2a('0x37')](){const _0x2685b1=this['editor'],_0x485c33=_0x2685b1[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x29702b=new Set(),_0x46461f=new Set();_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x54')][_0x5d2a('0x70')](_0x3c36ef=>{let _0x2f9f4f=!0x1;for(const {name:_0x1a4b22,data:_0x4570c3}of _0x2685b1[_0x5d2a('0x3f')]['document'][_0x5d2a('0x26')][_0x5d2a('0x5b')]()){const {group:_0x5bc29d,id:_0xe91dc0}=tt(_0x1a4b22);let _0x2511a8=_0x4570c3['newRange'];if(_0x5d2a('0x20')!==_0x5bc29d||!_0x2511a8)continue;const _0x5ae5c7=_0x5d2a('0x41')===_0x2511a8[_0x5d2a('0x39')][_0x5d2a('0x69')];_0x5ae5c7||(_0x2511a8=ot(_0x2511a8,_0x2685b1[_0x5d2a('0x3f')]),!_0x2511a8||_0x2511a8[_0x5d2a('0x73')]||!_0x4570c3['newRange']||_0x2511a8[_0x5d2a('0x76')](_0x4570c3[_0x5d2a('0x63')]))?_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x1a')](_0x2511a8)&&!_0x5ae5c7?this[_0x5d2a('0x48')]?_0x29702b[_0x5d2a('0x52')](_0x1a4b22):this[_0x5d2a('0x8')](_0x1a4b22,_0xe91dc0):(_0x46461f['add'](_0x1a4b22),_0x29702b[_0x5d2a('0x50')](_0x1a4b22),_0x3c36ef[_0x5d2a('0x2a')](_0x1a4b22),_0x2f9f4f=!0x0):(_0x3c36ef[_0x5d2a('0x1')](_0x1a4b22,{'range':_0x2511a8}),_0x2f9f4f=!0x0);}return _0x2f9f4f;}),this['on'](_0x5d2a('0x21'),(_0x54f310,_0x2fcb36,_0x3c09aa)=>{if(!_0x3c09aa&&_0x29702b['size'])for(const _0x461f6a of _0x29702b){const {id:_0x307806}=tt(_0x461f6a);_0x29702b[_0x5d2a('0x50')](_0x461f6a),_0x2685b1[_0x5d2a('0x3f')]['markers'][_0x5d2a('0x3b')](_0x461f6a)&&this[_0x5d2a('0x8')](_0x461f6a,_0x307806);}}),this[_0x5d2a('0x34')](_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x54')],_0x5d2a('0x44'),(_0x49d159,_0x453f9f)=>{for(const {name:_0x1da20b,data:{newRange:_0x55cb5e}}of _0x2685b1[_0x5d2a('0x3f')]['document'][_0x5d2a('0x26')][_0x5d2a('0x5b')]()){const {group:_0x319735,id:_0x2a9f27}=tt(_0x1da20b);if(_0x5d2a('0x20')!==_0x319735)continue;const _0x535a89=_0x485c33[_0x5d2a('0x29')](_0x2a9f27),_0x5774d1=this['hasMarkerForId'](_0x2a9f27);_0x535a89&&(_0x535a89['_hasTargetInContent']||_0x2685b1[_0x5d2a('0x60')][_0x5d2a('0x19')][_0x5d2a('0x67')](_0x5d2a('0x5d'),()=>{const _0x424bc8=_0x2685b1[_0x5d2a('0xc')]['get'](_0x5c0783),_0x5b2dc6=_0x485c33[_0x5d2a('0xe')]['get'](_0x535a89)[_0x5d2a('0x19')];_0x424bc8[_0x5d2a('0x10')](_0x5b2dc6)['refreshVisibility']();},{'priority':'low'}),_0x535a89[_0x5d2a('0x72')]=_0x5774d1||!!_0x55cb5e),_0x55cb5e||(_0x46461f[_0x5d2a('0x52')](_0x1da20b),_0x29702b[_0x5d2a('0x50')](_0x1da20b),this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x2a9f27)&&this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x2a9f27)[_0x5d2a('0x50')](_0x1da20b));}if(_0x453f9f[_0x5d2a('0x2f')])for(const _0x5e7a27 of _0x46461f){const {id:_0x3d84a7}=tt(_0x5e7a27),_0x2dae45=_0x485c33[_0x5d2a('0x29')](_0x3d84a7),_0x46fb2e=this[_0x5d2a('0x15')](_0x3d84a7);_0x29702b[_0x5d2a('0x50')](_0x5e7a27),!_0x2dae45||_0x46fb2e||_0x2dae45['isResolved']||this['_removedThread']===_0x3d84a7||(this[_0x5d2a('0x56')][_0x5d2a('0x52')](_0x2dae45),_0x2dae45[_0x5d2a('0x57')]());}_0x46461f[_0x5d2a('0x6e')]();});}['_getTargetForId'](_0x3d8c68){const _0x3fb23e=this['editor'],_0x398b7f=this[_0x5d2a('0x6b')](_0x3d8c68);return _0x3323a4(_0x3fb23e[_0x5d2a('0x60')],_0x398b7f);}[_0x5d2a('0x6f')](_0x7c0927){const _0x4ec69c=this[_0x5d2a('0x6b')](_0x7c0927);let _0x4c70e4='',_0xdc1a31=!0x1;for(const _0x3253a5 of _0x4ec69c){const _0x178466=_0x3253a5[_0x5d2a('0x51')]();for(const _0x32ec07 of Array[_0x5d2a('0x23')](_0x178466[_0x5d2a('0x47')]()))_0x32ec07['is'](_0x5d2a('0x4e'))?(_0x4c70e4&&_0xdc1a31&&(_0x4c70e4+='\x20',_0xdc1a31=!0x1),_0x4c70e4+=_0x32ec07[_0x5d2a('0x32')]):_0xdc1a31=!0x0;_0xdc1a31=!0x0;}return _0x4c70e4['substring'](0x0,0x96);}[_0x5d2a('0x4')](_0x54b65b,_0x47ea3d){const _0x4aee33=this[_0x5d2a('0x6')],_0x1ae7e6=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2);let _0x2fad4f=_0x1ae7e6[_0x5d2a('0x29')](_0x47ea3d);if(this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x47ea3d)){const _0x5ef1d3=this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x47ea3d);_0x5ef1d3['has'](_0x54b65b)||_0x5ef1d3[_0x5d2a('0x52')](_0x54b65b);}const _0x2111a6=_0x4aee33[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f')),_0x549076=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x5ba2c3);if(_0x2fad4f&&_0x2fad4f['isResolved']&&this[_0x5d2a('0x56')][_0x5d2a('0x4c')](_0x2fad4f)&&(this[_0x5d2a('0x56')][_0x5d2a('0x50')](_0x2fad4f),_0x2fad4f[_0x5d2a('0x36')]()),this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x47ea3d))return _0x2fad4f;return this[_0x5d2a('0x13')][_0x5d2a('0x27')](_0x47ea3d,new Set([_0x54b65b])),(!this[_0x5d2a('0x6b')](_0x47ea3d)[0x0]['managedUsingOperations']?_0x4aee33[_0x5d2a('0x60')][_0x5d2a('0x19')]['once'](_0x5d2a('0x5d'),()=>{const _0x2013f3=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x5c0783);_0x2fad4f=_0x1ae7e6[_0x5d2a('0x6d')]({'channelId':_0x2111a6,'threadId':_0x47ea3d,'target':()=>this['_getTargetForId'](_0x47ea3d),'context':{'type':'text','value':this[_0x5d2a('0x6f')](_0x47ea3d)}});const _0x5c294e=_0x1ae7e6[_0x5d2a('0xe')]['get'](_0x2fad4f)[_0x5d2a('0x19')],_0x3cb027=_0x2013f3[_0x5d2a('0x10')](_0x5c294e);_0x3cb027&&_0x549076['registerAnnotation'](_0x3cb027);},{'priority':'low'}):_0x1ae7e6[_0x5d2a('0x6c')]({'channelId':_0x2111a6,'threadId':_0x47ea3d})['then'](_0x67463b=>{if(_0x5d2a('0x3')!==_0x4aee33[_0x5d2a('0x65')]){if(_0x2fad4f=_0x67463b,_0x2fad4f){const _0x329ce0=_0x2fad4f[_0x5d2a('0x4d')](()=>this[_0x5d2a('0x6a')](_0x47ea3d));_0x549076['registerAnnotation'](_0x329ce0),_0x2fad4f['isResolved']&&this[_0x5d2a('0x74')](_0x47ea3d);}else{const _0x27d394=this[_0x5d2a('0x6b')](_0x47ea3d);_0x4aee33[_0x5d2a('0x3f')]['change'](_0x29c94f=>{for(const _0x4dae5f of _0x27d394)_0x29c94f[_0x5d2a('0x2a')](_0x4dae5f);});}}}),_0x2fad4f);}['_handleThreadMarker'](_0x54091c,_0x354c47){const _0x4b3527=this[_0x5d2a('0x4')](_0x54091c,_0x354c47);_0x4b3527&&!_0x4b3527[_0x5d2a('0x3e')]&&_0x4b3527[_0x5d2a('0x7')]({'type':_0x5d2a('0x43'),'value':this[_0x5d2a('0x6f')](_0x354c47)});}}function Z(_0x33d523,_0x363140){return _0x363140?_0x33d523+':'+_0x363140:_0x33d523;}function tt(_0x1d2e76){const _0xfa33a4=_0x1d2e76[_0x5d2a('0x4a')](':');return{'group':_0xfa33a4[0x0],'id':_0xfa33a4[0x1],'part':_0xfa33a4[0x2]};}function ot(_0x3e0837,_0x217ae3){const _0x5b6638=_0x217ae3[_0x5d2a('0x2d')],_0x6e1291=_0x217ae3['createRange'](_0x3e0837[_0x5d2a('0x71')]);for(const _0x5ba108 of _0x3e0837[_0x5d2a('0x33')]()){const {type:_0x2a1e28,item:_0x4a1fb4,nextPosition:_0x3cce5e}=_0x5ba108;if('text'===_0x2a1e28||_0x5b6638[_0x5d2a('0x4b')](_0x4a1fb4)){const _0x204b0a=_0x217ae3[_0x5d2a('0x16')](_0x4a1fb4);_0x6e1291[_0x5d2a('0x73')]&&(_0x6e1291[_0x5d2a('0x71')]=_0x204b0a),_0x6e1291[_0x5d2a('0x42')]=_0x3cce5e;}}return _0x6e1291;}