@ckeditor/ckeditor5-comments 37.0.0 → 37.0.1

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 _0x2620=['_updateHeight','bindTemplate','fire','element','setTemplate','isActive','attach','listenTo','height','ck-annotation-wrapper--active','type','ck-annotation-wrapper','isDirty','destroy','clear','ck-rounded-corners','_mutationObserver','div','set','detach','render','add','focus','keystrokes','focusTracker','Esc','mainView','content'];(function(_0x393546,_0x2620ac){const _0x3dfef8=function(_0x18336a){while(--_0x18336a){_0x393546['push'](_0x393546['shift']());}};_0x3dfef8(++_0x2620ac);}(_0x2620,0x154));const _0x3dfe=function(_0x393546,_0x2620ac){_0x393546=_0x393546-0x0;let _0x3dfef8=_0x2620[_0x393546];return _0x3dfef8;};import{View as _0x2a3dcf}from'ckeditor5/src/ui';import{FocusTracker as _0x3a59c5,KeystrokeHandler as _0x3f176a,uid as _0x2c8c03}from'ckeditor5/src/utils';import _0xd2c46b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2a3dcf{constructor(_0x310bc8,_0x55fa49){super(_0x310bc8),this['id']=_0x2c8c03(),this['focusTracker']=new _0x3a59c5(),this['keystrokes']=new _0x3f176a(),this[_0x3dfe('0x13')][_0x3dfe('0xe')](_0x3dfe('0x15'),(_0x8f6580,_0x4e6e31)=>this[_0x3dfe('0x1a')](_0x3dfe('0x15'),_0x4e6e31)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x3dfe('0x4'),0x0),this[_0x3dfe('0xe')](_0x3dfe('0x1'),!0x1),this[_0x3dfe('0xe')](_0x3dfe('0x8'),!0x1),this[_0x3dfe('0xe')]('length',0x0),this[_0x3dfe('0xe')](_0x3dfe('0x6'),''),this['_mutationObserver']=_0xd2c46b(()=>this[_0x3dfe('0x18')]()),this[_0x3dfe('0x17')]=this['createCollection'](),this[_0x3dfe('0x17')][_0x3dfe('0x11')](_0x55fa49),this[_0x3dfe('0x16')]=_0x55fa49;const _0x340c0b=this[_0x3dfe('0x19')];this[_0x3dfe('0x0')]({'tag':_0x3dfe('0xd'),'attributes':{'class':['ck',_0x3dfe('0x7'),_0x3dfe('0xb'),_0x340c0b['if'](_0x3dfe('0x1'),_0x3dfe('0x5'))],'tabindex':-0x1},'children':this[_0x3dfe('0x17')]});}[_0x3dfe('0x10')](){super['render'](),this[_0x3dfe('0x14')][_0x3dfe('0x11')](this[_0x3dfe('0x1b')]),this[_0x3dfe('0x13')][_0x3dfe('0x3')](this['element']),this[_0x3dfe('0xc')][_0x3dfe('0x2')](this[_0x3dfe('0x1b')]);}[_0x3dfe('0x9')](){this[_0x3dfe('0x17')][_0x3dfe('0xa')](),this[_0x3dfe('0x13')]['destroy'](),this[_0x3dfe('0x14')][_0x3dfe('0x9')](),this[_0x3dfe('0xc')][_0x3dfe('0xf')](),super[_0x3dfe('0x9')]();}['focus'](){this['element'][_0x3dfe('0x12')]();}[_0x3dfe('0x18')](){const _0x4d159e=this[_0x3dfe('0x1b')]['clientHeight'];_0x4d159e&&(this[_0x3dfe('0x4')]=_0x4d159e);}}
23
+ const _0x37de=['_updateHeight','content','render','focus','add','clientHeight','set','length','ck-annotation-wrapper--active','keystrokes','createCollection','_mutationObserver','targetRect','mainView','listenTo','destroy','ck-rounded-corners','isActive','type','focusTracker','height','bindTemplate','Esc','isDirty','element','div'];(function(_0x29eb82,_0x37de81){const _0x194187=function(_0x14bb68){while(--_0x14bb68){_0x29eb82['push'](_0x29eb82['shift']());}};_0x194187(++_0x37de81);}(_0x37de,0x114));const _0x1941=function(_0x29eb82,_0x37de81){_0x29eb82=_0x29eb82-0x0;let _0x194187=_0x37de[_0x29eb82];return _0x194187;};import{View as _0x3052d7}from'ckeditor5/src/ui';import{FocusTracker as _0x162558,KeystrokeHandler as _0x16cac4,uid as _0x3dfc40}from'ckeditor5/src/utils';import _0x105fdf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3052d7{constructor(_0x21868f,_0x4616e4){super(_0x21868f),this['id']=_0x3dfc40(),this[_0x1941('0x3')]=new _0x162558(),this[_0x1941('0x13')]=new _0x16cac4(),this[_0x1941('0x13')]['set']('Esc',(_0x1b46b7,_0x7d59b4)=>this['fire'](_0x1941('0x6'),_0x7d59b4)),this[_0x1941('0x10')](_0x1941('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1941('0x10')](_0x1941('0x4'),0x0),this[_0x1941('0x10')]('isActive',!0x1),this[_0x1941('0x10')](_0x1941('0x7'),!0x1),this[_0x1941('0x10')](_0x1941('0x11'),0x0),this[_0x1941('0x10')](_0x1941('0x2'),''),this[_0x1941('0x15')]=_0x105fdf(()=>this['_updateHeight']()),this[_0x1941('0xb')]=this[_0x1941('0x14')](),this[_0x1941('0xb')][_0x1941('0xe')](_0x4616e4),this[_0x1941('0x17')]=_0x4616e4;const _0x18ab71=this[_0x1941('0x5')];this['setTemplate']({'tag':_0x1941('0x9'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x1941('0x0'),_0x18ab71['if'](_0x1941('0x1'),_0x1941('0x12'))],'tabindex':-0x1},'children':this['content']});}[_0x1941('0xc')](){super[_0x1941('0xc')](),this[_0x1941('0x3')][_0x1941('0xe')](this[_0x1941('0x8')]),this[_0x1941('0x13')][_0x1941('0x18')](this[_0x1941('0x8')]),this[_0x1941('0x15')]['attach'](this['element']);}[_0x1941('0x19')](){this[_0x1941('0xb')]['clear'](),this[_0x1941('0x13')][_0x1941('0x19')](),this[_0x1941('0x3')][_0x1941('0x19')](),this[_0x1941('0x15')]['detach'](),super[_0x1941('0x19')]();}[_0x1941('0xd')](){this['element']['focus']();}[_0x1941('0xa')](){const _0xe3e7=this[_0x1941('0x8')][_0x1941('0xf')];_0xe3e7&&(this['height']=_0xe3e7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x140f=['clientHeight','top','destroy','height','bottom','createCollection','updateHeight','attach','bindTemplate','bind','render','div','isAnimationDisabled','clear','detach','element','content','set'];(function(_0x47b3c8,_0x140ff3){const _0x2ffb80=function(_0x543197){while(--_0x543197){_0x47b3c8['push'](_0x47b3c8['shift']());}};_0x2ffb80(++_0x140ff3);}(_0x140f,0x191));const _0x2ffb=function(_0x47b3c8,_0x140ff3){_0x47b3c8=_0x47b3c8-0x0;let _0x2ffb80=_0x140f[_0x47b3c8];return _0x2ffb80;};import{View as _0x15b993}from'ckeditor5/src/ui';import{toUnit as _0x103372}from'ckeditor5/src/utils';import _0x3d906c from'../../utils/createmutationobserver';const At=_0x103372('px');export default class C extends _0x15b993{constructor(_0x17c10e){super(_0x17c10e),this['set'](_0x2ffb('0xe'),0x0),this['set'](_0x2ffb('0x10'),0x0),this[_0x2ffb('0x4')](_0x2ffb('0x11'))['to'](this,_0x2ffb('0xe'),this,'height',(_0x34ae64,_0x5978e8)=>_0x34ae64+_0x5978e8),this[_0x2ffb('0xc')](_0x2ffb('0x7'),!0x1),this['_mutationObserver']=_0x3d906c(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x2ffb('0xb')]=this[_0x2ffb('0x0')]();const _0x46cf1e=this[_0x2ffb('0x3')];this['setTemplate']({'tag':_0x2ffb('0x6'),'attributes':{'class':['ck-sidebar-item',_0x46cf1e['to'](_0x2ffb('0x7'),_0x2974c7=>_0x2974c7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x46cf1e['to'](_0x2ffb('0xe'),_0x7fc5f7=>At(_0x7fc5f7))}},'children':this['content']});}['render'](){super[_0x2ffb('0x5')](),this['_mutationObserver'][_0x2ffb('0x2')](this['element']);}[_0x2ffb('0x1')](){const _0x4f057b=this[_0x2ffb('0xa')][_0x2ffb('0xd')];_0x4f057b&&(this['height']=_0x4f057b);}[_0x2ffb('0xf')](){this[_0x2ffb('0xb')][_0x2ffb('0x8')](),this['_mutationObserver'][_0x2ffb('0x9')](),super['destroy']();}}
23
+ const _0x2661=['element','div','createCollection','set','ck-sidebar-item','height','attach','bind','destroy','_mutationObserver','top','bottom','bindTemplate','clear','updateHeight','content','isAnimationDisabled','_targetTop','render','detach'];(function(_0x1f4b13,_0x2661c6){const _0x302595=function(_0x1dd898){while(--_0x1dd898){_0x1f4b13['push'](_0x1f4b13['shift']());}};_0x302595(++_0x2661c6);}(_0x2661,0xe7));const _0x3025=function(_0x1f4b13,_0x2661c6){_0x1f4b13=_0x1f4b13-0x0;let _0x302595=_0x2661[_0x1f4b13];return _0x302595;};import{View as _0x6ebf4c}from'ckeditor5/src/ui';import{toUnit as _0x5a431d}from'ckeditor5/src/utils';import _0x4f925a from'../../utils/createmutationobserver';const At=_0x5a431d('px');export default class C extends _0x6ebf4c{constructor(_0x1a0956){super(_0x1a0956),this[_0x3025('0xc')](_0x3025('0x13'),0x0),this[_0x3025('0xc')](_0x3025('0xe'),0x0),this[_0x3025('0x10')](_0x3025('0x0'))['to'](this,_0x3025('0x13'),this,_0x3025('0xe'),(_0x5b446d,_0x5b935d)=>_0x5b446d+_0x5b935d),this[_0x3025('0xc')](_0x3025('0x5'),!0x1),this[_0x3025('0x12')]=_0x4f925a(()=>this['updateHeight']()),this[_0x3025('0x6')]=null,this[_0x3025('0x4')]=this[_0x3025('0xb')]();const _0x817b8d=this[_0x3025('0x1')];this['setTemplate']({'tag':_0x3025('0xa'),'attributes':{'class':[_0x3025('0xd'),_0x817b8d['to']('isAnimationDisabled',_0x3f3de0=>_0x3f3de0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x817b8d['to'](_0x3025('0x13'),_0x15ddd5=>At(_0x15ddd5))}},'children':this[_0x3025('0x4')]});}[_0x3025('0x7')](){super['render'](),this['_mutationObserver'][_0x3025('0xf')](this[_0x3025('0x9')]);}[_0x3025('0x3')](){const _0x475157=this['element']['clientHeight'];_0x475157&&(this[_0x3025('0xe')]=_0x475157);}[_0x3025('0x11')](){this[_0x3025('0x4')][_0x3025('0x2')](),this[_0x3025('0x12')][_0x3025('0x8')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dd4=['ck-sidebar','minHeight','class','set','list','ck-reset'];(function(_0x403050,_0x5dd435){const _0x3ca817=function(_0x537819){while(--_0x537819){_0x403050['push'](_0x403050['shift']());}};_0x3ca817(++_0x5dd435);}(_0x5dd4,0x171));const _0x3ca8=function(_0x403050,_0x5dd435){_0x403050=_0x403050-0x0;let _0x3ca817=_0x5dd4[_0x403050];return _0x3ca817;};import{View as _0x583617}from'ckeditor5/src/ui';import{toUnit as _0x2c10c9}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x2c10c9('px');export default class T extends _0x583617{constructor(_0x2ef8a8){super(_0x2ef8a8);const _0x1ad2e4=this['bindTemplate'];this['set'](_0x3ca8('0x4'),0x0),this[_0x3ca8('0x0')](_0x3ca8('0x5'),''),this['list']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3ca8('0x3'),_0x3ca8('0x2'),_0x1ad2e4['to'](_0x3ca8('0x5'))],'style':{'minHeight':_0x1ad2e4['to']('minHeight',_0x2183a2=>'number'==typeof _0x2183a2?At(_0x2183a2+0xa):null)}},'children':this[_0x3ca8('0x1')]});}}
23
+ const _0xb998=['list','set','class','ck-reset','minHeight','div','bindTemplate','createCollection','number','ck-sidebar'];(function(_0x482db5,_0xb998cf){const _0x1f985d=function(_0x10ec82){while(--_0x10ec82){_0x482db5['push'](_0x482db5['shift']());}};_0x1f985d(++_0xb998cf);}(_0xb998,0x76));const _0x1f98=function(_0x482db5,_0xb998cf){_0x482db5=_0x482db5-0x0;let _0x1f985d=_0xb998[_0x482db5];return _0x1f985d;};import{View as _0x369dcc}from'ckeditor5/src/ui';import{toUnit as _0x2915ab}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x2915ab('px');export default class T extends _0x369dcc{constructor(_0x50612d){super(_0x50612d);const _0x391902=this[_0x1f98('0x8')];this[_0x1f98('0x3')]('minHeight',0x0),this['set'](_0x1f98('0x4'),''),this['list']=this[_0x1f98('0x9')](),this['setTemplate']({'tag':_0x1f98('0x7'),'attributes':{'class':['ck',_0x1f98('0x1'),_0x1f98('0x5'),_0x391902['to'](_0x1f98('0x4'))],'style':{'minHeight':_0x391902['to'](_0x1f98('0x6'),_0x5a70b0=>_0x1f98('0x0')==typeof _0x5a70b0?At(_0x5a70b0+0xa):null)}},'children':this[_0x1f98('0x2')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1054=['_detachFromContainer','off','removeEventListener','remove','widesidebar-detach-not-attached','cancel','wideSidebar','detach','listenTo','add','switchTo','ck-sidebar--wide','requires','refresh','_refreshPositioningDebounced','_annotations','hasDomSelection','stopListening','setActiveAnnotation','set','getOrderedSelectedAnnotations','container','attach','rearrange','blur','high','editors','init','get','_integrateWithEditorAnnotations','plugins','uiUpdate','annotations','register','isAttached','WideSidebar','pluginName','widesidebar-attach-already-attached','addEventListener','addAnnotation','ready','resize','has','_editorAnnotations','stop','_destroyEditorAnnotationsIntegration','from','activeAnnotation','context'];(function(_0x413aba,_0x1054e1){const _0x4529b2=function(_0x680f02){while(--_0x680f02){_0x413aba['push'](_0x413aba['shift']());}};_0x4529b2(++_0x1054e1);}(_0x1054,0x176));const _0x4529=function(_0x413aba,_0x1054e1){_0x413aba=_0x413aba-0x0;let _0x4529b2=_0x1054[_0x413aba];return _0x4529b2;};import{ContextPlugin as _0x53cc35,Context as _0x285ae4}from'ckeditor5/src/core';import _0x6879f1 from'./annotationsuis';import _0x22d9eb from'./sidebar';import{CKEditorError as _0x5d6b7c,Collection as _0x3704af}from'ckeditor5/src/utils';import{debounce as _0x45c99b}from'lodash-es';import _0x2ef266 from'./editorannotations';export default class i extends _0x53cc35{static get[_0x4529('0x1e')](){return[_0x22d9eb,_0x6879f1];}static get[_0x4529('0x5')](){return _0x4529('0x4');}constructor(_0x1112a8){super(_0x1112a8),this['isAttached']=!0x1,this[_0x4529('0x25')](_0x4529('0x10'),null),this[_0x4529('0x1')]=null,this['_editorAnnotations']=new _0x3704af(),this[_0x4529('0x20')]=_0x45c99b(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x4529('0x2d')](){const _0x506798=this[_0x4529('0x11')]['plugins']['get'](_0x6879f1),_0x189efb=this[_0x4529('0x11')][_0x4529('0x30')]['get'](_0x22d9eb);_0x506798[_0x4529('0x2')](_0x4529('0x18'),this),_0x189efb[_0x4529('0x27')]&&_0x506798[_0x4529('0x1c')](_0x4529('0x18'));}[_0x4529('0x24')](_0x2ece45){if(_0x2ece45===this['activeAnnotation'])return;const _0x329e36=this[_0x4529('0x11')]['plugins'][_0x4529('0x2e')](_0x22d9eb);_0x329e36['_activeAnnotation']=_0x2ece45;const _0x322eec=this['activeAnnotation'];this['activeAnnotation']=_0x2ece45,_0x329e36['refresh']({'blurredAnnotation':_0x322eec,'activatedAnnotation':this['activeAnnotation']});}[_0x4529('0x28')](_0x212a87){this[_0x4529('0x1')]=_0x212a87;const _0x336966=this[_0x4529('0x11')][_0x4529('0x30')][_0x4529('0x2e')](_0x22d9eb);if(_0x336966[_0x4529('0x21')]=_0x212a87,this[_0x4529('0x3')])throw new _0x5d6b7c(_0x4529('0x6'),this);this[_0x4529('0x3')]=!0x0,this[_0x4529('0x1a')](_0x336966,'set:container',()=>{this[_0x4529('0x19')](),this[_0x4529('0x1a')](_0x336966,'change:container',_0x4564f7=>{_0x4564f7[_0x4529('0x13')](),this[_0x4529('0x28')](_0x212a87);});}),_0x336966['_attachToContainer']({'viewClass':_0x4529('0x1d')});const _0xf6a24e=_0x4aafdf=>{_0x4aafdf['updateTargetRect'](),_0x336966[_0x4529('0x8')](_0x4aafdf);};for(const _0x3512f9 of _0x212a87)_0xf6a24e(_0x3512f9);this[_0x4529('0x1a')](_0x212a87,_0x4529('0x1b'),(_0x11d066,_0x2488a5)=>{_0xf6a24e(_0x2488a5);}),this[_0x4529('0x1a')](_0x212a87,_0x4529('0x15'),(_0x5b6fbb,_0x5d4906,_0x700c97)=>{_0x336966[_0x4529('0x29')]({'removedAnnotation':_0x5d4906,'previousAnnotation':_0x212a87[_0x4529('0x2e')](_0x700c97-0x1),'nextAnnotation':_0x212a87[_0x4529('0x2e')](_0x700c97+0x1)}),_0x5d4906===this['activeAnnotation']&&this[_0x4529('0x24')](null);},{'priority':_0x4529('0x2b')}),this[_0x4529('0x1a')](_0x212a87,'focus',(_0x466555,_0xf77f37)=>{this[_0x4529('0x24')](_0xf77f37);}),this[_0x4529('0x1a')](_0x212a87,'blur',()=>{this[_0x4529('0x24')](null);});const _0x331ed5=this[_0x4529('0x11')]instanceof _0x285ae4?this[_0x4529('0x11')][_0x4529('0x2c')]:new _0x3704af([this[_0x4529('0x11')]]);for(const _0x352d8e of _0x331ed5)this['_integrateWithEditorAnnotations'](_0x352d8e);this[_0x4529('0x1a')](_0x331ed5,_0x4529('0x1b'),(_0x3a28bf,_0x3c40a4)=>{this[_0x4529('0x1a')](_0x3c40a4,_0x4529('0x9'),()=>{this[_0x4529('0x2f')](_0x3c40a4);});}),this[_0x4529('0x1a')](_0x331ed5,_0x4529('0x15'),(_0x148606,_0x958a85)=>{_0x958a85[_0x4529('0x30')][_0x4529('0xb')]('EditorAnnotations')&&this[_0x4529('0xe')](_0x958a85[_0x4529('0x30')]['get']('EditorAnnotations'));}),window[_0x4529('0x7')](_0x4529('0xa'),this['_refreshPositioningDebounced']),this[_0x4529('0x1')]['refreshPositioning']();}[_0x4529('0x19')](){if(!this[_0x4529('0x3')])throw new _0x5d6b7c(_0x4529('0x16'),this);this[_0x4529('0x24')](null);const _0x5f4d9b=this[_0x4529('0x11')]['plugins'][_0x4529('0x2e')](_0x22d9eb);_0x5f4d9b[_0x4529('0x12')](this[_0x4529('0x1')]),this['stopListening'](_0x5f4d9b),this[_0x4529('0x23')](this[_0x4529('0x1')]),this[_0x4529('0x11')]instanceof _0x285ae4&&this[_0x4529('0x23')](this['context'][_0x4529('0x2c')]);for(const _0x3f02ae of Array[_0x4529('0xf')](this[_0x4529('0xc')]))this[_0x4529('0xe')](_0x3f02ae);window[_0x4529('0x14')]('resize',this['_refreshPositioningDebounced']),this[_0x4529('0x20')][_0x4529('0x17')](),this[_0x4529('0x10')]=null,this[_0x4529('0x3')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x4529('0x3')]&&this[_0x4529('0x19')]();}[_0x4529('0x2f')](_0x601dcc){const _0x3afc53=_0x601dcc[_0x4529('0x30')][_0x4529('0x2e')](_0x2ef266);if(!_0x3afc53)return;const _0x3b1f9f=()=>{const _0x3e0370=_0x3afc53[_0x4529('0x26')]({'annotations':this[_0x4529('0x1')],'activeAnnotation':this['activeAnnotation']});this[_0x4529('0x24')](_0x3e0370[0x0]||null);};this['listenTo'](_0x3afc53,_0x4529('0x1f'),_0x3b1f9f),this['listenTo'](_0x3afc53,_0x4529('0x2a'),(_0x3b1e1f,{isAnnotationTracked:_0x53a09c})=>{this['activeAnnotation']&&_0x53a09c(this[_0x4529('0x10')])&&this[_0x4529('0x24')](null);}),this[_0x4529('0x1a')](_0x3afc53,_0x4529('0x0'),()=>{this[_0x4529('0x20')]();}),this['listenTo'](this[_0x4529('0x1')],_0x4529('0x2a'),_0x49cd4c=>{_0x3afc53[_0x4529('0x22')]()&&(_0x3b1f9f(),_0x49cd4c[_0x4529('0xd')]());},{'priority':_0x4529('0x2b')}),this[_0x4529('0xc')]['add'](_0x3afc53);}[_0x4529('0xe')](_0x116675){this[_0x4529('0x23')](_0x116675),this[_0x4529('0xc')][_0x4529('0x15')](_0x116675);}}
23
+ const _0x3839=['plugins','_editorAnnotations','isAttached','widesidebar-attach-already-attached','activeAnnotation','add','context','get','init','_destroyEditorAnnotationsIntegration','_refreshPositioningDebounced','off','editors','refresh','switchTo','stop','blur','destroy','_activeAnnotation','addAnnotation','rearrange','uiUpdate','stopListening','cancel','resize','ck-sidebar--wide','addEventListener','from','listenTo','attach','setActiveAnnotation','remove','_integrateWithEditorAnnotations','wideSidebar','focus','detach','high','getOrderedSelectedAnnotations','change:container','requires','register','_annotations','hasDomSelection','annotations','EditorAnnotations','refreshPositioning','has'];(function(_0x22093b,_0x38398e){const _0x5aecdc=function(_0x8e0ab7){while(--_0x8e0ab7){_0x22093b['push'](_0x22093b['shift']());}};_0x5aecdc(++_0x38398e);}(_0x3839,0x6c));const _0x5aec=function(_0x22093b,_0x38398e){_0x22093b=_0x22093b-0x0;let _0x5aecdc=_0x3839[_0x22093b];return _0x5aecdc;};import{ContextPlugin as _0x2b1d56,Context as _0x35e3c8}from'ckeditor5/src/core';import _0x45a77e from'./annotationsuis';import _0x4ee65a from'./sidebar';import{CKEditorError as _0x530bc0,Collection as _0x158aca}from'ckeditor5/src/utils';import{debounce as _0x50c916}from'lodash-es';import _0x37fc3c from'./editorannotations';export default class i extends _0x2b1d56{static get[_0x5aec('0x19')](){return[_0x4ee65a,_0x45a77e];}static get['pluginName'](){return'WideSidebar';}constructor(_0x41c9de){super(_0x41c9de),this['isAttached']=!0x1,this['set'](_0x5aec('0x25'),null),this[_0x5aec('0x1d')]=null,this[_0x5aec('0x22')]=new _0x158aca(),this[_0x5aec('0x2b')]=_0x50c916(()=>{this[_0x5aec('0x1d')][_0x5aec('0x1f')]();},0xfa,{'leading':!0x1});}[_0x5aec('0x29')](){const _0x4de960=this[_0x5aec('0x27')]['plugins'][_0x5aec('0x28')](_0x45a77e),_0x18b601=this['context'][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);_0x4de960[_0x5aec('0x1a')](_0x5aec('0x13'),this),_0x18b601['container']&&_0x4de960[_0x5aec('0x0')](_0x5aec('0x13'));}['setActiveAnnotation'](_0x544239){if(_0x544239===this['activeAnnotation'])return;const _0x57cc05=this[_0x5aec('0x27')][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);_0x57cc05[_0x5aec('0x4')]=_0x544239;const _0xfe4d9b=this['activeAnnotation'];this[_0x5aec('0x25')]=_0x544239,_0x57cc05[_0x5aec('0x2e')]({'blurredAnnotation':_0xfe4d9b,'activatedAnnotation':this[_0x5aec('0x25')]});}[_0x5aec('0xf')](_0x46e263){this[_0x5aec('0x1d')]=_0x46e263;const _0x1c1c74=this[_0x5aec('0x27')][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);if(_0x1c1c74[_0x5aec('0x1b')]=_0x46e263,this[_0x5aec('0x23')])throw new _0x530bc0(_0x5aec('0x24'),this);this[_0x5aec('0x23')]=!0x0,this['listenTo'](_0x1c1c74,'set:container',()=>{this[_0x5aec('0x15')](),this['listenTo'](_0x1c1c74,_0x5aec('0x18'),_0x2679cb=>{_0x2679cb[_0x5aec('0x2c')](),this[_0x5aec('0xf')](_0x46e263);});}),_0x1c1c74['_attachToContainer']({'viewClass':_0x5aec('0xb')});const _0x21e9c9=_0x2db907=>{_0x2db907['updateTargetRect'](),_0x1c1c74[_0x5aec('0x5')](_0x2db907);};for(const _0x3edad3 of _0x46e263)_0x21e9c9(_0x3edad3);this[_0x5aec('0xe')](_0x46e263,_0x5aec('0x26'),(_0x1b0b97,_0x3ae780)=>{_0x21e9c9(_0x3ae780);}),this[_0x5aec('0xe')](_0x46e263,_0x5aec('0x11'),(_0x4e92ff,_0x99abfa,_0x2b56f5)=>{_0x1c1c74[_0x5aec('0x6')]({'removedAnnotation':_0x99abfa,'previousAnnotation':_0x46e263[_0x5aec('0x28')](_0x2b56f5-0x1),'nextAnnotation':_0x46e263[_0x5aec('0x28')](_0x2b56f5+0x1)}),_0x99abfa===this[_0x5aec('0x25')]&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0x5aec('0xe')](_0x46e263,_0x5aec('0x14'),(_0x54cf04,_0x55f14e)=>{this[_0x5aec('0x10')](_0x55f14e);}),this[_0x5aec('0xe')](_0x46e263,'blur',()=>{this[_0x5aec('0x10')](null);});const _0x1a4dd0=this[_0x5aec('0x27')]instanceof _0x35e3c8?this['context'][_0x5aec('0x2d')]:new _0x158aca([this[_0x5aec('0x27')]]);for(const _0x5cb9b2 of _0x1a4dd0)this[_0x5aec('0x12')](_0x5cb9b2);this['listenTo'](_0x1a4dd0,_0x5aec('0x26'),(_0x283f55,_0xf4762d)=>{this['listenTo'](_0xf4762d,'ready',()=>{this[_0x5aec('0x12')](_0xf4762d);});}),this[_0x5aec('0xe')](_0x1a4dd0,_0x5aec('0x11'),(_0x58b407,_0x2244c2)=>{_0x2244c2[_0x5aec('0x21')][_0x5aec('0x20')](_0x5aec('0x1e'))&&this[_0x5aec('0x2a')](_0x2244c2[_0x5aec('0x21')][_0x5aec('0x28')](_0x5aec('0x1e')));}),window[_0x5aec('0xc')]('resize',this[_0x5aec('0x2b')]),this['annotations'][_0x5aec('0x1f')]();}[_0x5aec('0x15')](){if(!this[_0x5aec('0x23')])throw new _0x530bc0('widesidebar-detach-not-attached',this);this[_0x5aec('0x10')](null);const _0xd6ef21=this['context'][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);_0xd6ef21['_detachFromContainer'](this[_0x5aec('0x1d')]),this['stopListening'](_0xd6ef21),this[_0x5aec('0x8')](this[_0x5aec('0x1d')]),this[_0x5aec('0x27')]instanceof _0x35e3c8&&this[_0x5aec('0x8')](this[_0x5aec('0x27')][_0x5aec('0x2d')]);for(const _0x2c6145 of Array[_0x5aec('0xd')](this['_editorAnnotations']))this[_0x5aec('0x2a')](_0x2c6145);window['removeEventListener'](_0x5aec('0xa'),this['_refreshPositioningDebounced']),this[_0x5aec('0x2b')][_0x5aec('0x9')](),this['activeAnnotation']=null,this[_0x5aec('0x23')]=!0x1,this['annotations']=null;}[_0x5aec('0x3')](){this['isAttached']&&this[_0x5aec('0x15')]();}['_integrateWithEditorAnnotations'](_0x291a92){const _0x5778a9=_0x291a92['plugins'][_0x5aec('0x28')](_0x37fc3c);if(!_0x5778a9)return;const _0x695746=()=>{const _0x1f4361=_0x5778a9[_0x5aec('0x17')]({'annotations':this[_0x5aec('0x1d')],'activeAnnotation':this[_0x5aec('0x25')]});this[_0x5aec('0x10')](_0x1f4361[0x0]||null);};this[_0x5aec('0xe')](_0x5778a9,'refresh',_0x695746),this[_0x5aec('0xe')](_0x5778a9,_0x5aec('0x2'),(_0x476e7f,{isAnnotationTracked:_0x4bf3f4})=>{this[_0x5aec('0x25')]&&_0x4bf3f4(this[_0x5aec('0x25')])&&this[_0x5aec('0x10')](null);}),this[_0x5aec('0xe')](_0x5778a9,_0x5aec('0x7'),()=>{this[_0x5aec('0x2b')]();}),this[_0x5aec('0xe')](this[_0x5aec('0x1d')],_0x5aec('0x2'),_0x4ecb32=>{_0x5778a9[_0x5aec('0x1c')]()&&(_0x695746(),_0x4ecb32[_0x5aec('0x1')]());},{'priority':_0x5aec('0x16')}),this[_0x5aec('0x22')][_0x5aec('0x26')](_0x5778a9);}[_0x5aec('0x2a')](_0x3fee24){this['stopListening'](_0x3fee24),this[_0x5aec('0x22')][_0x5aec('0x11')](_0x3fee24);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49ed=['editor','item','element','isObject','getRanges','$textProxy','model','getLastMatchingPosition','change','tableCell','selection','start','createRange','addMarker','push','_hasContent','_trimToContent','_itemIsContent','comment:','getItems','refresh','isEnabled','substr','schema'];(function(_0x2123a9,_0x49ed0a){const _0x31789e=function(_0x56ad87){while(--_0x56ad87){_0x2123a9['push'](_0x2123a9['shift']());}};_0x31789e(++_0x49ed0a);}(_0x49ed,0xef));const _0x3178=function(_0x2123a9,_0x49ed0a){_0x2123a9=_0x2123a9-0x0;let _0x31789e=_0x49ed[_0x2123a9];return _0x31789e;};import{Command as _0x5b3d43}from'ckeditor5/src/core';import{uid as _0x1b3d1}from'ckeditor5/src/utils';export default class q extends _0x5b3d43{[_0x3178('0x15')](){const _0x55c3e9=this[_0x3178('0x1')][_0x3178('0x7')]['document'][_0x3178('0xb')];for(const _0x125899 of _0x55c3e9[_0x3178('0x5')]())if(this['_hasContent'](_0x125899))return void(this[_0x3178('0x16')]=!0x0);this[_0x3178('0x16')]=!0x1;}['execute']({threadId:_0x30c253=_0x1b3d1()}={}){const _0x4c639a=this[_0x3178('0x1')][_0x3178('0x7')],_0x1bbc5a=[];for(const _0x37080d of _0x4c639a['document']['selection'][_0x3178('0x5')]())this[_0x3178('0x10')](_0x37080d)&&_0x1bbc5a[_0x3178('0xf')](this[_0x3178('0x11')](_0x37080d));_0x4c639a[_0x3178('0x9')](_0xaaf3f3=>{for(const _0x100bea of _0x1bbc5a){const _0x2c992b=_0x1b3d1()[_0x3178('0x17')](0x1,0x5),_0x5d191f=_0x3178('0x13')+_0x30c253+':'+_0x2c992b;_0xaaf3f3[_0x3178('0xe')](_0x5d191f,{'range':_0x100bea,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3178('0x10')](_0x299132){for(const _0x577118 of _0x299132[_0x3178('0x14')]())if(this[_0x3178('0x12')](_0x577118))return!0x0;return!0x1;}[_0x3178('0x12')](_0x337150){return _0x337150['is'](_0x3178('0x6'))||this['editor']['model'][_0x3178('0x0')][_0x3178('0x4')](_0x337150)&&!_0x337150['is'](_0x3178('0x3'),_0x3178('0xa'));}[_0x3178('0x11')](_0x5b26aa){const _0x58330a=_0x1afb40=>!this[_0x3178('0x12')](_0x1afb40[_0x3178('0x2')]),_0x450dcf=_0x5b26aa[_0x3178('0xc')][_0x3178('0x8')](_0x58330a),_0x2b56b7=_0x5b26aa['end'][_0x3178('0x8')](_0x58330a,{'direction':'backward'});return this[_0x3178('0x1')][_0x3178('0x7')][_0x3178('0xd')](_0x450dcf,_0x2b56b7);}}
23
+ const _0x5cd4=['getLastMatchingPosition','model','_itemIsContent','isObject','backward','_hasContent','change','addMarker','getRanges','push','isEnabled','editor','refresh','document','schema','_trimToContent','element','selection','start','getItems','execute','comment:'];(function(_0x3fc088,_0x5cd4fb){const _0x303352=function(_0x591157){while(--_0x591157){_0x3fc088['push'](_0x3fc088['shift']());}};_0x303352(++_0x5cd4fb);}(_0x5cd4,0x170));const _0x3033=function(_0x3fc088,_0x5cd4fb){_0x3fc088=_0x3fc088-0x0;let _0x303352=_0x5cd4[_0x3fc088];return _0x303352;};import{Command as _0x104dc8}from'ckeditor5/src/core';import{uid as _0x76ef2d}from'ckeditor5/src/utils';export default class q extends _0x104dc8{[_0x3033('0x12')](){const _0xd55eef=this[_0x3033('0x11')][_0x3033('0x7')][_0x3033('0x13')][_0x3033('0x1')];for(const _0x31992a of _0xd55eef[_0x3033('0xe')]())if(this[_0x3033('0xb')](_0x31992a))return void(this[_0x3033('0x10')]=!0x0);this[_0x3033('0x10')]=!0x1;}[_0x3033('0x4')]({threadId:_0x4a9286=_0x76ef2d()}={}){const _0x3bdd2c=this[_0x3033('0x11')][_0x3033('0x7')],_0x37de9f=[];for(const _0xf3b891 of _0x3bdd2c[_0x3033('0x13')]['selection'][_0x3033('0xe')]())this[_0x3033('0xb')](_0xf3b891)&&_0x37de9f[_0x3033('0xf')](this['_trimToContent'](_0xf3b891));_0x3bdd2c[_0x3033('0xc')](_0xd62814=>{for(const _0x51bb55 of _0x37de9f){const _0x3270ed=_0x76ef2d()['substr'](0x1,0x5),_0x3067fa=_0x3033('0x5')+_0x4a9286+':'+_0x3270ed;_0xd62814[_0x3033('0xd')](_0x3067fa,{'range':_0x51bb55,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x44ee99){for(const _0x5a688a of _0x44ee99[_0x3033('0x3')]())if(this[_0x3033('0x8')](_0x5a688a))return!0x0;return!0x1;}[_0x3033('0x8')](_0x16d33f){return _0x16d33f['is']('$textProxy')||this['editor'][_0x3033('0x7')][_0x3033('0x14')][_0x3033('0x9')](_0x16d33f)&&!_0x16d33f['is'](_0x3033('0x0'),'tableCell');}[_0x3033('0x15')](_0x18bdab){const _0x25c4ed=_0x12eed1=>!this[_0x3033('0x8')](_0x12eed1['item']),_0x162699=_0x18bdab[_0x3033('0x2')][_0x3033('0x6')](_0x25c4ed),_0x4a9e81=_0x18bdab['end'][_0x3033('0x6')](_0x25c4ed,{'direction':_0x3033('0xa')});return this[_0x3033('0x11')][_0x3033('0x7')]['createRange'](_0x162699,_0x4a9e81);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28af=['isActive','highest','addCommentThread','activate','has','listenTo','removeCommentThread','remove','resolvedThreads','findIndex','_calculatePosition','get','focus','resolveCommentThread','reopenCommentThread','add','plugins','getCommentThread'];(function(_0x220fd0,_0x28af99){const _0x5dfd11=function(_0x127d10){while(--_0x127d10){_0x220fd0['push'](_0x220fd0['shift']());}};_0x5dfd11(++_0x28af99);}(_0x28af,0xf3));const _0x5dfd=function(_0x220fd0,_0x28af99){_0x220fd0=_0x220fd0-0x0;let _0x5dfd11=_0x28af[_0x220fd0];return _0x5dfd11;};import{ContextPlugin as _0x177e6e}from'ckeditor5/src/core';import{Collection as _0x113b05}from'ckeditor5/src/utils';import _0x4c744d from'./commentsrepository';import _0x5a78fd from'../annotations/annotations';export default class p extends _0x177e6e{static get['pluginName'](){return'CommentsArchive';}static get['requires'](){return[_0x4c744d,_0x5a78fd];}constructor(_0x5dc3b8){super(_0x5dc3b8),this['resolvedThreads']=new _0x113b05();}['init'](){const _0x1cff2c=this['context'],_0x31aec8=_0x1cff2c['plugins'][_0x5dfd('0x2')](_0x4c744d),_0x1a75db=_0x1cff2c[_0x5dfd('0x7')][_0x5dfd('0x2')](_0x5a78fd);this[_0x5dfd('0xe')](_0x31aec8,_0x5dfd('0xb'),(_0x1a7f23,{threadId:_0x273a63,resolvedAt:_0x41a745})=>{if(_0x41a745){const _0x4065cc=_0x31aec8[_0x5dfd('0x8')](_0x273a63);this[_0x5dfd('0x11')][_0x5dfd('0x6')](_0x4065cc,this[_0x5dfd('0x1')](_0x41a745));}}),this[_0x5dfd('0xe')](_0x31aec8,_0x5dfd('0x4'),(_0x12ec11,{threadId:_0x3e618c,resolvedAt:_0x5d9d12})=>{const _0x8d21a0=_0x31aec8[_0x5dfd('0x8')](_0x3e618c);this[_0x5dfd('0x11')][_0x5dfd('0x6')](_0x8d21a0,this[_0x5dfd('0x1')](_0x5d9d12));},{'priority':_0x5dfd('0xa')}),this['listenTo'](_0x31aec8,_0x5dfd('0x5'),(_0x1737d0,{threadId:_0x3dba09})=>{const _0xf42de8=_0x31aec8[_0x5dfd('0x8')](_0x3dba09);this[_0x5dfd('0x11')][_0x5dfd('0xd')](_0xf42de8)&&this[_0x5dfd('0x11')][_0x5dfd('0x10')](_0xf42de8);},{'priority':_0x5dfd('0xa')}),this[_0x5dfd('0xe')](_0x31aec8,_0x5dfd('0xf'),(_0x1c9842,{threadId:_0x50f796})=>{const _0x3d5cc7=_0x31aec8[_0x5dfd('0x8')](_0x50f796);this[_0x5dfd('0x11')][_0x5dfd('0xd')](_0x3d5cc7)&&this[_0x5dfd('0x11')][_0x5dfd('0x10')](_0x3d5cc7);},{'priority':'highest'}),this['listenTo'](_0x1a75db['collection'],_0x5dfd('0x3'),(_0x581ad5,_0x7c2aef)=>{_0x7c2aef[_0x5dfd('0x9')]=!0x0,_0x1a75db[_0x5dfd('0xc')](_0x7c2aef);});}[_0x5dfd('0x1')](_0x1f35e9){const _0x4e76d0=[...this[_0x5dfd('0x11')]][_0x5dfd('0x0')](_0xeb2cf3=>_0xeb2cf3['resolvedAt']<_0x1f35e9);return _0x4e76d0>-0x1?_0x4e76d0:this['resolvedThreads']['length'];}}
23
+ const _0x54f7=['remove','get','init','has','length','collection','context','resolvedAt','CommentsArchive','listenTo','isActive','add','findIndex','removeCommentThread','getCommentThread','requires','resolveCommentThread','pluginName','resolvedThreads','_calculatePosition','focus','plugins','highest'];(function(_0x9e00f7,_0x54f7c6){const _0x49ab87=function(_0x4d47ca){while(--_0x4d47ca){_0x9e00f7['push'](_0x9e00f7['shift']());}};_0x49ab87(++_0x54f7c6);}(_0x54f7,0x8d));const _0x49ab=function(_0x9e00f7,_0x54f7c6){_0x9e00f7=_0x9e00f7-0x0;let _0x49ab87=_0x54f7[_0x9e00f7];return _0x49ab87;};import{ContextPlugin as _0x294886}from'ckeditor5/src/core';import{Collection as _0x4f9b3a}from'ckeditor5/src/utils';import _0x5f211e from'./commentsrepository';import _0x5943af from'../annotations/annotations';export default class p extends _0x294886{static get[_0x49ab('0xe')](){return _0x49ab('0x5');}static get[_0x49ab('0xc')](){return[_0x5f211e,_0x5943af];}constructor(_0x36bd09){super(_0x36bd09),this[_0x49ab('0xf')]=new _0x4f9b3a();}[_0x49ab('0x16')](){const _0x3ae98c=this[_0x49ab('0x3')],_0xebe76a=_0x3ae98c[_0x49ab('0x12')]['get'](_0x5f211e),_0x8d2099=_0x3ae98c[_0x49ab('0x12')][_0x49ab('0x15')](_0x5943af);this[_0x49ab('0x6')](_0xebe76a,'addCommentThread',(_0x25eef4,{threadId:_0x1b8dbd,resolvedAt:_0x19d2fd})=>{if(_0x19d2fd){const _0x13f919=_0xebe76a['getCommentThread'](_0x1b8dbd);this[_0x49ab('0xf')][_0x49ab('0x8')](_0x13f919,this[_0x49ab('0x10')](_0x19d2fd));}}),this[_0x49ab('0x6')](_0xebe76a,_0x49ab('0xd'),(_0x434d35,{threadId:_0x5d93d9,resolvedAt:_0x6ad1ee})=>{const _0x41ffca=_0xebe76a['getCommentThread'](_0x5d93d9);this['resolvedThreads'][_0x49ab('0x8')](_0x41ffca,this[_0x49ab('0x10')](_0x6ad1ee));},{'priority':'highest'}),this['listenTo'](_0xebe76a,'reopenCommentThread',(_0x52d567,{threadId:_0x211098})=>{const _0x3a6c3b=_0xebe76a[_0x49ab('0xb')](_0x211098);this[_0x49ab('0xf')][_0x49ab('0x0')](_0x3a6c3b)&&this[_0x49ab('0xf')][_0x49ab('0x14')](_0x3a6c3b);},{'priority':'highest'}),this[_0x49ab('0x6')](_0xebe76a,_0x49ab('0xa'),(_0x2e6a60,{threadId:_0x17b71f})=>{const _0x32ff76=_0xebe76a[_0x49ab('0xb')](_0x17b71f);this['resolvedThreads']['has'](_0x32ff76)&&this[_0x49ab('0xf')][_0x49ab('0x14')](_0x32ff76);},{'priority':_0x49ab('0x13')}),this['listenTo'](_0x8d2099[_0x49ab('0x2')],_0x49ab('0x11'),(_0x25ad96,_0x293204)=>{_0x293204[_0x49ab('0x7')]=!0x0,_0x8d2099['activate'](_0x293204);});}[_0x49ab('0x10')](_0x47bc4d){const _0x146658=[...this[_0x49ab('0xf')]][_0x49ab('0x9')](_0x1fdf7b=>_0x1fdf7b[_0x49ab('0x4')]<_0x47bc4d);return _0x146658>-0x1?_0x146658:this[_0x49ab('0xf')][_0x49ab('0x1')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e0f=['commentsArchiveView','CommentsArchiveUI','panelView','_threadToController','isVisible','channelId','locale','stopListening','listenTo','config','requires','annotationViews','buttonView','change:isOpen','CommentsRepository','resolvedThreads','init','set','pluginName','collaboration.channelId','plugins','get','remove','change:isVisible','COMMENTS_ARCHIVE','componentFactory','editor','getByInnerView','commentsArchive','add','view','_createArchiveUIDropdown'];(function(_0x1521b2,_0x3e0f7c){const _0x984b24=function(_0xa09122){while(--_0xa09122){_0x1521b2['push'](_0x1521b2['shift']());}};_0x984b24(++_0x3e0f7c);}(_0x3e0f,0xbc));const _0x984b=function(_0x1521b2,_0x3e0f7c){_0x1521b2=_0x1521b2-0x0;let _0x984b24=_0x3e0f[_0x1521b2];return _0x984b24;};import'../../theme/commentsarchive.css';import{Plugin as _0x1cfc03}from'ckeditor5/src/core';import{createDropdown as _0x2839bb,ViewCollection as _0x11af99}from'ckeditor5/src/ui';import _0x2704e4 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x345bc4}from'../utils/common-translations';import _0x491950 from'./ui/view/commentsarchiveview';import _0x5382d2 from'./commentsarchive';export default class a extends _0x1cfc03{static get[_0x984b('0x16')](){return _0x984b('0x5');}static get[_0x984b('0xe')](){return[_0x5382d2];}constructor(_0x86af6b){super(_0x86af6b),this[_0x984b('0xf')]=new _0x11af99();}[_0x984b('0x14')](){this['editor']['ui'][_0x984b('0x1d')][_0x984b('0x1')](_0x984b('0x0'),()=>this[_0x984b('0x3')]());const _0x36379b=this[_0x984b('0x1e')][_0x984b('0x18')]['get'](_0x5382d2),_0x4bd286=this[_0x984b('0x1e')][_0x984b('0x18')]['get']('Annotations'),_0x471b34=this[_0x984b('0x1e')]['plugins'][_0x984b('0x19')](_0x984b('0x12'));this[_0x984b('0xc')](_0x36379b[_0x984b('0x13')],_0x984b('0x1'),(_0x15f34b,_0x17f0d5,_0x4caa2e)=>{const _0x33fb43=this[_0x984b('0x1e')][_0x984b('0xd')][_0x984b('0x19')](_0x984b('0x17'));if(!_0x33fb43||_0x17f0d5[_0x984b('0x9')]===_0x33fb43){const _0x3cc8e5=_0x471b34[_0x984b('0x7')][_0x984b('0x19')](_0x17f0d5),_0x2435fc=_0x4bd286[_0x984b('0x1f')](_0x3cc8e5[_0x984b('0x2')]);_0x2435fc[_0x984b('0x8')]?this[_0x984b('0xc')](_0x2435fc,_0x984b('0x1b'),(_0x45cf28,_0x282347,_0x2ec02e)=>{_0x2ec02e||(this[_0x984b('0xf')][_0x984b('0x1')](_0x2435fc[_0x984b('0x2')],_0x4caa2e),this[_0x984b('0xb')](_0x2435fc));}):this['annotationViews'][_0x984b('0x1')](_0x2435fc['view'],_0x4caa2e);}}),this[_0x984b('0xc')](_0x36379b[_0x984b('0x13')],_0x984b('0x1a'),(_0x28fbd7,_0x57fa33)=>{const _0x10a65a=this[_0x984b('0x1e')][_0x984b('0xd')][_0x984b('0x19')](_0x984b('0x17'));if(!_0x10a65a||_0x57fa33['channelId']===_0x10a65a){const _0x466599=_0x471b34['_threadToController'][_0x984b('0x19')](_0x57fa33),_0x27ed19=_0x4bd286[_0x984b('0x1f')](_0x466599[_0x984b('0x2')])[_0x984b('0x2')];this[_0x984b('0xf')]['remove'](_0x27ed19);}});}['_createArchiveUIDropdown'](){const _0x9be32b=this[_0x984b('0x1e')],_0x3cc47b=_0x2839bb(_0x9be32b['locale']);return _0x3cc47b[_0x984b('0x10')][_0x984b('0x15')]({'icon':_0x2704e4,'label':_0x345bc4(_0x9be32b[_0x984b('0xa')],_0x984b('0x1c')),'tooltip':!0x0}),_0x3cc47b['on'](_0x984b('0x11'),()=>{this[_0x984b('0x4')]||(this['commentsArchiveView']=new _0x491950(_0x9be32b['locale'],this['annotationViews']),_0x3cc47b[_0x984b('0x6')]['children'][_0x984b('0x1')](this['commentsArchiveView']));}),_0x3cc47b;}}
23
+ const _0x350a=['locale','annotationViews','COMMENTS_ARCHIVE','Annotations','add','remove','change:isOpen','CommentsRepository','listenTo','panelView','commentsArchiveView','_threadToController','config','plugins','_createArchiveUIDropdown','stopListening','channelId','editor','isVisible','children','buttonView','view','get','set','resolvedThreads','collaboration.channelId','init'];(function(_0x563b00,_0x350a9a){const _0x3b6687=function(_0x43a552){while(--_0x43a552){_0x563b00['push'](_0x563b00['shift']());}};_0x3b6687(++_0x350a9a);}(_0x350a,0x1ce));const _0x3b66=function(_0x563b00,_0x350a9a){_0x563b00=_0x563b00-0x0;let _0x3b6687=_0x350a[_0x563b00];return _0x3b6687;};import'../../theme/commentsarchive.css';import{Plugin as _0x40a41}from'ckeditor5/src/core';import{createDropdown as _0x5077b7,ViewCollection as _0x5e9f22}from'ckeditor5/src/ui';import _0x464d0e from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x10b587}from'../utils/common-translations';import _0x847500 from'./ui/view/commentsarchiveview';import _0x3c59ad from'./commentsarchive';export default class a extends _0x40a41{static get['pluginName'](){return'CommentsArchiveUI';}static get['requires'](){return[_0x3c59ad];}constructor(_0x3d18d7){super(_0x3d18d7),this[_0x3b66('0x19')]=new _0x5e9f22();}[_0x3b66('0x17')](){this['editor']['ui']['componentFactory'][_0x3b66('0x1')]('commentsArchive',()=>this[_0x3b66('0xb')]());const _0x2bc0fc=this[_0x3b66('0xe')][_0x3b66('0xa')][_0x3b66('0x13')](_0x3c59ad),_0x5d5d94=this[_0x3b66('0xe')]['plugins'][_0x3b66('0x13')](_0x3b66('0x0')),_0x537b84=this[_0x3b66('0xe')][_0x3b66('0xa')][_0x3b66('0x13')](_0x3b66('0x4'));this[_0x3b66('0x5')](_0x2bc0fc[_0x3b66('0x15')],_0x3b66('0x1'),(_0xa02117,_0x1f0aac,_0x1ffa6b)=>{const _0x1f1485=this[_0x3b66('0xe')][_0x3b66('0x9')][_0x3b66('0x13')](_0x3b66('0x16'));if(!_0x1f1485||_0x1f0aac['channelId']===_0x1f1485){const _0x389b3c=_0x537b84[_0x3b66('0x8')][_0x3b66('0x13')](_0x1f0aac),_0x250f32=_0x5d5d94['getByInnerView'](_0x389b3c[_0x3b66('0x12')]);_0x250f32[_0x3b66('0xf')]?this[_0x3b66('0x5')](_0x250f32,'change:isVisible',(_0x320593,_0x53d284,_0x28070a)=>{_0x28070a||(this['annotationViews'][_0x3b66('0x1')](_0x250f32[_0x3b66('0x12')],_0x1ffa6b),this[_0x3b66('0xc')](_0x250f32));}):this[_0x3b66('0x19')][_0x3b66('0x1')](_0x250f32[_0x3b66('0x12')],_0x1ffa6b);}}),this[_0x3b66('0x5')](_0x2bc0fc['resolvedThreads'],'remove',(_0xfc08af,_0x1b6c5a)=>{const _0x93191d=this[_0x3b66('0xe')]['config'][_0x3b66('0x13')]('collaboration.channelId');if(!_0x93191d||_0x1b6c5a[_0x3b66('0xd')]===_0x93191d){const _0x2c28b2=_0x537b84[_0x3b66('0x8')]['get'](_0x1b6c5a),_0x13bf6d=_0x5d5d94['getByInnerView'](_0x2c28b2['view'])['view'];this[_0x3b66('0x19')][_0x3b66('0x2')](_0x13bf6d);}});}[_0x3b66('0xb')](){const _0x10481c=this['editor'],_0x10cba1=_0x5077b7(_0x10481c[_0x3b66('0x18')]);return _0x10cba1[_0x3b66('0x11')][_0x3b66('0x14')]({'icon':_0x464d0e,'label':_0x10b587(_0x10481c['locale'],_0x3b66('0x1a')),'tooltip':!0x0}),_0x10cba1['on'](_0x3b66('0x3'),()=>{this[_0x3b66('0x7')]||(this[_0x3b66('0x7')]=new _0x847500(_0x10481c[_0x3b66('0x18')],this['annotationViews']),_0x10cba1[_0x3b66('0x6')][_0x3b66('0x10')][_0x3b66('0x1')](this[_0x3b66('0x7')]));}),_0x10cba1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f5c=['set','getCommentThreads','hasCommentThread','getWalker','size','attachTo','state','dataDowncast','init','change:isThreadsLoadingPaused','$marker','change','ck-comment-marker','model','getByInnerView','has','differ','_getTargetForId','addCommentThread','comment','change:isReadOnly','getAllMarkersForId','data','add','focus','change:activeMarker','getCommentThread','ck-comment-marker--active','removeMarker','scrollToThreadMarker','_handleThreadMarker','pluginName','get','isResolved','_handleMarkerAddAndRemove','listenTo','for','createRange','once','createPositionBefore','rootName','isObject','conversion','switchReadOnly','length','from','removeCommentThread','collaboration.channelId','getChangedMarkers','removeMarker:','editing','markerName','consume','markers','activeMarker','substring','push','filter','render','_threadToController','hasMarkerForId','editor','isCollapsed','delete','markerToHighlight','_attachMarkerToThread','_detachCommentThread','ready','managedUsingOperations','getItems','item','$graveyard','_initializeMarkerConverters','isLocal','openNewCommentThread','CommentsEditing','text','view','$textProxy','low','enqueueChange','isEqual','getAttribute','plugins','hasDomSelection','markerToData','_getTextContext','createElement','start','destroy','newRange','document','end','updateMarker','isThreadsLoadingPaused','upcast','reconvertMarker','_reconvertMarkers','registerAnnotation','setContext','_attachedThreads','_hasTargetInContent','config','affectsData','schema','comment:','consumable'];(function(_0x38a813,_0x2f5c5c){const _0x5b772d=function(_0xaabea1){while(--_0xaabea1){_0x38a813['push'](_0x38a813['shift']());}};_0x5b772d(++_0x2f5c5c);}(_0x2f5c,0x152));const _0x5b77=function(_0x38a813,_0x2f5c5c){_0x38a813=_0x38a813-0x0;let _0x5b772d=_0x2f5c[_0x38a813];return _0x5b772d;};import{Plugin as _0x5d5f00}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xf18b8}from'ckeditor5/src/utils';import _0x422b86 from'./commentsrepository';import _0x4bab68 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x5b3977}from'ckeditor5-collaboration/src/collaboration-core';import _0x13dc1b from'../annotations/editorannotations';import _0x26c4c2 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x42fc90 from'./integrations/importword';import _0x7fabf6 from'../annotations/annotations';export default class r extends _0x5d5f00{static get['requires'](){return[_0x422b86,_0x13dc1b,_0x26c4c2,_0x42fc90];}static get[_0x5b77('0xe')](){return _0x5b77('0x3a');}constructor(_0x5315f0){super(_0x5315f0),this[_0x5b77('0x5a')](_0x5b77('0x4d'),!0x0),_0x5315f0[_0x5b77('0x5')][_0x5b77('0x15')](_0x5b77('0x32'),()=>this[_0x5b77('0x4d')]=!0x1),this[_0x5b77('0x5a')]('activeMarker',null),this['on'](_0x5b77('0x8'),(_0x4e2693,_0x425f77,_0x54c2e4,_0x162be5)=>{const _0x2ef2fa=_0x54c2e4?tt(_0x54c2e4)['id']:null;if(_0x5315f0[_0x5b77('0x67')][_0x5b77('0x65')](()=>{if(_0x2ef2fa){const _0x170a13=this[_0x5b77('0x4')](_0x2ef2fa);for(const _0x1b700c of _0x170a13)_0x5315f0['editing'][_0x5b77('0x4f')](_0x1b700c);}if(_0x162be5){const {id:_0x1b97d4}=tt(_0x162be5),_0x32424f=this[_0x5b77('0x4')](_0x1b97d4);for(const _0x399a5e of _0x32424f)_0x5315f0[_0x5b77('0x21')][_0x5b77('0x4f')](_0x399a5e);}}),_0x2ef2fa){const _0x124296=_0x5315f0[_0x5b77('0x42')][_0x5b77('0xf')](_0x422b86)['getCommentThread'](_0x2ef2fa);_0x124296&&_0x124296[_0x5b77('0x10')]&&this[_0x5b77('0xc')](_0x2ef2fa);}}),this[_0x5b77('0x53')]=new Map();}[_0x5b77('0x62')](){const _0x61e90f=this[_0x5b77('0x2c')],_0x21347a=_0x61e90f[_0x5b77('0x42')]['get'](_0x422b86),_0x5b924d=_0x61e90f[_0x5b77('0x55')][_0x5b77('0xf')](_0x5b77('0x1e'));_0x61e90f['commands'][_0x5b77('0x6')](_0x5b77('0x1'),new _0x4bab68(_0x61e90f)),this[_0x5b77('0x12')](_0x61e90f,_0x5b77('0x3'),(_0x2a5c5e,_0xb143c7,_0x11fa43)=>{_0x21347a[_0x5b77('0x1a')](_0x11fa43,_0x61e90f[_0x5b77('0x55')][_0x5b77('0xf')](_0x5b77('0x1e')));}),this[_0x5b77('0x12')](_0x21347a,Z(_0x5b77('0x1'),_0x5b924d),(_0x39decf,{threadId:_0x3a2889})=>{const _0x3d532d=_0x61e90f[_0x5b77('0x42')][_0x5b77('0xf')](_0x13dc1b),_0x161116=this[_0x5b77('0x2c')][_0x5b77('0x42')][_0x5b77('0xf')](_0x422b86)[_0x5b77('0x9')](_0x3a2889);if(_0x161116&&_0x161116[_0x5b77('0x10')]&&!this[_0x5b77('0x53')][_0x5b77('0x69')](_0x3a2889)){const _0x4eb9e0=_0x161116[_0x5b77('0x5f')](()=>this[_0x5b77('0x0')](_0x161116['id']));_0x3d532d[_0x5b77('0x51')](_0x4eb9e0),this[_0x5b77('0x53')]['set'](_0x3a2889,[]),0x0===this[_0x5b77('0x4')](_0x3a2889)[_0x5b77('0x1b')]&&(_0x161116[_0x5b77('0x54')]=!0x1);}}),this[_0x5b77('0x12')](_0x21347a,Z(_0x5b77('0x1d'),_0x5b924d),(_0x236163,{threadId:_0x516b7a})=>{_0x61e90f[_0x5b77('0x67')][_0x5b77('0x3f')]({'isUndoable':!0x1},_0x517df7=>{const _0x139c61=this['getAllMarkersForId'](_0x516b7a);this['_attachedThreads'][_0x5b77('0x2e')](_0x516b7a);for(const _0x3f7548 of _0x139c61)_0x517df7[_0x5b77('0xb')](_0x3f7548);});},{'priority':'high'}),this[_0x5b77('0x12')](_0x21347a,Z('resolveCommentThread',_0x5b924d),(_0x2019f6,{threadId:_0x5a3a9b})=>{this['_reconvertMarkers'](_0x5a3a9b),this[_0x5b77('0x2c')][_0x5b77('0x21')][_0x5b77('0x3c')][_0x5b77('0x43')]&&this[_0x5b77('0x2c')][_0x5b77('0x21')][_0x5b77('0x3c')][_0x5b77('0x7')]();},{'priority':_0x5b77('0x3e')}),this[_0x5b77('0x12')](_0x21347a,Z('reopenCommentThread',_0x5b924d),(_0x4400c5,{threadId:_0x12f786})=>{this[_0x5b77('0x50')](_0x12f786);},{'priority':_0x5b77('0x3e')}),this[_0x5b77('0x12')](_0x21347a,Z('addComment',_0x5b924d),(_0x918476,{threadId:_0x3e3ca0,isFromAdapter:_0x553657})=>{const _0x20e43c=this[_0x5b77('0x4')](_0x3e3ca0);if(_0x553657||0x0==_0x20e43c[_0x5b77('0x1b')]||!_0x21347a[_0x5b77('0x5c')](_0x3e3ca0))return;0x1===_0x21347a[_0x5b77('0x9')](_0x3e3ca0)['length']&&_0x61e90f[_0x5b77('0x67')][_0x5b77('0x3f')]({'isUndoable':!0x1},_0x3d413f=>{for(const _0x3bef1d of _0x20e43c)_0x3d413f[_0x5b77('0x4c')](_0x3bef1d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5b77('0x3e')}),this[_0x5b77('0x37')](),this[_0x5b77('0x11')]();}[_0x5b77('0x48')](){const _0x4c382d=this[_0x5b77('0x2c')]['plugins']['get'](_0x422b86),_0x17b442=this[_0x5b77('0x2c')]['config'][_0x5b77('0xf')](_0x5b77('0x1e'));for(const _0x312dc6 of _0x4c382d[_0x5b77('0x5b')]({'channelId':_0x17b442}))_0x4c382d[_0x5b77('0x31')](_0x312dc6['id']),_0x4c382d['_threads'][_0x5b77('0x2e')](_0x312dc6['id']);super['destroy']();}['hasMarkerForId'](_0x53c08f){return this[_0x5b77('0x4')](_0x53c08f)['length']>0x0;}[_0x5b77('0x4')](_0x54b2e6){return(this[_0x5b77('0x53')][_0x5b77('0xf')](_0x54b2e6)||[])['map'](_0x11cc76=>this[_0x5b77('0x2c')][_0x5b77('0x67')][_0x5b77('0x24')][_0x5b77('0xf')](_0x11cc76))[_0x5b77('0x28')](_0x40c68c=>_0x40c68c);}[_0x5b77('0xc')](_0x2c7d19){const _0x4f3519=this[_0x5b77('0x0')](_0x2c7d19);_0x4f3519&&setTimeout(()=>{this[_0x5b77('0x25')]&&tt(this['activeMarker'])['id']===_0x2c7d19&&_0xf18b8({'target':_0x4f3519[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5b77('0x50')](_0x528b6b){this[_0x5b77('0x2c')][_0x5b77('0x67')][_0x5b77('0x65')](()=>{for(const _0x1738e2 of this['getAllMarkersForId'](_0x528b6b))this[_0x5b77('0x2c')][_0x5b77('0x21')][_0x5b77('0x4f')](_0x1738e2);});}['_initializeMarkerConverters'](){const _0x28f5d2=this[_0x5b77('0x2c')];_0x28f5d2[_0x5b77('0x19')]['for']('editingDowncast')[_0x5b77('0x2f')]({'model':_0x5b77('0x2'),'view':(_0x538127,_0xfa86ed)=>{const {id:_0x3fe827}=tt(_0x538127[_0x5b77('0x22')]),_0xecd3e5=_0x28f5d2[_0x5b77('0x42')][_0x5b77('0xf')](_0x422b86)['getCommentThread'](_0x3fe827),_0x16b068=this[_0x5b77('0x25')]&&tt(this[_0x5b77('0x25')])['id']===_0x3fe827;if(_0xecd3e5&&_0xecd3e5[_0x5b77('0x10')]&&!_0x16b068&&_0x538127[_0x5b77('0x35')])return _0xfa86ed[_0x5b77('0x59')][_0x5b77('0x23')](_0x538127[_0x5b77('0x35')],'addMarker:'+_0x538127['markerName']),_0xfa86ed['consumable'][_0x5b77('0x23')](_0x538127[_0x5b77('0x35')],_0x5b77('0x20')+_0x538127['markerName']),{'classes':[]};const _0x56221f=[_0x5b77('0x66')];return _0x16b068&&_0x56221f[_0x5b77('0x27')](_0x5b77('0xa')),{'classes':_0x56221f,'attributes':{'data-comment':_0x3fe827}};}}),_0x28f5d2[_0x5b77('0x19')][_0x5b77('0x13')](_0x5b77('0x61'))[_0x5b77('0x44')]({'model':'comment','view':(_0x1d8c85,{options:_0x357e86})=>{const _0x543c2c=_0x28f5d2[_0x5b77('0x42')]['get'](_0x422b86),_0xbe87a4=_0x28f5d2[_0x5b77('0x67')][_0x5b77('0x24')][_0x5b77('0xf')](_0x1d8c85),{id:_0xb8ebe,part:_0x8d3071}=tt(_0x1d8c85),_0x194a99=_0x543c2c[_0x5b77('0x9')](_0xb8ebe);return _0xbe87a4&&!_0xbe87a4[_0x5b77('0x56')]||_0x194a99&&_0x194a99[_0x5b77('0x10')]&&_0x357e86['ignoreResolvedComments']?null:{'group':_0x5b77('0x2'),'name':_0x8d3071?_0xb8ebe+':'+_0x8d3071:_0xb8ebe};}}),_0x28f5d2[_0x5b77('0x19')][_0x5b77('0x13')](_0x5b77('0x4e'))['elementToElement']({'view':{'name':_0x5b77('0x2'),'attributes':{'id':/^\w/}},'model':(_0x4c2a69,{writer:_0x17192a})=>_0x17192a[_0x5b77('0x46')](_0x5b77('0x64'),{'data-name':_0x5b77('0x58')+_0x4c2a69[_0x5b77('0x41')]('id')})}),_0x28f5d2[_0x5b77('0x19')]['for'](_0x5b77('0x4e'))['dataToMarker']({'view':_0x5b77('0x2')});}[_0x5b77('0x11')](){const _0x1449ad=this[_0x5b77('0x2c')],_0x4f34cd=_0x1449ad['plugins']['get'](_0x422b86),_0xc1f62f=new Set();_0x1449ad[_0x5b77('0x67')]['document']['registerPostFixer'](_0x4471e4=>{let _0x149cf1=!0x1;for(const {name:_0x3d8f8a,data:_0x24a5b8}of _0x1449ad[_0x5b77('0x67')][_0x5b77('0x4a')][_0x5b77('0x6a')][_0x5b77('0x1f')]()){const {group:_0x521d90,id:_0x3507f8}=tt(_0x3d8f8a);let _0x282385=_0x24a5b8[_0x5b77('0x49')];if(_0x5b77('0x2')!==_0x521d90||!_0x282385)continue;const _0x544476=_0x5b77('0x36')===_0x282385['root'][_0x5b77('0x17')];_0x544476||(_0x282385=ot(_0x282385,_0x1449ad[_0x5b77('0x67')]),!_0x282385||!_0x24a5b8[_0x5b77('0x49')]||_0x282385[_0x5b77('0x40')](_0x24a5b8[_0x5b77('0x49')]))?!_0x282385||!_0x1449ad['model']['hasContent'](_0x282385)||this[_0x5b77('0x53')]['has'](_0x3507f8)&&_0x544476?(_0x4471e4[_0x5b77('0xb')](_0x3d8f8a),_0x149cf1=!0x0):_0x544476||(this[_0x5b77('0x4d')]?_0xc1f62f[_0x5b77('0x6')](_0x3d8f8a):this[_0x5b77('0xd')](_0x3d8f8a,_0x3507f8)):(_0x4471e4[_0x5b77('0x4c')](_0x3d8f8a,{'range':_0x282385}),_0x149cf1=!0x0);}return _0x149cf1;}),this['on'](_0x5b77('0x63'),(_0x2ee36e,_0x5d9e90,_0x490024)=>{if(!_0x490024&&_0xc1f62f[_0x5b77('0x5e')])for(const _0x997eab of _0xc1f62f){const {id:_0xb4e178}=tt(_0x997eab);_0xc1f62f[_0x5b77('0x2e')](_0xb4e178),_0x1449ad[_0x5b77('0x67')][_0x5b77('0x24')][_0x5b77('0xf')](_0x997eab)&&this[_0x5b77('0xd')](_0x997eab,_0xb4e178);}}),this[_0x5b77('0x12')](_0x1449ad[_0x5b77('0x67')][_0x5b77('0x4a')],_0x5b77('0x65'),(_0x2db13a,_0xb321e)=>{for(const {name:_0x818a9d,data:{newRange:_0x2f3e3f}}of _0x1449ad[_0x5b77('0x67')][_0x5b77('0x4a')][_0x5b77('0x6a')][_0x5b77('0x1f')]()){const {group:_0x4c9f40,id:_0x4d324f}=tt(_0x818a9d);if(_0x5b77('0x2')!==_0x4c9f40)continue;const _0x41c2b9=_0x4f34cd['getCommentThread'](_0x4d324f),_0x5c5113=this[_0x5b77('0x2b')](_0x4d324f);_0x41c2b9&&(_0x41c2b9[_0x5b77('0x54')]||_0x1449ad[_0x5b77('0x21')][_0x5b77('0x3c')][_0x5b77('0x15')](_0x5b77('0x29'),()=>{const _0xd24826=_0x1449ad[_0x5b77('0x42')][_0x5b77('0xf')](_0x7fabf6),_0x29b835=_0x4f34cd['_threadToController']['get'](_0x41c2b9)[_0x5b77('0x3c')];_0xd24826[_0x5b77('0x68')](_0x29b835)['refreshVisibility']();},{'priority':'low'}),_0x41c2b9[_0x5b77('0x54')]=_0x5c5113||!!_0x2f3e3f),!_0x2f3e3f&&_0xb321e[_0x5b77('0x38')]&&(_0xc1f62f[_0x5b77('0x2e')](_0x4d324f),_0x41c2b9&&!_0x41c2b9[_0x5b77('0x10')]&&!_0x5c5113&&this['_attachedThreads'][_0x5b77('0x69')](_0x4d324f)&&(this[_0x5b77('0x53')][_0x5b77('0x2e')](_0x4d324f),_0x41c2b9['resolve']()));}});}[_0x5b77('0x0')](_0x303a25){const _0x2f65d0=this[_0x5b77('0x2c')],_0x189557=this[_0x5b77('0x4')](_0x303a25);return _0x5b3977(_0x2f65d0[_0x5b77('0x21')],_0x189557);}[_0x5b77('0x45')](_0x44d5c1){const _0x511956=this[_0x5b77('0x4')](_0x44d5c1);let _0x5b4186='',_0x62634e=!0x1;for(const _0x2f039c of _0x511956){const _0x1e1a0a=_0x2f039c['getRange']();for(const _0x38e028 of Array[_0x5b77('0x1c')](_0x1e1a0a[_0x5b77('0x34')]()))_0x38e028['is'](_0x5b77('0x3d'))?(_0x5b4186&&_0x62634e&&(_0x5b4186+='\x20',_0x62634e=!0x1),_0x5b4186+=_0x38e028['data']):_0x62634e=!0x0;_0x62634e=!0x0;}return _0x5b4186[_0x5b77('0x26')](0x0,0x96);}[_0x5b77('0x30')](_0x2f4a5c,_0x225c72){const _0x25cbe2=this[_0x5b77('0x2c')],_0x308960=_0x25cbe2[_0x5b77('0x42')]['get'](_0x422b86);let _0x4f6874=_0x308960[_0x5b77('0x9')](_0x225c72);if(this['_attachedThreads'][_0x5b77('0x69')](_0x225c72)){const _0x3ea6af=this[_0x5b77('0x53')][_0x5b77('0xf')](_0x225c72);return _0x3ea6af['includes'](_0x2f4a5c)||_0x3ea6af[_0x5b77('0x27')](_0x2f4a5c),_0x4f6874;}this[_0x5b77('0x53')][_0x5b77('0x5a')](_0x225c72,[_0x2f4a5c]);const _0x5721a6=_0x25cbe2[_0x5b77('0x55')][_0x5b77('0xf')](_0x5b77('0x1e')),_0x56dd5d=_0x25cbe2['plugins']['get'](_0x13dc1b);if(_0x4f6874&&_0x4f6874[_0x5b77('0x10')])return _0x4f6874['reopen'](),_0x4f6874;return!this[_0x5b77('0x4')](_0x225c72)[0x0][_0x5b77('0x33')]?_0x25cbe2['editing'][_0x5b77('0x3c')]['once']('render',()=>{const _0x4767c6=_0x25cbe2[_0x5b77('0x42')][_0x5b77('0xf')](_0x7fabf6);_0x4f6874=_0x308960[_0x5b77('0x39')]({'channelId':_0x5721a6,'threadId':_0x225c72,'target':()=>this['_getTargetForId'](_0x225c72),'context':{'type':_0x5b77('0x3b'),'value':this[_0x5b77('0x45')](_0x225c72)}});const _0x31eee9=_0x308960[_0x5b77('0x2a')]['get'](_0x4f6874)[_0x5b77('0x3c')],_0x190191=_0x4767c6[_0x5b77('0x68')](_0x31eee9);_0x190191&&_0x56dd5d['registerAnnotation'](_0x190191);},{'priority':_0x5b77('0x3e')}):_0x308960['fetchCommentThread']({'channelId':_0x5721a6,'threadId':_0x225c72})['then'](_0x3e2406=>{if('destroyed'!==_0x25cbe2[_0x5b77('0x60')]){if(_0x4f6874=_0x3e2406,_0x4f6874){const _0x1c980e=_0x4f6874[_0x5b77('0x5f')](()=>this['_getTargetForId'](_0x225c72));_0x56dd5d[_0x5b77('0x51')](_0x1c980e);}else{const _0x3dd765=this[_0x5b77('0x4')](_0x225c72);_0x25cbe2[_0x5b77('0x67')][_0x5b77('0x65')](_0x1cfbfb=>{for(const _0x13578b of _0x3dd765)_0x1cfbfb[_0x5b77('0xb')](_0x13578b);});}}}),_0x4f6874;}[_0x5b77('0xd')](_0x5bf498,_0x4c7c0d){const _0xa31491=this[_0x5b77('0x30')](_0x5bf498,_0x4c7c0d);_0xa31491&&!_0xa31491['context']&&_0xa31491[_0x5b77('0x52')]({'type':'text','value':this[_0x5b77('0x45')](_0x4c7c0d)});}}function Z(_0x2fccb8,_0x2a1191){return _0x2a1191?_0x2fccb8+':'+_0x2a1191:_0x2fccb8;}function tt(_0x246de0){const _0x442ab5=_0x246de0['split'](':');return{'group':_0x442ab5[0x0],'id':_0x442ab5[0x1],'part':_0x442ab5[0x2]};}function ot(_0x4e5a60,_0x4454b3){const _0x1002b1=_0x4454b3[_0x5b77('0x57')],_0x9d0740=_0x4454b3[_0x5b77('0x14')](_0x4e5a60[_0x5b77('0x47')]);for(const _0x1a59bc of _0x4e5a60[_0x5b77('0x5d')]()){const {type:_0x5463a0,item:_0x580499,nextPosition:_0x34eef4}=_0x1a59bc;if(_0x5b77('0x3b')===_0x5463a0||_0x1002b1[_0x5b77('0x18')](_0x580499)){const _0x4bcf9f=_0x4454b3[_0x5b77('0x16')](_0x580499);_0x9d0740[_0x5b77('0x2d')]&&(_0x9d0740['start']=_0x4bcf9f),_0x9d0740[_0x5b77('0x4b')]=_0x34eef4;}}return _0x9d0740[_0x5b77('0x2d')]?null:_0x9d0740;}
23
+ const _0x3874=['filter','editor','consumable','map','set','context','isCollapsed','ck-comment-marker--active','markerToData','then','getChangedMarkers','createElement','collaboration.channelId','hasMarkerForId','reopen','removeMarker:','hasContent','init','upcast','item','$graveyard','schema','focus','text','pluginName','activeMarker','plugins','$textProxy','editingDowncast','change:activeMarker','affectsData','_threads','registerAnnotation','getAllMarkersForId','end','data','length','registerPostFixer','change:isThreadsLoadingPaused','state','switchReadOnly','listenTo','getRange','$marker','markerName','createPositionBefore','getWalker','getCommentThread','attachTo','hasDomSelection','ignoreResolvedComments','_getTargetForId','_getTextContext','_threadToController','low','_attachMarkerToThread','enqueueChange','start','delete','comment:','comment','_hasTargetInContent','includes','change:isReadOnly','requires','addComment','conversion','has','scrollToThreadMarker','hasCommentThread','model','updateMarker','_initializeMarkerConverters','_reconvertMarkers','addMarker:','for','push','commands','resolve','isResolved','fetchCommentThread','isLocal','_attachedThreads','isObject','getAttribute','_detachCommentThread','config','document','dataDowncast','once','change','split','root','removeMarker','get','getCommentThreads','reconvertMarker','reopenCommentThread','newRange','addCommentThread','createRange','openNewCommentThread','view','size','destroy','render','markers','differ','getByInnerView','high','getItems','add','destroyed','_handleMarkerAddAndRemove','rootName','ready','consume','_handleThreadMarker','editing'];(function(_0x1908f2,_0x3874cb){const _0x4cb106=function(_0x20c7d3){while(--_0x20c7d3){_0x1908f2['push'](_0x1908f2['shift']());}};_0x4cb106(++_0x3874cb);}(_0x3874,0xcd));const _0x4cb1=function(_0x1908f2,_0x3874cb){_0x1908f2=_0x1908f2-0x0;let _0x4cb106=_0x3874[_0x1908f2];return _0x4cb106;};import{Plugin as _0x4420cc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x30fd16}from'ckeditor5/src/utils';import _0xb966a4 from'./commentsrepository';import _0x4269ca from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x487a33}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a9151 from'../annotations/editorannotations';import _0x366d26 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x38fc9c from'./integrations/importword';import _0x3d2997 from'../annotations/annotations';export default class r extends _0x4420cc{static get[_0x4cb1('0x61')](){return[_0xb966a4,_0x5a9151,_0x366d26,_0x38fc9c];}static get[_0x4cb1('0x39')](){return'CommentsEditing';}constructor(_0x25d5ec){super(_0x25d5ec),this[_0x4cb1('0x25')]('isThreadsLoadingPaused',!0x0),_0x25d5ec[_0x4cb1('0x44')][_0x4cb1('0x3')](_0x4cb1('0x1d'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x4cb1('0x25')]('activeMarker',null),this['on'](_0x4cb1('0x3e'),(_0x26ee77,_0x2a0bcf,_0x5c27ff,_0x301e90)=>{const _0x4a52d1=_0x5c27ff?tt(_0x5c27ff)['id']:null;if(_0x25d5ec[_0x4cb1('0x67')]['change'](()=>{if(_0x4a52d1){const _0x298230=this[_0x4cb1('0x42')](_0x4a52d1);for(const _0x2f6d8a of _0x298230)_0x25d5ec[_0x4cb1('0x20')][_0x4cb1('0xa')](_0x2f6d8a);}if(_0x301e90){const {id:_0xa7f974}=tt(_0x301e90),_0x118a79=this['getAllMarkersForId'](_0xa7f974);for(const _0x5462b0 of _0x118a79)_0x25d5ec[_0x4cb1('0x20')]['reconvertMarker'](_0x5462b0);}}),_0x4a52d1){const _0x3d28ba=_0x25d5ec['plugins'][_0x4cb1('0x8')](_0xb966a4)['getCommentThread'](_0x4a52d1);_0x3d28ba&&_0x3d28ba[_0x4cb1('0x70')]&&this[_0x4cb1('0x65')](_0x4a52d1);}}),this[_0x4cb1('0x73')]=new Map();}[_0x4cb1('0x32')](){const _0x100379=this[_0x4cb1('0x22')],_0x3b055f=_0x100379[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4),_0x2de7fe=_0x100379[_0x4cb1('0x0')][_0x4cb1('0x8')](_0x4cb1('0x2d'));_0x100379[_0x4cb1('0x6e')][_0x4cb1('0x19')](_0x4cb1('0xd'),new _0x4269ca(_0x100379)),this['listenTo'](_0x100379,_0x4cb1('0x60'),(_0x1742f6,_0x2b1da4,_0x46a07b)=>{_0x3b055f[_0x4cb1('0x49')](_0x46a07b,_0x100379[_0x4cb1('0x0')][_0x4cb1('0x8')](_0x4cb1('0x2d')));}),this[_0x4cb1('0x4a')](_0x3b055f,Z('addCommentThread',_0x2de7fe),(_0x12094d,{threadId:_0x5595d8})=>{const _0x321495=_0x100379[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0x5a9151),_0x2c8968=this[_0x4cb1('0x22')][_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4)['getCommentThread'](_0x5595d8);if(_0x2c8968&&_0x2c8968[_0x4cb1('0x70')]&&!this[_0x4cb1('0x73')][_0x4cb1('0x64')](_0x5595d8)){const _0x21cdf0=_0x2c8968['attachTo'](()=>this[_0x4cb1('0x54')](_0x2c8968['id']));_0x321495[_0x4cb1('0x41')](_0x21cdf0),this[_0x4cb1('0x73')][_0x4cb1('0x25')](_0x5595d8,[]),0x0===this[_0x4cb1('0x42')](_0x5595d8)['length']&&(_0x2c8968[_0x4cb1('0x5e')]=!0x1);}}),this[_0x4cb1('0x4a')](_0x3b055f,Z('removeCommentThread',_0x2de7fe),(_0xc16180,{threadId:_0x13a550})=>{_0x100379['model'][_0x4cb1('0x59')]({'isUndoable':!0x1},_0x1ca19a=>{const _0x70457f=this[_0x4cb1('0x42')](_0x13a550);this[_0x4cb1('0x73')][_0x4cb1('0x5b')](_0x13a550);for(const _0x34728f of _0x70457f)_0x1ca19a[_0x4cb1('0x7')](_0x34728f);});},{'priority':_0x4cb1('0x17')}),this['listenTo'](_0x3b055f,Z('resolveCommentThread',_0x2de7fe),(_0x126a40,{threadId:_0x4b2cc5})=>{this[_0x4cb1('0x6a')](_0x4b2cc5),this[_0x4cb1('0x22')][_0x4cb1('0x20')][_0x4cb1('0x10')][_0x4cb1('0x52')]&&this[_0x4cb1('0x22')]['editing']['view'][_0x4cb1('0x37')]();},{'priority':'low'}),this[_0x4cb1('0x4a')](_0x3b055f,Z(_0x4cb1('0xb'),_0x2de7fe),(_0x190ad1,{threadId:_0x3ac937})=>{this['_reconvertMarkers'](_0x3ac937);},{'priority':_0x4cb1('0x57')}),this['listenTo'](_0x3b055f,Z(_0x4cb1('0x62'),_0x2de7fe),(_0x3364aa,{threadId:_0x99b22a,isFromAdapter:_0x341b55})=>{const _0x49f722=this[_0x4cb1('0x42')](_0x99b22a);if(_0x341b55||0x0==_0x49f722[_0x4cb1('0x45')]||!_0x3b055f[_0x4cb1('0x66')](_0x99b22a))return;0x1===_0x3b055f[_0x4cb1('0x50')](_0x99b22a)[_0x4cb1('0x45')]&&_0x100379[_0x4cb1('0x67')][_0x4cb1('0x59')]({'isUndoable':!0x1},_0x3a1182=>{for(const _0x300512 of _0x49f722)_0x3a1182[_0x4cb1('0x68')](_0x300512,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x4cb1('0x69')](),this[_0x4cb1('0x1b')]();}['destroy'](){const _0x542320=this[_0x4cb1('0x22')][_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4),_0x160db8=this[_0x4cb1('0x22')][_0x4cb1('0x0')][_0x4cb1('0x8')]('collaboration.channelId');for(const _0x1943e5 of _0x542320[_0x4cb1('0x9')]({'channelId':_0x160db8}))_0x542320[_0x4cb1('0x76')](_0x1943e5['id']),_0x542320[_0x4cb1('0x40')][_0x4cb1('0x5b')](_0x1943e5['id']);super[_0x4cb1('0x12')]();}[_0x4cb1('0x2e')](_0x34784f){return this['getAllMarkersForId'](_0x34784f)['length']>0x0;}[_0x4cb1('0x42')](_0x4291fd){return(this[_0x4cb1('0x73')][_0x4cb1('0x8')](_0x4291fd)||[])[_0x4cb1('0x24')](_0x3b5767=>this[_0x4cb1('0x22')][_0x4cb1('0x67')][_0x4cb1('0x14')][_0x4cb1('0x8')](_0x3b5767))[_0x4cb1('0x21')](_0xf15b0a=>_0xf15b0a);}['scrollToThreadMarker'](_0x5afe10){const _0x41f4e2=this['_getTargetForId'](_0x5afe10);_0x41f4e2&&setTimeout(()=>{this[_0x4cb1('0x3a')]&&tt(this[_0x4cb1('0x3a')])['id']===_0x5afe10&&_0x30fd16({'target':_0x41f4e2[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x4cb1('0x6a')](_0x2b1f53){this[_0x4cb1('0x22')]['model']['change'](()=>{for(const _0x19821c of this[_0x4cb1('0x42')](_0x2b1f53))this[_0x4cb1('0x22')][_0x4cb1('0x20')][_0x4cb1('0xa')](_0x19821c);});}[_0x4cb1('0x69')](){const _0xdb29f2=this[_0x4cb1('0x22')];_0xdb29f2['conversion'][_0x4cb1('0x6c')](_0x4cb1('0x3d'))['markerToHighlight']({'model':_0x4cb1('0x5d'),'view':(_0x376e37,_0x13808a)=>{const {id:_0x3bf795}=tt(_0x376e37[_0x4cb1('0x4d')]),_0x350702=_0xdb29f2[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4)[_0x4cb1('0x50')](_0x3bf795),_0x2ab25e=this[_0x4cb1('0x3a')]&&tt(this[_0x4cb1('0x3a')])['id']===_0x3bf795;if(_0x350702&&_0x350702[_0x4cb1('0x70')]&&!_0x2ab25e&&_0x376e37[_0x4cb1('0x34')])return _0x13808a['consumable'][_0x4cb1('0x1e')](_0x376e37[_0x4cb1('0x34')],_0x4cb1('0x6b')+_0x376e37['markerName']),_0x13808a[_0x4cb1('0x23')][_0x4cb1('0x1e')](_0x376e37['item'],_0x4cb1('0x30')+_0x376e37[_0x4cb1('0x4d')]),{'classes':[]};const _0x3045df=['ck-comment-marker'];return _0x2ab25e&&_0x3045df[_0x4cb1('0x6d')](_0x4cb1('0x28')),{'classes':_0x3045df,'attributes':{'data-comment':_0x3bf795}};}}),_0xdb29f2['conversion']['for'](_0x4cb1('0x2'))[_0x4cb1('0x29')]({'model':'comment','view':(_0x3d768c,{options:_0x100a6e})=>{const _0x3eb854=_0xdb29f2[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4),_0x5b798c=_0xdb29f2[_0x4cb1('0x67')][_0x4cb1('0x14')][_0x4cb1('0x8')](_0x3d768c),{id:_0x4ceb02,part:_0x35869c}=tt(_0x3d768c),_0x44d6d2=_0x3eb854['getCommentThread'](_0x4ceb02);return _0x5b798c&&!_0x5b798c[_0x4cb1('0x3f')]||_0x44d6d2&&_0x44d6d2['isResolved']&&_0x100a6e[_0x4cb1('0x53')]?null:{'group':_0x4cb1('0x5d'),'name':_0x35869c?_0x4ceb02+':'+_0x35869c:_0x4ceb02};}}),_0xdb29f2[_0x4cb1('0x63')][_0x4cb1('0x6c')]('upcast')['elementToElement']({'view':{'name':_0x4cb1('0x5d'),'attributes':{'id':/^\w/}},'model':(_0x212c35,{writer:_0x91bd2e})=>_0x91bd2e[_0x4cb1('0x2c')](_0x4cb1('0x4c'),{'data-name':_0x4cb1('0x5c')+_0x212c35[_0x4cb1('0x75')]('id')})}),_0xdb29f2[_0x4cb1('0x63')][_0x4cb1('0x6c')](_0x4cb1('0x33'))['dataToMarker']({'view':_0x4cb1('0x5d')});}['_handleMarkerAddAndRemove'](){const _0x3868bd=this[_0x4cb1('0x22')],_0x6c569d=_0x3868bd[_0x4cb1('0x3b')]['get'](_0xb966a4),_0xa99be8=new Set();_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x1')][_0x4cb1('0x46')](_0x577521=>{let _0x58cb9b=!0x1;for(const {name:_0xf33bbe,data:_0x3ae008}of _0x3868bd['model'][_0x4cb1('0x1')]['differ'][_0x4cb1('0x2b')]()){const {group:_0x13264c,id:_0x114a0e}=tt(_0xf33bbe);let _0x2f39d5=_0x3ae008['newRange'];if(_0x4cb1('0x5d')!==_0x13264c||!_0x2f39d5)continue;const _0x48d146=_0x4cb1('0x35')===_0x2f39d5[_0x4cb1('0x6')][_0x4cb1('0x1c')];_0x48d146||(_0x2f39d5=ot(_0x2f39d5,_0x3868bd[_0x4cb1('0x67')]),!_0x2f39d5||!_0x3ae008[_0x4cb1('0xc')]||_0x2f39d5['isEqual'](_0x3ae008['newRange']))?!_0x2f39d5||!_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x31')](_0x2f39d5)||this['_attachedThreads']['has'](_0x114a0e)&&_0x48d146?(_0x577521['removeMarker'](_0xf33bbe),_0x58cb9b=!0x0):_0x48d146||(this['isThreadsLoadingPaused']?_0xa99be8[_0x4cb1('0x19')](_0xf33bbe):this[_0x4cb1('0x1f')](_0xf33bbe,_0x114a0e)):(_0x577521[_0x4cb1('0x68')](_0xf33bbe,{'range':_0x2f39d5}),_0x58cb9b=!0x0);}return _0x58cb9b;}),this['on'](_0x4cb1('0x47'),(_0x38a46f,_0x15fd57,_0xca1943)=>{if(!_0xca1943&&_0xa99be8[_0x4cb1('0x11')])for(const _0x2d85cd of _0xa99be8){const {id:_0x3ee91d}=tt(_0x2d85cd);_0xa99be8[_0x4cb1('0x5b')](_0x3ee91d),_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x14')][_0x4cb1('0x8')](_0x2d85cd)&&this[_0x4cb1('0x1f')](_0x2d85cd,_0x3ee91d);}}),this['listenTo'](_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x1')],_0x4cb1('0x4'),(_0x30281e,_0x265f00)=>{for(const {name:_0x631582,data:{newRange:_0x36fa20}}of _0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x1')][_0x4cb1('0x15')][_0x4cb1('0x2b')]()){const {group:_0x43f5aa,id:_0x18eb5f}=tt(_0x631582);if(_0x4cb1('0x5d')!==_0x43f5aa)continue;const _0x271b3d=_0x6c569d['getCommentThread'](_0x18eb5f),_0x1605f6=this[_0x4cb1('0x2e')](_0x18eb5f);_0x271b3d&&(_0x271b3d[_0x4cb1('0x5e')]||_0x3868bd[_0x4cb1('0x20')]['view'][_0x4cb1('0x3')](_0x4cb1('0x13'),()=>{const _0x4823ad=_0x3868bd[_0x4cb1('0x3b')]['get'](_0x3d2997),_0x557abb=_0x6c569d[_0x4cb1('0x56')]['get'](_0x271b3d)[_0x4cb1('0x10')];_0x4823ad[_0x4cb1('0x16')](_0x557abb)['refreshVisibility']();},{'priority':_0x4cb1('0x57')}),_0x271b3d['_hasTargetInContent']=_0x1605f6||!!_0x36fa20),!_0x36fa20&&_0x265f00[_0x4cb1('0x72')]&&(_0xa99be8['delete'](_0x18eb5f),_0x271b3d&&!_0x271b3d['isResolved']&&!_0x1605f6&&this[_0x4cb1('0x73')]['has'](_0x18eb5f)&&(this[_0x4cb1('0x73')]['delete'](_0x18eb5f),_0x271b3d[_0x4cb1('0x6f')]()));}});}[_0x4cb1('0x54')](_0x4e44e5){const _0x71cc15=this[_0x4cb1('0x22')],_0x217220=this['getAllMarkersForId'](_0x4e44e5);return _0x487a33(_0x71cc15['editing'],_0x217220);}[_0x4cb1('0x55')](_0x394e83){const _0x474577=this[_0x4cb1('0x42')](_0x394e83);let _0x58ab5f='',_0x4d7e2b=!0x1;for(const _0x1868c2 of _0x474577){const _0x3517e9=_0x1868c2[_0x4cb1('0x4b')]();for(const _0x3d6093 of Array['from'](_0x3517e9[_0x4cb1('0x18')]()))_0x3d6093['is'](_0x4cb1('0x3c'))?(_0x58ab5f&&_0x4d7e2b&&(_0x58ab5f+='\x20',_0x4d7e2b=!0x1),_0x58ab5f+=_0x3d6093[_0x4cb1('0x44')]):_0x4d7e2b=!0x0;_0x4d7e2b=!0x0;}return _0x58ab5f['substring'](0x0,0x96);}[_0x4cb1('0x58')](_0x5e3bad,_0x4e9fc0){const _0x3e6fcd=this[_0x4cb1('0x22')],_0x29b03c=_0x3e6fcd[_0x4cb1('0x3b')]['get'](_0xb966a4);let _0xf04ff4=_0x29b03c[_0x4cb1('0x50')](_0x4e9fc0);if(this['_attachedThreads'][_0x4cb1('0x64')](_0x4e9fc0)){const _0x40f546=this[_0x4cb1('0x73')][_0x4cb1('0x8')](_0x4e9fc0);return _0x40f546[_0x4cb1('0x5f')](_0x5e3bad)||_0x40f546['push'](_0x5e3bad),_0xf04ff4;}this[_0x4cb1('0x73')][_0x4cb1('0x25')](_0x4e9fc0,[_0x5e3bad]);const _0x4171aa=_0x3e6fcd['config']['get'](_0x4cb1('0x2d')),_0xd011ca=_0x3e6fcd[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0x5a9151);if(_0xf04ff4&&_0xf04ff4[_0x4cb1('0x70')])return _0xf04ff4[_0x4cb1('0x2f')](),_0xf04ff4;return!this[_0x4cb1('0x42')](_0x4e9fc0)[0x0]['managedUsingOperations']?_0x3e6fcd['editing'][_0x4cb1('0x10')][_0x4cb1('0x3')]('render',()=>{const _0x43cb69=_0x3e6fcd['plugins'][_0x4cb1('0x8')](_0x3d2997);_0xf04ff4=_0x29b03c[_0x4cb1('0xf')]({'channelId':_0x4171aa,'threadId':_0x4e9fc0,'target':()=>this[_0x4cb1('0x54')](_0x4e9fc0),'context':{'type':_0x4cb1('0x38'),'value':this[_0x4cb1('0x55')](_0x4e9fc0)}});const _0x40c356=_0x29b03c[_0x4cb1('0x56')][_0x4cb1('0x8')](_0xf04ff4)['view'],_0x199cf9=_0x43cb69[_0x4cb1('0x16')](_0x40c356);_0x199cf9&&_0xd011ca[_0x4cb1('0x41')](_0x199cf9);},{'priority':_0x4cb1('0x57')}):_0x29b03c[_0x4cb1('0x71')]({'channelId':_0x4171aa,'threadId':_0x4e9fc0})[_0x4cb1('0x2a')](_0x2e60d6=>{if(_0x4cb1('0x1a')!==_0x3e6fcd[_0x4cb1('0x48')]){if(_0xf04ff4=_0x2e60d6,_0xf04ff4){const _0x318287=_0xf04ff4[_0x4cb1('0x51')](()=>this['_getTargetForId'](_0x4e9fc0));_0xd011ca[_0x4cb1('0x41')](_0x318287);}else{const _0x2e7eff=this[_0x4cb1('0x42')](_0x4e9fc0);_0x3e6fcd[_0x4cb1('0x67')]['change'](_0x455611=>{for(const _0x344ffd of _0x2e7eff)_0x455611[_0x4cb1('0x7')](_0x344ffd);});}}}),_0xf04ff4;}['_handleThreadMarker'](_0xd39dbe,_0x2c42a4){const _0x57dab6=this[_0x4cb1('0x58')](_0xd39dbe,_0x2c42a4);_0x57dab6&&!_0x57dab6[_0x4cb1('0x26')]&&_0x57dab6['setContext']({'type':_0x4cb1('0x38'),'value':this['_getTextContext'](_0x2c42a4)});}}function Z(_0x28bf95,_0x33c710){return _0x33c710?_0x28bf95+':'+_0x33c710:_0x28bf95;}function tt(_0x1f783a){const _0x30da5e=_0x1f783a[_0x4cb1('0x5')](':');return{'group':_0x30da5e[0x0],'id':_0x30da5e[0x1],'part':_0x30da5e[0x2]};}function ot(_0x47c213,_0x113ac9){const _0x851503=_0x113ac9[_0x4cb1('0x36')],_0x33a870=_0x113ac9[_0x4cb1('0xe')](_0x47c213[_0x4cb1('0x5a')]);for(const _0xe05622 of _0x47c213[_0x4cb1('0x4f')]()){const {type:_0x4e7dec,item:_0x88da54,nextPosition:_0x369c14}=_0xe05622;if(_0x4cb1('0x38')===_0x4e7dec||_0x851503[_0x4cb1('0x74')](_0x88da54)){const _0x43761e=_0x113ac9[_0x4cb1('0x4e')](_0x88da54);_0x33a870[_0x4cb1('0x27')]&&(_0x33a870[_0x4cb1('0x5a')]=_0x43761e),_0x33a870[_0x4cb1('0x43')]=_0x369c14;}}return _0x33a870[_0x4cb1('0x27')]?null:_0x33a870;}