@ckeditor/ckeditor5-comments 38.0.0-rc.0 → 38.0.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 _0x11c7=['mainView','clear','focus','focusTracker','isDirty','bindTemplate','listenTo','destroy','targetRect','_mutationObserver','length','type','element','keystrokes','fire','content','div','detach','ck-annotation-wrapper','_updateHeight','add','setTemplate','createCollection','ck-rounded-corners','clientHeight','height','render','set','attach'];(function(_0x31340a,_0x11c7a5){const _0x1c31c4=function(_0x796af3){while(--_0x796af3){_0x31340a['push'](_0x31340a['shift']());}};_0x1c31c4(++_0x11c7a5);}(_0x11c7,0x132));const _0x1c31=function(_0x31340a,_0x11c7a5){_0x31340a=_0x31340a-0x0;let _0x1c31c4=_0x11c7[_0x31340a];return _0x1c31c4;};import{View as _0x3adafb}from'ckeditor5/src/ui';import{FocusTracker as _0x21becf,KeystrokeHandler as _0x57ec8,uid as _0x535337}from'ckeditor5/src/utils';import _0x11d613 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3adafb{constructor(_0x283bcb,_0x4d1019){super(_0x283bcb),this['id']=_0x535337(),this[_0x1c31('0x10')]=new _0x21becf(),this[_0x1c31('0x1a')]=new _0x57ec8(),this[_0x1c31('0x1a')][_0x1c31('0xb')]('Esc',(_0x5704f0,_0x29b3a2)=>this[_0x1c31('0x1b')]('Esc',_0x29b3a2)),this[_0x1c31('0xb')](_0x1c31('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1c31('0x9'),0x0),this[_0x1c31('0xb')]('isActive',!0x1),this[_0x1c31('0xb')](_0x1c31('0x11'),!0x1),this[_0x1c31('0xb')](_0x1c31('0x17'),0x0),this[_0x1c31('0xb')](_0x1c31('0x18'),''),this[_0x1c31('0x16')]=_0x11d613(()=>this[_0x1c31('0x3')]()),this[_0x1c31('0x1c')]=this[_0x1c31('0x6')](),this[_0x1c31('0x1c')][_0x1c31('0x4')](_0x4d1019),this[_0x1c31('0xd')]=_0x4d1019;const _0x515b45=this[_0x1c31('0x12')];this[_0x1c31('0x5')]({'tag':_0x1c31('0x0'),'attributes':{'class':['ck',_0x1c31('0x2'),_0x1c31('0x7'),_0x515b45['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x1c31('0xa')](){super['render'](),this['focusTracker'][_0x1c31('0x4')](this['element']),this[_0x1c31('0x1a')][_0x1c31('0x13')](this['element']),this[_0x1c31('0x16')][_0x1c31('0xc')](this['element']);}[_0x1c31('0x14')](){this[_0x1c31('0x1c')][_0x1c31('0xe')](),this[_0x1c31('0x1a')]['destroy'](),this[_0x1c31('0x10')]['destroy'](),this[_0x1c31('0x16')][_0x1c31('0x1')](),super['destroy']();}[_0x1c31('0xf')](){this[_0x1c31('0x19')][_0x1c31('0xf')]();}[_0x1c31('0x3')](){const _0x34b286=this['element'][_0x1c31('0x8')];_0x34b286&&(this['height']=_0x34b286);}}
23
+ const _0xfe96=['isActive','div','keystrokes','focusTracker','targetRect','length','focus','isDirty','bindTemplate','content','destroy','type','ck-rounded-corners','listenTo','attach','Esc','setTemplate','mainView','render','element','_updateHeight','height','ck-annotation-wrapper--active','add','_mutationObserver','set'];(function(_0x2263c5,_0xfe9610){const _0x2880f1=function(_0x11f82c){while(--_0x11f82c){_0x2263c5['push'](_0x2263c5['shift']());}};_0x2880f1(++_0xfe9610);}(_0xfe96,0xf4));const _0x2880=function(_0x2263c5,_0xfe9610){_0x2263c5=_0x2263c5-0x0;let _0x2880f1=_0xfe96[_0x2263c5];return _0x2880f1;};import{View as _0x408ccf}from'ckeditor5/src/ui';import{FocusTracker as _0x176091,KeystrokeHandler as _0x5b5afc,uid as _0x2e18a5}from'ckeditor5/src/utils';import _0x312ce9 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x408ccf{constructor(_0x23bdba,_0x253500){super(_0x23bdba),this['id']=_0x2e18a5(),this[_0x2880('0x13')]=new _0x176091(),this['keystrokes']=new _0x5b5afc(),this['keystrokes'][_0x2880('0xf')](_0x2880('0x5'),(_0x5ae31a,_0x1b589c)=>this['fire']('Esc',_0x1b589c)),this['set'](_0x2880('0x14'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2880('0xb'),0x0),this[_0x2880('0xf')](_0x2880('0x10'),!0x1),this[_0x2880('0xf')](_0x2880('0x17'),!0x1),this[_0x2880('0xf')](_0x2880('0x15'),0x0),this[_0x2880('0xf')](_0x2880('0x1'),''),this[_0x2880('0xe')]=_0x312ce9(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this[_0x2880('0x19')][_0x2880('0xd')](_0x253500),this[_0x2880('0x7')]=_0x253500;const _0x64b838=this[_0x2880('0x18')];this[_0x2880('0x6')]({'tag':_0x2880('0x11'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x2880('0x2'),_0x64b838['if'](_0x2880('0x10'),_0x2880('0xc'))],'tabindex':-0x1},'children':this[_0x2880('0x19')]});}[_0x2880('0x8')](){super[_0x2880('0x8')](),this[_0x2880('0x13')][_0x2880('0xd')](this['element']),this[_0x2880('0x12')][_0x2880('0x3')](this[_0x2880('0x9')]),this['_mutationObserver'][_0x2880('0x4')](this['element']);}['destroy'](){this[_0x2880('0x19')]['clear'](),this['keystrokes']['destroy'](),this[_0x2880('0x13')][_0x2880('0x0')](),this['_mutationObserver']['detach'](),super[_0x2880('0x0')]();}[_0x2880('0x16')](){this['element'][_0x2880('0x16')]();}[_0x2880('0xa')](){const _0x25c240=this[_0x2880('0x9')]['clientHeight'];_0x25c240&&(this[_0x2880('0xb')]=_0x25c240);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xed55=['ck-sidebar-item--no-animation','set','height','top','destroy','content','div','updateHeight','_mutationObserver','_targetTop','detach','bottom','element','attach','bindTemplate','bind','isAnimationDisabled','render'];(function(_0x330cd2,_0xed55c8){const _0x296ddc=function(_0x59e0f0){while(--_0x59e0f0){_0x330cd2['push'](_0x330cd2['shift']());}};_0x296ddc(++_0xed55c8);}(_0xed55,0x13a));const _0x296d=function(_0x330cd2,_0xed55c8){_0x330cd2=_0x330cd2-0x0;let _0x296ddc=_0xed55[_0x330cd2];return _0x296ddc;};import{View as _0xe51d84}from'ckeditor5/src/ui';import{toUnit as _0x3ac519}from'ckeditor5/src/utils';import _0x14c931 from'../../utils/createmutationobserver';const At=_0x3ac519('px');export default class C extends _0xe51d84{constructor(_0x3c830b){super(_0x3c830b),this['set'](_0x296d('0xd'),0x0),this[_0x296d('0xb')](_0x296d('0xc'),0x0),this[_0x296d('0x7')](_0x296d('0x3'))['to'](this,'top',this,_0x296d('0xc'),(_0x1ed3de,_0xd09928)=>_0x1ed3de+_0xd09928),this[_0x296d('0xb')]('isAnimationDisabled',!0x1),this[_0x296d('0x0')]=_0x14c931(()=>this[_0x296d('0x11')]()),this[_0x296d('0x1')]=null,this[_0x296d('0xf')]=this['createCollection']();const _0x350ca2=this[_0x296d('0x6')];this['setTemplate']({'tag':_0x296d('0x10'),'attributes':{'class':['ck-sidebar-item',_0x350ca2['to'](_0x296d('0x8'),_0x1c2367=>_0x1c2367?_0x296d('0xa'):'')],'style':{'top':_0x350ca2['to'](_0x296d('0xd'),_0x1bb168=>At(_0x1bb168))}},'children':this['content']});}[_0x296d('0x9')](){super[_0x296d('0x9')](),this[_0x296d('0x0')][_0x296d('0x5')](this['element']);}[_0x296d('0x11')](){const _0x3736c3=this[_0x296d('0x4')]['clientHeight'];_0x3736c3&&(this[_0x296d('0xc')]=_0x3736c3);}[_0x296d('0xe')](){this[_0x296d('0xf')]['clear'](),this[_0x296d('0x0')][_0x296d('0x2')](),super[_0x296d('0xe')]();}}
23
+ const _0x40fa=['setTemplate','content','top','ck-sidebar-item','attach','height','set','isAnimationDisabled','createCollection','bind','updateHeight','clientHeight','bindTemplate','detach','destroy','render','_targetTop','_mutationObserver','ck-sidebar-item--no-animation','bottom','clear','element'];(function(_0x1583ae,_0x40fab9){const _0x4fa6cb=function(_0x153c43){while(--_0x153c43){_0x1583ae['push'](_0x1583ae['shift']());}};_0x4fa6cb(++_0x40fab9);}(_0x40fa,0xbe));const _0x4fa6=function(_0x1583ae,_0x40fab9){_0x1583ae=_0x1583ae-0x0;let _0x4fa6cb=_0x40fa[_0x1583ae];return _0x4fa6cb;};import{View as _0x8cc94a}from'ckeditor5/src/ui';import{toUnit as _0x4d9f4a}from'ckeditor5/src/utils';import _0x9fda18 from'../../utils/createmutationobserver';const Dt=_0x4d9f4a('px');export default class C extends _0x8cc94a{constructor(_0x3cb1cc){super(_0x3cb1cc),this[_0x4fa6('0xe')](_0x4fa6('0xa'),0x0),this[_0x4fa6('0xe')]('height',0x0),this[_0x4fa6('0x11')](_0x4fa6('0x5'))['to'](this,_0x4fa6('0xa'),this,_0x4fa6('0xd'),(_0x1ef72c,_0x473730)=>_0x1ef72c+_0x473730),this['set'](_0x4fa6('0xf'),!0x1),this[_0x4fa6('0x3')]=_0x9fda18(()=>this[_0x4fa6('0x12')]()),this[_0x4fa6('0x2')]=null,this[_0x4fa6('0x9')]=this[_0x4fa6('0x10')]();const _0x580bc2=this[_0x4fa6('0x14')];this[_0x4fa6('0x8')]({'tag':'div','attributes':{'class':[_0x4fa6('0xb'),_0x580bc2['to'](_0x4fa6('0xf'),_0x5c7c55=>_0x5c7c55?_0x4fa6('0x4'):'')],'style':{'top':_0x580bc2['to'](_0x4fa6('0xa'),_0x46db13=>Dt(_0x46db13))}},'children':this[_0x4fa6('0x9')]});}['render'](){super[_0x4fa6('0x1')](),this[_0x4fa6('0x3')][_0x4fa6('0xc')](this['element']);}['updateHeight'](){const _0x2aa9cf=this[_0x4fa6('0x7')][_0x4fa6('0x13')];_0x2aa9cf&&(this[_0x4fa6('0xd')]=_0x2aa9cf);}[_0x4fa6('0x0')](){this[_0x4fa6('0x9')][_0x4fa6('0x6')](),this['_mutationObserver'][_0x4fa6('0x15')](),super[_0x4fa6('0x0')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f1a=['class','minHeight','ck-reset','list','set','setTemplate','bindTemplate','div','createCollection','number'];(function(_0x36799c,_0x1f1a58){const _0xdaa1cc=function(_0x1c1675){while(--_0x1c1675){_0x36799c['push'](_0x36799c['shift']());}};_0xdaa1cc(++_0x1f1a58);}(_0x1f1a,0x149));const _0xdaa1=function(_0x36799c,_0x1f1a58){_0x36799c=_0x36799c-0x0;let _0xdaa1cc=_0x1f1a[_0x36799c];return _0xdaa1cc;};import{View as _0x25e601}from'ckeditor5/src/ui';import{toUnit as _0x57bc44}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x57bc44('px');export default class T extends _0x25e601{constructor(_0x23121b){super(_0x23121b);const _0x9403b9=this[_0xdaa1('0x7')];this['set'](_0xdaa1('0x2'),0x0),this[_0xdaa1('0x5')]('class',''),this['list']=this[_0xdaa1('0x9')](),this[_0xdaa1('0x6')]({'tag':_0xdaa1('0x8'),'attributes':{'class':['ck','ck-sidebar',_0xdaa1('0x3'),_0x9403b9['to'](_0xdaa1('0x1'))],'style':{'minHeight':_0x9403b9['to'](_0xdaa1('0x2'),_0x43a66f=>_0xdaa1('0x0')==typeof _0x43a66f?At(_0x43a66f+0xa):null)}},'children':this[_0xdaa1('0x4')]});}}
23
+ const _0x7860=['ck-sidebar','createCollection','class','list','number','setTemplate','bindTemplate','minHeight','set','div','ck-reset'];(function(_0x44c9dc,_0x786015){const _0x1c8bd6=function(_0x2b4be6){while(--_0x2b4be6){_0x44c9dc['push'](_0x44c9dc['shift']());}};_0x1c8bd6(++_0x786015);}(_0x7860,0x185));const _0x1c8b=function(_0x44c9dc,_0x786015){_0x44c9dc=_0x44c9dc-0x0;let _0x1c8bd6=_0x7860[_0x44c9dc];return _0x1c8bd6;};import{View as _0x35687e}from'ckeditor5/src/ui';import{toUnit as _0x3c9835}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const Dt=_0x3c9835('px');export default class T extends _0x35687e{constructor(_0x2bc1e0){super(_0x2bc1e0);const _0x23795a=this[_0x1c8b('0x2')];this[_0x1c8b('0x4')](_0x1c8b('0x3'),0x0),this[_0x1c8b('0x4')](_0x1c8b('0x9'),''),this['list']=this[_0x1c8b('0x8')](),this[_0x1c8b('0x1')]({'tag':_0x1c8b('0x5'),'attributes':{'class':['ck',_0x1c8b('0x7'),_0x1c8b('0x6'),_0x23795a['to'](_0x1c8b('0x9'))],'style':{'minHeight':_0x23795a['to']('minHeight',_0x5d186c=>_0x1c8b('0x0')==typeof _0x5d186c?Dt(_0x5d186c+0xa):null)}},'children':this[_0x1c8b('0xa')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dfc=['stopListening','add','plugins','activeAnnotation','addEventListener','ready','switchTo','get','destroy','WideSidebar','listenTo','_detachFromContainer','_attachToContainer','from','container','_refreshPositioningDebounced','off','context','rearrange','setActiveAnnotation','refreshPositioning','wideSidebar','addAnnotation','resize','_integrateWithEditorAnnotations','change:container','editors','uiUpdate','stop','annotations','hasDomSelection','high','refresh','has','_activeAnnotation','widesidebar-attach-already-attached','_annotations','_destroyEditorAnnotationsIntegration','blur','remove','focus','getOrderedSelectedAnnotations','_editorAnnotations','register','updateTargetRect','detach','widesidebar-detach-not-attached','ck-sidebar--wide','set','EditorAnnotations','isAttached','set:container','attach'];(function(_0x4d5380,_0x2dfc9b){const _0x3c5fce=function(_0x3f4d46){while(--_0x3f4d46){_0x4d5380['push'](_0x4d5380['shift']());}};_0x3c5fce(++_0x2dfc9b);}(_0x2dfc,0x1a9));const _0x3c5f=function(_0x4d5380,_0x2dfc9b){_0x4d5380=_0x4d5380-0x0;let _0x3c5fce=_0x2dfc[_0x4d5380];return _0x3c5fce;};import{ContextPlugin as _0x30b123,Context as _0x21a90c}from'ckeditor5/src/core';import _0x31cab3 from'./annotationsuis';import _0x4baecd from'./sidebar';import{CKEditorError as _0x36a6fa,Collection as _0x35a59f}from'ckeditor5/src/utils';import{debounce as _0x4490b0}from'lodash-es';import _0x382b32 from'./editorannotations';export default class i extends _0x30b123{static get['requires'](){return[_0x4baecd,_0x31cab3];}static get['pluginName'](){return _0x3c5f('0x8');}constructor(_0x18ad2b){super(_0x18ad2b),this[_0x3c5f('0x31')]=!0x1,this[_0x3c5f('0x2f')](_0x3c5f('0x2'),null),this[_0x3c5f('0x1c')]=null,this[_0x3c5f('0x29')]=new _0x35a59f(),this[_0x3c5f('0xe')]=_0x4490b0(()=>{this[_0x3c5f('0x1c')][_0x3c5f('0x13')]();},0xfa,{'leading':!0x1});}['init'](){const _0x2800ff=this[_0x3c5f('0x10')]['plugins'][_0x3c5f('0x6')](_0x31cab3),_0xe9be35=this['context'][_0x3c5f('0x1')][_0x3c5f('0x6')](_0x4baecd);_0x2800ff[_0x3c5f('0x2a')]('wideSidebar',this),_0xe9be35[_0x3c5f('0xd')]&&_0x2800ff[_0x3c5f('0x5')](_0x3c5f('0x14'));}[_0x3c5f('0x12')](_0x34d4d0){if(_0x34d4d0===this['activeAnnotation'])return;const _0x40c782=this[_0x3c5f('0x10')][_0x3c5f('0x1')][_0x3c5f('0x6')](_0x4baecd);_0x40c782[_0x3c5f('0x21')]=_0x34d4d0;const _0xcef5be=this[_0x3c5f('0x2')];this['activeAnnotation']=_0x34d4d0,_0x40c782['refresh']({'blurredAnnotation':_0xcef5be,'activatedAnnotation':this[_0x3c5f('0x2')]});}[_0x3c5f('0x33')](_0x575797){this[_0x3c5f('0x1c')]=_0x575797;const _0xbfe73d=this[_0x3c5f('0x10')]['plugins'][_0x3c5f('0x6')](_0x4baecd);if(_0xbfe73d[_0x3c5f('0x23')]=_0x575797,this[_0x3c5f('0x31')])throw new _0x36a6fa(_0x3c5f('0x22'),this);this['isAttached']=!0x0,this[_0x3c5f('0x9')](_0xbfe73d,_0x3c5f('0x32'),()=>{this[_0x3c5f('0x2c')](),this[_0x3c5f('0x9')](_0xbfe73d,_0x3c5f('0x18'),_0x15f7bc=>{_0x15f7bc[_0x3c5f('0xf')](),this[_0x3c5f('0x33')](_0x575797);});}),_0xbfe73d[_0x3c5f('0xb')]({'viewClass':_0x3c5f('0x2e')});const _0x5b84fb=_0x15dd39=>{_0x15dd39[_0x3c5f('0x2b')](),_0xbfe73d[_0x3c5f('0x15')](_0x15dd39);};for(const _0x60a246 of _0x575797)_0x5b84fb(_0x60a246);this[_0x3c5f('0x9')](_0x575797,_0x3c5f('0x0'),(_0x2fa826,_0x5106f5)=>{_0x5b84fb(_0x5106f5);}),this['listenTo'](_0x575797,_0x3c5f('0x26'),(_0x2927e0,_0x116e11,_0x2bf00d)=>{_0xbfe73d[_0x3c5f('0x11')]({'removedAnnotation':_0x116e11,'previousAnnotation':_0x575797['get'](_0x2bf00d-0x1),'nextAnnotation':_0x575797['get'](_0x2bf00d+0x1)}),_0x116e11===this[_0x3c5f('0x2')]&&this[_0x3c5f('0x12')](null);},{'priority':_0x3c5f('0x1e')}),this[_0x3c5f('0x9')](_0x575797,_0x3c5f('0x27'),(_0x2bc635,_0x29a94c)=>{this[_0x3c5f('0x12')](_0x29a94c);}),this[_0x3c5f('0x9')](_0x575797,_0x3c5f('0x25'),()=>{this[_0x3c5f('0x12')](null);});const _0x4f23cd=this[_0x3c5f('0x10')]instanceof _0x21a90c?this[_0x3c5f('0x10')][_0x3c5f('0x19')]:new _0x35a59f([this['context']]);for(const _0x5f1183 of _0x4f23cd)this[_0x3c5f('0x17')](_0x5f1183);this[_0x3c5f('0x9')](_0x4f23cd,_0x3c5f('0x0'),(_0x551dff,_0x3318c1)=>{this[_0x3c5f('0x9')](_0x3318c1,_0x3c5f('0x4'),()=>{this[_0x3c5f('0x17')](_0x3318c1);});}),this[_0x3c5f('0x9')](_0x4f23cd,_0x3c5f('0x26'),(_0x2658a3,_0x45347b)=>{_0x45347b['plugins'][_0x3c5f('0x20')](_0x3c5f('0x30'))&&this['_destroyEditorAnnotationsIntegration'](_0x45347b['plugins'][_0x3c5f('0x6')](_0x3c5f('0x30')));}),window[_0x3c5f('0x3')](_0x3c5f('0x16'),this[_0x3c5f('0xe')]),this[_0x3c5f('0x1c')][_0x3c5f('0x13')]();}[_0x3c5f('0x2c')](){if(!this[_0x3c5f('0x31')])throw new _0x36a6fa(_0x3c5f('0x2d'),this);this[_0x3c5f('0x12')](null);const _0x5acd79=this[_0x3c5f('0x10')]['plugins'][_0x3c5f('0x6')](_0x4baecd);_0x5acd79[_0x3c5f('0xa')](this['annotations']),this['stopListening'](_0x5acd79),this[_0x3c5f('0x34')](this[_0x3c5f('0x1c')]),this['context']instanceof _0x21a90c&&this[_0x3c5f('0x34')](this[_0x3c5f('0x10')][_0x3c5f('0x19')]);for(const _0x1c4ad1 of Array[_0x3c5f('0xc')](this[_0x3c5f('0x29')]))this[_0x3c5f('0x24')](_0x1c4ad1);window['removeEventListener'](_0x3c5f('0x16'),this['_refreshPositioningDebounced']),this[_0x3c5f('0xe')]['cancel'](),this[_0x3c5f('0x2')]=null,this[_0x3c5f('0x31')]=!0x1,this[_0x3c5f('0x1c')]=null;}[_0x3c5f('0x7')](){this[_0x3c5f('0x31')]&&this[_0x3c5f('0x2c')]();}['_integrateWithEditorAnnotations'](_0x5774dd){const _0x132221=_0x5774dd[_0x3c5f('0x1')][_0x3c5f('0x6')](_0x382b32);if(!_0x132221)return;const _0x5018=()=>{const _0x500097=_0x132221[_0x3c5f('0x28')]({'annotations':this[_0x3c5f('0x1c')],'activeAnnotation':this[_0x3c5f('0x2')]});this['setActiveAnnotation'](_0x500097[0x0]||null);};this['listenTo'](_0x132221,_0x3c5f('0x1f'),_0x5018),this['listenTo'](_0x132221,_0x3c5f('0x25'),(_0x3234a4,{isAnnotationTracked:_0x5e9c5b})=>{this[_0x3c5f('0x2')]&&_0x5e9c5b(this['activeAnnotation'])&&this[_0x3c5f('0x12')](null);}),this[_0x3c5f('0x9')](_0x132221,_0x3c5f('0x1a'),()=>{this[_0x3c5f('0xe')]();}),this[_0x3c5f('0x9')](this['annotations'],_0x3c5f('0x25'),_0x22ceea=>{_0x132221[_0x3c5f('0x1d')]()&&(_0x5018(),_0x22ceea[_0x3c5f('0x1b')]());},{'priority':_0x3c5f('0x1e')}),this[_0x3c5f('0x29')]['add'](_0x132221);}['_destroyEditorAnnotationsIntegration'](_0x2834b5){this['stopListening'](_0x2834b5),this[_0x3c5f('0x29')][_0x3c5f('0x26')](_0x2834b5);}}
23
+ const _0x2fca=['activeAnnotation','wideSidebar','updateTargetRect','high','detach','addAnnotation','destroy','cancel','uiUpdate','blur','resize','refresh','focus','register','stop','EditorAnnotations','has','set','get','removeEventListener','from','attach','_attachToContainer','_editorAnnotations','widesidebar-attach-already-attached','refreshPositioning','isAttached','hasDomSelection','setActiveAnnotation','_refreshPositioningDebounced','_activeAnnotation','_detachFromContainer','requires','annotations','add','pluginName','_destroyEditorAnnotationsIntegration','context','off','remove','rearrange','listenTo','plugins','stopListening','init','set:container','getOrderedSelectedAnnotations','editors','change:container','_integrateWithEditorAnnotations'];(function(_0x46c901,_0x2fcaaf){const _0x5944e1=function(_0x1c272b){while(--_0x1c272b){_0x46c901['push'](_0x46c901['shift']());}};_0x5944e1(++_0x2fcaaf);}(_0x2fca,0x18d));const _0x5944=function(_0x46c901,_0x2fcaaf){_0x46c901=_0x46c901-0x0;let _0x5944e1=_0x2fca[_0x46c901];return _0x5944e1;};import{ContextPlugin as _0x3bdf40,Context as _0x33d379}from'ckeditor5/src/core';import _0x522aa9 from'./annotationsuis';import _0x1e3025 from'./sidebar';import{CKEditorError as _0x503fa5,Collection as _0x57ad8c}from'ckeditor5/src/utils';import{debounce as _0x21c0c2}from'lodash-es';import _0x3b544d from'./editorannotations';export default class i extends _0x3bdf40{static get[_0x5944('0x23')](){return[_0x1e3025,_0x522aa9];}static get[_0x5944('0x26')](){return'WideSidebar';}constructor(_0x3de835){super(_0x3de835),this[_0x5944('0x1d')]=!0x1,this[_0x5944('0x14')](_0x5944('0x3'),null),this[_0x5944('0x24')]=null,this[_0x5944('0x1a')]=new _0x57ad8c(),this['_refreshPositioningDebounced']=_0x21c0c2(()=>{this[_0x5944('0x24')][_0x5944('0x1c')]();},0xfa,{'leading':!0x1});}[_0x5944('0x2f')](){const _0x58f6af=this[_0x5944('0x28')][_0x5944('0x2d')][_0x5944('0x15')](_0x522aa9),_0x30fb20=this[_0x5944('0x28')][_0x5944('0x2d')][_0x5944('0x15')](_0x1e3025);_0x58f6af[_0x5944('0x10')](_0x5944('0x4'),this),_0x30fb20['container']&&_0x58f6af['switchTo'](_0x5944('0x4'));}[_0x5944('0x1f')](_0x399e08){if(_0x399e08===this[_0x5944('0x3')])return;const _0x1a459f=this[_0x5944('0x28')]['plugins'][_0x5944('0x15')](_0x1e3025);_0x1a459f[_0x5944('0x21')]=_0x399e08;const _0x59fd37=this['activeAnnotation'];this['activeAnnotation']=_0x399e08,_0x1a459f[_0x5944('0xe')]({'blurredAnnotation':_0x59fd37,'activatedAnnotation':this[_0x5944('0x3')]});}[_0x5944('0x18')](_0x1d41cd){this[_0x5944('0x24')]=_0x1d41cd;const _0x1f978a=this[_0x5944('0x28')][_0x5944('0x2d')][_0x5944('0x15')](_0x1e3025);if(_0x1f978a['_annotations']=_0x1d41cd,this['isAttached'])throw new _0x503fa5(_0x5944('0x1b'),this);this[_0x5944('0x1d')]=!0x0,this[_0x5944('0x2c')](_0x1f978a,_0x5944('0x30'),()=>{this[_0x5944('0x7')](),this['listenTo'](_0x1f978a,_0x5944('0x1'),_0x243894=>{_0x243894[_0x5944('0x29')](),this['attach'](_0x1d41cd);});}),_0x1f978a[_0x5944('0x19')]({'viewClass':'ck-sidebar--wide'});const _0xf272e6=_0x2bed14=>{_0x2bed14[_0x5944('0x5')](),_0x1f978a[_0x5944('0x8')](_0x2bed14);};for(const _0x50a911 of _0x1d41cd)_0xf272e6(_0x50a911);this['listenTo'](_0x1d41cd,_0x5944('0x25'),(_0x25505f,_0x45c696)=>{_0xf272e6(_0x45c696);}),this[_0x5944('0x2c')](_0x1d41cd,_0x5944('0x2a'),(_0x59c761,_0x3bfcaf,_0x47f29e)=>{_0x1f978a[_0x5944('0x2b')]({'removedAnnotation':_0x3bfcaf,'previousAnnotation':_0x1d41cd[_0x5944('0x15')](_0x47f29e-0x1),'nextAnnotation':_0x1d41cd[_0x5944('0x15')](_0x47f29e+0x1)}),_0x3bfcaf===this[_0x5944('0x3')]&&this[_0x5944('0x1f')](null);},{'priority':_0x5944('0x6')}),this[_0x5944('0x2c')](_0x1d41cd,_0x5944('0xf'),(_0x81f62f,_0x8b2f92)=>{this[_0x5944('0x1f')](_0x8b2f92);}),this[_0x5944('0x2c')](_0x1d41cd,_0x5944('0xc'),()=>{this['setActiveAnnotation'](null);});const _0x209294=this[_0x5944('0x28')]instanceof _0x33d379?this[_0x5944('0x28')]['editors']:new _0x57ad8c([this[_0x5944('0x28')]]);for(const _0x6d6ecb of _0x209294)this['_integrateWithEditorAnnotations'](_0x6d6ecb);this['listenTo'](_0x209294,_0x5944('0x25'),(_0x2e0bb5,_0x1d245c)=>{this[_0x5944('0x2c')](_0x1d245c,'ready',()=>{this[_0x5944('0x2')](_0x1d245c);});}),this[_0x5944('0x2c')](_0x209294,_0x5944('0x2a'),(_0x1d43b7,_0x1a0ffd)=>{_0x1a0ffd[_0x5944('0x2d')][_0x5944('0x13')](_0x5944('0x12'))&&this[_0x5944('0x27')](_0x1a0ffd[_0x5944('0x2d')][_0x5944('0x15')](_0x5944('0x12')));}),window['addEventListener'](_0x5944('0xd'),this[_0x5944('0x20')]),this[_0x5944('0x24')][_0x5944('0x1c')]();}[_0x5944('0x7')](){if(!this[_0x5944('0x1d')])throw new _0x503fa5('widesidebar-detach-not-attached',this);this[_0x5944('0x1f')](null);const _0x5f5c59=this[_0x5944('0x28')]['plugins']['get'](_0x1e3025);_0x5f5c59[_0x5944('0x22')](this[_0x5944('0x24')]),this[_0x5944('0x2e')](_0x5f5c59),this[_0x5944('0x2e')](this[_0x5944('0x24')]),this[_0x5944('0x28')]instanceof _0x33d379&&this[_0x5944('0x2e')](this[_0x5944('0x28')][_0x5944('0x0')]);for(const _0x12abc1 of Array[_0x5944('0x17')](this[_0x5944('0x1a')]))this[_0x5944('0x27')](_0x12abc1);window[_0x5944('0x16')]('resize',this[_0x5944('0x20')]),this[_0x5944('0x20')][_0x5944('0xa')](),this[_0x5944('0x3')]=null,this[_0x5944('0x1d')]=!0x1,this[_0x5944('0x24')]=null;}[_0x5944('0x9')](){this[_0x5944('0x1d')]&&this['detach']();}[_0x5944('0x2')](_0x5881d9){const _0x1e7dd9=_0x5881d9[_0x5944('0x2d')][_0x5944('0x15')](_0x3b544d);if(!_0x1e7dd9)return;const _0x546836=()=>{const _0x172eee=_0x1e7dd9[_0x5944('0x31')]({'annotations':this[_0x5944('0x24')],'activeAnnotation':this['activeAnnotation']});this[_0x5944('0x1f')](_0x172eee[0x0]||null);};this[_0x5944('0x2c')](_0x1e7dd9,_0x5944('0xe'),_0x546836),this['listenTo'](_0x1e7dd9,'blur',(_0x1d2d64,{isAnnotationTracked:_0x7d4010})=>{this[_0x5944('0x3')]&&_0x7d4010(this['activeAnnotation'])&&this[_0x5944('0x1f')](null);}),this[_0x5944('0x2c')](_0x1e7dd9,_0x5944('0xb'),()=>{this[_0x5944('0x20')]();}),this[_0x5944('0x2c')](this[_0x5944('0x24')],'blur',_0x3060f2=>{_0x1e7dd9[_0x5944('0x1e')]()&&(_0x546836(),_0x3060f2[_0x5944('0x11')]());},{'priority':_0x5944('0x6')}),this[_0x5944('0x1a')][_0x5944('0x25')](_0x1e7dd9);}[_0x5944('0x27')](_0x917de5){this[_0x5944('0x2e')](_0x917de5),this['_editorAnnotations'][_0x5944('0x2a')](_0x917de5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1874=['start','addMarker','end','isEnabled','execute','push','change','selection','substr','getLastMatchingPosition','createRange','_itemIsContent','getRanges','document','item','backward','comment:','model','tableCell','editor','element','_trimToContent','_hasContent'];(function(_0x1d2a2b,_0x187485){const _0x12991a=function(_0xc35cdd){while(--_0xc35cdd){_0x1d2a2b['push'](_0x1d2a2b['shift']());}};_0x12991a(++_0x187485);}(_0x1874,0xde));const _0x1299=function(_0x1d2a2b,_0x187485){_0x1d2a2b=_0x1d2a2b-0x0;let _0x12991a=_0x1874[_0x1d2a2b];return _0x12991a;};import{Command as _0x285fb5}from'ckeditor5/src/core';import{uid as _0x5c1ad5}from'ckeditor5/src/utils';export default class q extends _0x285fb5{['refresh'](){const _0x4d9b39=this['editor'][_0x1299('0x2')][_0x1299('0x15')][_0x1299('0xf')];for(const _0xd02b39 of _0x4d9b39[_0x1299('0x14')]())if(this[_0x1299('0x7')](_0xd02b39))return void(this[_0x1299('0xb')]=!0x0);this[_0x1299('0xb')]=!0x1;}[_0x1299('0xc')]({threadId:_0xf550b0=_0x5c1ad5()}={}){const _0x2f590c=this[_0x1299('0x4')][_0x1299('0x2')],_0x9d0f0f=[];for(const _0x577ecc of _0x2f590c['document'][_0x1299('0xf')][_0x1299('0x14')]())this[_0x1299('0x7')](_0x577ecc)&&_0x9d0f0f[_0x1299('0xd')](this['_trimToContent'](_0x577ecc));_0x2f590c[_0x1299('0xe')](_0x2e838c=>{for(const _0xee8b2b of _0x9d0f0f){const _0x3e6531=_0x5c1ad5()[_0x1299('0x10')](0x1,0x5),_0x424bdd=_0x1299('0x1')+_0xf550b0+':'+_0x3e6531;_0x2e838c[_0x1299('0x9')](_0x424bdd,{'range':_0xee8b2b,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x4d9a2a){for(const _0x12d47e of _0x4d9a2a['getItems']())if(this[_0x1299('0x13')](_0x12d47e))return!0x0;return!0x1;}['_itemIsContent'](_0x25c7ca){return _0x25c7ca['is']('$textProxy')||this[_0x1299('0x4')][_0x1299('0x2')]['schema']['isObject'](_0x25c7ca)&&!_0x25c7ca['is'](_0x1299('0x5'),_0x1299('0x3'));}[_0x1299('0x6')](_0xff5a34){const _0x44fce5=_0x5060a6=>!this[_0x1299('0x13')](_0x5060a6[_0x1299('0x16')]),_0x24fd6c=_0xff5a34[_0x1299('0x8')][_0x1299('0x11')](_0x44fce5),_0x28f422=_0xff5a34[_0x1299('0xa')][_0x1299('0x11')](_0x44fce5,{'direction':_0x1299('0x0')});return this[_0x1299('0x4')][_0x1299('0x2')][_0x1299('0x12')](_0x24fd6c,_0x28f422);}}
23
+ const _0x3d42=['getRanges','createRange','schema','_trimToContent','isObject','item','selection','refresh','element','tableCell','_hasContent','_itemIsContent','getItems','addMarker','editor','comment:','model','substr','change','execute','document','backward','end','start','isEnabled','$textProxy'];(function(_0x4970ef,_0x3d42df){const _0x138bd6=function(_0x1bf99b){while(--_0x1bf99b){_0x4970ef['push'](_0x4970ef['shift']());}};_0x138bd6(++_0x3d42df);}(_0x3d42,0x77));const _0x138b=function(_0x4970ef,_0x3d42df){_0x4970ef=_0x4970ef-0x0;let _0x138bd6=_0x3d42[_0x4970ef];return _0x138bd6;};import{Command as _0xc88b3f}from'ckeditor5/src/core';import{uid as _0x393803}from'ckeditor5/src/utils';export default class J extends _0xc88b3f{[_0x138b('0x12')](){const _0x1c62a1=this[_0x138b('0x19')]['model'][_0x138b('0x5')][_0x138b('0x11')];for(const _0x3372b5 of _0x1c62a1[_0x138b('0xb')]())if(this['_hasContent'](_0x3372b5))return void(this[_0x138b('0x9')]=!0x0);this[_0x138b('0x9')]=!0x1;}[_0x138b('0x4')]({threadId:_0x32a4d4=_0x393803()}={}){const _0x56433b=this['editor'][_0x138b('0x1')],_0xc71067=[];for(const _0x456ae5 of _0x56433b[_0x138b('0x5')][_0x138b('0x11')][_0x138b('0xb')]())this[_0x138b('0x15')](_0x456ae5)&&_0xc71067['push'](this[_0x138b('0xe')](_0x456ae5));_0x56433b[_0x138b('0x3')](_0x14b4e4=>{for(const _0x3ecaff of _0xc71067){const _0x389f78=_0x393803()[_0x138b('0x2')](0x1,0x5),_0x2a29aa=_0x138b('0x0')+_0x32a4d4+':'+_0x389f78;_0x14b4e4[_0x138b('0x18')](_0x2a29aa,{'range':_0x3ecaff,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3e606f){for(const _0x48c1e5 of _0x3e606f[_0x138b('0x17')]())if(this['_itemIsContent'](_0x48c1e5))return!0x0;return!0x1;}['_itemIsContent'](_0x5e19ba){return _0x5e19ba['is'](_0x138b('0xa'))||this[_0x138b('0x19')]['model'][_0x138b('0xd')][_0x138b('0xf')](_0x5e19ba)&&!_0x5e19ba['is'](_0x138b('0x13'),_0x138b('0x14'));}['_trimToContent'](_0x776897){const _0x4952f8=_0x2543cf=>!this[_0x138b('0x16')](_0x2543cf[_0x138b('0x10')]),_0x3b6be5=_0x776897[_0x138b('0x8')]['getLastMatchingPosition'](_0x4952f8),_0x2fec4e=_0x776897[_0x138b('0x7')]['getLastMatchingPosition'](_0x4952f8,{'direction':_0x138b('0x6')});return this[_0x138b('0x19')][_0x138b('0x1')][_0x138b('0xc')](_0x3b6be5,_0x2fec4e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3888=['has','add','activate','listenTo','requires','highest','remove','removeCommentThread','reopenCommentThread','CommentsArchive','plugins','resolveCommentThread','resolvedThreads','get','resolvedAt','focus','collection','getCommentThread','_calculatePosition','init','isActive','length','addCommentThread'];(function(_0x1d516d,_0x3888b9){const _0xb38479=function(_0x1c2572){while(--_0x1c2572){_0x1d516d['push'](_0x1d516d['shift']());}};_0xb38479(++_0x3888b9);}(_0x3888,0xdf));const _0xb384=function(_0x1d516d,_0x3888b9){_0x1d516d=_0x1d516d-0x0;let _0xb38479=_0x3888[_0x1d516d];return _0xb38479;};import{ContextPlugin as _0x4d47bf}from'ckeditor5/src/core';import{Collection as _0x24d668}from'ckeditor5/src/utils';import _0x44d39a from'./commentsrepository';import _0x42eb98 from'../annotations/annotations';export default class p extends _0x4d47bf{static get['pluginName'](){return _0xb384('0x10');}static get[_0xb384('0xb')](){return[_0x44d39a,_0x42eb98];}constructor(_0xc20572){super(_0xc20572),this[_0xb384('0x13')]=new _0x24d668();}[_0xb384('0x3')](){const _0x377de7=this['context'],_0x49fe4e=_0x377de7[_0xb384('0x11')]['get'](_0x44d39a),_0x45c2a8=_0x377de7[_0xb384('0x11')][_0xb384('0x14')](_0x42eb98);this['listenTo'](_0x49fe4e,_0xb384('0x6'),(_0x4bbd3a,{threadId:_0x575a6e,resolvedAt:_0x18adf4,deletedAt:_0x3ca5f3})=>{if(_0x18adf4&&!_0x3ca5f3){const _0x5364cc=_0x49fe4e[_0xb384('0x1')](_0x575a6e);this['resolvedThreads'][_0xb384('0x8')](_0x5364cc,this[_0xb384('0x2')](_0x18adf4));}}),this[_0xb384('0xa')](_0x49fe4e,_0xb384('0x12'),(_0x1a00de,{threadId:_0x230d35,resolvedAt:_0x1c62f9})=>{const _0x2097b1=_0x49fe4e[_0xb384('0x1')](_0x230d35);this['resolvedThreads'][_0xb384('0x8')](_0x2097b1,this[_0xb384('0x2')](_0x1c62f9));},{'priority':'highest'}),this['listenTo'](_0x49fe4e,_0xb384('0xf'),(_0x388ee0,{threadId:_0x2167a7})=>{const _0x200fb9=_0x49fe4e['getCommentThread'](_0x2167a7);this['resolvedThreads'][_0xb384('0x7')](_0x200fb9)&&this[_0xb384('0x13')][_0xb384('0xd')](_0x200fb9);},{'priority':_0xb384('0xc')}),this[_0xb384('0xa')](_0x49fe4e,_0xb384('0xe'),(_0x256434,{threadId:_0x2e7a81})=>{const _0x43c9ac=_0x49fe4e['getCommentThread'](_0x2e7a81);this[_0xb384('0x13')]['has'](_0x43c9ac)&&this['resolvedThreads'][_0xb384('0xd')](_0x43c9ac);},{'priority':'highest'}),this[_0xb384('0xa')](_0x45c2a8[_0xb384('0x0')],_0xb384('0x16'),(_0x4d7f4,_0x3cb999)=>{_0x3cb999[_0xb384('0x4')]=!0x0,_0x45c2a8[_0xb384('0x9')](_0x3cb999);});}[_0xb384('0x2')](_0x5e0ffd){const _0x31f6a1=[...this['resolvedThreads']]['findIndex'](_0x40667f=>_0x40667f[_0xb384('0x15')]<_0x5e0ffd);return _0x31f6a1>-0x1?_0x31f6a1:this[_0xb384('0x13')][_0xb384('0x5')];}}
23
+ const _0x466b=['resolvedAt','listenTo','remove','pluginName','_calculatePosition','addCommentThread','init','focus','removeCommentThread','highest','has','requires','add','length','isActive','plugins','resolvedThreads','activate','get','getCommentThread','reopenCommentThread'];(function(_0x5be890,_0x466bd9){const _0x5a9e31=function(_0x1f9c30){while(--_0x1f9c30){_0x5be890['push'](_0x5be890['shift']());}};_0x5a9e31(++_0x466bd9);}(_0x466b,0x1e6));const _0x5a9e=function(_0x5be890,_0x466bd9){_0x5be890=_0x5be890-0x0;let _0x5a9e31=_0x466b[_0x5be890];return _0x5a9e31;};import{ContextPlugin as _0x931318}from'ckeditor5/src/core';import{Collection as _0x3a4426}from'ckeditor5/src/utils';import _0x26a3f8 from'./commentsrepository';import _0x222739 from'../annotations/annotations';export default class p extends _0x931318{static get[_0x5a9e('0x0')](){return'CommentsArchive';}static get[_0x5a9e('0x8')](){return[_0x26a3f8,_0x222739];}constructor(_0xd6e25f){super(_0xd6e25f),this[_0x5a9e('0xd')]=new _0x3a4426();}[_0x5a9e('0x3')](){const _0x33335b=this['context'],_0x55a703=_0x33335b[_0x5a9e('0xc')][_0x5a9e('0xf')](_0x26a3f8),_0x132da1=_0x33335b[_0x5a9e('0xc')]['get'](_0x222739);this[_0x5a9e('0x13')](_0x55a703,_0x5a9e('0x2'),(_0x37a0b6,{threadId:_0x33eff6,resolvedAt:_0x43efbe,deletedAt:_0x349a0b})=>{if(_0x43efbe&&!_0x349a0b){const _0x3f6ca5=_0x55a703[_0x5a9e('0x10')](_0x33eff6);this[_0x5a9e('0xd')][_0x5a9e('0x9')](_0x3f6ca5,this['_calculatePosition'](_0x43efbe));}}),this[_0x5a9e('0x13')](_0x55a703,'resolveCommentThread',(_0x3a0b10,{threadId:_0x5f0ef3,resolvedAt:_0x224563})=>{const _0x22b2e0=_0x55a703[_0x5a9e('0x10')](_0x5f0ef3);this['resolvedThreads']['add'](_0x22b2e0,this['_calculatePosition'](_0x224563));},{'priority':_0x5a9e('0x6')}),this[_0x5a9e('0x13')](_0x55a703,_0x5a9e('0x11'),(_0x7057f0,{threadId:_0x3d180e})=>{const _0x21a8e7=_0x55a703[_0x5a9e('0x10')](_0x3d180e);this['resolvedThreads'][_0x5a9e('0x7')](_0x21a8e7)&&this[_0x5a9e('0xd')][_0x5a9e('0x14')](_0x21a8e7);},{'priority':_0x5a9e('0x6')}),this[_0x5a9e('0x13')](_0x55a703,_0x5a9e('0x5'),(_0x133a1c,{threadId:_0x2354e6})=>{const _0x56660e=_0x55a703[_0x5a9e('0x10')](_0x2354e6);this[_0x5a9e('0xd')][_0x5a9e('0x7')](_0x56660e)&&this[_0x5a9e('0xd')]['remove'](_0x56660e);},{'priority':_0x5a9e('0x6')}),this['listenTo'](_0x132da1['collection'],_0x5a9e('0x4'),(_0x28f17e,_0x1098c6)=>{_0x1098c6[_0x5a9e('0xb')]=!0x0,_0x132da1[_0x5a9e('0xe')](_0x1098c6);});}[_0x5a9e('0x1')](_0x41ece0){const _0x4957fd=[...this[_0x5a9e('0xd')]]['findIndex'](_0x36a2c3=>_0x36a2c3[_0x5a9e('0x12')]<_0x41ece0);return _0x4957fd>-0x1?_0x4957fd:this[_0x5a9e('0xd')][_0x5a9e('0xa')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b67=['change:isVisible','set','_threadToController','panelView','add','view','channelId','annotationViews','isOpen','listenTo','getByInnerView','requires','stop','locale','ck-comments-archive-dropdown','forEach','Annotations','_pendingThreads','CommentsRepository','querySelectorAll','stopListening','commentsArchiveView','children','editor','splice','collaboration.channelId','render','push','resolvedThreads','config','get','remove','COMMENTS_ARCHIVE','change:isFocused','focusTracker','extendTemplate','innerView','_createArchiveUIDropdown','init','buttonView','plugins','collection'];(function(_0x27a89b,_0x5b67df){const _0x4c0cfc=function(_0x2283f6){while(--_0x2283f6){_0x27a89b['push'](_0x27a89b['shift']());}};_0x4c0cfc(++_0x5b67df);}(_0x5b67,0x10a));const _0x4c0c=function(_0x27a89b,_0x5b67df){_0x27a89b=_0x27a89b-0x0;let _0x4c0cfc=_0x5b67[_0x27a89b];return _0x4c0cfc;};import'../../theme/commentsarchive.css';import{Plugin as _0x2d31ba}from'ckeditor5/src/core';import{createDropdown as _0x1a7520,clickOutsideHandler as _0x3c5363,ViewCollection as _0x3c4c11}from'ckeditor5/src/ui';import _0xf3a6db from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x39853b}from'../utils/common-translations';import _0x6cabf3 from'./ui/view/commentsarchiveview';import _0x5b62d5 from'./commentsarchive';export default class a extends _0x2d31ba{static get['pluginName'](){return'CommentsArchiveUI';}static get[_0x4c0c('0x27')](){return[_0x5b62d5];}constructor(_0x46b7e3){super(_0x46b7e3),this[_0x4c0c('0x23')]=new _0x3c4c11(),this[_0x4c0c('0x3')]=[];}[_0x4c0c('0x18')](){this[_0x4c0c('0x9')]['ui']['componentFactory']['add']('commentsArchive',()=>this[_0x4c0c('0x17')]());const _0xea6263=this['editor'][_0x4c0c('0x1a')][_0x4c0c('0x10')](_0x5b62d5),_0x2fb563=this['editor'][_0x4c0c('0x1a')][_0x4c0c('0x10')](_0x4c0c('0x2')),_0x18dd03=this['editor'][_0x4c0c('0x1a')]['get'](_0x4c0c('0x4'));this['listenTo'](_0xea6263[_0x4c0c('0xe')],'add',(_0x5d7fe4,_0x167bbc,_0x43a7ef)=>{const _0xe86c0e=this['editor']['config'][_0x4c0c('0x10')](_0x4c0c('0xb'));if(!_0xe86c0e||_0x167bbc[_0x4c0c('0x22')]===_0xe86c0e){const _0x5b48a6=_0x18dd03[_0x4c0c('0x1e')][_0x4c0c('0x10')](_0x167bbc);if(!_0x5b48a6)return void this[_0x4c0c('0x3')][_0x4c0c('0xd')]({'thread':_0x167bbc,'position':_0x43a7ef});const _0x3a407d=_0x2fb563[_0x4c0c('0x26')](_0x5b48a6['view']);_0x3a407d['isVisible']?this['listenTo'](_0x3a407d,_0x4c0c('0x1c'),(_0x5993e3,_0x58a677,_0xcfaadf)=>{_0xcfaadf||(this['annotationViews']['add'](_0x3a407d[_0x4c0c('0x21')],_0x43a7ef),this[_0x4c0c('0x6')](_0x3a407d));}):this[_0x4c0c('0x23')][_0x4c0c('0x20')](_0x3a407d[_0x4c0c('0x21')],_0x43a7ef);}}),this[_0x4c0c('0x25')](_0x2fb563[_0x4c0c('0x1b')],_0x4c0c('0x20'),(_0x26413b,_0x15bd19)=>{this[_0x4c0c('0x3')][_0x4c0c('0x1')](({thread:_0x3067ca,position:_0x5c4a2b},_0x11653b)=>{const _0x48f871=_0x18dd03[_0x4c0c('0x1e')][_0x4c0c('0x10')](_0x3067ca);_0x48f871&&_0x15bd19[_0x4c0c('0x16')]===_0x48f871[_0x4c0c('0x21')]&&(this['annotationViews']['add'](_0x15bd19['view'],_0x5c4a2b),this[_0x4c0c('0x3')][_0x4c0c('0xa')](_0x11653b,0x1));});}),this[_0x4c0c('0x25')](_0xea6263[_0x4c0c('0xe')],_0x4c0c('0x11'),(_0x4ad096,_0x41653e)=>{const _0x12bd34=this[_0x4c0c('0x9')][_0x4c0c('0xf')][_0x4c0c('0x10')](_0x4c0c('0xb'));if(!_0x12bd34||_0x41653e[_0x4c0c('0x22')]===_0x12bd34){const _0x2730f1=_0x18dd03[_0x4c0c('0x1e')][_0x4c0c('0x10')](_0x41653e),_0x1f3296=_0x2fb563[_0x4c0c('0x26')](_0x2730f1[_0x4c0c('0x21')])[_0x4c0c('0x21')];this['annotationViews']['remove'](_0x1f3296);}});}[_0x4c0c('0x17')](){const _0x13733f=this[_0x4c0c('0x9')],_0x40aee1=_0x1a7520(_0x13733f[_0x4c0c('0x29')]);return _0x40aee1['on'](_0x4c0c('0xc'),()=>{_0x40aee1['stopListening'](document,'mousedown'),_0x3c5363({'emitter':_0x40aee1,'activator':()=>_0x40aee1[_0x4c0c('0x24')],'callback':()=>{_0x40aee1[_0x4c0c('0x24')]=!0x1;},'contextElements':()=>[_0x40aee1['element'],...document[_0x4c0c('0x5')]('.ck.ck-body')]});}),_0x40aee1[_0x4c0c('0x14')]['on'](_0x4c0c('0x13'),_0x3f1c5b=>{_0x3f1c5b[_0x4c0c('0x28')]();},{'priority':'high'}),_0x40aee1[_0x4c0c('0x19')][_0x4c0c('0x1d')]({'icon':_0xf3a6db,'label':_0x39853b(_0x13733f[_0x4c0c('0x29')],_0x4c0c('0x12')),'tooltip':!0x0}),_0x40aee1[_0x4c0c('0x1f')][_0x4c0c('0x15')]({'attributes':{'class':_0x4c0c('0x0')}}),_0x40aee1['on']('change:isOpen',(_0x280399,_0xb2bfc8,_0x48c8ba)=>{this[_0x4c0c('0x7')]||(this[_0x4c0c('0x7')]=new _0x6cabf3(_0x13733f[_0x4c0c('0x29')],this[_0x4c0c('0x23')])),_0x48c8ba?_0x40aee1[_0x4c0c('0x1f')][_0x4c0c('0x8')][_0x4c0c('0x20')](this[_0x4c0c('0x7')]):_0x40aee1['panelView'][_0x4c0c('0x8')]['remove'](this[_0x4c0c('0x7')]);}),_0x40aee1;}}
23
+ const _0x51b1=['buttonView','init','Annotations','get','annotationViews','locale','editor','commentsArchiveView','stopListening','COMMENTS_ARCHIVE','render','change:isFocused','_pendingThreads','resolvedThreads','commentsArchive','collaboration.channelId','componentFactory','plugins','channelId','change:isOpen','collection','CommentsArchiveUI','innerView','children','splice','getByInnerView','extendTemplate','isOpen','listenTo','view','set','_createArchiveUIDropdown','change:isVisible','_threadToController','querySelectorAll','.ck.ck-body','requires','CommentsRepository','mousedown','config','remove','panelView','push','add'];(function(_0x98542b,_0x51b15d){const _0x4b118f=function(_0x295dff){while(--_0x295dff){_0x98542b['push'](_0x98542b['shift']());}};_0x4b118f(++_0x51b15d);}(_0x51b1,0x8b));const _0x4b11=function(_0x98542b,_0x51b15d){_0x98542b=_0x98542b-0x0;let _0x4b118f=_0x51b1[_0x98542b];return _0x4b118f;};import'../../theme/commentsarchive.css';import{Plugin as _0x451410}from'ckeditor5/src/core';import{createDropdown as _0x181e8e,clickOutsideHandler as _0x4265c3,ViewCollection as _0x24f6c9}from'ckeditor5/src/ui';import _0x379ab0 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2c33a8}from'../utils/common-translations';import _0x34f0d0 from'./ui/view/commentsarchiveview';import _0x5c6230 from'./commentsarchive';export default class a extends _0x451410{static get['pluginName'](){return _0x4b11('0xe');}static get[_0x4b11('0x1d')](){return[_0x5c6230];}constructor(_0x41e1b9){super(_0x41e1b9),this[_0x4b11('0x29')]=new _0x24f6c9(),this[_0x4b11('0x5')]=[];}[_0x4b11('0x26')](){this[_0x4b11('0x2b')]['ui'][_0x4b11('0x9')][_0x4b11('0x24')](_0x4b11('0x7'),()=>this[_0x4b11('0x18')]());const _0xd5e49e=this[_0x4b11('0x2b')]['plugins'][_0x4b11('0x28')](_0x5c6230),_0x2546dc=this['editor']['plugins'][_0x4b11('0x28')](_0x4b11('0x27')),_0x436f42=this[_0x4b11('0x2b')][_0x4b11('0xa')][_0x4b11('0x28')](_0x4b11('0x1e'));this[_0x4b11('0x15')](_0xd5e49e[_0x4b11('0x6')],_0x4b11('0x24'),(_0x49d2d2,_0x5629b8,_0x218bdc)=>{const _0x1ebf3b=this[_0x4b11('0x2b')][_0x4b11('0x20')][_0x4b11('0x28')](_0x4b11('0x8'));if(!_0x1ebf3b||_0x5629b8[_0x4b11('0xb')]===_0x1ebf3b){const _0x6e07c6=_0x436f42[_0x4b11('0x1a')][_0x4b11('0x28')](_0x5629b8);if(!_0x6e07c6)return void this[_0x4b11('0x5')][_0x4b11('0x23')]({'thread':_0x5629b8,'position':_0x218bdc});const _0x4d0d2c=_0x2546dc[_0x4b11('0x12')](_0x6e07c6[_0x4b11('0x16')]);_0x4d0d2c['isVisible']?this[_0x4b11('0x15')](_0x4d0d2c,_0x4b11('0x19'),(_0x37051d,_0x1084e0,_0x4334a0)=>{_0x4334a0||(this[_0x4b11('0x29')]['add'](_0x4d0d2c['view'],_0x218bdc),this[_0x4b11('0x1')](_0x4d0d2c));}):this[_0x4b11('0x29')][_0x4b11('0x24')](_0x4d0d2c[_0x4b11('0x16')],_0x218bdc);}}),this['listenTo'](_0x2546dc[_0x4b11('0xd')],_0x4b11('0x24'),(_0x402deb,_0x52610a)=>{this['_pendingThreads']['forEach'](({thread:_0x3873f0,position:_0x5212a7},_0x52ca8f)=>{const _0x13f644=_0x436f42[_0x4b11('0x1a')]['get'](_0x3873f0);_0x13f644&&_0x52610a[_0x4b11('0xf')]===_0x13f644[_0x4b11('0x16')]&&(this[_0x4b11('0x29')][_0x4b11('0x24')](_0x52610a[_0x4b11('0x16')],_0x5212a7),this['_pendingThreads'][_0x4b11('0x11')](_0x52ca8f,0x1));});}),this[_0x4b11('0x15')](_0xd5e49e[_0x4b11('0x6')],_0x4b11('0x21'),(_0x3c4bc0,_0x537466)=>{const _0x1fc904=this[_0x4b11('0x2b')][_0x4b11('0x20')][_0x4b11('0x28')](_0x4b11('0x8'));if(!_0x1fc904||_0x537466[_0x4b11('0xb')]===_0x1fc904){const _0x3c0fad=_0x436f42[_0x4b11('0x1a')][_0x4b11('0x28')](_0x537466),_0x3a9c30=_0x2546dc[_0x4b11('0x12')](_0x3c0fad['view'])[_0x4b11('0x16')];this[_0x4b11('0x29')][_0x4b11('0x21')](_0x3a9c30);}});}[_0x4b11('0x18')](){const _0x38dcc9=this['editor'],_0x24fa97=_0x181e8e(_0x38dcc9[_0x4b11('0x2a')]);return _0x24fa97['on'](_0x4b11('0x3'),()=>{_0x24fa97[_0x4b11('0x1')](document,_0x4b11('0x1f')),_0x4265c3({'emitter':_0x24fa97,'activator':()=>_0x24fa97[_0x4b11('0x14')],'callback':()=>{_0x24fa97[_0x4b11('0x14')]=!0x1;},'contextElements':()=>[_0x24fa97['element'],...document[_0x4b11('0x1b')](_0x4b11('0x1c'))]});}),_0x24fa97['focusTracker']['on'](_0x4b11('0x4'),_0x4821f4=>{_0x4821f4['stop']();},{'priority':'high'}),_0x24fa97[_0x4b11('0x25')][_0x4b11('0x17')]({'icon':_0x379ab0,'label':_0x2c33a8(_0x38dcc9[_0x4b11('0x2a')],_0x4b11('0x2')),'tooltip':!0x0}),_0x24fa97[_0x4b11('0x22')][_0x4b11('0x13')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x24fa97['on'](_0x4b11('0xc'),(_0x13e591,_0xe2378d,_0x5288e3)=>{this[_0x4b11('0x0')]||(this[_0x4b11('0x0')]=new _0x34f0d0(_0x38dcc9['locale'],this[_0x4b11('0x29')])),_0x5288e3?_0x24fa97[_0x4b11('0x22')][_0x4b11('0x10')][_0x4b11('0x24')](this[_0x4b11('0x0')]):_0x24fa97['panelView'][_0x4b11('0x10')]['remove'](this['commentsArchiveView']);}),_0x24fa97;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1926=['markerName','rootName','createPositionBefore','listenTo','_getTargetForId','add','_reconvertMarkers','addCommentThread','editing','refreshVisibility','comment','delete','newRange','editingDowncast','upcast','removeMarker:','addMarker:','high','schema','_handleMarkerAddAndRemove','isObject','model','getAttribute','isLocal','scrollToThreadMarker','state','render','item','low','managedUsingOperations','dataDowncast','_threadToController','resolveCommentThread','set','start','_threads','getByInnerView','init','text','has','hasContent','registerAnnotation','$graveyard','split','differ','size','conversion','removeMarker','requires','for','change:isReadOnly','_handleThreadMarker','document','getCommentThreads','createRange','getWalker','length','getChangedMarkers','$textProxy','_getTextContext','registerPostFixer','_initializeMarkerConverters','ck-comment-marker','ready','reconvertMarker','fetchCommentThread','updateMarker','hasDomSelection','once','elementToElement','isThreadsLoadingPaused','end','affectsData','includes','activeMarker','isEqual','enqueueChange','isCollapsed','_detachCommentThread','hasMarkerForId','attachTo','isResolved','_attachedThreads','root','getCommentThread','editor','view','getAllMarkersForId','getRange','hasCommentThread','data','$marker','reopenCommentThread','consume','markerToData','comment:','change:isThreadsLoadingPaused','_hasTargetInContent','change','get','markers','createElement','commands','plugins','removeCommentThread','config','destroy','collaboration.channelId','focus'];(function(_0x433327,_0x192624){const _0x372847=function(_0x7d764){while(--_0x7d764){_0x433327['push'](_0x433327['shift']());}};_0x372847(++_0x192624);}(_0x1926,0x17e));const _0x3728=function(_0x433327,_0x192624){_0x433327=_0x433327-0x0;let _0x372847=_0x1926[_0x433327];return _0x372847;};import{Plugin as _0x47dafc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d7eac}from'ckeditor5/src/utils';import _0x1c7b93 from'./commentsrepository';import _0x50880f from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x47761f}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ba335 from'../annotations/editorannotations';import _0x116685 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x42bf36 from'./integrations/importword';import _0x3dab from'../annotations/annotations';export default class r extends _0x47dafc{static get[_0x3728('0x66')](){return[_0x1c7b93,_0x3ba335,_0x116685,_0x42bf36];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x1eebf9){super(_0x1eebf9),this['set'](_0x3728('0xf'),!0x0),_0x1eebf9['data'][_0x3728('0xd')](_0x3728('0x8'),()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x530a7c,_0x5e54bf,_0x176ff5,_0xff0643)=>{const _0x541315=_0x176ff5?ot(_0x176ff5)['id']:null;if(_0x1eebf9[_0x3728('0x4b')]['change'](()=>{if(_0x541315){const _0x437d54=this[_0x3728('0x20')](_0x541315);for(const _0x36f95a of _0x437d54)_0x1eebf9['editing'][_0x3728('0x9')](_0x36f95a);}if(_0xff0643){const {id:_0xcaed97}=ot(_0xff0643),_0xe3db67=this[_0x3728('0x20')](_0xcaed97);for(const _0x20f82d of _0xe3db67)_0x1eebf9['editing']['reconvertMarker'](_0x20f82d);}}),_0x541315){const _0x219487=_0x1eebf9[_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93)['getCommentThread'](_0x541315);_0x219487&&_0x219487[_0x3728('0x1a')]&&this[_0x3728('0x4e')](_0x541315);}}),this[_0x3728('0x1b')]=new Map();}[_0x3728('0x5b')](){const _0x2946de=this[_0x3728('0x1e')],_0x4e95f9=_0x2946de['plugins'][_0x3728('0x2c')](_0x1c7b93),_0x1728c6=_0x2946de[_0x3728('0x32')][_0x3728('0x2c')]('collaboration.channelId');_0x2946de[_0x3728('0x2f')][_0x3728('0x3b')](_0x3728('0x3d'),new _0x50880f(_0x2946de)),this[_0x3728('0x39')](_0x2946de,_0x3728('0x68'),(_0x44cf85,_0x42a0ee,_0x4eb269)=>{_0x4e95f9['switchReadOnly'](_0x4eb269,_0x2946de[_0x3728('0x32')][_0x3728('0x2c')](_0x3728('0x34')));}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x3d'),_0x1728c6),(_0x27d545,{threadId:_0x5b17ec})=>{const _0x3c7f17=_0x2946de[_0x3728('0x30')]['get'](_0x3ba335),_0x2b1040=this[_0x3728('0x1e')][_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93)[_0x3728('0x1d')](_0x5b17ec);if(_0x2b1040&&_0x2b1040[_0x3728('0x1a')]&&!this[_0x3728('0x1b')]['has'](_0x5b17ec)){const _0x423cc2=_0x2b1040[_0x3728('0x19')](()=>this['_getTargetForId'](_0x2b1040['id']));_0x3c7f17['registerAnnotation'](_0x423cc2),this[_0x3728('0x1b')][_0x3728('0x57')](_0x5b17ec,[]),0x0===this[_0x3728('0x20')](_0x5b17ec)[_0x3728('0x1')]&&(_0x2b1040[_0x3728('0x2a')]=!0x1);}}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x31'),_0x1728c6),(_0x4da86a,{threadId:_0x3c8f90})=>{_0x2946de[_0x3728('0x4b')][_0x3728('0x15')]({'isUndoable':!0x1},_0x5ca8ff=>{const _0x21065c=this[_0x3728('0x20')](_0x3c8f90);this[_0x3728('0x1b')][_0x3728('0x41')](_0x3c8f90);for(const _0x45b0e7 of _0x21065c)_0x5ca8ff[_0x3728('0x65')](_0x45b0e7);});},{'priority':_0x3728('0x47')}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x56'),_0x1728c6),(_0x18b164,{threadId:_0x35d8ad})=>{this[_0x3728('0x3c')](_0x35d8ad),this[_0x3728('0x1e')][_0x3728('0x3e')][_0x3728('0x1f')][_0x3728('0xc')]&&this[_0x3728('0x1e')][_0x3728('0x3e')][_0x3728('0x1f')][_0x3728('0x35')]();},{'priority':_0x3728('0x52')}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x25'),_0x1728c6),(_0x17e802,{threadId:_0x1725ec})=>{this[_0x3728('0x3c')](_0x1725ec);},{'priority':_0x3728('0x52')}),this['listenTo'](_0x4e95f9,tt('addComment',_0x1728c6),(_0x37c2a5,{threadId:_0x1ccb15,isFromAdapter:_0x300bc2})=>{const _0x1ba2c0=this[_0x3728('0x20')](_0x1ccb15);if(_0x300bc2||0x0==_0x1ba2c0['length']||!_0x4e95f9[_0x3728('0x22')](_0x1ccb15))return;0x1===_0x4e95f9[_0x3728('0x1d')](_0x1ccb15)[_0x3728('0x1')]&&_0x2946de[_0x3728('0x4b')][_0x3728('0x15')]({'isUndoable':!0x1},_0x8f086c=>{for(const _0x420148 of _0x1ba2c0)_0x8f086c[_0x3728('0xb')](_0x420148,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3728('0x52')}),this[_0x3728('0x6')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x134e22=this[_0x3728('0x1e')]['plugins'][_0x3728('0x2c')](_0x1c7b93),_0x3ed974=this['editor'][_0x3728('0x32')][_0x3728('0x2c')](_0x3728('0x34'));for(const _0x2671f3 of _0x134e22[_0x3728('0x6b')]({'channelId':_0x3ed974}))_0x134e22[_0x3728('0x17')](_0x2671f3['id']),_0x134e22[_0x3728('0x59')][_0x3728('0x41')](_0x2671f3['id']);super[_0x3728('0x33')]();}[_0x3728('0x18')](_0x129705){return this['getAllMarkersForId'](_0x129705)['length']>0x0;}[_0x3728('0x20')](_0x57a240){return(this[_0x3728('0x1b')]['get'](_0x57a240)||[])['map'](_0x3f5f1c=>this['editor']['model'][_0x3728('0x2d')]['get'](_0x3f5f1c))['filter'](_0x53fddc=>_0x53fddc);}[_0x3728('0x4e')](_0x2807ba){const _0x3e85fe=this[_0x3728('0x3a')](_0x2807ba);_0x3e85fe&&setTimeout(()=>{this[_0x3728('0x13')]&&ot(this['activeMarker'])['id']===_0x2807ba&&_0x1d7eac({'target':_0x3e85fe[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3728('0x3c')](_0x3a496e){this[_0x3728('0x1e')][_0x3728('0x4b')][_0x3728('0x2b')](()=>{for(const _0x55a01 of this[_0x3728('0x20')](_0x3a496e))this[_0x3728('0x1e')][_0x3728('0x3e')][_0x3728('0x9')](_0x55a01);});}[_0x3728('0x6')](){const _0x37742f=this[_0x3728('0x1e')];_0x37742f['conversion'][_0x3728('0x67')](_0x3728('0x43'))['markerToHighlight']({'model':_0x3728('0x40'),'view':(_0x12fd27,_0x241353)=>{const {id:_0x356e26}=ot(_0x12fd27[_0x3728('0x36')]),_0x4f13fd=_0x37742f['plugins'][_0x3728('0x2c')](_0x1c7b93)[_0x3728('0x1d')](_0x356e26),_0xfba0aa=this[_0x3728('0x13')]&&ot(this['activeMarker'])['id']===_0x356e26;if(_0x4f13fd&&_0x4f13fd[_0x3728('0x1a')]&&!_0xfba0aa&&_0x12fd27['item'])return _0x241353['consumable'][_0x3728('0x26')](_0x12fd27[_0x3728('0x51')],_0x3728('0x46')+_0x12fd27['markerName']),_0x241353['consumable'][_0x3728('0x26')](_0x12fd27[_0x3728('0x51')],_0x3728('0x45')+_0x12fd27[_0x3728('0x36')]),{'classes':[]};const _0x231971=[_0x3728('0x7')];return _0xfba0aa&&_0x231971['push']('ck-comment-marker--active'),{'classes':_0x231971,'attributes':{'data-comment':_0x356e26}};}}),_0x37742f[_0x3728('0x64')][_0x3728('0x67')](_0x3728('0x54'))[_0x3728('0x27')]({'model':'comment','view':(_0x35e268,{options:_0x5af231})=>{const _0x315eaa=_0x37742f[_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93),_0x189d68=_0x37742f[_0x3728('0x4b')]['markers'][_0x3728('0x2c')](_0x35e268),{id:_0xc7086b,part:_0x3dce8c}=ot(_0x35e268),_0x54f8fd=_0x315eaa[_0x3728('0x1d')](_0xc7086b);return _0x189d68&&!_0x189d68[_0x3728('0x11')]||_0x54f8fd&&_0x54f8fd['isResolved']&&_0x5af231['ignoreResolvedComments']?null:{'group':'comment','name':_0x3dce8c?_0xc7086b+':'+_0x3dce8c:_0xc7086b};}}),_0x37742f[_0x3728('0x64')][_0x3728('0x67')](_0x3728('0x44'))[_0x3728('0xe')]({'view':{'name':_0x3728('0x40'),'attributes':{'id':/^\w/}},'model':(_0x38b4c5,{writer:_0xee6da7})=>_0xee6da7[_0x3728('0x2e')](_0x3728('0x24'),{'data-name':_0x3728('0x28')+_0x38b4c5[_0x3728('0x4c')]('id')})}),_0x37742f[_0x3728('0x64')]['for'](_0x3728('0x44'))['dataToMarker']({'view':_0x3728('0x40')});}[_0x3728('0x49')](){const _0x205af7=this[_0x3728('0x1e')],_0x17a94d=_0x205af7['plugins'][_0x3728('0x2c')](_0x1c7b93),_0x53a1a6=new Set();_0x205af7[_0x3728('0x4b')][_0x3728('0x6a')][_0x3728('0x5')](_0x302446=>{let _0x1b9dd0=!0x1;for(const {name:_0x5b4dae,data:_0x37b25a}of _0x205af7[_0x3728('0x4b')]['document'][_0x3728('0x62')][_0x3728('0x2')]()){const {group:_0x3bf436,id:_0x59953a}=ot(_0x5b4dae);let _0x35bfb4=_0x37b25a['newRange'];if(_0x3728('0x40')!==_0x3bf436||!_0x35bfb4)continue;const _0x4d6224=_0x3728('0x60')===_0x35bfb4[_0x3728('0x1c')][_0x3728('0x37')];_0x4d6224||(_0x35bfb4=et(_0x35bfb4,_0x205af7[_0x3728('0x4b')]),!_0x35bfb4||!_0x37b25a[_0x3728('0x42')]||_0x35bfb4[_0x3728('0x14')](_0x37b25a[_0x3728('0x42')]))?!_0x35bfb4||!_0x205af7[_0x3728('0x4b')][_0x3728('0x5e')](_0x35bfb4)||this['_attachedThreads']['has'](_0x59953a)&&_0x4d6224?(_0x302446[_0x3728('0x65')](_0x5b4dae),_0x1b9dd0=!0x0):_0x4d6224||(this['isThreadsLoadingPaused']?_0x53a1a6[_0x3728('0x3b')](_0x5b4dae):this[_0x3728('0x69')](_0x5b4dae,_0x59953a)):(_0x302446[_0x3728('0xb')](_0x5b4dae,{'range':_0x35bfb4}),_0x1b9dd0=!0x0);}return _0x1b9dd0;}),this['on'](_0x3728('0x29'),(_0xd9ab27,_0x5417b4,_0xdb7cbf)=>{if(!_0xdb7cbf&&_0x53a1a6[_0x3728('0x63')])for(const _0x33d135 of _0x53a1a6){const {id:_0x55ecf6}=ot(_0x33d135);_0x53a1a6[_0x3728('0x41')](_0x55ecf6),_0x205af7[_0x3728('0x4b')][_0x3728('0x2d')][_0x3728('0x2c')](_0x33d135)&&this[_0x3728('0x69')](_0x33d135,_0x55ecf6);}}),this[_0x3728('0x39')](_0x205af7['model'][_0x3728('0x6a')],_0x3728('0x2b'),(_0x47209f,_0x359e01)=>{for(const {name:_0x43e19d,data:{newRange:_0x53e19d}}of _0x205af7[_0x3728('0x4b')][_0x3728('0x6a')]['differ']['getChangedMarkers']()){const {group:_0x3dbbdb,id:_0xfe3330}=ot(_0x43e19d);if(_0x3728('0x40')!==_0x3dbbdb)continue;const _0xc1f7eb=_0x17a94d[_0x3728('0x1d')](_0xfe3330),_0x9aa514=this[_0x3728('0x18')](_0xfe3330);_0xc1f7eb&&(_0xc1f7eb[_0x3728('0x2a')]||_0x205af7['editing'][_0x3728('0x1f')][_0x3728('0xd')](_0x3728('0x50'),()=>{const _0x166a1e=_0x205af7[_0x3728('0x30')][_0x3728('0x2c')](_0x3dab),_0x68510b=_0x17a94d[_0x3728('0x55')][_0x3728('0x2c')](_0xc1f7eb)[_0x3728('0x1f')];_0x166a1e['getByInnerView'](_0x68510b)[_0x3728('0x3f')]();},{'priority':_0x3728('0x52')}),_0xc1f7eb[_0x3728('0x2a')]=_0x9aa514||!!_0x53e19d),!_0x53e19d&&_0x359e01[_0x3728('0x4d')]&&(_0x53a1a6[_0x3728('0x41')](_0xfe3330),_0xc1f7eb&&!_0xc1f7eb[_0x3728('0x1a')]&&!_0x9aa514&&this[_0x3728('0x1b')][_0x3728('0x5d')](_0xfe3330)&&(this[_0x3728('0x1b')][_0x3728('0x41')](_0xfe3330),_0xc1f7eb['resolve']()));}});}[_0x3728('0x3a')](_0x1e7858){const _0x39d8e5=this[_0x3728('0x1e')],_0x1911d9=this[_0x3728('0x20')](_0x1e7858);return _0x47761f(_0x39d8e5[_0x3728('0x3e')],_0x1911d9);}[_0x3728('0x4')](_0x708b18){const _0x17c063=this[_0x3728('0x20')](_0x708b18);let _0x320569='',_0x3a61d0=!0x1;for(const _0x10de6f of _0x17c063){const _0x1aabde=_0x10de6f[_0x3728('0x21')]();for(const _0x37feff of Array['from'](_0x1aabde['getItems']()))_0x37feff['is'](_0x3728('0x3'))?(_0x320569&&_0x3a61d0&&(_0x320569+='\x20',_0x3a61d0=!0x1),_0x320569+=_0x37feff[_0x3728('0x23')]):_0x3a61d0=!0x0;_0x3a61d0=!0x0;}return _0x320569['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x58dbda,_0x24bc5d){const _0x1ad144=this['editor'],_0x314045=_0x1ad144[_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93);let _0x474c1d=_0x314045[_0x3728('0x1d')](_0x24bc5d);if(this['_attachedThreads'][_0x3728('0x5d')](_0x24bc5d)){const _0x19fcfa=this['_attachedThreads'][_0x3728('0x2c')](_0x24bc5d);return _0x19fcfa[_0x3728('0x12')](_0x58dbda)||_0x19fcfa['push'](_0x58dbda),_0x474c1d;}this[_0x3728('0x1b')][_0x3728('0x57')](_0x24bc5d,[_0x58dbda]);const _0x4b7980=_0x1ad144[_0x3728('0x32')][_0x3728('0x2c')](_0x3728('0x34')),_0x1732db=_0x1ad144[_0x3728('0x30')][_0x3728('0x2c')](_0x3ba335);if(_0x474c1d&&_0x474c1d['isResolved'])return _0x474c1d['reopen'](),_0x474c1d;return!this[_0x3728('0x20')](_0x24bc5d)[0x0][_0x3728('0x53')]?_0x1ad144[_0x3728('0x3e')]['view'][_0x3728('0xd')](_0x3728('0x50'),()=>{const _0xfc8134=_0x1ad144[_0x3728('0x30')][_0x3728('0x2c')](_0x3dab);_0x474c1d=_0x314045['openNewCommentThread']({'channelId':_0x4b7980,'threadId':_0x24bc5d,'target':()=>this[_0x3728('0x3a')](_0x24bc5d),'context':{'type':_0x3728('0x5c'),'value':this['_getTextContext'](_0x24bc5d)}});const _0x5b2d01=_0x314045['_threadToController'][_0x3728('0x2c')](_0x474c1d)[_0x3728('0x1f')],_0x5ebd88=_0xfc8134[_0x3728('0x5a')](_0x5b2d01);_0x5ebd88&&_0x1732db['registerAnnotation'](_0x5ebd88);},{'priority':_0x3728('0x52')}):_0x314045[_0x3728('0xa')]({'channelId':_0x4b7980,'threadId':_0x24bc5d})['then'](_0x11468a=>{if('destroyed'!==_0x1ad144[_0x3728('0x4f')]){if(_0x474c1d=_0x11468a,_0x474c1d){const _0x109715=_0x474c1d['attachTo'](()=>this[_0x3728('0x3a')](_0x24bc5d));_0x1732db[_0x3728('0x5f')](_0x109715),_0x474c1d[_0x3728('0x1a')]&&this[_0x3728('0x3c')](_0x24bc5d);}else{const _0x3d408a=this[_0x3728('0x20')](_0x24bc5d);_0x1ad144[_0x3728('0x4b')][_0x3728('0x2b')](_0x2d5a15=>{for(const _0x3d45e6 of _0x3d408a)_0x2d5a15[_0x3728('0x65')](_0x3d45e6);});}}}),_0x474c1d;}[_0x3728('0x69')](_0x1f6f6f,_0xb4d9ee){const _0x1482e2=this['_attachMarkerToThread'](_0x1f6f6f,_0xb4d9ee);_0x1482e2&&!_0x1482e2['context']&&_0x1482e2['setContext']({'type':_0x3728('0x5c'),'value':this[_0x3728('0x4')](_0xb4d9ee)});}}function tt(_0x3e83b6,_0x2c65a8){return _0x2c65a8?_0x3e83b6+':'+_0x2c65a8:_0x3e83b6;}function ot(_0x28b9be){const _0x329aa0=_0x28b9be[_0x3728('0x61')](':');return{'group':_0x329aa0[0x0],'id':_0x329aa0[0x1],'part':_0x329aa0[0x2]};}function et(_0x4ec5c5,_0x1f7b35){const _0x42c39c=_0x1f7b35[_0x3728('0x48')],_0xcd91c6=_0x1f7b35[_0x3728('0x6c')](_0x4ec5c5['start']);for(const _0x150bcc of _0x4ec5c5[_0x3728('0x0')]()){const {type:_0x33bf1c,item:_0xb27784,nextPosition:_0x387a86}=_0x150bcc;if('text'===_0x33bf1c||_0x42c39c[_0x3728('0x4a')](_0xb27784)){const _0x5753ba=_0x1f7b35[_0x3728('0x38')](_0xb27784);_0xcd91c6[_0x3728('0x16')]&&(_0xcd91c6[_0x3728('0x58')]=_0x5753ba),_0xcd91c6[_0x3728('0x10')]=_0x387a86;}}return _0xcd91c6['isCollapsed']?null:_0xcd91c6;}
23
+ const _0x5531=['isObject','low','filter','add','hasCommentThread','setContext','addCommentThread','CommentsEditing','editing','destroy','$textProxy','_getTextContext','change','change:isReadOnly','size','createElement','listenTo','split','markerToHighlight','commands','_threadToController','differ','_initializeMarkerConverters','reconvertMarker','isResolved','_handleThreadMarker','scrollToThreadMarker','reopen','_reconvertMarkers','registerAnnotation','fetchCommentThread','set','isThreadsLoadingPaused','getCommentThread','_attachedThreads','_getTargetForId','hasMarkerForId','removeCommentThread','from','_handleMarkerAddAndRemove','has','hasContent','removeMarker','render','schema','addComment','addMarker:','getAllMarkersForId','get','hasDomSelection','isLocal','for','activeMarker','delete','$marker','managedUsingOperations','consumable','text','_detachCommentThread','change:isThreadsLoadingPaused','editingDowncast','init','view','editor','ignoreResolvedComments','_hasTargetInContent','config','comment:','reopenCommentThread','comment','ck-comment-marker--active','switchReadOnly','map','$graveyard','document','includes','plugins','upcast','getCommentThreads','state','item','high','data','resolveCommentThread','markers','conversion','length','updateMarker','openNewCommentThread','getAttribute','start','elementToElement','requires','enqueueChange','consume','root','_threads','push','ck-comment-marker','isCollapsed','once','end','affectsData','newRange','attachTo','isEqual','getByInnerView','then','getChangedMarkers','_attachMarkerToThread','model','markerName'];(function(_0x12f6c4,_0x553170){const _0x1a1cad=function(_0xd8983d){while(--_0xd8983d){_0x12f6c4['push'](_0x12f6c4['shift']());}};_0x1a1cad(++_0x553170);}(_0x5531,0xb3));const _0x1a1c=function(_0x12f6c4,_0x553170){_0x12f6c4=_0x12f6c4-0x0;let _0x1a1cad=_0x5531[_0x12f6c4];return _0x1a1cad;};import{Plugin as _0x37588d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2cbd95}from'ckeditor5/src/utils';import _0x1c47a4 from'./commentsrepository';import _0x29792c from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4d2d0e}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c82fc from'../annotations/editorannotations';import _0xee51b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x220435 from'./integrations/importword';import _0x3144be from'../annotations/annotations';export default class r extends _0x37588d{static get[_0x1a1c('0x19')](){return[_0x1c47a4,_0x1c82fc,_0xee51b,_0x220435];}static get['pluginName'](){return _0x1a1c('0x34');}constructor(_0x544bd9){super(_0x544bd9),this['set'](_0x1a1c('0x4d'),!0x0),_0x544bd9['data'][_0x1a1c('0x21')]('ready',()=>this[_0x1a1c('0x4d')]=!0x1),this['set'](_0x1a1c('0x61'),null),this['on']('change:activeMarker',(_0x28555b,_0x8a9bfb,_0x37ac89,_0x2f48b7)=>{const _0x3a09c8=_0x37ac89?rt(_0x37ac89)['id']:null;if(_0x544bd9[_0x1a1c('0x2b')][_0x1a1c('0x39')](()=>{if(_0x3a09c8){const _0x22edf0=this[_0x1a1c('0x5c')](_0x3a09c8);for(const _0x17bc1e of _0x22edf0)_0x544bd9[_0x1a1c('0x35')][_0x1a1c('0x44')](_0x17bc1e);}if(_0x2f48b7){const {id:_0x308212}=rt(_0x2f48b7),_0x4ce0f6=this[_0x1a1c('0x5c')](_0x308212);for(const _0x24a194 of _0x4ce0f6)_0x544bd9[_0x1a1c('0x35')][_0x1a1c('0x44')](_0x24a194);}}),_0x3a09c8){const _0x2956bb=_0x544bd9[_0x1a1c('0x9')]['get'](_0x1c47a4)['getCommentThread'](_0x3a09c8);_0x2956bb&&_0x2956bb[_0x1a1c('0x45')]&&this[_0x1a1c('0x47')](_0x3a09c8);}}),this[_0x1a1c('0x4f')]=new Map();}[_0x1a1c('0x6a')](){const _0x2c847d=this['editor'],_0x57058b=_0x2c847d[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c47a4),_0x30796b=_0x2c847d['config'][_0x1a1c('0x5d')]('collaboration.channelId');_0x2c847d[_0x1a1c('0x40')][_0x1a1c('0x30')](_0x1a1c('0x33'),new _0x29792c(_0x2c847d)),this['listenTo'](_0x2c847d,_0x1a1c('0x3a'),(_0x2cf21c,_0x169683,_0x2c17d2)=>{_0x57058b[_0x1a1c('0x4')](_0x2c17d2,_0x2c847d[_0x1a1c('0x6f')][_0x1a1c('0x5d')]('collaboration.channelId'));}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x33'),_0x30796b),(_0x4b6b44,{threadId:_0x4a93d2})=>{const _0xdc8b1=_0x2c847d[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c82fc),_0x5dab23=this[_0x1a1c('0x6c')][_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c47a4)[_0x1a1c('0x4e')](_0x4a93d2);if(_0x5dab23&&_0x5dab23[_0x1a1c('0x45')]&&!this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x4a93d2)){const _0x47688f=_0x5dab23[_0x1a1c('0x25')](()=>this[_0x1a1c('0x50')](_0x5dab23['id']));_0xdc8b1[_0x1a1c('0x4a')](_0x47688f),this[_0x1a1c('0x4f')][_0x1a1c('0x4c')](_0x4a93d2,[]),0x0===this[_0x1a1c('0x5c')](_0x4a93d2)[_0x1a1c('0x13')]&&(_0x5dab23[_0x1a1c('0x6e')]=!0x1);}}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x52'),_0x30796b),(_0x164944,{threadId:_0x8d2819})=>{_0x2c847d[_0x1a1c('0x2b')][_0x1a1c('0x1a')]({'isUndoable':!0x1},_0x126958=>{const _0x1d9cd9=this[_0x1a1c('0x5c')](_0x8d2819);this[_0x1a1c('0x4f')][_0x1a1c('0x62')](_0x8d2819);for(const _0xf9a98c of _0x1d9cd9)_0x126958[_0x1a1c('0x57')](_0xf9a98c);});},{'priority':_0x1a1c('0xe')}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x10'),_0x30796b),(_0x15758c,{threadId:_0x41c318})=>{this['_reconvertMarkers'](_0x41c318),this[_0x1a1c('0x6c')]['editing']['view'][_0x1a1c('0x5e')]&&this['editor']['editing'][_0x1a1c('0x6b')]['focus']();},{'priority':_0x1a1c('0x2e')}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x1'),_0x30796b),(_0x30f352,{threadId:_0x553dd6})=>{this[_0x1a1c('0x49')](_0x553dd6);},{'priority':_0x1a1c('0x2e')}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x5a'),_0x30796b),(_0x3faa40,{threadId:_0x7a315a,isFromAdapter:_0x49493e})=>{const _0x49d71f=this[_0x1a1c('0x5c')](_0x7a315a);if(_0x49493e||0x0==_0x49d71f['length']||!_0x57058b[_0x1a1c('0x31')](_0x7a315a))return;0x1===_0x57058b[_0x1a1c('0x4e')](_0x7a315a)[_0x1a1c('0x13')]&&_0x2c847d['model'][_0x1a1c('0x1a')]({'isUndoable':!0x1},_0x19633f=>{for(const _0x230dcc of _0x49d71f)_0x19633f[_0x1a1c('0x14')](_0x230dcc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1a1c('0x43')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x22e4a6=this[_0x1a1c('0x6c')]['plugins'][_0x1a1c('0x5d')](_0x1c47a4),_0x557b0c=this['editor'][_0x1a1c('0x6f')][_0x1a1c('0x5d')]('collaboration.channelId');for(const _0x34e401 of _0x22e4a6[_0x1a1c('0xb')]({'channelId':_0x557b0c}))_0x22e4a6[_0x1a1c('0x67')](_0x34e401['id']),_0x22e4a6[_0x1a1c('0x1d')][_0x1a1c('0x62')](_0x34e401['id']);super[_0x1a1c('0x36')]();}[_0x1a1c('0x51')](_0xe183a6){return this[_0x1a1c('0x5c')](_0xe183a6)[_0x1a1c('0x13')]>0x0;}[_0x1a1c('0x5c')](_0x1ed717){return(this['_attachedThreads'][_0x1a1c('0x5d')](_0x1ed717)||[])[_0x1a1c('0x5')](_0x1c17ae=>this[_0x1a1c('0x6c')][_0x1a1c('0x2b')][_0x1a1c('0x11')][_0x1a1c('0x5d')](_0x1c17ae))[_0x1a1c('0x2f')](_0x5a1f87=>_0x5a1f87);}[_0x1a1c('0x47')](_0x13f50a){const _0x4a531b=this[_0x1a1c('0x50')](_0x13f50a);_0x4a531b&&setTimeout(()=>{this[_0x1a1c('0x61')]&&rt(this['activeMarker'])['id']===_0x13f50a&&_0x2cbd95({'target':_0x4a531b[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1a1c('0x49')](_0x52cccc){this[_0x1a1c('0x6c')][_0x1a1c('0x2b')][_0x1a1c('0x39')](()=>{for(const _0x196644 of this[_0x1a1c('0x5c')](_0x52cccc))this['editor'][_0x1a1c('0x35')]['reconvertMarker'](_0x196644);});}['_initializeMarkerConverters'](){const _0x2ae8ac=this['editor'];_0x2ae8ac[_0x1a1c('0x12')][_0x1a1c('0x60')](_0x1a1c('0x69'))[_0x1a1c('0x3f')]({'model':'comment','view':(_0x109af2,_0x330841)=>{const {id:_0x1d4246}=rt(_0x109af2[_0x1a1c('0x2c')]),_0x1ba129=_0x2ae8ac[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c47a4)[_0x1a1c('0x4e')](_0x1d4246),_0x4f132e=this[_0x1a1c('0x61')]&&rt(this[_0x1a1c('0x61')])['id']===_0x1d4246;if(_0x1ba129&&_0x1ba129[_0x1a1c('0x45')]&&!_0x4f132e&&_0x109af2[_0x1a1c('0xd')])return _0x330841[_0x1a1c('0x65')][_0x1a1c('0x1b')](_0x109af2[_0x1a1c('0xd')],_0x1a1c('0x5b')+_0x109af2[_0x1a1c('0x2c')]),_0x330841[_0x1a1c('0x65')][_0x1a1c('0x1b')](_0x109af2['item'],'removeMarker:'+_0x109af2[_0x1a1c('0x2c')]),{'classes':[]};const _0x1fbdeb=[_0x1a1c('0x1f')];return _0x4f132e&&_0x1fbdeb[_0x1a1c('0x1e')](_0x1a1c('0x3')),{'classes':_0x1fbdeb,'attributes':{'data-comment':_0x1d4246}};}}),_0x2ae8ac[_0x1a1c('0x12')]['for']('dataDowncast')['markerToData']({'model':_0x1a1c('0x2'),'view':(_0x1d7c5b,{options:_0x488f2c})=>{const _0x277c23=_0x2ae8ac['plugins'][_0x1a1c('0x5d')](_0x1c47a4),_0x3ffca6=_0x2ae8ac['model']['markers'][_0x1a1c('0x5d')](_0x1d7c5b),{id:_0x5a9a9b,part:_0x1c3198}=rt(_0x1d7c5b),_0x5d357e=_0x277c23[_0x1a1c('0x4e')](_0x5a9a9b);return _0x3ffca6&&!_0x3ffca6[_0x1a1c('0x23')]||_0x5d357e&&_0x5d357e[_0x1a1c('0x45')]&&_0x488f2c[_0x1a1c('0x6d')]?null:{'group':_0x1a1c('0x2'),'name':_0x1c3198?_0x5a9a9b+':'+_0x1c3198:_0x5a9a9b};}}),_0x2ae8ac[_0x1a1c('0x12')][_0x1a1c('0x60')](_0x1a1c('0xa'))[_0x1a1c('0x18')]({'view':{'name':_0x1a1c('0x2'),'attributes':{'id':/^\w/}},'model':(_0x295834,{writer:_0x4ae235})=>_0x4ae235[_0x1a1c('0x3c')](_0x1a1c('0x63'),{'data-name':_0x1a1c('0x0')+_0x295834[_0x1a1c('0x16')]('id')})}),_0x2ae8ac['conversion'][_0x1a1c('0x60')](_0x1a1c('0xa'))['dataToMarker']({'view':_0x1a1c('0x2')});}[_0x1a1c('0x54')](){const _0x35dcbb=this[_0x1a1c('0x6c')],_0x36188c=_0x35dcbb[_0x1a1c('0x9')]['get'](_0x1c47a4),_0x8eb907=new Set();_0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x7')]['registerPostFixer'](_0x4baae7=>{let _0xae59e8=!0x1;for(const {name:_0x4aa2f2,data:_0x383dfa}of _0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x7')][_0x1a1c('0x42')][_0x1a1c('0x29')]()){const {group:_0x10316c,id:_0x2ab3df}=rt(_0x4aa2f2);let _0x44d1b5=_0x383dfa[_0x1a1c('0x24')];if(_0x1a1c('0x2')!==_0x10316c||!_0x44d1b5)continue;const _0x21d083=_0x1a1c('0x6')===_0x44d1b5[_0x1a1c('0x1c')]['rootName'];_0x21d083||(_0x44d1b5=nt(_0x44d1b5,_0x35dcbb[_0x1a1c('0x2b')]),!_0x44d1b5||!_0x383dfa[_0x1a1c('0x24')]||_0x44d1b5[_0x1a1c('0x26')](_0x383dfa[_0x1a1c('0x24')]))?!_0x44d1b5||!_0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x56')](_0x44d1b5)||this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x2ab3df)&&_0x21d083?(_0x4baae7['removeMarker'](_0x4aa2f2),_0xae59e8=!0x0):_0x21d083||(this[_0x1a1c('0x4d')]?_0x8eb907[_0x1a1c('0x30')](_0x4aa2f2):this[_0x1a1c('0x46')](_0x4aa2f2,_0x2ab3df)):(_0x4baae7[_0x1a1c('0x14')](_0x4aa2f2,{'range':_0x44d1b5}),_0xae59e8=!0x0);}return _0xae59e8;}),this['on'](_0x1a1c('0x68'),(_0x515f27,_0x5cd9c0,_0x1d2d6f)=>{if(!_0x1d2d6f&&_0x8eb907[_0x1a1c('0x3b')])for(const _0x1bfb7a of _0x8eb907){const {id:_0xc7219b}=rt(_0x1bfb7a);_0x8eb907[_0x1a1c('0x62')](_0xc7219b),_0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x11')]['get'](_0x1bfb7a)&&this[_0x1a1c('0x46')](_0x1bfb7a,_0xc7219b);}}),this[_0x1a1c('0x3d')](_0x35dcbb['model'][_0x1a1c('0x7')],_0x1a1c('0x39'),(_0x46d5db,_0x238da2)=>{for(const {name:_0x434f31,data:{newRange:_0x27cfd8}}of _0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x7')][_0x1a1c('0x42')][_0x1a1c('0x29')]()){const {group:_0xed159d,id:_0x3def62}=rt(_0x434f31);if(_0x1a1c('0x2')!==_0xed159d)continue;const _0x5817d7=_0x36188c[_0x1a1c('0x4e')](_0x3def62),_0x29f34d=this['hasMarkerForId'](_0x3def62);_0x5817d7&&(_0x5817d7[_0x1a1c('0x6e')]||_0x35dcbb[_0x1a1c('0x35')][_0x1a1c('0x6b')][_0x1a1c('0x21')](_0x1a1c('0x58'),()=>{const _0x5ca464=_0x35dcbb['plugins']['get'](_0x3144be),_0x3cedd0=_0x36188c[_0x1a1c('0x41')][_0x1a1c('0x5d')](_0x5817d7)[_0x1a1c('0x6b')];_0x5ca464['getByInnerView'](_0x3cedd0)['refreshVisibility']();},{'priority':_0x1a1c('0x2e')}),_0x5817d7[_0x1a1c('0x6e')]=_0x29f34d||!!_0x27cfd8),!_0x27cfd8&&_0x238da2[_0x1a1c('0x5f')]&&(_0x8eb907['delete'](_0x3def62),_0x5817d7&&!_0x5817d7['isResolved']&&!_0x29f34d&&this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x3def62)&&(this[_0x1a1c('0x4f')][_0x1a1c('0x62')](_0x3def62),_0x5817d7['resolve']()));}});}[_0x1a1c('0x50')](_0x35e995){const _0x4ec23b=this['editor'],_0x565ab9=this[_0x1a1c('0x5c')](_0x35e995);return _0x4d2d0e(_0x4ec23b[_0x1a1c('0x35')],_0x565ab9);}['_getTextContext'](_0xb5af54){const _0x2d904d=this[_0x1a1c('0x5c')](_0xb5af54);let _0x4b4021='',_0x51b996=!0x1;for(const _0x5a902f of _0x2d904d){const _0x59d0e5=_0x5a902f['getRange']();for(const _0x3864ab of Array[_0x1a1c('0x53')](_0x59d0e5['getItems']()))_0x3864ab['is'](_0x1a1c('0x37'))?(_0x4b4021&&_0x51b996&&(_0x4b4021+='\x20',_0x51b996=!0x1),_0x4b4021+=_0x3864ab[_0x1a1c('0xf')]):_0x51b996=!0x0;_0x51b996=!0x0;}return _0x4b4021['substring'](0x0,0x96);}[_0x1a1c('0x2a')](_0x1635ba,_0x256ddf){const _0x32d4e9=this[_0x1a1c('0x6c')],_0x4203fe=_0x32d4e9['plugins'][_0x1a1c('0x5d')](_0x1c47a4);let _0x1ac7a9=_0x4203fe[_0x1a1c('0x4e')](_0x256ddf);if(this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x256ddf)){const _0x431898=this[_0x1a1c('0x4f')][_0x1a1c('0x5d')](_0x256ddf);return _0x431898[_0x1a1c('0x8')](_0x1635ba)||_0x431898['push'](_0x1635ba),_0x1ac7a9;}this[_0x1a1c('0x4f')]['set'](_0x256ddf,[_0x1635ba]);const _0x9e9e55=_0x32d4e9[_0x1a1c('0x6f')][_0x1a1c('0x5d')]('collaboration.channelId'),_0x315dc3=_0x32d4e9['plugins']['get'](_0x1c82fc);if(_0x1ac7a9&&_0x1ac7a9[_0x1a1c('0x45')])return _0x1ac7a9[_0x1a1c('0x48')](),_0x1ac7a9;return!this[_0x1a1c('0x5c')](_0x256ddf)[0x0][_0x1a1c('0x64')]?_0x32d4e9[_0x1a1c('0x35')][_0x1a1c('0x6b')][_0x1a1c('0x21')](_0x1a1c('0x58'),()=>{const _0x5434d2=_0x32d4e9[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x3144be);_0x1ac7a9=_0x4203fe[_0x1a1c('0x15')]({'channelId':_0x9e9e55,'threadId':_0x256ddf,'target':()=>this[_0x1a1c('0x50')](_0x256ddf),'context':{'type':'text','value':this[_0x1a1c('0x38')](_0x256ddf)}});const _0x2ebab8=_0x4203fe[_0x1a1c('0x41')][_0x1a1c('0x5d')](_0x1ac7a9)[_0x1a1c('0x6b')],_0x3e83d6=_0x5434d2[_0x1a1c('0x27')](_0x2ebab8);_0x3e83d6&&_0x315dc3[_0x1a1c('0x4a')](_0x3e83d6);},{'priority':'low'}):_0x4203fe[_0x1a1c('0x4b')]({'channelId':_0x9e9e55,'threadId':_0x256ddf})[_0x1a1c('0x28')](_0x53233c=>{if('destroyed'!==_0x32d4e9[_0x1a1c('0xc')]){if(_0x1ac7a9=_0x53233c,_0x1ac7a9){const _0x126c01=_0x1ac7a9[_0x1a1c('0x25')](()=>this[_0x1a1c('0x50')](_0x256ddf));_0x315dc3[_0x1a1c('0x4a')](_0x126c01),_0x1ac7a9[_0x1a1c('0x45')]&&this[_0x1a1c('0x49')](_0x256ddf);}else{const _0x5a7340=this[_0x1a1c('0x5c')](_0x256ddf);_0x32d4e9[_0x1a1c('0x2b')]['change'](_0x42dc7d=>{for(const _0x375288 of _0x5a7340)_0x42dc7d[_0x1a1c('0x57')](_0x375288);});}}}),_0x1ac7a9;}[_0x1a1c('0x46')](_0x40766e,_0x571adf){const _0x2c8e89=this[_0x1a1c('0x2a')](_0x40766e,_0x571adf);_0x2c8e89&&!_0x2c8e89['context']&&_0x2c8e89[_0x1a1c('0x32')]({'type':'text','value':this[_0x1a1c('0x38')](_0x571adf)});}}function et(_0x5368e1,_0x1960a1){return _0x1960a1?_0x5368e1+':'+_0x1960a1:_0x5368e1;}function rt(_0x2a44e5){const _0x3ce274=_0x2a44e5[_0x1a1c('0x3e')](':');return{'group':_0x3ce274[0x0],'id':_0x3ce274[0x1],'part':_0x3ce274[0x2]};}function nt(_0x714577,_0x230e37){const _0x4c9980=_0x230e37[_0x1a1c('0x59')],_0x3070ac=_0x230e37['createRange'](_0x714577[_0x1a1c('0x17')]);for(const _0x5bc6f4 of _0x714577['getWalker']()){const {type:_0x4630b3,item:_0x2e161b,nextPosition:_0x3ee39b}=_0x5bc6f4;if(_0x1a1c('0x66')===_0x4630b3||_0x4c9980[_0x1a1c('0x2d')](_0x2e161b)){const _0x4d9888=_0x230e37['createPositionBefore'](_0x2e161b);_0x3070ac[_0x1a1c('0x20')]&&(_0x3070ac[_0x1a1c('0x17')]=_0x4d9888),_0x3070ac[_0x1a1c('0x22')]=_0x3ee39b;}}return _0x3070ac[_0x1a1c('0x20')]?null:_0x3070ac;}