@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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 _0x55eb=['setTemplate','destroy','isDirty','Esc','content','targetRect','keystrokes','_updateHeight','ck-annotation-wrapper--active','div','type','render','clear','isActive','height','fire','focus','set','element','bindTemplate','attach','listenTo','ck-rounded-corners','add','ck-annotation-wrapper','focusTracker'];(function(_0x1a01c0,_0x55eb9d){const _0x40156c=function(_0x5f0da5){while(--_0x5f0da5){_0x1a01c0['push'](_0x1a01c0['shift']());}};_0x40156c(++_0x55eb9d);}(_0x55eb,0x6a));const _0x4015=function(_0x1a01c0,_0x55eb9d){_0x1a01c0=_0x1a01c0-0x0;let _0x40156c=_0x55eb[_0x1a01c0];return _0x40156c;};import{View as _0x253205}from'ckeditor5/src/ui';import{FocusTracker as _0x10064d,KeystrokeHandler as _0x1a0930,uid as _0x1ff38f}from'ckeditor5/src/utils';import _0x5f0aeb from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x253205{constructor(_0x343b5a,_0x4f987b){super(_0x343b5a),this['id']=_0x1ff38f(),this[_0x4015('0x17')]=new _0x10064d(),this[_0x4015('0x4')]=new _0x1a0930(),this[_0x4015('0x4')][_0x4015('0xf')](_0x4015('0x1'),(_0x23511f,_0x292e55)=>this[_0x4015('0xd')](_0x4015('0x1'),_0x292e55)),this[_0x4015('0xf')](_0x4015('0x3'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x4015('0xf')]('height',0x0),this[_0x4015('0xf')]('isActive',!0x1),this[_0x4015('0xf')](_0x4015('0x0'),!0x1),this[_0x4015('0xf')]('length',0x0),this[_0x4015('0xf')](_0x4015('0x8'),''),this['_mutationObserver']=_0x5f0aeb(()=>this[_0x4015('0x5')]()),this[_0x4015('0x2')]=this['createCollection'](),this[_0x4015('0x2')]['add'](_0x4f987b),this['mainView']=_0x4f987b;const _0x226df0=this[_0x4015('0x11')];this[_0x4015('0x18')]({'tag':_0x4015('0x7'),'attributes':{'class':['ck',_0x4015('0x16'),_0x4015('0x14'),_0x226df0['if'](_0x4015('0xb'),_0x4015('0x6'))],'tabindex':-0x1},'children':this['content']});}[_0x4015('0x9')](){super[_0x4015('0x9')](),this[_0x4015('0x17')][_0x4015('0x15')](this[_0x4015('0x10')]),this[_0x4015('0x4')][_0x4015('0x13')](this['element']),this['_mutationObserver'][_0x4015('0x12')](this[_0x4015('0x10')]);}['destroy'](){this[_0x4015('0x2')][_0x4015('0xa')](),this[_0x4015('0x4')][_0x4015('0x19')](),this[_0x4015('0x17')][_0x4015('0x19')](),this['_mutationObserver']['detach'](),super[_0x4015('0x19')]();}[_0x4015('0xe')](){this[_0x4015('0x10')][_0x4015('0xe')]();}[_0x4015('0x5')](){const _0x26eab4=this[_0x4015('0x10')]['clientHeight'];_0x26eab4&&(this[_0x4015('0xc')]=_0x26eab4);}}
23
+ const _0x202a=['div','_updateHeight','detach','height','focusTracker','length','targetRect','keystrokes','element','mainView','add','clientHeight','ck-annotation-wrapper--active','attach','isActive','set','bindTemplate','Esc','_mutationObserver','content','createCollection','clear','isDirty','focus','type','setTemplate','destroy'];(function(_0xb9df60,_0x202a49){const _0x1c9da1=function(_0x5d5313){while(--_0x5d5313){_0xb9df60['push'](_0xb9df60['shift']());}};_0x1c9da1(++_0x202a49);}(_0x202a,0x94));const _0x1c9d=function(_0xb9df60,_0x202a49){_0xb9df60=_0xb9df60-0x0;let _0x1c9da1=_0x202a[_0xb9df60];return _0x1c9da1;};import{View as _0x562058}from'ckeditor5/src/ui';import{FocusTracker as _0x642584,KeystrokeHandler as _0x570fd5,uid as _0x22389f}from'ckeditor5/src/utils';import _0x91682e from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x562058{constructor(_0x3e57f2,_0x498168){super(_0x3e57f2),this['id']=_0x22389f(),this[_0x1c9d('0x12')]=new _0x642584(),this[_0x1c9d('0x15')]=new _0x570fd5(),this[_0x1c9d('0x15')][_0x1c9d('0x2')](_0x1c9d('0x4'),(_0x1d3171,_0x49a578)=>this['fire'](_0x1c9d('0x4'),_0x49a578)),this['set'](_0x1c9d('0x14'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1c9d('0x2')](_0x1c9d('0x11'),0x0),this['set'](_0x1c9d('0x1'),!0x1),this['set'](_0x1c9d('0x9'),!0x1),this[_0x1c9d('0x2')](_0x1c9d('0x13'),0x0),this[_0x1c9d('0x2')](_0x1c9d('0xb'),''),this[_0x1c9d('0x5')]=_0x91682e(()=>this[_0x1c9d('0xf')]()),this[_0x1c9d('0x6')]=this[_0x1c9d('0x7')](),this[_0x1c9d('0x6')]['add'](_0x498168),this[_0x1c9d('0x17')]=_0x498168;const _0x574d90=this[_0x1c9d('0x3')];this[_0x1c9d('0xc')]({'tag':_0x1c9d('0xe'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x574d90['if'](_0x1c9d('0x1'),_0x1c9d('0x1a'))],'tabindex':-0x1},'children':this[_0x1c9d('0x6')]});}['render'](){super['render'](),this[_0x1c9d('0x12')][_0x1c9d('0x18')](this[_0x1c9d('0x16')]),this['keystrokes']['listenTo'](this[_0x1c9d('0x16')]),this[_0x1c9d('0x5')][_0x1c9d('0x0')](this[_0x1c9d('0x16')]);}[_0x1c9d('0xd')](){this['content'][_0x1c9d('0x8')](),this[_0x1c9d('0x15')][_0x1c9d('0xd')](),this[_0x1c9d('0x12')][_0x1c9d('0xd')](),this[_0x1c9d('0x5')][_0x1c9d('0x10')](),super[_0x1c9d('0xd')]();}[_0x1c9d('0xa')](){this[_0x1c9d('0x16')][_0x1c9d('0xa')]();}['_updateHeight'](){const _0x126ae7=this[_0x1c9d('0x16')][_0x1c9d('0x19')];_0x126ae7&&(this[_0x1c9d('0x11')]=_0x126ae7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c61=['bind','updateHeight','element','bottom','render','clear','isAnimationDisabled','_targetTop','content','attach','clientHeight','ck-sidebar-item--no-animation','destroy','height','div','set','createCollection','top'];(function(_0x41a2a4,_0x4c61b1){const _0x55facf=function(_0x3ff13c){while(--_0x3ff13c){_0x41a2a4['push'](_0x41a2a4['shift']());}};_0x55facf(++_0x4c61b1);}(_0x4c61,0x177));const _0x55fa=function(_0x41a2a4,_0x4c61b1){_0x41a2a4=_0x41a2a4-0x0;let _0x55facf=_0x4c61[_0x41a2a4];return _0x55facf;};import{View as _0x530a09}from'ckeditor5/src/ui';import{toUnit as _0x9a5fbf}from'ckeditor5/src/utils';import _0x4a9a1f from'../../utils/createmutationobserver';const At=_0x9a5fbf('px');export default class C extends _0x530a09{constructor(_0x72897b){super(_0x72897b),this[_0x55fa('0x0')]('top',0x0),this[_0x55fa('0x0')](_0x55fa('0x10'),0x0),this[_0x55fa('0x3')](_0x55fa('0x6'))['to'](this,_0x55fa('0x2'),this,_0x55fa('0x10'),(_0x34377f,_0x2ff487)=>_0x34377f+_0x2ff487),this[_0x55fa('0x0')](_0x55fa('0x9'),!0x1),this['_mutationObserver']=_0x4a9a1f(()=>this['updateHeight']()),this[_0x55fa('0xa')]=null,this[_0x55fa('0xb')]=this[_0x55fa('0x1')]();const _0x3597a6=this['bindTemplate'];this['setTemplate']({'tag':_0x55fa('0x11'),'attributes':{'class':['ck-sidebar-item',_0x3597a6['to']('isAnimationDisabled',_0x326b33=>_0x326b33?_0x55fa('0xe'):'')],'style':{'top':_0x3597a6['to'](_0x55fa('0x2'),_0x3174b1=>At(_0x3174b1))}},'children':this[_0x55fa('0xb')]});}[_0x55fa('0x7')](){super[_0x55fa('0x7')](),this['_mutationObserver'][_0x55fa('0xc')](this[_0x55fa('0x5')]);}[_0x55fa('0x4')](){const _0x54c67f=this[_0x55fa('0x5')][_0x55fa('0xd')];_0x54c67f&&(this[_0x55fa('0x10')]=_0x54c67f);}[_0x55fa('0xf')](){this[_0x55fa('0xb')][_0x55fa('0x8')](),this['_mutationObserver']['detach'](),super['destroy']();}}
23
+ const _0x19fd=['set','destroy','clientHeight','render','setTemplate','bind','height','content','element','_targetTop','clear','bindTemplate','ck-sidebar-item','top','isAnimationDisabled','bottom','_mutationObserver','detach','attach'];(function(_0x1b65d5,_0x19fdab){const _0x49f4c6=function(_0x21af51){while(--_0x21af51){_0x1b65d5['push'](_0x1b65d5['shift']());}};_0x49f4c6(++_0x19fdab);}(_0x19fd,0xd7));const _0x49f4=function(_0x1b65d5,_0x19fdab){_0x1b65d5=_0x1b65d5-0x0;let _0x49f4c6=_0x19fd[_0x1b65d5];return _0x49f4c6;};import{View as _0x28e234}from'ckeditor5/src/ui';import{toUnit as _0x4e0cee}from'ckeditor5/src/utils';import _0x581a51 from'../../utils/createmutationobserver';const At=_0x4e0cee('px');export default class C extends _0x28e234{constructor(_0x306f10){super(_0x306f10),this[_0x49f4('0xd')](_0x49f4('0x7'),0x0),this['set'](_0x49f4('0x0'),0x0),this[_0x49f4('0x12')](_0x49f4('0x9'))['to'](this,_0x49f4('0x7'),this,_0x49f4('0x0'),(_0x150259,_0x250f6a)=>_0x150259+_0x250f6a),this[_0x49f4('0xd')](_0x49f4('0x8'),!0x1),this[_0x49f4('0xa')]=_0x581a51(()=>this['updateHeight']()),this[_0x49f4('0x3')]=null,this[_0x49f4('0x1')]=this['createCollection']();const _0x1a3f54=this[_0x49f4('0x5')];this[_0x49f4('0x11')]({'tag':'div','attributes':{'class':[_0x49f4('0x6'),_0x1a3f54['to'](_0x49f4('0x8'),_0x308a4c=>_0x308a4c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1a3f54['to'](_0x49f4('0x7'),_0x16741d=>At(_0x16741d))}},'children':this[_0x49f4('0x1')]});}[_0x49f4('0x10')](){super[_0x49f4('0x10')](),this['_mutationObserver'][_0x49f4('0xc')](this['element']);}['updateHeight'](){const _0x482a20=this[_0x49f4('0x2')][_0x49f4('0xf')];_0x482a20&&(this[_0x49f4('0x0')]=_0x482a20);}[_0x49f4('0xe')](){this['content'][_0x49f4('0x4')](),this['_mutationObserver'][_0x49f4('0xb')](),super[_0x49f4('0xe')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb462=['div','number','minHeight','list','set','class','bindTemplate','setTemplate','ck-sidebar'];(function(_0x5aff9d,_0xb462da){const _0x52c41f=function(_0x501b76){while(--_0x501b76){_0x5aff9d['push'](_0x5aff9d['shift']());}};_0x52c41f(++_0xb462da);}(_0xb462,0x1e2));const _0x52c4=function(_0x5aff9d,_0xb462da){_0x5aff9d=_0x5aff9d-0x0;let _0x52c41f=_0xb462[_0x5aff9d];return _0x52c41f;};import{View as _0x35bcb4}from'ckeditor5/src/ui';import{toUnit as _0x502b2e}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x502b2e('px');export default class T extends _0x35bcb4{constructor(_0x3e95a9){super(_0x3e95a9);const _0x42d946=this[_0x52c4('0x1')];this['set'](_0x52c4('0x6'),0x0),this[_0x52c4('0x8')](_0x52c4('0x0'),''),this[_0x52c4('0x7')]=this['createCollection'](),this[_0x52c4('0x2')]({'tag':_0x52c4('0x4'),'attributes':{'class':['ck',_0x52c4('0x3'),'ck-reset',_0x42d946['to']('class')],'style':{'minHeight':_0x42d946['to'](_0x52c4('0x6'),_0x5674f9=>_0x52c4('0x5')==typeof _0x5674f9?At(_0x5674f9+0xa):null)}},'children':this['list']});}}
23
+ const _0x3125=['list','bindTemplate','createCollection','class','div','ck-sidebar','ck-reset','set','setTemplate','minHeight'];(function(_0x1249b0,_0x3125bd){const _0x35c3e4=function(_0x5f3a19){while(--_0x5f3a19){_0x1249b0['push'](_0x1249b0['shift']());}};_0x35c3e4(++_0x3125bd);}(_0x3125,0xb0));const _0x35c3=function(_0x1249b0,_0x3125bd){_0x1249b0=_0x1249b0-0x0;let _0x35c3e4=_0x3125[_0x1249b0];return _0x35c3e4;};import{View as _0x505ccd}from'ckeditor5/src/ui';import{toUnit as _0x47f287}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x47f287('px');export default class T extends _0x505ccd{constructor(_0x4ece18){super(_0x4ece18);const _0x23c830=this[_0x35c3('0x5')];this[_0x35c3('0x1')](_0x35c3('0x3'),0x0),this[_0x35c3('0x1')](_0x35c3('0x7'),''),this[_0x35c3('0x4')]=this[_0x35c3('0x6')](),this[_0x35c3('0x2')]({'tag':_0x35c3('0x8'),'attributes':{'class':['ck',_0x35c3('0x9'),_0x35c3('0x0'),_0x23c830['to'](_0x35c3('0x7'))],'style':{'minHeight':_0x23c830['to'](_0x35c3('0x3'),_0x1ceced=>'number'==typeof _0x1ceced?At(_0x1ceced+0xa):null)}},'children':this[_0x35c3('0x4')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35be=['stop','listenTo','uiUpdate','widesidebar-attach-already-attached','resize','stopListening','getOrderedSelectedAnnotations','add','isAttached','get','_activeAnnotation','attach','_attachToContainer','set','addAnnotation','updateTargetRect','ready','context','removeEventListener','cancel','init','_refreshPositioningDebounced','_integrateWithEditorAnnotations','change:container','annotations','hasDomSelection','switchTo','requires','off','destroy','addEventListener','blur','focus','ck-sidebar--wide','container','_destroyEditorAnnotationsIntegration','activeAnnotation','editors','widesidebar-detach-not-attached','plugins','refresh','EditorAnnotations','wideSidebar','pluginName','WideSidebar','remove','register','_annotations','_editorAnnotations','setActiveAnnotation','detach'];(function(_0x29ef66,_0x35be25){const _0x306813=function(_0x12f54c){while(--_0x12f54c){_0x29ef66['push'](_0x29ef66['shift']());}};_0x306813(++_0x35be25);}(_0x35be,0x114));const _0x3068=function(_0x29ef66,_0x35be25){_0x29ef66=_0x29ef66-0x0;let _0x306813=_0x35be[_0x29ef66];return _0x306813;};import{ContextPlugin as _0x4ea8a7,Context as _0x2f5d7f}from'ckeditor5/src/core';import _0x8da491 from'./annotationsuis';import _0x6288b4 from'./sidebar';import{CKEditorError as _0x17abbf,Collection as _0xda5d9f}from'ckeditor5/src/utils';import{debounce as _0x5d6b6e}from'lodash-es';import _0x3ea499 from'./editorannotations';export default class i extends _0x4ea8a7{static get[_0x3068('0x6')](){return[_0x6288b4,_0x8da491];}static get[_0x3068('0x16')](){return _0x3068('0x17');}constructor(_0x38d814){super(_0x38d814),this[_0x3068('0x26')]=!0x1,this[_0x3068('0x2b')]('activeAnnotation',null),this[_0x3068('0x3')]=null,this[_0x3068('0x1b')]=new _0xda5d9f(),this[_0x3068('0x0')]=_0x5d6b6e(()=>{this[_0x3068('0x3')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3068('0x32')](){const _0x1b8b2a=this[_0x3068('0x2f')][_0x3068('0x12')][_0x3068('0x27')](_0x8da491),_0x4d3159=this[_0x3068('0x2f')]['plugins']['get'](_0x6288b4);_0x1b8b2a[_0x3068('0x19')]('wideSidebar',this),_0x4d3159[_0x3068('0xd')]&&_0x1b8b2a[_0x3068('0x5')](_0x3068('0x15'));}[_0x3068('0x1c')](_0x339011){if(_0x339011===this[_0x3068('0xf')])return;const _0x53c662=this[_0x3068('0x2f')][_0x3068('0x12')][_0x3068('0x27')](_0x6288b4);_0x53c662[_0x3068('0x28')]=_0x339011;const _0x1f3ccb=this[_0x3068('0xf')];this[_0x3068('0xf')]=_0x339011,_0x53c662[_0x3068('0x13')]({'blurredAnnotation':_0x1f3ccb,'activatedAnnotation':this[_0x3068('0xf')]});}[_0x3068('0x29')](_0x3b72cf){this['annotations']=_0x3b72cf;const _0x8a9baf=this['context'][_0x3068('0x12')][_0x3068('0x27')](_0x6288b4);if(_0x8a9baf[_0x3068('0x1a')]=_0x3b72cf,this[_0x3068('0x26')])throw new _0x17abbf(_0x3068('0x21'),this);this[_0x3068('0x26')]=!0x0,this[_0x3068('0x1f')](_0x8a9baf,'set:container',()=>{this[_0x3068('0x1d')](),this[_0x3068('0x1f')](_0x8a9baf,_0x3068('0x2'),_0x3ca495=>{_0x3ca495[_0x3068('0x7')](),this[_0x3068('0x29')](_0x3b72cf);});}),_0x8a9baf[_0x3068('0x2a')]({'viewClass':_0x3068('0xc')});const _0x921f8a=_0x5b25f5=>{_0x5b25f5[_0x3068('0x2d')](),_0x8a9baf[_0x3068('0x2c')](_0x5b25f5);};for(const _0x2814fe of _0x3b72cf)_0x921f8a(_0x2814fe);this[_0x3068('0x1f')](_0x3b72cf,_0x3068('0x25'),(_0x4a3950,_0x2333b2)=>{_0x921f8a(_0x2333b2);}),this[_0x3068('0x1f')](_0x3b72cf,_0x3068('0x18'),(_0x122035,_0x2ea257,_0x35fba1)=>{_0x8a9baf['rearrange']({'removedAnnotation':_0x2ea257,'previousAnnotation':_0x3b72cf[_0x3068('0x27')](_0x35fba1-0x1),'nextAnnotation':_0x3b72cf['get'](_0x35fba1+0x1)}),_0x2ea257===this[_0x3068('0xf')]&&this[_0x3068('0x1c')](null);},{'priority':'high'}),this[_0x3068('0x1f')](_0x3b72cf,_0x3068('0xb'),(_0x416f07,_0x49bee5)=>{this['setActiveAnnotation'](_0x49bee5);}),this[_0x3068('0x1f')](_0x3b72cf,_0x3068('0xa'),()=>{this[_0x3068('0x1c')](null);});const _0x204365=this[_0x3068('0x2f')]instanceof _0x2f5d7f?this[_0x3068('0x2f')][_0x3068('0x10')]:new _0xda5d9f([this[_0x3068('0x2f')]]);for(const _0x51c7b9 of _0x204365)this[_0x3068('0x1')](_0x51c7b9);this['listenTo'](_0x204365,'add',(_0xc6b860,_0x3e4bc4)=>{this['listenTo'](_0x3e4bc4,_0x3068('0x2e'),()=>{this[_0x3068('0x1')](_0x3e4bc4);});}),this[_0x3068('0x1f')](_0x204365,'remove',(_0x28d27b,_0x4f5ede)=>{_0x4f5ede[_0x3068('0x12')]['has'](_0x3068('0x14'))&&this[_0x3068('0xe')](_0x4f5ede[_0x3068('0x12')][_0x3068('0x27')](_0x3068('0x14')));}),window[_0x3068('0x9')](_0x3068('0x22'),this[_0x3068('0x0')]),this['annotations']['refreshPositioning']();}[_0x3068('0x1d')](){if(!this[_0x3068('0x26')])throw new _0x17abbf(_0x3068('0x11'),this);this[_0x3068('0x1c')](null);const _0x1e274e=this[_0x3068('0x2f')]['plugins'][_0x3068('0x27')](_0x6288b4);_0x1e274e['_detachFromContainer'](this[_0x3068('0x3')]),this[_0x3068('0x23')](_0x1e274e),this[_0x3068('0x23')](this[_0x3068('0x3')]),this[_0x3068('0x2f')]instanceof _0x2f5d7f&&this[_0x3068('0x23')](this[_0x3068('0x2f')][_0x3068('0x10')]);for(const _0x461d28 of Array['from'](this[_0x3068('0x1b')]))this[_0x3068('0xe')](_0x461d28);window[_0x3068('0x30')]('resize',this[_0x3068('0x0')]),this['_refreshPositioningDebounced'][_0x3068('0x31')](),this['activeAnnotation']=null,this[_0x3068('0x26')]=!0x1,this['annotations']=null;}[_0x3068('0x8')](){this[_0x3068('0x26')]&&this[_0x3068('0x1d')]();}['_integrateWithEditorAnnotations'](_0xc1b6ad){const _0x3dc7eb=_0xc1b6ad[_0x3068('0x12')][_0x3068('0x27')](_0x3ea499);if(!_0x3dc7eb)return;const _0x37f465=()=>{const _0x48ef76=_0x3dc7eb[_0x3068('0x24')]({'annotations':this['annotations'],'activeAnnotation':this[_0x3068('0xf')]});this[_0x3068('0x1c')](_0x48ef76[0x0]||null);};this[_0x3068('0x1f')](_0x3dc7eb,_0x3068('0x13'),_0x37f465),this['listenTo'](_0x3dc7eb,_0x3068('0xa'),(_0x42dc5f,{isAnnotationTracked:_0x2b302e})=>{this[_0x3068('0xf')]&&_0x2b302e(this[_0x3068('0xf')])&&this[_0x3068('0x1c')](null);}),this['listenTo'](_0x3dc7eb,_0x3068('0x20'),()=>{this[_0x3068('0x0')]();}),this[_0x3068('0x1f')](this[_0x3068('0x3')],_0x3068('0xa'),_0x54bf33=>{_0x3dc7eb[_0x3068('0x4')]()&&(_0x37f465(),_0x54bf33[_0x3068('0x1e')]());},{'priority':'high'}),this['_editorAnnotations'][_0x3068('0x25')](_0x3dc7eb);}[_0x3068('0xe')](_0x3b71c3){this[_0x3068('0x23')](_0x3b71c3),this[_0x3068('0x1b')][_0x3068('0x18')](_0x3b71c3);}}
23
+ const _0x2908=['widesidebar-detach-not-attached','requires','wideSidebar','setActiveAnnotation','hasDomSelection','_activeAnnotation','pluginName','_annotations','WideSidebar','resize','context','container','from','_destroyEditorAnnotationsIntegration','EditorAnnotations','off','init','_integrateWithEditorAnnotations','addAnnotation','_detachFromContainer','removeEventListener','listenTo','set:container','change:container','high','refresh','annotations','activeAnnotation','stopListening','refreshPositioning','destroy','widesidebar-attach-already-attached','ck-sidebar--wide','stop','blur','get','has','editors','plugins','register','add','attach','_refreshPositioningDebounced','updateTargetRect','detach','getOrderedSelectedAnnotations','remove','_editorAnnotations','isAttached','switchTo','rearrange'];(function(_0x2e8f20,_0x290864){const _0x358883=function(_0x516f65){while(--_0x516f65){_0x2e8f20['push'](_0x2e8f20['shift']());}};_0x358883(++_0x290864);}(_0x2908,0x127));const _0x3588=function(_0x2e8f20,_0x290864){_0x2e8f20=_0x2e8f20-0x0;let _0x358883=_0x2908[_0x2e8f20];return _0x358883;};import{ContextPlugin as _0x45b8a7,Context as _0x40ce94}from'ckeditor5/src/core';import _0x229858 from'./annotationsuis';import _0x24d86d from'./sidebar';import{CKEditorError as _0x2100cc,Collection as _0x4f281d}from'ckeditor5/src/utils';import{debounce as _0x507c6d}from'lodash-es';import _0x184fba from'./editorannotations';export default class i extends _0x45b8a7{static get[_0x3588('0xc')](){return[_0x24d86d,_0x229858];}static get[_0x3588('0x11')](){return _0x3588('0x13');}constructor(_0x23671b){super(_0x23671b),this[_0x3588('0x8')]=!0x1,this['set'](_0x3588('0x26'),null),this[_0x3588('0x25')]=null,this[_0x3588('0x7')]=new _0x4f281d(),this[_0x3588('0x2')]=_0x507c6d(()=>{this[_0x3588('0x25')][_0x3588('0x28')]();},0xfa,{'leading':!0x1});}[_0x3588('0x1b')](){const _0x3b0a42=this[_0x3588('0x15')][_0x3588('0x31')][_0x3588('0x2e')](_0x229858),_0x12c74e=this['context']['plugins'][_0x3588('0x2e')](_0x24d86d);_0x3b0a42[_0x3588('0x32')](_0x3588('0xd'),this),_0x12c74e[_0x3588('0x16')]&&_0x3b0a42[_0x3588('0x9')](_0x3588('0xd'));}[_0x3588('0xe')](_0x2c68f4){if(_0x2c68f4===this[_0x3588('0x26')])return;const _0xd5211a=this[_0x3588('0x15')][_0x3588('0x31')]['get'](_0x24d86d);_0xd5211a[_0x3588('0x10')]=_0x2c68f4;const _0x2fb6bb=this[_0x3588('0x26')];this[_0x3588('0x26')]=_0x2c68f4,_0xd5211a[_0x3588('0x24')]({'blurredAnnotation':_0x2fb6bb,'activatedAnnotation':this[_0x3588('0x26')]});}[_0x3588('0x1')](_0x436e8a){this[_0x3588('0x25')]=_0x436e8a;const _0x5f22db=this['context'][_0x3588('0x31')][_0x3588('0x2e')](_0x24d86d);if(_0x5f22db[_0x3588('0x12')]=_0x436e8a,this[_0x3588('0x8')])throw new _0x2100cc(_0x3588('0x2a'),this);this[_0x3588('0x8')]=!0x0,this[_0x3588('0x20')](_0x5f22db,_0x3588('0x21'),()=>{this['detach'](),this[_0x3588('0x20')](_0x5f22db,_0x3588('0x22'),_0x3f0c2a=>{_0x3f0c2a[_0x3588('0x1a')](),this[_0x3588('0x1')](_0x436e8a);});}),_0x5f22db['_attachToContainer']({'viewClass':_0x3588('0x2b')});const _0x5d8593=_0x4f408e=>{_0x4f408e[_0x3588('0x3')](),_0x5f22db[_0x3588('0x1d')](_0x4f408e);};for(const _0x283557 of _0x436e8a)_0x5d8593(_0x283557);this[_0x3588('0x20')](_0x436e8a,_0x3588('0x0'),(_0x31838e,_0x2e06c1)=>{_0x5d8593(_0x2e06c1);}),this[_0x3588('0x20')](_0x436e8a,'remove',(_0x1936b4,_0x19dc64,_0x466f9c)=>{_0x5f22db[_0x3588('0xa')]({'removedAnnotation':_0x19dc64,'previousAnnotation':_0x436e8a[_0x3588('0x2e')](_0x466f9c-0x1),'nextAnnotation':_0x436e8a[_0x3588('0x2e')](_0x466f9c+0x1)}),_0x19dc64===this[_0x3588('0x26')]&&this[_0x3588('0xe')](null);},{'priority':_0x3588('0x23')}),this[_0x3588('0x20')](_0x436e8a,'focus',(_0x5a9066,_0x23b4ff)=>{this[_0x3588('0xe')](_0x23b4ff);}),this[_0x3588('0x20')](_0x436e8a,_0x3588('0x2d'),()=>{this[_0x3588('0xe')](null);});const _0x2d5a53=this[_0x3588('0x15')]instanceof _0x40ce94?this[_0x3588('0x15')][_0x3588('0x30')]:new _0x4f281d([this[_0x3588('0x15')]]);for(const _0x52cc36 of _0x2d5a53)this[_0x3588('0x1c')](_0x52cc36);this[_0x3588('0x20')](_0x2d5a53,_0x3588('0x0'),(_0x22e054,_0x1cd78d)=>{this[_0x3588('0x20')](_0x1cd78d,'ready',()=>{this[_0x3588('0x1c')](_0x1cd78d);});}),this[_0x3588('0x20')](_0x2d5a53,'remove',(_0x57a5e7,_0xf64dc2)=>{_0xf64dc2[_0x3588('0x31')][_0x3588('0x2f')](_0x3588('0x19'))&&this[_0x3588('0x18')](_0xf64dc2['plugins'][_0x3588('0x2e')](_0x3588('0x19')));}),window['addEventListener'](_0x3588('0x14'),this[_0x3588('0x2')]),this[_0x3588('0x25')][_0x3588('0x28')]();}['detach'](){if(!this['isAttached'])throw new _0x2100cc(_0x3588('0xb'),this);this[_0x3588('0xe')](null);const _0x1887b7=this[_0x3588('0x15')][_0x3588('0x31')][_0x3588('0x2e')](_0x24d86d);_0x1887b7[_0x3588('0x1e')](this[_0x3588('0x25')]),this['stopListening'](_0x1887b7),this[_0x3588('0x27')](this[_0x3588('0x25')]),this[_0x3588('0x15')]instanceof _0x40ce94&&this[_0x3588('0x27')](this[_0x3588('0x15')][_0x3588('0x30')]);for(const _0x42dba5 of Array[_0x3588('0x17')](this[_0x3588('0x7')]))this['_destroyEditorAnnotationsIntegration'](_0x42dba5);window[_0x3588('0x1f')]('resize',this['_refreshPositioningDebounced']),this[_0x3588('0x2')]['cancel'](),this[_0x3588('0x26')]=null,this[_0x3588('0x8')]=!0x1,this['annotations']=null;}[_0x3588('0x29')](){this[_0x3588('0x8')]&&this[_0x3588('0x4')]();}[_0x3588('0x1c')](_0x2e8d32){const _0x56bd8a=_0x2e8d32[_0x3588('0x31')][_0x3588('0x2e')](_0x184fba);if(!_0x56bd8a)return;const _0x2c800a=()=>{const _0x400fa6=_0x56bd8a[_0x3588('0x5')]({'annotations':this[_0x3588('0x25')],'activeAnnotation':this[_0x3588('0x26')]});this['setActiveAnnotation'](_0x400fa6[0x0]||null);};this['listenTo'](_0x56bd8a,_0x3588('0x24'),_0x2c800a),this[_0x3588('0x20')](_0x56bd8a,_0x3588('0x2d'),(_0x4704db,{isAnnotationTracked:_0x5edffd})=>{this['activeAnnotation']&&_0x5edffd(this[_0x3588('0x26')])&&this[_0x3588('0xe')](null);}),this['listenTo'](_0x56bd8a,'uiUpdate',()=>{this[_0x3588('0x2')]();}),this[_0x3588('0x20')](this[_0x3588('0x25')],_0x3588('0x2d'),_0x86f3f1=>{_0x56bd8a[_0x3588('0xf')]()&&(_0x2c800a(),_0x86f3f1[_0x3588('0x2c')]());},{'priority':_0x3588('0x23')}),this[_0x3588('0x7')][_0x3588('0x0')](_0x56bd8a);}[_0x3588('0x18')](_0x5031ca){this[_0x3588('0x27')](_0x5031ca),this[_0x3588('0x7')][_0x3588('0x6')](_0x5031ca);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf4fd=['end','comment:','createRange','element','push','_hasContent','getItems','_trimToContent','execute','editor','getRanges','item','model','refresh','start','schema','addMarker','getLastMatchingPosition','tableCell','substr','$textProxy','change','selection','isEnabled','document'];(function(_0x16e921,_0xf4fd9e){const _0x58a7e9=function(_0x515c3c){while(--_0x515c3c){_0x16e921['push'](_0x16e921['shift']());}};_0x58a7e9(++_0xf4fd9e);}(_0xf4fd,0xc4));const _0x58a7=function(_0x16e921,_0xf4fd9e){_0x16e921=_0x16e921-0x0;let _0x58a7e9=_0xf4fd[_0x16e921];return _0x58a7e9;};import{Command as _0x223356}from'ckeditor5/src/core';import{uid as _0x14c33b}from'ckeditor5/src/utils';export default class q extends _0x223356{[_0x58a7('0x11')](){const _0x38d415=this[_0x58a7('0xd')][_0x58a7('0x10')][_0x58a7('0x3')][_0x58a7('0x1')];for(const _0x255e53 of _0x38d415['getRanges']())if(this[_0x58a7('0x9')](_0x255e53))return void(this[_0x58a7('0x2')]=!0x0);this[_0x58a7('0x2')]=!0x1;}[_0x58a7('0xc')]({threadId:_0x3ceb66=_0x14c33b()}={}){const _0x2ef6e8=this['editor'][_0x58a7('0x10')],_0x1098d3=[];for(const _0xa74029 of _0x2ef6e8['document']['selection'][_0x58a7('0xe')]())this[_0x58a7('0x9')](_0xa74029)&&_0x1098d3[_0x58a7('0x8')](this[_0x58a7('0xb')](_0xa74029));_0x2ef6e8[_0x58a7('0x0')](_0x167fa4=>{for(const _0x11e4a5 of _0x1098d3){const _0x196667=_0x14c33b()[_0x58a7('0x17')](0x1,0x5),_0x15c4d5=_0x58a7('0x5')+_0x3ceb66+':'+_0x196667;_0x167fa4[_0x58a7('0x14')](_0x15c4d5,{'range':_0x11e4a5,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x58a7('0x9')](_0x19db3e){for(const _0x126c80 of _0x19db3e[_0x58a7('0xa')]())if(this['_itemIsContent'](_0x126c80))return!0x0;return!0x1;}['_itemIsContent'](_0x4c99a3){return _0x4c99a3['is'](_0x58a7('0x18'))||this[_0x58a7('0xd')]['model'][_0x58a7('0x13')]['isObject'](_0x4c99a3)&&!_0x4c99a3['is'](_0x58a7('0x7'),_0x58a7('0x16'));}[_0x58a7('0xb')](_0x2cbd66){const _0x2206d3=_0x353f61=>!this['_itemIsContent'](_0x353f61[_0x58a7('0xf')]),_0x433158=_0x2cbd66[_0x58a7('0x12')][_0x58a7('0x15')](_0x2206d3),_0x4157db=_0x2cbd66[_0x58a7('0x4')][_0x58a7('0x15')](_0x2206d3,{'direction':'backward'});return this['editor'][_0x58a7('0x10')][_0x58a7('0x6')](_0x433158,_0x4157db);}}
23
+ const _0x2be5=['editor','isObject','_hasContent','_trimToContent','getItems','start','getLastMatchingPosition','end','model','execute','item','_itemIsContent','$textProxy','selection','schema','tableCell','document','getRanges','backward','comment:','refresh','isEnabled'];(function(_0x120702,_0x2be590){const _0x8480dc=function(_0x7390e1){while(--_0x7390e1){_0x120702['push'](_0x120702['shift']());}};_0x8480dc(++_0x2be590);}(_0x2be5,0xaf));const _0x8480=function(_0x120702,_0x2be590){_0x120702=_0x120702-0x0;let _0x8480dc=_0x2be5[_0x120702];return _0x8480dc;};import{Command as _0xc47207}from'ckeditor5/src/core';import{uid as _0x245c73}from'ckeditor5/src/utils';export default class q extends _0xc47207{[_0x8480('0x15')](){const _0x135208=this[_0x8480('0x1')][_0x8480('0x9')][_0x8480('0x11')]['selection'];for(const _0x251548 of _0x135208[_0x8480('0x12')]())if(this[_0x8480('0x3')](_0x251548))return void(this[_0x8480('0x0')]=!0x0);this[_0x8480('0x0')]=!0x1;}[_0x8480('0xa')]({threadId:_0xf674d3=_0x245c73()}={}){const _0x369ecc=this[_0x8480('0x1')]['model'],_0x22305d=[];for(const _0x427e4f of _0x369ecc[_0x8480('0x11')][_0x8480('0xe')][_0x8480('0x12')]())this[_0x8480('0x3')](_0x427e4f)&&_0x22305d['push'](this[_0x8480('0x4')](_0x427e4f));_0x369ecc['change'](_0x5f1746=>{for(const _0x383032 of _0x22305d){const _0xa44fc=_0x245c73()['substr'](0x1,0x5),_0x39e5c1=_0x8480('0x14')+_0xf674d3+':'+_0xa44fc;_0x5f1746['addMarker'](_0x39e5c1,{'range':_0x383032,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x8480('0x3')](_0x3f8642){for(const _0x379b03 of _0x3f8642[_0x8480('0x5')]())if(this[_0x8480('0xc')](_0x379b03))return!0x0;return!0x1;}[_0x8480('0xc')](_0x498569){return _0x498569['is'](_0x8480('0xd'))||this[_0x8480('0x1')]['model'][_0x8480('0xf')][_0x8480('0x2')](_0x498569)&&!_0x498569['is']('element',_0x8480('0x10'));}[_0x8480('0x4')](_0x2a0ca5){const _0x5e7398=_0x5bf849=>!this[_0x8480('0xc')](_0x5bf849[_0x8480('0xb')]),_0x40a25b=_0x2a0ca5[_0x8480('0x6')][_0x8480('0x7')](_0x5e7398),_0x635a61=_0x2a0ca5[_0x8480('0x8')]['getLastMatchingPosition'](_0x5e7398,{'direction':_0x8480('0x13')});return this['editor'][_0x8480('0x9')]['createRange'](_0x40a25b,_0x635a61);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ddf=['CommentsArchive','findIndex','getCommentThread','addCommentThread','get','add','resolvedThreads','listenTo','length','plugins','requires','_calculatePosition','reopenCommentThread','isActive','resolvedAt','highest','activate','collection','context','removeCommentThread'];(function(_0x540c03,_0x4ddfab){const _0x2ded5b=function(_0xc5c68e){while(--_0xc5c68e){_0x540c03['push'](_0x540c03['shift']());}};_0x2ded5b(++_0x4ddfab);}(_0x4ddf,0x1c5));const _0x2ded=function(_0x540c03,_0x4ddfab){_0x540c03=_0x540c03-0x0;let _0x2ded5b=_0x4ddf[_0x540c03];return _0x2ded5b;};import{ContextPlugin as _0x18ed06}from'ckeditor5/src/core';import{Collection as _0x5c30ef}from'ckeditor5/src/utils';import _0x55be39 from'./commentsrepository';import _0x5b0d9f from'../annotations/annotations';export default class p extends _0x18ed06{static get['pluginName'](){return _0x2ded('0x7');}static get[_0x2ded('0x11')](){return[_0x55be39,_0x5b0d9f];}constructor(_0x455056){super(_0x455056),this[_0x2ded('0xd')]=new _0x5c30ef();}['init'](){const _0xf71185=this[_0x2ded('0x5')],_0x31534e=_0xf71185[_0x2ded('0x10')]['get'](_0x55be39),_0x1a115f=_0xf71185[_0x2ded('0x10')][_0x2ded('0xb')](_0x5b0d9f);this[_0x2ded('0xe')](_0x31534e,_0x2ded('0xa'),(_0x349d74,{threadId:_0x25831e,resolvedAt:_0x49f194,deletedAt:_0x366d58})=>{if(_0x49f194&&!_0x366d58){const _0x3f18e3=_0x31534e['getCommentThread'](_0x25831e);this[_0x2ded('0xd')][_0x2ded('0xc')](_0x3f18e3,this[_0x2ded('0x12')](_0x49f194));}}),this[_0x2ded('0xe')](_0x31534e,'resolveCommentThread',(_0x5277b0,{threadId:_0x143060,resolvedAt:_0x4d2947})=>{const _0x3c3158=_0x31534e['getCommentThread'](_0x143060);this[_0x2ded('0xd')]['add'](_0x3c3158,this[_0x2ded('0x12')](_0x4d2947));},{'priority':_0x2ded('0x2')}),this[_0x2ded('0xe')](_0x31534e,_0x2ded('0x13'),(_0x5e13b0,{threadId:_0xaceb9a})=>{const _0x3569d2=_0x31534e[_0x2ded('0x9')](_0xaceb9a);this['resolvedThreads']['has'](_0x3569d2)&&this[_0x2ded('0xd')]['remove'](_0x3569d2);},{'priority':_0x2ded('0x2')}),this['listenTo'](_0x31534e,_0x2ded('0x6'),(_0x6d1c44,{threadId:_0x23cb2c})=>{const _0x347a61=_0x31534e[_0x2ded('0x9')](_0x23cb2c);this[_0x2ded('0xd')]['has'](_0x347a61)&&this[_0x2ded('0xd')]['remove'](_0x347a61);},{'priority':_0x2ded('0x2')}),this[_0x2ded('0xe')](_0x1a115f[_0x2ded('0x4')],'focus',(_0x23bf19,_0xafe6a7)=>{_0xafe6a7[_0x2ded('0x0')]=!0x0,_0x1a115f[_0x2ded('0x3')](_0xafe6a7);});}[_0x2ded('0x12')](_0x5ed72c){const _0x2a8067=[...this[_0x2ded('0xd')]][_0x2ded('0x8')](_0x33580f=>_0x33580f[_0x2ded('0x1')]<_0x5ed72c);return _0x2a8067>-0x1?_0x2a8067:this[_0x2ded('0xd')][_0x2ded('0xf')];}}
23
+ const _0x5838=['isActive','reopenCommentThread','activate','findIndex','context','resolvedAt','resolvedThreads','resolveCommentThread','collection','highest','pluginName','focus','listenTo','get','remove','add','addCommentThread','has','getCommentThread','CommentsArchive','init','length','_calculatePosition','removeCommentThread','requires','plugins'];(function(_0x469094,_0x58389d){const _0x90dd7a=function(_0x14fb29){while(--_0x14fb29){_0x469094['push'](_0x469094['shift']());}};_0x90dd7a(++_0x58389d);}(_0x5838,0x18c));const _0x90dd=function(_0x469094,_0x58389d){_0x469094=_0x469094-0x0;let _0x90dd7a=_0x5838[_0x469094];return _0x90dd7a;};import{ContextPlugin as _0x3862dc}from'ckeditor5/src/core';import{Collection as _0x29eeb0}from'ckeditor5/src/utils';import _0x11012c from'./commentsrepository';import _0x484acf from'../annotations/annotations';export default class p extends _0x3862dc{static get[_0x90dd('0x4')](){return _0x90dd('0xd');}static get[_0x90dd('0x12')](){return[_0x11012c,_0x484acf];}constructor(_0x364684){super(_0x364684),this[_0x90dd('0x0')]=new _0x29eeb0();}[_0x90dd('0xe')](){const _0x4d95be=this[_0x90dd('0x18')],_0x2d0f16=_0x4d95be[_0x90dd('0x13')]['get'](_0x11012c),_0x493608=_0x4d95be['plugins'][_0x90dd('0x7')](_0x484acf);this[_0x90dd('0x6')](_0x2d0f16,_0x90dd('0xa'),(_0x417592,{threadId:_0x563739,resolvedAt:_0x3ddf3e,deletedAt:_0x8df699})=>{if(_0x3ddf3e&&!_0x8df699){const _0x134959=_0x2d0f16['getCommentThread'](_0x563739);this['resolvedThreads'][_0x90dd('0x9')](_0x134959,this[_0x90dd('0x10')](_0x3ddf3e));}}),this[_0x90dd('0x6')](_0x2d0f16,_0x90dd('0x1'),(_0x28e430,{threadId:_0x4e40fa,resolvedAt:_0x1e6172})=>{const _0x1a85ee=_0x2d0f16[_0x90dd('0xc')](_0x4e40fa);this[_0x90dd('0x0')][_0x90dd('0x9')](_0x1a85ee,this[_0x90dd('0x10')](_0x1e6172));},{'priority':_0x90dd('0x3')}),this['listenTo'](_0x2d0f16,_0x90dd('0x15'),(_0x368cb1,{threadId:_0x244d69})=>{const _0x4eb681=_0x2d0f16['getCommentThread'](_0x244d69);this[_0x90dd('0x0')][_0x90dd('0xb')](_0x4eb681)&&this[_0x90dd('0x0')][_0x90dd('0x8')](_0x4eb681);},{'priority':_0x90dd('0x3')}),this[_0x90dd('0x6')](_0x2d0f16,_0x90dd('0x11'),(_0x3a2fd5,{threadId:_0x492569})=>{const _0x3bae13=_0x2d0f16['getCommentThread'](_0x492569);this['resolvedThreads']['has'](_0x3bae13)&&this['resolvedThreads']['remove'](_0x3bae13);},{'priority':_0x90dd('0x3')}),this[_0x90dd('0x6')](_0x493608[_0x90dd('0x2')],_0x90dd('0x5'),(_0x5d7fa8,_0x541974)=>{_0x541974[_0x90dd('0x14')]=!0x0,_0x493608[_0x90dd('0x16')](_0x541974);});}[_0x90dd('0x10')](_0x200a2a){const _0x494580=[...this[_0x90dd('0x0')]][_0x90dd('0x17')](_0x16f9c4=>_0x16f9c4[_0x90dd('0x19')]<_0x200a2a);return _0x494580>-0x1?_0x494580:this[_0x90dd('0x0')][_0x90dd('0xf')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17e8=['findIndex','COMMENTS_ARCHIVE','set','commentsArchiveView','contains','classList','remove','ck-comments-archive-dropdown','position','collaboration.channelId','get','_pendingThreads','plugins','add','extendTemplate','requires','annotationViews','focusTracker','indexOf','CommentsRepository','length','Annotations','splice','getByInnerView','_visibleAnnotations','_handleAnnotationFocusableElements','editor','resolvedThreads','isVisible','children','mainView','locale','listenTo','resolvedAt','_calculatePosition','_threadToController','_createArchiveUIDropdown','channelId','pluginName','ck-body','view','collection','push','commentsArchive','config','panelView','focusableElements','componentFactory','innerView','CommentsArchiveUI'];(function(_0x1d7263,_0x17e852){const _0xbde610=function(_0x1945b8){while(--_0x1945b8){_0x1d7263['push'](_0x1d7263['shift']());}};_0xbde610(++_0x17e852);}(_0x17e8,0xdf));const _0xbde6=function(_0x1d7263,_0x17e852){_0x1d7263=_0x1d7263-0x0;let _0xbde610=_0x17e8[_0x1d7263];return _0xbde610;};import'../../theme/commentsarchive.css';import{Plugin as _0x4c45c8}from'ckeditor5/src/core';import{createDropdown as _0x157a9f,ViewCollection as _0x276679}from'ckeditor5/src/ui';import _0x3805d4 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2e5fd3}from'../utils/common-translations';import _0x20793e from'./ui/view/commentsarchiveview';import _0x484762 from'./commentsarchive';export default class a extends _0x4c45c8{static get[_0xbde6('0xf')](){return _0xbde6('0x1a');}static get[_0xbde6('0x2a')](){return[_0x484762];}constructor(_0x3eafae){super(_0x3eafae),this[_0xbde6('0x2b')]=new _0x276679(),this[_0xbde6('0x26')]=[];}['init'](){this[_0xbde6('0x3')]['ui'][_0xbde6('0x18')][_0xbde6('0x28')](_0xbde6('0x14'),()=>this[_0xbde6('0xd')]());const _0x2ed909=this[_0xbde6('0x3')][_0xbde6('0x27')][_0xbde6('0x25')](_0x484762),_0x4c9fcf=this[_0xbde6('0x3')][_0xbde6('0x27')][_0xbde6('0x25')](_0xbde6('0x30')),_0xec5ce6=this[_0xbde6('0x3')][_0xbde6('0x27')][_0xbde6('0x25')](_0xbde6('0x2e'));this[_0xbde6('0x9')](_0x2ed909[_0xbde6('0x4')],_0xbde6('0x28'),(_0x5a920e,_0x577454)=>{const _0x2bcaf4=this['editor'][_0xbde6('0x15')][_0xbde6('0x25')](_0xbde6('0x24'));if(!_0x2bcaf4||_0x577454['channelId']===_0x2bcaf4){const _0x39790a=this[_0xbde6('0xb')](_0x577454[_0xbde6('0xa')]),_0x4bacf8=_0xec5ce6[_0xbde6('0xc')][_0xbde6('0x25')](_0x577454);if(!_0x4bacf8)return void this[_0xbde6('0x26')][_0xbde6('0x13')]({'thread':_0x577454,'position':_0x39790a});const _0x2cb91a=_0x4c9fcf[_0xbde6('0x0')](_0x4bacf8[_0xbde6('0x11')]);_0x2cb91a[_0xbde6('0x5')]&&_0x4c9fcf[_0xbde6('0x1')]['remove'](_0x2cb91a),this['annotationViews']['add'](_0x2cb91a[_0xbde6('0x11')],_0x39790a);}}),this[_0xbde6('0x9')](_0x4c9fcf[_0xbde6('0x12')],_0xbde6('0x28'),(_0x37085a,_0x4615cd)=>{const _0x58b013=this[_0xbde6('0x26')]['find'](({thread:_0x30d076})=>{const _0x5dea19=_0xec5ce6[_0xbde6('0xc')][_0xbde6('0x25')](_0x30d076);return _0x5dea19&&_0x4615cd[_0xbde6('0x19')]===_0x5dea19[_0xbde6('0x11')];});_0x58b013&&(this[_0xbde6('0x2b')][_0xbde6('0x28')](_0x4615cd[_0xbde6('0x11')],_0x58b013[_0xbde6('0x23')]),this[_0xbde6('0x26')][_0xbde6('0x31')](this[_0xbde6('0x26')][_0xbde6('0x2d')](_0x58b013),0x1));}),this[_0xbde6('0x9')](_0x2ed909['resolvedThreads'],_0xbde6('0x21'),(_0x391a31,_0x5a67b8)=>{const _0x7d852a=this[_0xbde6('0x3')][_0xbde6('0x15')]['get'](_0xbde6('0x24'));if(!_0x7d852a||_0x5a67b8[_0xbde6('0xe')]===_0x7d852a){const _0x1be515=_0xec5ce6[_0xbde6('0xc')][_0xbde6('0x25')](_0x5a67b8),_0x45daff=_0x4c9fcf[_0xbde6('0x0')](_0x1be515[_0xbde6('0x11')]);this['annotationViews'][_0xbde6('0x21')](_0x45daff[_0xbde6('0x11')]),this['stopListening'](_0x45daff[_0xbde6('0x17')]);}});}['_handleAnnotationFocusableElements'](_0x20820e,_0x33e19c){for(const _0x14ef7b of _0x33e19c[_0xbde6('0x17')])_0x14ef7b[_0xbde6('0x20')][_0xbde6('0x1f')](_0xbde6('0x10'))&&_0x20820e['focusTracker'][_0xbde6('0x28')](_0x14ef7b);this['listenTo'](_0x33e19c[_0xbde6('0x17')],_0xbde6('0x28'),(_0x270229,_0x54cffc)=>{_0x54cffc[_0xbde6('0x20')][_0xbde6('0x1f')]('ck-body')&&_0x20820e[_0xbde6('0x2c')][_0xbde6('0x28')](_0x54cffc);}),this[_0xbde6('0x9')](_0x33e19c[_0xbde6('0x17')],'remove',(_0x4efbc4,_0x44f9bf)=>{_0x44f9bf[_0xbde6('0x20')]['contains']('ck-body')&&_0x20820e['focusTracker']['remove'](_0x44f9bf);});}[_0xbde6('0xb')](_0x2f5ecd){const _0x108668=this[_0xbde6('0x3')][_0xbde6('0x15')][_0xbde6('0x25')](_0xbde6('0x24')),_0x41e568=[...this[_0xbde6('0x3')][_0xbde6('0x27')][_0xbde6('0x25')](_0x484762)['resolvedThreads']]['filter'](_0x46416d=>_0x46416d[_0xbde6('0xe')]!==_0x108668)[_0xbde6('0x1b')](_0x31ce0f=>_0x31ce0f[_0xbde6('0xa')]<_0x2f5ecd);return _0x41e568>-0x1?_0x41e568:this[_0xbde6('0x2b')][_0xbde6('0x2f')];}[_0xbde6('0xd')](){const _0x108332=this[_0xbde6('0x3')],_0x4cf80e=this['editor']['plugins']['get']('Annotations'),_0x27c34b=_0x157a9f(_0x108332[_0xbde6('0x8')]);_0x27c34b['buttonView'][_0xbde6('0x1d')]({'icon':_0x3805d4,'label':_0x2e5fd3(_0x108332[_0xbde6('0x8')],_0xbde6('0x1c')),'tooltip':!0x0}),_0x27c34b[_0xbde6('0x16')][_0xbde6('0x29')]({'attributes':{'class':_0xbde6('0x22')}}),_0x27c34b['on']('change:isOpen',(_0x3f0eed,_0x432518,_0x1d7221)=>{this[_0xbde6('0x1e')]||(this[_0xbde6('0x1e')]=new _0x20793e(_0x108332[_0xbde6('0x8')],this[_0xbde6('0x2b')])),_0x1d7221?_0x27c34b[_0xbde6('0x16')][_0xbde6('0x6')][_0xbde6('0x28')](this[_0xbde6('0x1e')]):_0x27c34b[_0xbde6('0x16')]['children'][_0xbde6('0x21')](this[_0xbde6('0x1e')]);});for(const _0x49ef2e of this[_0xbde6('0x2b')]){const _0x516063=_0x4cf80e['getByInnerView'](_0x49ef2e[_0xbde6('0x7')]);this[_0xbde6('0x2')](_0x27c34b,_0x516063);}return _0x27c34b['listenTo'](this[_0xbde6('0x2b')],'add',(_0x452aaa,_0xeb9b9d)=>{const _0x39570d=_0x4cf80e[_0xbde6('0x0')](_0xeb9b9d[_0xbde6('0x7')]);this[_0xbde6('0x2')](_0x27c34b,_0x39570d);}),_0x27c34b[_0xbde6('0x9')](this[_0xbde6('0x2b')],_0xbde6('0x21'),(_0x3ba1f8,_0x1a00df)=>{const _0x211ed2=_0x4cf80e[_0xbde6('0x0')](_0x1a00df['mainView']);for(const _0x76b44c of _0x211ed2[_0xbde6('0x17')])_0x76b44c[_0xbde6('0x20')]['contains'](_0xbde6('0x10'))&&_0x27c34b['focusTracker'][_0xbde6('0x21')](_0x76b44c);}),_0x27c34b;}}
23
+ const _0x5e18=['pluginName','filter','indexOf','collection','mainView','stopListening','collaboration.channelId','_pendingThreads','plugins','_visibleAnnotations','splice','add','extendTemplate','channelId','resolvedThreads','CommentsRepository','contains','CommentsArchiveUI','editor','_calculatePosition','config','annotationViews','COMMENTS_ARCHIVE','panelView','remove','children','Annotations','resolvedAt','commentsArchiveView','_threadToController','view','_handleAnnotationFocusableElements','getByInnerView','focusTracker','findIndex','listenTo','buttonView','push','ck-body','innerView','find','classList','locale','_createArchiveUIDropdown','requires','get','componentFactory','init','position','focusableElements','isVisible'];(function(_0x546296,_0x5e1836){const _0x1d4041=function(_0x1b93bb){while(--_0x1b93bb){_0x546296['push'](_0x546296['shift']());}};_0x1d4041(++_0x5e1836);}(_0x5e18,0x1c6));const _0x1d40=function(_0x546296,_0x5e1836){_0x546296=_0x546296-0x0;let _0x1d4041=_0x5e18[_0x546296];return _0x1d4041;};import'../../theme/commentsarchive.css';import{Plugin as _0x236d7d}from'ckeditor5/src/core';import{createDropdown as _0x33a65e,ViewCollection as _0x1a54d0}from'ckeditor5/src/ui';import _0x508e47 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x112dcb}from'../utils/common-translations';import _0x26e251 from'./ui/view/commentsarchiveview';import _0x9c8fda from'./commentsarchive';export default class a extends _0x236d7d{static get[_0x1d40('0x5')](){return _0x1d40('0x16');}static get[_0x1d40('0x31')](){return[_0x9c8fda];}constructor(_0x1b57e7){super(_0x1b57e7),this[_0x1d40('0x1a')]=new _0x1a54d0(),this[_0x1d40('0xc')]=[];}[_0x1d40('0x1')](){this[_0x1d40('0x17')]['ui'][_0x1d40('0x0')][_0x1d40('0x10')]('commentsArchive',()=>this['_createArchiveUIDropdown']());const _0x466183=this[_0x1d40('0x17')][_0x1d40('0xd')][_0x1d40('0x32')](_0x9c8fda),_0x3cd3d4=this[_0x1d40('0x17')][_0x1d40('0xd')]['get']('Annotations'),_0x238b04=this[_0x1d40('0x17')][_0x1d40('0xd')][_0x1d40('0x32')](_0x1d40('0x14'));this['listenTo'](_0x466183[_0x1d40('0x13')],_0x1d40('0x10'),(_0x158b0f,_0x5b3574)=>{const _0x58da3d=this[_0x1d40('0x17')][_0x1d40('0x19')][_0x1d40('0x32')](_0x1d40('0xb'));if(!_0x58da3d||_0x5b3574[_0x1d40('0x12')]===_0x58da3d){const _0x5c9b31=this[_0x1d40('0x18')](_0x5b3574[_0x1d40('0x20')]),_0x46954c=_0x238b04[_0x1d40('0x22')][_0x1d40('0x32')](_0x5b3574);if(!_0x46954c)return void this[_0x1d40('0xc')][_0x1d40('0x2a')]({'thread':_0x5b3574,'position':_0x5c9b31});const _0x383cb9=_0x3cd3d4[_0x1d40('0x25')](_0x46954c[_0x1d40('0x23')]);_0x383cb9[_0x1d40('0x4')]&&_0x3cd3d4[_0x1d40('0xe')][_0x1d40('0x1d')](_0x383cb9),this[_0x1d40('0x1a')]['add'](_0x383cb9[_0x1d40('0x23')],_0x5c9b31);}}),this[_0x1d40('0x28')](_0x3cd3d4[_0x1d40('0x8')],'add',(_0xcce951,_0x4bb3b7)=>{const _0x258ba7=this['_pendingThreads'][_0x1d40('0x2d')](({thread:_0x29bfcc})=>{const _0x238d97=_0x238b04[_0x1d40('0x22')][_0x1d40('0x32')](_0x29bfcc);return _0x238d97&&_0x4bb3b7[_0x1d40('0x2c')]===_0x238d97[_0x1d40('0x23')];});_0x258ba7&&(this[_0x1d40('0x1a')]['add'](_0x4bb3b7[_0x1d40('0x23')],_0x258ba7[_0x1d40('0x2')]),this['_pendingThreads'][_0x1d40('0xf')](this[_0x1d40('0xc')][_0x1d40('0x7')](_0x258ba7),0x1));}),this[_0x1d40('0x28')](_0x466183['resolvedThreads'],_0x1d40('0x1d'),(_0xc1c956,_0x10f192)=>{const _0x53d6f3=this[_0x1d40('0x17')][_0x1d40('0x19')][_0x1d40('0x32')](_0x1d40('0xb'));if(!_0x53d6f3||_0x10f192[_0x1d40('0x12')]===_0x53d6f3){const _0x43ba77=_0x238b04[_0x1d40('0x22')][_0x1d40('0x32')](_0x10f192),_0x13839e=_0x3cd3d4['getByInnerView'](_0x43ba77[_0x1d40('0x23')]);this[_0x1d40('0x1a')][_0x1d40('0x1d')](_0x13839e['view']),this[_0x1d40('0xa')](_0x13839e[_0x1d40('0x3')]);}});}[_0x1d40('0x24')](_0x1573c8,_0x22349b){for(const _0x3ddb70 of _0x22349b['focusableElements'])_0x3ddb70['classList'][_0x1d40('0x15')](_0x1d40('0x2b'))&&_0x1573c8[_0x1d40('0x26')][_0x1d40('0x10')](_0x3ddb70);this[_0x1d40('0x28')](_0x22349b[_0x1d40('0x3')],_0x1d40('0x10'),(_0x509462,_0x50a6ab)=>{_0x50a6ab[_0x1d40('0x2e')]['contains'](_0x1d40('0x2b'))&&_0x1573c8[_0x1d40('0x26')][_0x1d40('0x10')](_0x50a6ab);}),this[_0x1d40('0x28')](_0x22349b[_0x1d40('0x3')],_0x1d40('0x1d'),(_0x8fbe64,_0x243aaf)=>{_0x243aaf[_0x1d40('0x2e')][_0x1d40('0x15')](_0x1d40('0x2b'))&&_0x1573c8[_0x1d40('0x26')][_0x1d40('0x1d')](_0x243aaf);});}['_calculatePosition'](_0xf0a3e9){const _0x2c6d63=this[_0x1d40('0x17')][_0x1d40('0x19')][_0x1d40('0x32')](_0x1d40('0xb')),_0x3670c7=[...this[_0x1d40('0x17')][_0x1d40('0xd')][_0x1d40('0x32')](_0x9c8fda)[_0x1d40('0x13')]][_0x1d40('0x6')](_0x2d2d4a=>_0x2d2d4a[_0x1d40('0x12')]!==_0x2c6d63)[_0x1d40('0x27')](_0x1e02c3=>_0x1e02c3['resolvedAt']<_0xf0a3e9);return _0x3670c7>-0x1?_0x3670c7:this[_0x1d40('0x1a')]['length'];}[_0x1d40('0x30')](){const _0x8c4925=this[_0x1d40('0x17')],_0xef29e7=this['editor'][_0x1d40('0xd')][_0x1d40('0x32')](_0x1d40('0x1f')),_0x168554=_0x33a65e(_0x8c4925[_0x1d40('0x2f')]);_0x168554[_0x1d40('0x29')]['set']({'icon':_0x508e47,'label':_0x112dcb(_0x8c4925[_0x1d40('0x2f')],_0x1d40('0x1b')),'tooltip':!0x0}),_0x168554['panelView'][_0x1d40('0x11')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x168554['on']('change:isOpen',(_0x34d12b,_0x2ce4de,_0x4f2758)=>{this['commentsArchiveView']||(this[_0x1d40('0x21')]=new _0x26e251(_0x8c4925[_0x1d40('0x2f')],this[_0x1d40('0x1a')])),_0x4f2758?_0x168554[_0x1d40('0x1c')]['children'][_0x1d40('0x10')](this[_0x1d40('0x21')]):_0x168554[_0x1d40('0x1c')][_0x1d40('0x1e')]['remove'](this['commentsArchiveView']);});for(const _0x3d0518 of this[_0x1d40('0x1a')]){const _0x27f35b=_0xef29e7[_0x1d40('0x25')](_0x3d0518[_0x1d40('0x9')]);this[_0x1d40('0x24')](_0x168554,_0x27f35b);}return _0x168554[_0x1d40('0x28')](this[_0x1d40('0x1a')],_0x1d40('0x10'),(_0x173a47,_0x134e90)=>{const _0x37c3b1=_0xef29e7[_0x1d40('0x25')](_0x134e90['mainView']);this[_0x1d40('0x24')](_0x168554,_0x37c3b1);}),_0x168554[_0x1d40('0x28')](this[_0x1d40('0x1a')],'remove',(_0x5bb6eb,_0x491271)=>{const _0x23a827=_0xef29e7[_0x1d40('0x25')](_0x491271[_0x1d40('0x9')]);for(const _0x354d2a of _0x23a827[_0x1d40('0x3')])_0x354d2a[_0x1d40('0x2e')]['contains']('ck-body')&&_0x168554[_0x1d40('0x26')][_0x1d40('0x1d')](_0x354d2a);}),_0x168554;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xac51=['view','_handleMarkerAddAndRemove','high','_attachMarkerToThread','pluginName','_handleThreadMarker','registerAnnotation','item','attachTo','getAllMarkersForId','split','substring','$textProxy','once','fetchCommentThread','context','scrollToThreadMarker','root','editingDowncast','listenTo','from','requires','change:isThreadsLoadingPaused','_threads','resolve','for','getRange','isResolved','getChangedMarkers','model','has','get','_hasTargetInContent','consumable','then','set','_getTextContext','hasCommentThread','init','destroy','newRange','isCollapsed','comment','_threadToController','addMarker:','text','reconvertMarker','createRange','add','isEqual','getCommentThreads','elementToElement','updateMarker','markerName','affectsData','markers','_detachCommentThread','map','managedUsingOperations','change','dataDowncast','document','_attachedThreads','filter','reopen','createElement','render','activeMarker','getCommentThread','$graveyard','delete','data','dataToMarker','openNewCommentThread','start','ignoreResolvedComments','end','hasMarkerForId','schema','_initializeMarkerConverters','addCommentThread','isThreadsLoadingPaused','isLocal','registerPostFixer','ready','collaboration.channelId','editing','removeMarker','plugins','config','conversion','differ','$marker','length','upcast','isObject','enqueueChange','commands','editor','reopenCommentThread','low','createPositionBefore','_reconvertMarkers','getAttribute','consume','change:activeMarker','change:isReadOnly'];(function(_0x3a2241,_0xac515a){const _0x32f3d7=function(_0x5dcc08){while(--_0x5dcc08){_0x3a2241['push'](_0x3a2241['shift']());}};_0x32f3d7(++_0xac515a);}(_0xac51,0x158));const _0x32f3=function(_0x3a2241,_0xac515a){_0x3a2241=_0x3a2241-0x0;let _0x32f3d7=_0xac51[_0x3a2241];return _0x32f3d7;};import{Plugin as _0x59e8e8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4dca6d}from'ckeditor5/src/utils';import _0x250ad9 from'./commentsrepository';import _0x432480 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4da93e}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f0ad2 from'../annotations/editorannotations';import _0xf42fdf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0xe13c6d from'./integrations/importword';import _0x52fdaa from'../annotations/annotations';export default class r extends _0x59e8e8{static get[_0x32f3('0x69')](){return[_0x250ad9,_0x3f0ad2,_0xf42fdf,_0xe13c6d];}static get[_0x32f3('0x58')](){return'CommentsEditing';}constructor(_0x707640){super(_0x707640),this[_0x32f3('0xc')](_0x32f3('0x3a'),!0x0),_0x707640[_0x32f3('0x30')][_0x32f3('0x61')](_0x32f3('0x3d'),()=>this[_0x32f3('0x3a')]=!0x1),this[_0x32f3('0xc')]('activeMarker',null),this['on'](_0x32f3('0x52'),(_0x1d4fda,_0x477512,_0x26cc29,_0x312265)=>{const _0x396a67=_0x26cc29?tt(_0x26cc29)['id']:null;if(_0x707640['model'][_0x32f3('0x24')](()=>{if(_0x396a67){const _0x449e7a=this[_0x32f3('0x5d')](_0x396a67);for(const _0x492456 of _0x449e7a)_0x707640['editing'][_0x32f3('0x17')](_0x492456);}if(_0x312265){const {id:_0x56abfa}=tt(_0x312265),_0x5d47e3=this[_0x32f3('0x5d')](_0x56abfa);for(const _0x3851cd of _0x5d47e3)_0x707640[_0x32f3('0x3f')][_0x32f3('0x17')](_0x3851cd);}}),_0x396a67){const _0x59cdeb=_0x707640[_0x32f3('0x41')][_0x32f3('0x8')](_0x250ad9)[_0x32f3('0x2d')](_0x396a67);_0x59cdeb&&_0x59cdeb[_0x32f3('0x4')]&&this[_0x32f3('0x64')](_0x396a67);}}),this[_0x32f3('0x27')]=new Map();}[_0x32f3('0xf')](){const _0x2d84d0=this['editor'],_0x17e5b4=_0x2d84d0['plugins'][_0x32f3('0x8')](_0x250ad9),_0xe92d14=_0x2d84d0['config'][_0x32f3('0x8')](_0x32f3('0x3e'));_0x2d84d0[_0x32f3('0x4a')]['add']('addCommentThread',new _0x432480(_0x2d84d0)),this[_0x32f3('0x67')](_0x2d84d0,_0x32f3('0x53'),(_0x47719b,_0x35c59b,_0x53fd66)=>{_0x17e5b4['switchReadOnly'](_0x53fd66,_0x2d84d0['config'][_0x32f3('0x8')](_0x32f3('0x3e')));}),this['listenTo'](_0x17e5b4,Z(_0x32f3('0x39'),_0xe92d14),(_0x2c4f55,{threadId:_0x2d46b2})=>{const _0x26c827=_0x2d84d0[_0x32f3('0x41')][_0x32f3('0x8')](_0x3f0ad2),_0x52941e=this['editor'][_0x32f3('0x41')]['get'](_0x250ad9)[_0x32f3('0x2d')](_0x2d46b2);if(_0x52941e&&_0x52941e[_0x32f3('0x4')]&&!this[_0x32f3('0x27')][_0x32f3('0x7')](_0x2d46b2)){const _0x7dd06=_0x52941e[_0x32f3('0x5c')](()=>this['_getTargetForId'](_0x52941e['id']));_0x26c827['registerAnnotation'](_0x7dd06),this[_0x32f3('0x27')][_0x32f3('0xc')](_0x2d46b2,[]),0x0===this[_0x32f3('0x5d')](_0x2d46b2)[_0x32f3('0x46')]&&(_0x52941e[_0x32f3('0x9')]=!0x1);}}),this['listenTo'](_0x17e5b4,Z('removeCommentThread',_0xe92d14),(_0x30f53d,{threadId:_0x4f55eb})=>{_0x2d84d0[_0x32f3('0x6')]['enqueueChange']({'isUndoable':!0x1},_0x1c9104=>{const _0x3b8ff6=this['getAllMarkersForId'](_0x4f55eb);this[_0x32f3('0x27')][_0x32f3('0x2f')](_0x4f55eb);for(const _0x2409c7 of _0x3b8ff6)_0x1c9104[_0x32f3('0x40')](_0x2409c7);});},{'priority':_0x32f3('0x56')}),this[_0x32f3('0x67')](_0x17e5b4,Z('resolveCommentThread',_0xe92d14),(_0x4f9664,{threadId:_0x22190a})=>{this['_reconvertMarkers'](_0x22190a),this[_0x32f3('0x4b')][_0x32f3('0x3f')][_0x32f3('0x54')]['hasDomSelection']&&this[_0x32f3('0x4b')][_0x32f3('0x3f')][_0x32f3('0x54')]['focus']();},{'priority':_0x32f3('0x4d')}),this[_0x32f3('0x67')](_0x17e5b4,Z(_0x32f3('0x4c'),_0xe92d14),(_0x3971e0,{threadId:_0x27b5c0})=>{this['_reconvertMarkers'](_0x27b5c0);},{'priority':'low'}),this[_0x32f3('0x67')](_0x17e5b4,Z('addComment',_0xe92d14),(_0x44bc9c,{threadId:_0x581541,isFromAdapter:_0xf7f9f0})=>{const _0x310f0a=this[_0x32f3('0x5d')](_0x581541);if(_0xf7f9f0||0x0==_0x310f0a[_0x32f3('0x46')]||!_0x17e5b4[_0x32f3('0xe')](_0x581541))return;0x1===_0x17e5b4['getCommentThread'](_0x581541)[_0x32f3('0x46')]&&_0x2d84d0['model'][_0x32f3('0x49')]({'isUndoable':!0x1},_0x579bbd=>{for(const _0x2a30f7 of _0x310f0a)_0x579bbd['updateMarker'](_0x2a30f7,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x32f3('0x38')](),this['_handleMarkerAddAndRemove']();}[_0x32f3('0x10')](){const _0x58d971=this['editor'][_0x32f3('0x41')][_0x32f3('0x8')](_0x250ad9),_0x5e1265=this[_0x32f3('0x4b')][_0x32f3('0x42')]['get'](_0x32f3('0x3e'));for(const _0x3368bf of _0x58d971[_0x32f3('0x1b')]({'channelId':_0x5e1265}))_0x58d971[_0x32f3('0x21')](_0x3368bf['id']),_0x58d971[_0x32f3('0x0')][_0x32f3('0x2f')](_0x3368bf['id']);super[_0x32f3('0x10')]();}[_0x32f3('0x36')](_0x3bab23){return this[_0x32f3('0x5d')](_0x3bab23)[_0x32f3('0x46')]>0x0;}[_0x32f3('0x5d')](_0x345449){return(this[_0x32f3('0x27')][_0x32f3('0x8')](_0x345449)||[])[_0x32f3('0x22')](_0x1a6788=>this[_0x32f3('0x4b')][_0x32f3('0x6')]['markers'][_0x32f3('0x8')](_0x1a6788))[_0x32f3('0x28')](_0x23dec1=>_0x23dec1);}['scrollToThreadMarker'](_0x4cacde){const _0x48bd19=this['_getTargetForId'](_0x4cacde);_0x48bd19&&setTimeout(()=>{this[_0x32f3('0x2c')]&&tt(this['activeMarker'])['id']===_0x4cacde&&_0x4dca6d({'target':_0x48bd19[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x32f3('0x4f')](_0x4a41e1){this[_0x32f3('0x4b')]['model'][_0x32f3('0x24')](()=>{for(const _0x5f30e2 of this[_0x32f3('0x5d')](_0x4a41e1))this[_0x32f3('0x4b')]['editing']['reconvertMarker'](_0x5f30e2);});}[_0x32f3('0x38')](){const _0x27993d=this[_0x32f3('0x4b')];_0x27993d[_0x32f3('0x43')]['for'](_0x32f3('0x66'))['markerToHighlight']({'model':'comment','view':(_0x5f69cc,_0x1b996b)=>{const {id:_0x341d02}=tt(_0x5f69cc['markerName']),_0x38fcfe=_0x27993d[_0x32f3('0x41')][_0x32f3('0x8')](_0x250ad9)[_0x32f3('0x2d')](_0x341d02),_0x2fbc68=this[_0x32f3('0x2c')]&&tt(this[_0x32f3('0x2c')])['id']===_0x341d02;if(_0x38fcfe&&_0x38fcfe[_0x32f3('0x4')]&&!_0x2fbc68&&_0x5f69cc[_0x32f3('0x5b')])return _0x1b996b[_0x32f3('0xa')][_0x32f3('0x51')](_0x5f69cc['item'],_0x32f3('0x15')+_0x5f69cc[_0x32f3('0x1e')]),_0x1b996b[_0x32f3('0xa')]['consume'](_0x5f69cc[_0x32f3('0x5b')],'removeMarker:'+_0x5f69cc[_0x32f3('0x1e')]),{'classes':[]};const _0x572e45=['ck-comment-marker'];return _0x2fbc68&&_0x572e45['push']('ck-comment-marker--active'),{'classes':_0x572e45,'attributes':{'data-comment':_0x341d02}};}}),_0x27993d['conversion']['for'](_0x32f3('0x25'))['markerToData']({'model':_0x32f3('0x13'),'view':(_0x426c48,{options:_0x38cdc3})=>{const _0x4ddb3c=_0x27993d[_0x32f3('0x41')]['get'](_0x250ad9),_0x5111ec=_0x27993d[_0x32f3('0x6')][_0x32f3('0x20')]['get'](_0x426c48),{id:_0x73649d,part:_0x21141b}=tt(_0x426c48);if(_0x5111ec&&!_0x5111ec[_0x32f3('0x1f')])return null;if(_0x38cdc3[_0x32f3('0x34')]){const _0xfbf868=_0x4ddb3c[_0x32f3('0x2d')](_0x73649d);if(_0xfbf868&&_0xfbf868[_0x32f3('0x4')])return null;}return{'group':_0x32f3('0x13'),'name':_0x21141b?_0x73649d+':'+_0x21141b:_0x73649d};}}),_0x27993d[_0x32f3('0x43')]['for'](_0x32f3('0x47'))[_0x32f3('0x1c')]({'view':{'name':_0x32f3('0x13'),'attributes':{'id':/^\w/}},'model':(_0xf7aa34,{writer:_0x19a9bb})=>_0x19a9bb[_0x32f3('0x2a')](_0x32f3('0x45'),{'data-name':'comment:'+_0xf7aa34[_0x32f3('0x50')]('id')})}),_0x27993d[_0x32f3('0x43')][_0x32f3('0x2')](_0x32f3('0x47'))[_0x32f3('0x31')]({'view':_0x32f3('0x13')});}[_0x32f3('0x55')](){const _0x182c9b=this['editor'],_0x12518c=_0x182c9b[_0x32f3('0x41')][_0x32f3('0x8')](_0x250ad9),_0x2bcdb2=new Set();_0x182c9b[_0x32f3('0x6')][_0x32f3('0x26')][_0x32f3('0x3c')](_0x59d6cf=>{let _0x166024=!0x1;for(const {name:_0xdb6949,data:_0x522786}of _0x182c9b[_0x32f3('0x6')][_0x32f3('0x26')][_0x32f3('0x44')][_0x32f3('0x5')]()){const {group:_0x1575b0,id:_0x2c0df9}=tt(_0xdb6949);let _0x345069=_0x522786[_0x32f3('0x11')];if('comment'!==_0x1575b0||!_0x345069)continue;const _0x434243=_0x32f3('0x2e')===_0x345069[_0x32f3('0x65')]['rootName'];_0x434243||(_0x345069=ot(_0x345069,_0x182c9b['model']),!_0x345069||!_0x522786[_0x32f3('0x11')]||_0x345069[_0x32f3('0x1a')](_0x522786[_0x32f3('0x11')]))?!_0x345069||!_0x182c9b[_0x32f3('0x6')]['hasContent'](_0x345069)||this[_0x32f3('0x27')][_0x32f3('0x7')](_0x2c0df9)&&_0x434243?(_0x59d6cf[_0x32f3('0x40')](_0xdb6949),_0x166024=!0x0):_0x434243||(this[_0x32f3('0x3a')]?_0x2bcdb2[_0x32f3('0x19')](_0xdb6949):this[_0x32f3('0x59')](_0xdb6949,_0x2c0df9)):(_0x59d6cf[_0x32f3('0x1d')](_0xdb6949,{'range':_0x345069}),_0x166024=!0x0);}return _0x166024;}),this['on'](_0x32f3('0x6a'),(_0x46b1eb,_0x2d51cb,_0x966e5f)=>{if(!_0x966e5f&&_0x2bcdb2['size'])for(const _0x72f430 of _0x2bcdb2){const {id:_0x2e94ec}=tt(_0x72f430);_0x2bcdb2[_0x32f3('0x2f')](_0x2e94ec),_0x182c9b[_0x32f3('0x6')]['markers'][_0x32f3('0x8')](_0x72f430)&&this[_0x32f3('0x59')](_0x72f430,_0x2e94ec);}}),this[_0x32f3('0x67')](_0x182c9b[_0x32f3('0x6')][_0x32f3('0x26')],_0x32f3('0x24'),(_0x2067c3,_0x336d3c)=>{for(const {name:_0x79f99,data:{newRange:_0xd9f4c5}}of _0x182c9b['model'][_0x32f3('0x26')]['differ']['getChangedMarkers']()){const {group:_0x561879,id:_0x5695ff}=tt(_0x79f99);if(_0x32f3('0x13')!==_0x561879)continue;const _0x400e60=_0x12518c[_0x32f3('0x2d')](_0x5695ff),_0x131e31=this['hasMarkerForId'](_0x5695ff);_0x400e60&&(_0x400e60['_hasTargetInContent']||_0x182c9b[_0x32f3('0x3f')]['view']['once'](_0x32f3('0x2b'),()=>{const _0x1d988c=_0x182c9b[_0x32f3('0x41')][_0x32f3('0x8')](_0x52fdaa),_0x186833=_0x12518c[_0x32f3('0x14')][_0x32f3('0x8')](_0x400e60)['view'];_0x1d988c['getByInnerView'](_0x186833)['refreshVisibility']();},{'priority':_0x32f3('0x4d')}),_0x400e60[_0x32f3('0x9')]=_0x131e31||!!_0xd9f4c5),!_0xd9f4c5&&_0x336d3c[_0x32f3('0x3b')]&&(_0x2bcdb2[_0x32f3('0x2f')](_0x5695ff),_0x400e60&&!_0x400e60[_0x32f3('0x4')]&&!_0x131e31&&this[_0x32f3('0x27')][_0x32f3('0x7')](_0x5695ff)&&(this['_attachedThreads'][_0x32f3('0x2f')](_0x5695ff),_0x400e60[_0x32f3('0x1')]()));}});}['_getTargetForId'](_0x1fff44){const _0x130a0a=this[_0x32f3('0x4b')],_0x3cd2ed=this['getAllMarkersForId'](_0x1fff44);return _0x4da93e(_0x130a0a[_0x32f3('0x3f')],_0x3cd2ed);}['_getTextContext'](_0x5630fd){const _0x30560b=this[_0x32f3('0x5d')](_0x5630fd);let _0x1c0bcc='',_0x5a2121=!0x1;for(const _0x234984 of _0x30560b){const _0xb9390b=_0x234984[_0x32f3('0x3')]();for(const _0x740569 of Array[_0x32f3('0x68')](_0xb9390b['getItems']()))_0x740569['is'](_0x32f3('0x60'))?(_0x1c0bcc&&_0x5a2121&&(_0x1c0bcc+='\x20',_0x5a2121=!0x1),_0x1c0bcc+=_0x740569['data']):_0x5a2121=!0x0;_0x5a2121=!0x0;}return _0x1c0bcc[_0x32f3('0x5f')](0x0,0x96);}[_0x32f3('0x57')](_0x585c18,_0x443ee0){const _0xdb9681=this[_0x32f3('0x4b')],_0x26fcfc=_0xdb9681[_0x32f3('0x41')][_0x32f3('0x8')](_0x250ad9);let _0x2ec2e8=_0x26fcfc[_0x32f3('0x2d')](_0x443ee0);if(this[_0x32f3('0x27')]['has'](_0x443ee0)){const _0x20b50c=this[_0x32f3('0x27')][_0x32f3('0x8')](_0x443ee0);return _0x20b50c['includes'](_0x585c18)||_0x20b50c['push'](_0x585c18),_0x2ec2e8;}this[_0x32f3('0x27')][_0x32f3('0xc')](_0x443ee0,[_0x585c18]);const _0x204a3a=_0xdb9681[_0x32f3('0x42')][_0x32f3('0x8')](_0x32f3('0x3e')),_0x3ade3=_0xdb9681[_0x32f3('0x41')][_0x32f3('0x8')](_0x3f0ad2);if(_0x2ec2e8&&_0x2ec2e8[_0x32f3('0x4')])return _0x2ec2e8[_0x32f3('0x29')](),_0x2ec2e8;return!this[_0x32f3('0x5d')](_0x443ee0)[0x0][_0x32f3('0x23')]?_0xdb9681['editing'][_0x32f3('0x54')][_0x32f3('0x61')]('render',()=>{const _0x439311=_0xdb9681[_0x32f3('0x41')][_0x32f3('0x8')](_0x52fdaa);_0x2ec2e8=_0x26fcfc[_0x32f3('0x32')]({'channelId':_0x204a3a,'threadId':_0x443ee0,'target':()=>this['_getTargetForId'](_0x443ee0),'context':{'type':'text','value':this['_getTextContext'](_0x443ee0)}});const _0x318a45=_0x26fcfc[_0x32f3('0x14')][_0x32f3('0x8')](_0x2ec2e8)[_0x32f3('0x54')],_0x2187b8=_0x439311['getByInnerView'](_0x318a45);_0x2187b8&&_0x3ade3[_0x32f3('0x5a')](_0x2187b8);},{'priority':'low'}):_0x26fcfc[_0x32f3('0x62')]({'channelId':_0x204a3a,'threadId':_0x443ee0})[_0x32f3('0xb')](_0x3cf5c9=>{if('destroyed'!==_0xdb9681['state']){if(_0x2ec2e8=_0x3cf5c9,_0x2ec2e8){const _0x1be7ec=_0x2ec2e8[_0x32f3('0x5c')](()=>this['_getTargetForId'](_0x443ee0));_0x3ade3[_0x32f3('0x5a')](_0x1be7ec),_0x2ec2e8[_0x32f3('0x4')]&&this['_reconvertMarkers'](_0x443ee0);}else{const _0xaa09e3=this[_0x32f3('0x5d')](_0x443ee0);_0xdb9681['model']['change'](_0x36e536=>{for(const _0x2988fe of _0xaa09e3)_0x36e536[_0x32f3('0x40')](_0x2988fe);});}}}),_0x2ec2e8;}[_0x32f3('0x59')](_0x4c79d8,_0x445293){const _0x567a8e=this[_0x32f3('0x57')](_0x4c79d8,_0x445293);_0x567a8e&&!_0x567a8e[_0x32f3('0x63')]&&_0x567a8e['setContext']({'type':_0x32f3('0x16'),'value':this[_0x32f3('0xd')](_0x445293)});}}function Z(_0x93c027,_0x253fe1){return _0x253fe1?_0x93c027+':'+_0x253fe1:_0x93c027;}function tt(_0x3fe7c1){const _0x2ff943=_0x3fe7c1[_0x32f3('0x5e')](':');return{'group':_0x2ff943[0x0],'id':_0x2ff943[0x1],'part':_0x2ff943[0x2]};}function ot(_0x2087c7,_0x1194fb){const _0x52553b=_0x1194fb[_0x32f3('0x37')],_0x172d4e=_0x1194fb[_0x32f3('0x18')](_0x2087c7[_0x32f3('0x33')]);for(const _0x305967 of _0x2087c7['getWalker']()){const {type:_0x340b3e,item:_0x1c4569,nextPosition:_0x2faa00}=_0x305967;if(_0x32f3('0x16')===_0x340b3e||_0x52553b[_0x32f3('0x48')](_0x1c4569)){const _0x41a49d=_0x1194fb[_0x32f3('0x4e')](_0x1c4569);_0x172d4e['isCollapsed']&&(_0x172d4e[_0x32f3('0x33')]=_0x41a49d),_0x172d4e[_0x32f3('0x35')]=_0x2faa00;}}return _0x172d4e[_0x32f3('0x12')]?null:_0x172d4e;}
23
+ const _0x4f36=['destroy','_attachMarkerToThread','filter','upcast','map','config','openNewCommentThread','CommentsEditing','addMarker:','markerName','addComment','ck-comment-marker--active','removeMarker','differ','registerAnnotation','includes','fetchCommentThread','isLocal','_hasTargetInContent','scrollToThreadMarker','init','item','low','_getTargetForId','root','schema','collaboration.channelId','_getTextContext','set','conversion','then','removeCommentThread','text','newRange','change:activeMarker','attachTo','start','focus','push','addCommentThread','listenTo','_handleThreadMarker','getWalker','removeMarker:','comment','view','_reconvertMarkers','state','substring','_initializeMarkerConverters','dataToMarker','hasContent','hasCommentThread','getChangedMarkers','$textProxy','markerToHighlight','model','get','getAttribute','_detachCommentThread','add','data','consumable','setContext','change','isEqual','comment:','_handleMarkerAddAndRemove','from','plugins','reconvertMarker','dataDowncast','getByInnerView','editing','requires','registerPostFixer','render','getAllMarkersForId','isThreadsLoadingPaused','has','isResolved','delete','$marker','resolve','updateMarker','hasMarkerForId','createPositionBefore','refreshVisibility','$graveyard','end','activeMarker','size','reopenCommentThread','_threads','editingDowncast','markers','once','for','getCommentThread','affectsData','split','editor','ready','_attachedThreads','length','switchReadOnly','consume','markerToData','pluginName','enqueueChange','reopen','context','ck-comment-marker'];(function(_0x4caa13,_0x4f369b){const _0x140c94=function(_0x478a07){while(--_0x478a07){_0x4caa13['push'](_0x4caa13['shift']());}};_0x140c94(++_0x4f369b);}(_0x4f36,0x1a6));const _0x140c=function(_0x4caa13,_0x4f369b){_0x4caa13=_0x4caa13-0x0;let _0x140c94=_0x4f36[_0x4caa13];return _0x140c94;};import{Plugin as _0x2e92e6}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2c2f83}from'ckeditor5/src/utils';import _0xa4ac8 from'./commentsrepository';import _0x459640 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x40a111}from'ckeditor5-collaboration/src/collaboration-core';import _0x1e9a36 from'../annotations/editorannotations';import _0x340e38 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1d284d from'./integrations/importword';import _0x22fe3d from'../annotations/annotations';export default class r extends _0x2e92e6{static get[_0x140c('0x68')](){return[_0xa4ac8,_0x1e9a36,_0x340e38,_0x1d284d];}static get[_0x140c('0x19')](){return _0x140c('0x25');}constructor(_0x414b85){super(_0x414b85),this[_0x140c('0x3a')]('isThreadsLoadingPaused',!0x0),_0x414b85[_0x140c('0x5b')][_0x140c('0xd')](_0x140c('0x13'),()=>this[_0x140c('0x6c')]=!0x1),this[_0x140c('0x3a')](_0x140c('0x7'),null),this['on'](_0x140c('0x40'),(_0x17bd62,_0x3d2cb3,_0x18168d,_0x541d8b)=>{const _0x3dddb0=_0x18168d?tt(_0x18168d)['id']:null;if(_0x414b85[_0x140c('0x56')]['change'](()=>{if(_0x3dddb0){const _0x358544=this[_0x140c('0x6b')](_0x3dddb0);for(const _0x461ec3 of _0x358544)_0x414b85[_0x140c('0x67')][_0x140c('0x64')](_0x461ec3);}if(_0x541d8b){const {id:_0x2a140f}=tt(_0x541d8b),_0x5d5ae1=this['getAllMarkersForId'](_0x2a140f);for(const _0x50575e of _0x5d5ae1)_0x414b85[_0x140c('0x67')][_0x140c('0x64')](_0x50575e);}}),_0x3dddb0){const _0x217b52=_0x414b85['plugins']['get'](_0xa4ac8)[_0x140c('0xf')](_0x3dddb0);_0x217b52&&_0x217b52[_0x140c('0x6e')]&&this[_0x140c('0x31')](_0x3dddb0);}}),this[_0x140c('0x14')]=new Map();}[_0x140c('0x32')](){const _0x22f652=this['editor'],_0x264f38=_0x22f652[_0x140c('0x63')][_0x140c('0x57')](_0xa4ac8),_0x57e0d4=_0x22f652[_0x140c('0x23')][_0x140c('0x57')]('collaboration.channelId');_0x22f652['commands']['add'](_0x140c('0x45'),new _0x459640(_0x22f652)),this[_0x140c('0x46')](_0x22f652,'change:isReadOnly',(_0x52189f,_0x263b87,_0x1b915c)=>{_0x264f38[_0x140c('0x16')](_0x1b915c,_0x22f652['config'][_0x140c('0x57')]('collaboration.channelId'));}),this[_0x140c('0x46')](_0x264f38,Z(_0x140c('0x45'),_0x57e0d4),(_0x388ae5,{threadId:_0xa4ad67})=>{const _0x343429=_0x22f652[_0x140c('0x63')][_0x140c('0x57')](_0x1e9a36),_0x1c6476=this[_0x140c('0x12')][_0x140c('0x63')][_0x140c('0x57')](_0xa4ac8)['getCommentThread'](_0xa4ad67);if(_0x1c6476&&_0x1c6476[_0x140c('0x6e')]&&!this[_0x140c('0x14')][_0x140c('0x6d')](_0xa4ad67)){const _0x5e02a8=_0x1c6476[_0x140c('0x41')](()=>this[_0x140c('0x35')](_0x1c6476['id']));_0x343429['registerAnnotation'](_0x5e02a8),this['_attachedThreads'][_0x140c('0x3a')](_0xa4ad67,[]),0x0===this[_0x140c('0x6b')](_0xa4ad67)[_0x140c('0x15')]&&(_0x1c6476[_0x140c('0x30')]=!0x1);}}),this['listenTo'](_0x264f38,Z(_0x140c('0x3d'),_0x57e0d4),(_0x4ea497,{threadId:_0x49d57b})=>{_0x22f652[_0x140c('0x56')][_0x140c('0x1a')]({'isUndoable':!0x1},_0xd8b0e7=>{const _0x4b5969=this[_0x140c('0x6b')](_0x49d57b);this[_0x140c('0x14')][_0x140c('0x6f')](_0x49d57b);for(const _0x5e39ec of _0x4b5969)_0xd8b0e7['removeMarker'](_0x5e39ec);});},{'priority':'high'}),this['listenTo'](_0x264f38,Z('resolveCommentThread',_0x57e0d4),(_0x16fb6e,{threadId:_0x4d8c34})=>{this[_0x140c('0x4c')](_0x4d8c34),this[_0x140c('0x12')][_0x140c('0x67')]['view']['hasDomSelection']&&this[_0x140c('0x12')][_0x140c('0x67')][_0x140c('0x4b')][_0x140c('0x43')]();},{'priority':_0x140c('0x34')}),this[_0x140c('0x46')](_0x264f38,Z(_0x140c('0x9'),_0x57e0d4),(_0x501f8b,{threadId:_0x33f4ec})=>{this[_0x140c('0x4c')](_0x33f4ec);},{'priority':_0x140c('0x34')}),this['listenTo'](_0x264f38,Z(_0x140c('0x28'),_0x57e0d4),(_0x46f854,{threadId:_0x450a98,isFromAdapter:_0x43a552})=>{const _0x14f2b3=this[_0x140c('0x6b')](_0x450a98);if(_0x43a552||0x0==_0x14f2b3[_0x140c('0x15')]||!_0x264f38[_0x140c('0x52')](_0x450a98))return;0x1===_0x264f38[_0x140c('0xf')](_0x450a98)[_0x140c('0x15')]&&_0x22f652['model'][_0x140c('0x1a')]({'isUndoable':!0x1},_0x2cbfa7=>{for(const _0x1417cc of _0x14f2b3)_0x2cbfa7[_0x140c('0x1')](_0x1417cc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x140c('0x34')}),this['_initializeMarkerConverters'](),this[_0x140c('0x61')]();}['destroy'](){const _0x3d644f=this[_0x140c('0x12')][_0x140c('0x63')]['get'](_0xa4ac8),_0x2a942e=this[_0x140c('0x12')][_0x140c('0x23')][_0x140c('0x57')](_0x140c('0x38'));for(const _0x2ad1fb of _0x3d644f['getCommentThreads']({'channelId':_0x2a942e}))_0x3d644f[_0x140c('0x59')](_0x2ad1fb['id']),_0x3d644f[_0x140c('0xa')][_0x140c('0x6f')](_0x2ad1fb['id']);super[_0x140c('0x1e')]();}[_0x140c('0x2')](_0x157e26){return this[_0x140c('0x6b')](_0x157e26)[_0x140c('0x15')]>0x0;}['getAllMarkersForId'](_0xa6e93b){return(this[_0x140c('0x14')]['get'](_0xa6e93b)||[])[_0x140c('0x22')](_0x4a8342=>this['editor']['model'][_0x140c('0xc')][_0x140c('0x57')](_0x4a8342))[_0x140c('0x20')](_0x26be1d=>_0x26be1d);}[_0x140c('0x31')](_0x24a1fb){const _0x388d6e=this[_0x140c('0x35')](_0x24a1fb);_0x388d6e&&setTimeout(()=>{this[_0x140c('0x7')]&&tt(this['activeMarker'])['id']===_0x24a1fb&&_0x2c2f83({'target':_0x388d6e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x140c('0x4c')](_0x106f3b){this[_0x140c('0x12')][_0x140c('0x56')][_0x140c('0x5e')](()=>{for(const _0x336e80 of this[_0x140c('0x6b')](_0x106f3b))this['editor']['editing'][_0x140c('0x64')](_0x336e80);});}[_0x140c('0x4f')](){const _0x425f5c=this[_0x140c('0x12')];_0x425f5c[_0x140c('0x3b')]['for'](_0x140c('0xb'))[_0x140c('0x55')]({'model':_0x140c('0x4a'),'view':(_0x522747,_0x2a3748)=>{const {id:_0xfbfa92}=tt(_0x522747[_0x140c('0x27')]),_0x39729c=_0x425f5c['plugins'][_0x140c('0x57')](_0xa4ac8)['getCommentThread'](_0xfbfa92),_0x23ea7e=this[_0x140c('0x7')]&&tt(this['activeMarker'])['id']===_0xfbfa92;if(_0x39729c&&_0x39729c[_0x140c('0x6e')]&&!_0x23ea7e&&_0x522747[_0x140c('0x33')])return _0x2a3748['consumable'][_0x140c('0x17')](_0x522747[_0x140c('0x33')],_0x140c('0x26')+_0x522747['markerName']),_0x2a3748[_0x140c('0x5c')][_0x140c('0x17')](_0x522747[_0x140c('0x33')],_0x140c('0x49')+_0x522747['markerName']),{'classes':[]};const _0x117ccd=[_0x140c('0x1d')];return _0x23ea7e&&_0x117ccd['push'](_0x140c('0x29')),{'classes':_0x117ccd,'attributes':{'data-comment':_0xfbfa92}};}}),_0x425f5c[_0x140c('0x3b')][_0x140c('0xe')](_0x140c('0x65'))[_0x140c('0x18')]({'model':_0x140c('0x4a'),'view':(_0x1d28d6,{options:_0x25aa45})=>{const _0x382774=_0x425f5c['plugins'][_0x140c('0x57')](_0xa4ac8),_0x1b1678=_0x425f5c[_0x140c('0x56')][_0x140c('0xc')][_0x140c('0x57')](_0x1d28d6),{id:_0x49db56,part:_0x1d368c}=tt(_0x1d28d6);if(_0x1b1678&&!_0x1b1678[_0x140c('0x10')])return null;if(_0x25aa45['ignoreResolvedComments']){const _0x5b857c=_0x382774[_0x140c('0xf')](_0x49db56);if(_0x5b857c&&_0x5b857c[_0x140c('0x6e')])return null;}return{'group':_0x140c('0x4a'),'name':_0x1d368c?_0x49db56+':'+_0x1d368c:_0x49db56};}}),_0x425f5c['conversion'][_0x140c('0xe')]('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4daf17,{writer:_0x104905})=>_0x104905['createElement'](_0x140c('0x70'),{'data-name':_0x140c('0x60')+_0x4daf17[_0x140c('0x58')]('id')})}),_0x425f5c['conversion'][_0x140c('0xe')](_0x140c('0x21'))[_0x140c('0x50')]({'view':_0x140c('0x4a')});}['_handleMarkerAddAndRemove'](){const _0x1308fe=this['editor'],_0x418ce0=_0x1308fe['plugins'][_0x140c('0x57')](_0xa4ac8),_0x196978=new Set();_0x1308fe[_0x140c('0x56')]['document'][_0x140c('0x69')](_0x1d62b9=>{let _0x3baacd=!0x1;for(const {name:_0x534758,data:_0x59207d}of _0x1308fe[_0x140c('0x56')]['document']['differ'][_0x140c('0x53')]()){const {group:_0x321c2d,id:_0x33dcab}=tt(_0x534758);let _0x5b6d63=_0x59207d['newRange'];if(_0x140c('0x4a')!==_0x321c2d||!_0x5b6d63)continue;const _0x4f2aec=_0x140c('0x5')===_0x5b6d63[_0x140c('0x36')]['rootName'];_0x4f2aec||(_0x5b6d63=ot(_0x5b6d63,_0x1308fe['model']),!_0x5b6d63||!_0x59207d[_0x140c('0x3f')]||_0x5b6d63[_0x140c('0x5f')](_0x59207d[_0x140c('0x3f')]))?!_0x5b6d63||!_0x1308fe[_0x140c('0x56')][_0x140c('0x51')](_0x5b6d63)||this['_attachedThreads']['has'](_0x33dcab)&&_0x4f2aec?(_0x1d62b9[_0x140c('0x2a')](_0x534758),_0x3baacd=!0x0):_0x4f2aec||(this[_0x140c('0x6c')]?_0x196978[_0x140c('0x5a')](_0x534758):this[_0x140c('0x47')](_0x534758,_0x33dcab)):(_0x1d62b9['updateMarker'](_0x534758,{'range':_0x5b6d63}),_0x3baacd=!0x0);}return _0x3baacd;}),this['on']('change:isThreadsLoadingPaused',(_0x1d5a20,_0x3f6f84,_0x12de93)=>{if(!_0x12de93&&_0x196978[_0x140c('0x8')])for(const _0x4f6917 of _0x196978){const {id:_0x283713}=tt(_0x4f6917);_0x196978['delete'](_0x283713),_0x1308fe[_0x140c('0x56')][_0x140c('0xc')][_0x140c('0x57')](_0x4f6917)&&this[_0x140c('0x47')](_0x4f6917,_0x283713);}}),this['listenTo'](_0x1308fe[_0x140c('0x56')]['document'],'change',(_0xae09fe,_0x2df1cc)=>{for(const {name:_0x46f8cb,data:{newRange:_0x24558c}}of _0x1308fe['model']['document'][_0x140c('0x2b')][_0x140c('0x53')]()){const {group:_0x14650b,id:_0x272a41}=tt(_0x46f8cb);if('comment'!==_0x14650b)continue;const _0x392b3c=_0x418ce0['getCommentThread'](_0x272a41),_0x31f0bb=this[_0x140c('0x2')](_0x272a41);_0x392b3c&&(_0x392b3c['_hasTargetInContent']||_0x1308fe[_0x140c('0x67')][_0x140c('0x4b')][_0x140c('0xd')](_0x140c('0x6a'),()=>{const _0x4e86b1=_0x1308fe[_0x140c('0x63')][_0x140c('0x57')](_0x22fe3d),_0x20e4c0=_0x418ce0['_threadToController'][_0x140c('0x57')](_0x392b3c)[_0x140c('0x4b')];_0x4e86b1[_0x140c('0x66')](_0x20e4c0)[_0x140c('0x4')]();},{'priority':'low'}),_0x392b3c[_0x140c('0x30')]=_0x31f0bb||!!_0x24558c),!_0x24558c&&_0x2df1cc[_0x140c('0x2f')]&&(_0x196978[_0x140c('0x6f')](_0x272a41),_0x392b3c&&!_0x392b3c[_0x140c('0x6e')]&&!_0x31f0bb&&this[_0x140c('0x14')][_0x140c('0x6d')](_0x272a41)&&(this[_0x140c('0x14')][_0x140c('0x6f')](_0x272a41),_0x392b3c[_0x140c('0x0')]()));}});}[_0x140c('0x35')](_0x50605f){const _0x298c1b=this[_0x140c('0x12')],_0x413180=this['getAllMarkersForId'](_0x50605f);return _0x40a111(_0x298c1b[_0x140c('0x67')],_0x413180);}['_getTextContext'](_0x41e154){const _0x2bb778=this[_0x140c('0x6b')](_0x41e154);let _0x29bf7b='',_0x48f853=!0x1;for(const _0x4b7db3 of _0x2bb778){const _0x5277bc=_0x4b7db3['getRange']();for(const _0x194cb3 of Array[_0x140c('0x62')](_0x5277bc['getItems']()))_0x194cb3['is'](_0x140c('0x54'))?(_0x29bf7b&&_0x48f853&&(_0x29bf7b+='\x20',_0x48f853=!0x1),_0x29bf7b+=_0x194cb3[_0x140c('0x5b')]):_0x48f853=!0x0;_0x48f853=!0x0;}return _0x29bf7b[_0x140c('0x4e')](0x0,0x96);}[_0x140c('0x1f')](_0x285c54,_0x2c896f){const _0xc3bbd1=this[_0x140c('0x12')],_0x4fb5f5=_0xc3bbd1['plugins'][_0x140c('0x57')](_0xa4ac8);let _0x9f25aa=_0x4fb5f5['getCommentThread'](_0x2c896f);if(this[_0x140c('0x14')]['has'](_0x2c896f)){const _0x5c0469=this['_attachedThreads'][_0x140c('0x57')](_0x2c896f);return _0x5c0469[_0x140c('0x2d')](_0x285c54)||_0x5c0469[_0x140c('0x44')](_0x285c54),_0x9f25aa;}this[_0x140c('0x14')][_0x140c('0x3a')](_0x2c896f,[_0x285c54]);const _0x1ae9e5=_0xc3bbd1['config'][_0x140c('0x57')](_0x140c('0x38')),_0x3b1cff=_0xc3bbd1[_0x140c('0x63')][_0x140c('0x57')](_0x1e9a36);if(_0x9f25aa&&_0x9f25aa['isResolved'])return _0x9f25aa[_0x140c('0x1b')](),_0x9f25aa;return!this[_0x140c('0x6b')](_0x2c896f)[0x0]['managedUsingOperations']?_0xc3bbd1[_0x140c('0x67')][_0x140c('0x4b')]['once'](_0x140c('0x6a'),()=>{const _0x474bd4=_0xc3bbd1['plugins'][_0x140c('0x57')](_0x22fe3d);_0x9f25aa=_0x4fb5f5[_0x140c('0x24')]({'channelId':_0x1ae9e5,'threadId':_0x2c896f,'target':()=>this[_0x140c('0x35')](_0x2c896f),'context':{'type':_0x140c('0x3e'),'value':this[_0x140c('0x39')](_0x2c896f)}});const _0x3e4054=_0x4fb5f5['_threadToController'][_0x140c('0x57')](_0x9f25aa)[_0x140c('0x4b')],_0x2d7fea=_0x474bd4['getByInnerView'](_0x3e4054);_0x2d7fea&&_0x3b1cff['registerAnnotation'](_0x2d7fea);},{'priority':_0x140c('0x34')}):_0x4fb5f5[_0x140c('0x2e')]({'channelId':_0x1ae9e5,'threadId':_0x2c896f})[_0x140c('0x3c')](_0x55e243=>{if('destroyed'!==_0xc3bbd1[_0x140c('0x4d')]){if(_0x9f25aa=_0x55e243,_0x9f25aa){const _0x1c4ec3=_0x9f25aa['attachTo'](()=>this[_0x140c('0x35')](_0x2c896f));_0x3b1cff[_0x140c('0x2c')](_0x1c4ec3),_0x9f25aa[_0x140c('0x6e')]&&this[_0x140c('0x4c')](_0x2c896f);}else{const _0x543d50=this[_0x140c('0x6b')](_0x2c896f);_0xc3bbd1['model'][_0x140c('0x5e')](_0x52d883=>{for(const _0x3fc68f of _0x543d50)_0x52d883[_0x140c('0x2a')](_0x3fc68f);});}}}),_0x9f25aa;}[_0x140c('0x47')](_0x537542,_0x26eabf){const _0x22cb82=this[_0x140c('0x1f')](_0x537542,_0x26eabf);_0x22cb82&&!_0x22cb82[_0x140c('0x1c')]&&_0x22cb82[_0x140c('0x5d')]({'type':_0x140c('0x3e'),'value':this[_0x140c('0x39')](_0x26eabf)});}}function Z(_0x207f11,_0x40442){return _0x40442?_0x207f11+':'+_0x40442:_0x207f11;}function tt(_0x212770){const _0x4a67dd=_0x212770[_0x140c('0x11')](':');return{'group':_0x4a67dd[0x0],'id':_0x4a67dd[0x1],'part':_0x4a67dd[0x2]};}function ot(_0x10eaf4,_0x3f55a8){const _0x302562=_0x3f55a8[_0x140c('0x37')],_0x50bab6=_0x3f55a8['createRange'](_0x10eaf4['start']);for(const _0x38f185 of _0x10eaf4[_0x140c('0x48')]()){const {type:_0x7ab86a,item:_0x4b19d4,nextPosition:_0x2ec4f3}=_0x38f185;if(_0x140c('0x3e')===_0x7ab86a||_0x302562['isObject'](_0x4b19d4)){const _0x206688=_0x3f55a8[_0x140c('0x3')](_0x4b19d4);_0x50bab6['isCollapsed']&&(_0x50bab6[_0x140c('0x42')]=_0x206688),_0x50bab6[_0x140c('0x6')]=_0x2ec4f3;}}return _0x50bab6['isCollapsed']?null:_0x50bab6;}