@ckeditor/ckeditor5-comments 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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 _0x2674=['createCollection','_updateHeight','detach','ck-annotation-wrapper--active','keystrokes','clientHeight','set','targetRect','attach','mainView','listenTo','isActive','setTemplate','type','add','focusTracker','element','focus','render','content','destroy','_mutationObserver','length','isDirty','clear'];(function(_0x223fc8,_0x2674c6){const _0x524969=function(_0x2f4ef6){while(--_0x2f4ef6){_0x223fc8['push'](_0x223fc8['shift']());}};_0x524969(++_0x2674c6);}(_0x2674,0xf3));const _0x5249=function(_0x223fc8,_0x2674c6){_0x223fc8=_0x223fc8-0x0;let _0x524969=_0x2674[_0x223fc8];return _0x524969;};import{View as _0x34f795}from'ckeditor5/src/ui';import{FocusTracker as _0x318be9,KeystrokeHandler as _0x309eeb,uid as _0x515493}from'ckeditor5/src/utils';import _0xfc47e9 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x34f795{constructor(_0x380414,_0x394369){super(_0x380414),this['id']=_0x515493(),this[_0x5249('0x16')]=new _0x318be9(),this[_0x5249('0xb')]=new _0x309eeb(),this[_0x5249('0xb')][_0x5249('0xd')]('Esc',(_0x309160,_0x25b6b2)=>this['fire']('Esc',_0x25b6b2)),this[_0x5249('0xd')](_0x5249('0xe'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this[_0x5249('0xd')](_0x5249('0x12'),!0x1),this[_0x5249('0xd')](_0x5249('0x5'),!0x1),this['set'](_0x5249('0x4'),0x0),this[_0x5249('0xd')](_0x5249('0x14'),''),this[_0x5249('0x3')]=_0xfc47e9(()=>this[_0x5249('0x8')]()),this['content']=this[_0x5249('0x7')](),this[_0x5249('0x1')]['add'](_0x394369),this[_0x5249('0x10')]=_0x394369;const _0x174392=this['bindTemplate'];this[_0x5249('0x13')]({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x174392['if'](_0x5249('0x12'),_0x5249('0xa'))],'tabindex':-0x1},'children':this[_0x5249('0x1')]});}[_0x5249('0x0')](){super['render'](),this[_0x5249('0x16')][_0x5249('0x15')](this[_0x5249('0x17')]),this[_0x5249('0xb')][_0x5249('0x11')](this['element']),this[_0x5249('0x3')][_0x5249('0xf')](this[_0x5249('0x17')]);}[_0x5249('0x2')](){this[_0x5249('0x1')][_0x5249('0x6')](),this[_0x5249('0xb')][_0x5249('0x2')](),this[_0x5249('0x16')]['destroy'](),this[_0x5249('0x3')][_0x5249('0x9')](),super[_0x5249('0x2')]();}[_0x5249('0x18')](){this[_0x5249('0x17')]['focus']();}['_updateHeight'](){const _0x21cc7b=this[_0x5249('0x17')][_0x5249('0xc')];_0x21cc7b&&(this['height']=_0x21cc7b);}}
23
+ const _0x146d=['keystrokes','attach','clear','isActive','Esc','length','detach','focusTracker','height','render','mainView','listenTo','ck-annotation-wrapper','element','_mutationObserver','div','setTemplate','type','createCollection','set','clientHeight','ck-rounded-corners','_updateHeight','destroy','focus','isDirty','add','content'];(function(_0x15a0fe,_0x146d5c){const _0x5aac8f=function(_0x2a6d63){while(--_0x2a6d63){_0x15a0fe['push'](_0x15a0fe['shift']());}};_0x5aac8f(++_0x146d5c);}(_0x146d,0xbe));const _0x5aac=function(_0x15a0fe,_0x146d5c){_0x15a0fe=_0x15a0fe-0x0;let _0x5aac8f=_0x146d[_0x15a0fe];return _0x5aac8f;};import{View as _0x35c900}from'ckeditor5/src/ui';import{FocusTracker as _0x9c5ded,KeystrokeHandler as _0x3f1e2b,uid as _0x5336c2}from'ckeditor5/src/utils';import _0x3201ff from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x35c900{constructor(_0x7da9c2,_0x3cee5b){super(_0x7da9c2),this['id']=_0x5336c2(),this[_0x5aac('0xd')]=new _0x9c5ded(),this[_0x5aac('0x6')]=new _0x3f1e2b(),this[_0x5aac('0x6')][_0x5aac('0x19')](_0x5aac('0xa'),(_0x4b17d1,_0x26ab06)=>this['fire'](_0x5aac('0xa'),_0x26ab06)),this[_0x5aac('0x19')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5aac('0x19')]('height',0x0),this['set']('isActive',!0x1),this[_0x5aac('0x19')](_0x5aac('0x3'),!0x1),this['set'](_0x5aac('0xb'),0x0),this[_0x5aac('0x19')](_0x5aac('0x17'),''),this['_mutationObserver']=_0x3201ff(()=>this['_updateHeight']()),this[_0x5aac('0x5')]=this[_0x5aac('0x18')](),this[_0x5aac('0x5')][_0x5aac('0x4')](_0x3cee5b),this[_0x5aac('0x10')]=_0x3cee5b;const _0x12af60=this['bindTemplate'];this[_0x5aac('0x16')]({'tag':_0x5aac('0x15'),'attributes':{'class':['ck',_0x5aac('0x12'),_0x5aac('0x1b'),_0x12af60['if'](_0x5aac('0x9'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5aac('0x5')]});}['render'](){super[_0x5aac('0xf')](),this['focusTracker'][_0x5aac('0x4')](this[_0x5aac('0x13')]),this['keystrokes'][_0x5aac('0x11')](this[_0x5aac('0x13')]),this['_mutationObserver'][_0x5aac('0x7')](this[_0x5aac('0x13')]);}['destroy'](){this[_0x5aac('0x5')][_0x5aac('0x8')](),this[_0x5aac('0x6')][_0x5aac('0x1')](),this['focusTracker']['destroy'](),this[_0x5aac('0x14')][_0x5aac('0xc')](),super[_0x5aac('0x1')]();}[_0x5aac('0x2')](){this[_0x5aac('0x13')][_0x5aac('0x2')]();}[_0x5aac('0x0')](){const _0x3e9050=this[_0x5aac('0x13')][_0x5aac('0x1a')];_0x3e9050&&(this[_0x5aac('0xe')]=_0x3e9050);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5100=['attach','set','height','_mutationObserver','bind','bindTemplate','bottom','top','detach','isAnimationDisabled','clear','destroy','updateHeight','createCollection','element','ck-sidebar-item','clientHeight','setTemplate','render','_targetTop','content'];(function(_0x16a103,_0x51007c){const _0x5b8457=function(_0x5e7760){while(--_0x5e7760){_0x16a103['push'](_0x16a103['shift']());}};_0x5b8457(++_0x51007c);}(_0x5100,0xc3));const _0x5b84=function(_0x16a103,_0x51007c){_0x16a103=_0x16a103-0x0;let _0x5b8457=_0x5100[_0x16a103];return _0x5b8457;};import{View as _0x2d3ba2}from'ckeditor5/src/ui';import{toUnit as _0x5f38ab}from'ckeditor5/src/utils';import _0x2f7530 from'../../utils/createmutationobserver';const At=_0x5f38ab('px');export default class C extends _0x2d3ba2{constructor(_0x1c82de){super(_0x1c82de),this[_0x5b84('0x10')]('top',0x0),this[_0x5b84('0x10')](_0x5b84('0x11'),0x0),this[_0x5b84('0x13')](_0x5b84('0x0'))['to'](this,_0x5b84('0x1'),this,_0x5b84('0x11'),(_0x590da7,_0x2530b8)=>_0x590da7+_0x2530b8),this[_0x5b84('0x10')](_0x5b84('0x3'),!0x1),this[_0x5b84('0x12')]=_0x2f7530(()=>this['updateHeight']()),this[_0x5b84('0xd')]=null,this['content']=this[_0x5b84('0x7')]();const _0x14b648=this[_0x5b84('0x14')];this[_0x5b84('0xb')]({'tag':'div','attributes':{'class':[_0x5b84('0x9'),_0x14b648['to'](_0x5b84('0x3'),_0x235edd=>_0x235edd?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x14b648['to']('top',_0x1da266=>At(_0x1da266))}},'children':this[_0x5b84('0xe')]});}[_0x5b84('0xc')](){super['render'](),this[_0x5b84('0x12')][_0x5b84('0xf')](this[_0x5b84('0x8')]);}[_0x5b84('0x6')](){const _0x4d3136=this[_0x5b84('0x8')][_0x5b84('0xa')];_0x4d3136&&(this[_0x5b84('0x11')]=_0x4d3136);}[_0x5b84('0x5')](){this[_0x5b84('0xe')][_0x5b84('0x4')](),this[_0x5b84('0x12')][_0x5b84('0x2')](),super[_0x5b84('0x5')]();}}
23
+ const _0x8c8c=['setTemplate','bind','bindTemplate','_mutationObserver','destroy','height','detach','content','bottom','createCollection','isAnimationDisabled','render','ck-sidebar-item--no-animation','clientHeight','top','updateHeight','set','ck-sidebar-item','div','clear','_targetTop','element','attach'];(function(_0x1fb5d5,_0x8c8c69){const _0x343932=function(_0x5c17cf){while(--_0x5c17cf){_0x1fb5d5['push'](_0x1fb5d5['shift']());}};_0x343932(++_0x8c8c69);}(_0x8c8c,0xe9));const _0x3439=function(_0x1fb5d5,_0x8c8c69){_0x1fb5d5=_0x1fb5d5-0x0;let _0x343932=_0x8c8c[_0x1fb5d5];return _0x343932;};import{View as _0x34202c}from'ckeditor5/src/ui';import{toUnit as _0x238131}from'ckeditor5/src/utils';import _0x5c2166 from'../../utils/createmutationobserver';const Dt=_0x238131('px');export default class C extends _0x34202c{constructor(_0x2c0aed){super(_0x2c0aed),this[_0x3439('0xd')](_0x3439('0xb'),0x0),this['set']('height',0x0),this[_0x3439('0x15')](_0x3439('0x5'))['to'](this,_0x3439('0xb'),this,_0x3439('0x2'),(_0xdfbdb9,_0x171ec7)=>_0xdfbdb9+_0x171ec7),this['set'](_0x3439('0x7'),!0x1),this['_mutationObserver']=_0x5c2166(()=>this[_0x3439('0xc')]()),this[_0x3439('0x11')]=null,this[_0x3439('0x4')]=this[_0x3439('0x6')]();const _0x2d7799=this[_0x3439('0x16')];this[_0x3439('0x14')]({'tag':_0x3439('0xf'),'attributes':{'class':[_0x3439('0xe'),_0x2d7799['to'](_0x3439('0x7'),_0x395381=>_0x395381?_0x3439('0x9'):'')],'style':{'top':_0x2d7799['to'](_0x3439('0xb'),_0x51ba0e=>Dt(_0x51ba0e))}},'children':this[_0x3439('0x4')]});}['render'](){super[_0x3439('0x8')](),this[_0x3439('0x0')][_0x3439('0x13')](this['element']);}[_0x3439('0xc')](){const _0x47af5e=this[_0x3439('0x12')][_0x3439('0xa')];_0x47af5e&&(this['height']=_0x47af5e);}[_0x3439('0x1')](){this[_0x3439('0x4')][_0x3439('0x10')](),this[_0x3439('0x0')][_0x3439('0x3')](),super[_0x3439('0x1')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49ca=['number','class','ck-sidebar','div','set','minHeight','setTemplate','createCollection'];(function(_0x1a2bc0,_0x49ca11){const _0x51a336=function(_0x3dd936){while(--_0x3dd936){_0x1a2bc0['push'](_0x1a2bc0['shift']());}};_0x51a336(++_0x49ca11);}(_0x49ca,0xd2));const _0x51a3=function(_0x1a2bc0,_0x49ca11){_0x1a2bc0=_0x1a2bc0-0x0;let _0x51a336=_0x49ca[_0x1a2bc0];return _0x51a336;};import{View as _0x18d8ea}from'ckeditor5/src/ui';import{toUnit as _0x51c36d}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x51c36d('px');export default class T extends _0x18d8ea{constructor(_0x469987){super(_0x469987);const _0x455c70=this['bindTemplate'];this[_0x51a3('0x2')](_0x51a3('0x3'),0x0),this['set']('class',''),this['list']=this[_0x51a3('0x5')](),this[_0x51a3('0x4')]({'tag':_0x51a3('0x1'),'attributes':{'class':['ck',_0x51a3('0x0'),'ck-reset',_0x455c70['to'](_0x51a3('0x7'))],'style':{'minHeight':_0x455c70['to'](_0x51a3('0x3'),_0x1497ca=>_0x51a3('0x6')==typeof _0x1497ca?At(_0x1497ca+0xa):null)}},'children':this['list']});}}
23
+ const _0x130b=['minHeight','class','list','setTemplate','ck-sidebar','set','createCollection','ck-reset'];(function(_0x272242,_0x130b6c){const _0xb55733=function(_0x48f742){while(--_0x48f742){_0x272242['push'](_0x272242['shift']());}};_0xb55733(++_0x130b6c);}(_0x130b,0x108));const _0xb557=function(_0x272242,_0x130b6c){_0x272242=_0x272242-0x0;let _0xb55733=_0x130b[_0x272242];return _0xb55733;};import{View as _0x280df4}from'ckeditor5/src/ui';import{toUnit as _0x3d3b8a}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const Dt=_0x3d3b8a('px');export default class T extends _0x280df4{constructor(_0x174f72){super(_0x174f72);const _0x2d98d9=this['bindTemplate'];this['set'](_0xb557('0x0'),0x0),this[_0xb557('0x5')]('class',''),this['list']=this[_0xb557('0x6')](),this[_0xb557('0x3')]({'tag':'div','attributes':{'class':['ck',_0xb557('0x4'),_0xb557('0x7'),_0x2d98d9['to'](_0xb557('0x1'))],'style':{'minHeight':_0x2d98d9['to']('minHeight',_0x123b7c=>'number'==typeof _0x123b7c?Dt(_0x123b7c+0xa):null)}},'children':this[_0xb557('0x2')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5734=['rearrange','_editorAnnotations','has','init','widesidebar-attach-already-attached','attach','isAttached','EditorAnnotations','set','ck-sidebar--wide','_destroyEditorAnnotationsIntegration','blur','activeAnnotation','destroy','updateTargetRect','set:container','hasDomSelection','_refreshPositioningDebounced','listenTo','stopListening','_detachFromContainer','removeEventListener','refresh','refreshPositioning','from','switchTo','register','stop','annotations','addEventListener','get','high','wideSidebar','container','getOrderedSelectedAnnotations','pluginName','uiUpdate','off','_attachToContainer','WideSidebar','widesidebar-detach-not-attached','ready','add','plugins','editors','_integrateWithEditorAnnotations','cancel','context','change:container','resize','setActiveAnnotation','remove','detach'];(function(_0x15136c,_0x573402){const _0x13a0ae=function(_0x5ba41d){while(--_0x5ba41d){_0x15136c['push'](_0x15136c['shift']());}};_0x13a0ae(++_0x573402);}(_0x5734,0xbc));const _0x13a0=function(_0x15136c,_0x573402){_0x15136c=_0x15136c-0x0;let _0x13a0ae=_0x5734[_0x15136c];return _0x13a0ae;};import{ContextPlugin as _0x114c59,Context as _0x1af880}from'ckeditor5/src/core';import _0x2262fe from'./annotationsuis';import _0x290033 from'./sidebar';import{CKEditorError as _0x24f258,Collection as _0x185179}from'ckeditor5/src/utils';import{debounce as _0x83a1e}from'lodash-es';import _0x7b9f68 from'./editorannotations';export default class i extends _0x114c59{static get['requires'](){return[_0x290033,_0x2262fe];}static get[_0x13a0('0x6')](){return _0x13a0('0xa');}constructor(_0x11bf30){super(_0x11bf30),this[_0x13a0('0x1e')]=!0x1,this[_0x13a0('0x20')](_0x13a0('0x24'),null),this['annotations']=null,this['_editorAnnotations']=new _0x185179(),this[_0x13a0('0x29')]=_0x83a1e(()=>{this[_0x13a0('0x34')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x13a0('0x1b')](){const _0x2cec4e=this[_0x13a0('0x12')][_0x13a0('0xe')][_0x13a0('0x1')](_0x2262fe),_0x4ccdb6=this[_0x13a0('0x12')]['plugins'][_0x13a0('0x1')](_0x290033);_0x2cec4e[_0x13a0('0x32')](_0x13a0('0x3'),this),_0x4ccdb6[_0x13a0('0x4')]&&_0x2cec4e[_0x13a0('0x31')]('wideSidebar');}[_0x13a0('0x15')](_0xa2a265){if(_0xa2a265===this[_0x13a0('0x24')])return;const _0x673eda=this[_0x13a0('0x12')][_0x13a0('0xe')][_0x13a0('0x1')](_0x290033);_0x673eda['_activeAnnotation']=_0xa2a265;const _0x5b0f5=this['activeAnnotation'];this['activeAnnotation']=_0xa2a265,_0x673eda['refresh']({'blurredAnnotation':_0x5b0f5,'activatedAnnotation':this[_0x13a0('0x24')]});}[_0x13a0('0x1d')](_0x3de09e){this[_0x13a0('0x34')]=_0x3de09e;const _0x220e40=this[_0x13a0('0x12')][_0x13a0('0xe')]['get'](_0x290033);if(_0x220e40['_annotations']=_0x3de09e,this[_0x13a0('0x1e')])throw new _0x24f258(_0x13a0('0x1c'),this);this[_0x13a0('0x1e')]=!0x0,this['listenTo'](_0x220e40,_0x13a0('0x27'),()=>{this[_0x13a0('0x17')](),this[_0x13a0('0x2a')](_0x220e40,_0x13a0('0x13'),_0x204ea5=>{_0x204ea5[_0x13a0('0x8')](),this[_0x13a0('0x1d')](_0x3de09e);});}),_0x220e40[_0x13a0('0x9')]({'viewClass':_0x13a0('0x21')});const _0x4f5dfe=_0x37102c=>{_0x37102c[_0x13a0('0x26')](),_0x220e40['addAnnotation'](_0x37102c);};for(const _0x15e1b3 of _0x3de09e)_0x4f5dfe(_0x15e1b3);this[_0x13a0('0x2a')](_0x3de09e,_0x13a0('0xd'),(_0x18b681,_0x5891b0)=>{_0x4f5dfe(_0x5891b0);}),this[_0x13a0('0x2a')](_0x3de09e,_0x13a0('0x16'),(_0x3416bd,_0x5ed4ed,_0x51d6e6)=>{_0x220e40[_0x13a0('0x18')]({'removedAnnotation':_0x5ed4ed,'previousAnnotation':_0x3de09e['get'](_0x51d6e6-0x1),'nextAnnotation':_0x3de09e['get'](_0x51d6e6+0x1)}),_0x5ed4ed===this[_0x13a0('0x24')]&&this[_0x13a0('0x15')](null);},{'priority':_0x13a0('0x2')}),this[_0x13a0('0x2a')](_0x3de09e,'focus',(_0x5880e9,_0x1637ce)=>{this[_0x13a0('0x15')](_0x1637ce);}),this[_0x13a0('0x2a')](_0x3de09e,_0x13a0('0x23'),()=>{this[_0x13a0('0x15')](null);});const _0x58a1bd=this['context']instanceof _0x1af880?this['context'][_0x13a0('0xf')]:new _0x185179([this[_0x13a0('0x12')]]);for(const _0x12ccf3 of _0x58a1bd)this[_0x13a0('0x10')](_0x12ccf3);this[_0x13a0('0x2a')](_0x58a1bd,_0x13a0('0xd'),(_0x4c7ee2,_0xd27b7c)=>{this['listenTo'](_0xd27b7c,_0x13a0('0xc'),()=>{this['_integrateWithEditorAnnotations'](_0xd27b7c);});}),this[_0x13a0('0x2a')](_0x58a1bd,_0x13a0('0x16'),(_0xa6ec1,_0x67ca72)=>{_0x67ca72['plugins'][_0x13a0('0x1a')](_0x13a0('0x1f'))&&this[_0x13a0('0x22')](_0x67ca72[_0x13a0('0xe')][_0x13a0('0x1')](_0x13a0('0x1f')));}),window[_0x13a0('0x0')](_0x13a0('0x14'),this[_0x13a0('0x29')]),this['annotations'][_0x13a0('0x2f')]();}[_0x13a0('0x17')](){if(!this[_0x13a0('0x1e')])throw new _0x24f258(_0x13a0('0xb'),this);this['setActiveAnnotation'](null);const _0x4334e9=this[_0x13a0('0x12')]['plugins'][_0x13a0('0x1')](_0x290033);_0x4334e9[_0x13a0('0x2c')](this[_0x13a0('0x34')]),this['stopListening'](_0x4334e9),this[_0x13a0('0x2b')](this[_0x13a0('0x34')]),this[_0x13a0('0x12')]instanceof _0x1af880&&this[_0x13a0('0x2b')](this['context'][_0x13a0('0xf')]);for(const _0x22c6f2 of Array[_0x13a0('0x30')](this[_0x13a0('0x19')]))this[_0x13a0('0x22')](_0x22c6f2);window[_0x13a0('0x2d')]('resize',this[_0x13a0('0x29')]),this['_refreshPositioningDebounced'][_0x13a0('0x11')](),this[_0x13a0('0x24')]=null,this[_0x13a0('0x1e')]=!0x1,this[_0x13a0('0x34')]=null;}[_0x13a0('0x25')](){this[_0x13a0('0x1e')]&&this[_0x13a0('0x17')]();}['_integrateWithEditorAnnotations'](_0xffeef5){const _0x1e04be=_0xffeef5[_0x13a0('0xe')][_0x13a0('0x1')](_0x7b9f68);if(!_0x1e04be)return;const _0x2c35b6=()=>{const _0x2d9a66=_0x1e04be[_0x13a0('0x5')]({'annotations':this['annotations'],'activeAnnotation':this[_0x13a0('0x24')]});this['setActiveAnnotation'](_0x2d9a66[0x0]||null);};this[_0x13a0('0x2a')](_0x1e04be,_0x13a0('0x2e'),_0x2c35b6),this[_0x13a0('0x2a')](_0x1e04be,_0x13a0('0x23'),(_0x525346,{isAnnotationTracked:_0x2ae710})=>{this[_0x13a0('0x24')]&&_0x2ae710(this[_0x13a0('0x24')])&&this['setActiveAnnotation'](null);}),this[_0x13a0('0x2a')](_0x1e04be,_0x13a0('0x7'),()=>{this['_refreshPositioningDebounced']();}),this[_0x13a0('0x2a')](this[_0x13a0('0x34')],_0x13a0('0x23'),_0x272489=>{_0x1e04be[_0x13a0('0x28')]()&&(_0x2c35b6(),_0x272489[_0x13a0('0x33')]());},{'priority':_0x13a0('0x2')}),this[_0x13a0('0x19')][_0x13a0('0xd')](_0x1e04be);}[_0x13a0('0x22')](_0x571e3f){this['stopListening'](_0x571e3f),this['_editorAnnotations'][_0x13a0('0x16')](_0x571e3f);}}
23
+ const _0x1d0a=['register','add','set','remove','isAttached','context','hasDomSelection','rearrange','wideSidebar','EditorAnnotations','getOrderedSelectedAnnotations','listenTo','destroy','activeAnnotation','off','switchTo','from','ready','attach','init','plugins','set:container','get','requires','_detachFromContainer','_attachToContainer','change:container','uiUpdate','detach','setActiveAnnotation','high','stopListening','cancel','refresh','WideSidebar','annotations','refreshPositioning','_annotations','focus','addEventListener','_activeAnnotation','_integrateWithEditorAnnotations','container','_editorAnnotations','blur','_refreshPositioningDebounced','removeEventListener','widesidebar-attach-already-attached','_destroyEditorAnnotationsIntegration'];(function(_0x14a57a,_0x1d0a04){const _0x254544=function(_0x4903b4){while(--_0x4903b4){_0x14a57a['push'](_0x14a57a['shift']());}};_0x254544(++_0x1d0a04);}(_0x1d0a,0xba));const _0x2545=function(_0x14a57a,_0x1d0a04){_0x14a57a=_0x14a57a-0x0;let _0x254544=_0x1d0a[_0x14a57a];return _0x254544;};import{ContextPlugin as _0x5d47c2,Context as _0x18cffc}from'ckeditor5/src/core';import _0x402759 from'./annotationsuis';import _0x3d8d6d from'./sidebar';import{CKEditorError as _0x5cc721,Collection as _0x4607e4}from'ckeditor5/src/utils';import{debounce as _0x1f898a}from'lodash-es';import _0x2a162e from'./editorannotations';export default class i extends _0x5d47c2{static get[_0x2545('0x21')](){return[_0x3d8d6d,_0x402759];}static get['pluginName'](){return _0x2545('0x2c');}constructor(_0x518438){super(_0x518438),this[_0x2545('0xe')]=!0x1,this[_0x2545('0xc')](_0x2545('0x17'),null),this['annotations']=null,this[_0x2545('0x4')]=new _0x4607e4(),this['_refreshPositioningDebounced']=_0x1f898a(()=>{this[_0x2545('0x2d')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2545('0x1d')](){const _0x126048=this[_0x2545('0xf')][_0x2545('0x1e')][_0x2545('0x20')](_0x402759),_0x17aa07=this[_0x2545('0xf')][_0x2545('0x1e')][_0x2545('0x20')](_0x3d8d6d);_0x126048[_0x2545('0xa')](_0x2545('0x12'),this),_0x17aa07[_0x2545('0x3')]&&_0x126048[_0x2545('0x19')](_0x2545('0x12'));}[_0x2545('0x27')](_0x5dd2b7){if(_0x5dd2b7===this[_0x2545('0x17')])return;const _0x3f338a=this[_0x2545('0xf')]['plugins']['get'](_0x3d8d6d);_0x3f338a[_0x2545('0x1')]=_0x5dd2b7;const _0x19d1ce=this[_0x2545('0x17')];this[_0x2545('0x17')]=_0x5dd2b7,_0x3f338a[_0x2545('0x2b')]({'blurredAnnotation':_0x19d1ce,'activatedAnnotation':this[_0x2545('0x17')]});}['attach'](_0x2cc2bb){this[_0x2545('0x2d')]=_0x2cc2bb;const _0x3fc545=this[_0x2545('0xf')][_0x2545('0x1e')]['get'](_0x3d8d6d);if(_0x3fc545[_0x2545('0x2f')]=_0x2cc2bb,this[_0x2545('0xe')])throw new _0x5cc721(_0x2545('0x8'),this);this[_0x2545('0xe')]=!0x0,this[_0x2545('0x15')](_0x3fc545,_0x2545('0x1f'),()=>{this[_0x2545('0x26')](),this[_0x2545('0x15')](_0x3fc545,_0x2545('0x24'),_0x104abb=>{_0x104abb[_0x2545('0x18')](),this[_0x2545('0x1c')](_0x2cc2bb);});}),_0x3fc545[_0x2545('0x23')]({'viewClass':'ck-sidebar--wide'});const _0x7c76d5=_0x19037e=>{_0x19037e['updateTargetRect'](),_0x3fc545['addAnnotation'](_0x19037e);};for(const _0x1685b5 of _0x2cc2bb)_0x7c76d5(_0x1685b5);this[_0x2545('0x15')](_0x2cc2bb,'add',(_0x403f5f,_0x2eadc8)=>{_0x7c76d5(_0x2eadc8);}),this[_0x2545('0x15')](_0x2cc2bb,_0x2545('0xd'),(_0x4e9dd7,_0x4e6875,_0x33318e)=>{_0x3fc545[_0x2545('0x11')]({'removedAnnotation':_0x4e6875,'previousAnnotation':_0x2cc2bb['get'](_0x33318e-0x1),'nextAnnotation':_0x2cc2bb[_0x2545('0x20')](_0x33318e+0x1)}),_0x4e6875===this[_0x2545('0x17')]&&this[_0x2545('0x27')](null);},{'priority':_0x2545('0x28')}),this[_0x2545('0x15')](_0x2cc2bb,_0x2545('0x30'),(_0x18de64,_0x1494b6)=>{this['setActiveAnnotation'](_0x1494b6);}),this[_0x2545('0x15')](_0x2cc2bb,'blur',()=>{this['setActiveAnnotation'](null);});const _0x9b0900=this[_0x2545('0xf')]instanceof _0x18cffc?this['context']['editors']:new _0x4607e4([this['context']]);for(const _0x1abb2b of _0x9b0900)this[_0x2545('0x2')](_0x1abb2b);this[_0x2545('0x15')](_0x9b0900,_0x2545('0xb'),(_0x5abb11,_0x358790)=>{this['listenTo'](_0x358790,_0x2545('0x1b'),()=>{this[_0x2545('0x2')](_0x358790);});}),this[_0x2545('0x15')](_0x9b0900,_0x2545('0xd'),(_0x4adc21,_0x145fbc)=>{_0x145fbc['plugins']['has']('EditorAnnotations')&&this[_0x2545('0x9')](_0x145fbc['plugins'][_0x2545('0x20')](_0x2545('0x13')));}),window[_0x2545('0x0')]('resize',this[_0x2545('0x6')]),this[_0x2545('0x2d')][_0x2545('0x2e')]();}['detach'](){if(!this[_0x2545('0xe')])throw new _0x5cc721('widesidebar-detach-not-attached',this);this[_0x2545('0x27')](null);const _0x769f5d=this[_0x2545('0xf')]['plugins'][_0x2545('0x20')](_0x3d8d6d);_0x769f5d[_0x2545('0x22')](this[_0x2545('0x2d')]),this[_0x2545('0x29')](_0x769f5d),this[_0x2545('0x29')](this[_0x2545('0x2d')]),this['context']instanceof _0x18cffc&&this[_0x2545('0x29')](this[_0x2545('0xf')]['editors']);for(const _0x49c9f2 of Array[_0x2545('0x1a')](this[_0x2545('0x4')]))this[_0x2545('0x9')](_0x49c9f2);window[_0x2545('0x7')]('resize',this[_0x2545('0x6')]),this['_refreshPositioningDebounced'][_0x2545('0x2a')](),this[_0x2545('0x17')]=null,this[_0x2545('0xe')]=!0x1,this[_0x2545('0x2d')]=null;}[_0x2545('0x16')](){this['isAttached']&&this['detach']();}[_0x2545('0x2')](_0x2f93c4){const _0x218df0=_0x2f93c4[_0x2545('0x1e')][_0x2545('0x20')](_0x2a162e);if(!_0x218df0)return;const _0x95576b=()=>{const _0x540d27=_0x218df0[_0x2545('0x14')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2545('0x17')]});this['setActiveAnnotation'](_0x540d27[0x0]||null);};this['listenTo'](_0x218df0,_0x2545('0x2b'),_0x95576b),this[_0x2545('0x15')](_0x218df0,_0x2545('0x5'),(_0x5387fc,{isAnnotationTracked:_0x49c622})=>{this[_0x2545('0x17')]&&_0x49c622(this[_0x2545('0x17')])&&this[_0x2545('0x27')](null);}),this[_0x2545('0x15')](_0x218df0,_0x2545('0x25'),()=>{this[_0x2545('0x6')]();}),this[_0x2545('0x15')](this['annotations'],_0x2545('0x5'),_0xe66cad=>{_0x218df0[_0x2545('0x10')]()&&(_0x95576b(),_0xe66cad['stop']());},{'priority':_0x2545('0x28')}),this['_editorAnnotations'][_0x2545('0xb')](_0x218df0);}['_destroyEditorAnnotationsIntegration'](_0x3d72dd){this['stopListening'](_0x3d72dd),this[_0x2545('0x4')][_0x2545('0xd')](_0x3d72dd);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4708=['item','substr','document','comment:','_itemIsContent','selection','isEnabled','element','schema','push','editor','start','backward','_hasContent','end','getLastMatchingPosition','change','addMarker','execute','refresh','_trimToContent','isObject','getRanges','model'];(function(_0x3f068d,_0x4708f8){const _0x4a6ab0=function(_0x77126){while(--_0x77126){_0x3f068d['push'](_0x3f068d['shift']());}};_0x4a6ab0(++_0x4708f8);}(_0x4708,0x16c));const _0x4a6a=function(_0x3f068d,_0x4708f8){_0x3f068d=_0x3f068d-0x0;let _0x4a6ab0=_0x4708[_0x3f068d];return _0x4a6ab0;};import{Command as _0x465add}from'ckeditor5/src/core';import{uid as _0x3a3831}from'ckeditor5/src/utils';export default class q extends _0x465add{[_0x4a6a('0xf')](){const _0x5f3455=this[_0x4a6a('0x6')]['model'][_0x4a6a('0x16')][_0x4a6a('0x1')];for(const _0x22a390 of _0x5f3455['getRanges']())if(this[_0x4a6a('0x9')](_0x22a390))return void(this[_0x4a6a('0x2')]=!0x0);this['isEnabled']=!0x1;}[_0x4a6a('0xe')]({threadId:_0x5531a5=_0x3a3831()}={}){const _0x2237e9=this[_0x4a6a('0x6')][_0x4a6a('0x13')],_0x2f047d=[];for(const _0x23ce7a of _0x2237e9[_0x4a6a('0x16')][_0x4a6a('0x1')][_0x4a6a('0x12')]())this[_0x4a6a('0x9')](_0x23ce7a)&&_0x2f047d[_0x4a6a('0x5')](this['_trimToContent'](_0x23ce7a));_0x2237e9[_0x4a6a('0xc')](_0x52a4e7=>{for(const _0xe251f1 of _0x2f047d){const _0x23eafc=_0x3a3831()[_0x4a6a('0x15')](0x1,0x5),_0x4e1c33=_0x4a6a('0x17')+_0x5531a5+':'+_0x23eafc;_0x52a4e7[_0x4a6a('0xd')](_0x4e1c33,{'range':_0xe251f1,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4a6a('0x9')](_0x1f859a){for(const _0xff6b43 of _0x1f859a['getItems']())if(this[_0x4a6a('0x0')](_0xff6b43))return!0x0;return!0x1;}[_0x4a6a('0x0')](_0x22ae39){return _0x22ae39['is']('$textProxy')||this['editor'][_0x4a6a('0x13')][_0x4a6a('0x4')][_0x4a6a('0x11')](_0x22ae39)&&!_0x22ae39['is'](_0x4a6a('0x3'),'tableCell');}[_0x4a6a('0x10')](_0x383019){const _0x3709a4=_0x3a0ee5=>!this['_itemIsContent'](_0x3a0ee5[_0x4a6a('0x14')]),_0x5de137=_0x383019[_0x4a6a('0x7')][_0x4a6a('0xb')](_0x3709a4),_0x457361=_0x383019[_0x4a6a('0xa')]['getLastMatchingPosition'](_0x3709a4,{'direction':_0x4a6a('0x8')});return this[_0x4a6a('0x6')][_0x4a6a('0x13')]['createRange'](_0x5de137,_0x457361);}}
23
+ const _0x295c=['document','isObject','change','model','refresh','element','getItems','substr','editor','createRange','execute','addMarker','end','backward','isEnabled','getRanges','$textProxy','_itemIsContent','_trimToContent','getLastMatchingPosition','selection','tableCell','schema'];(function(_0x50c8b3,_0x295c86){const _0x5c0600=function(_0x2b3b85){while(--_0x2b3b85){_0x50c8b3['push'](_0x50c8b3['shift']());}};_0x5c0600(++_0x295c86);}(_0x295c,0x1b7));const _0x5c06=function(_0x50c8b3,_0x295c86){_0x50c8b3=_0x50c8b3-0x0;let _0x5c0600=_0x295c[_0x50c8b3];return _0x5c0600;};import{Command as _0x462c29}from'ckeditor5/src/core';import{uid as _0x5aa029}from'ckeditor5/src/utils';export default class J extends _0x462c29{[_0x5c06('0x2')](){const _0x38fafb=this[_0x5c06('0x6')]['model'][_0x5c06('0x15')][_0x5c06('0x12')];for(const _0x40235f of _0x38fafb[_0x5c06('0xd')]())if(this['_hasContent'](_0x40235f))return void(this[_0x5c06('0xc')]=!0x0);this[_0x5c06('0xc')]=!0x1;}[_0x5c06('0x8')]({threadId:_0xedca12=_0x5aa029()}={}){const _0x5d6f07=this[_0x5c06('0x6')][_0x5c06('0x1')],_0x47b3dc=[];for(const _0x530a66 of _0x5d6f07[_0x5c06('0x15')][_0x5c06('0x12')][_0x5c06('0xd')]())this['_hasContent'](_0x530a66)&&_0x47b3dc['push'](this[_0x5c06('0x10')](_0x530a66));_0x5d6f07[_0x5c06('0x0')](_0x4e021a=>{for(const _0x433901 of _0x47b3dc){const _0x40486d=_0x5aa029()[_0x5c06('0x5')](0x1,0x5),_0x166a12='comment:'+_0xedca12+':'+_0x40486d;_0x4e021a[_0x5c06('0x9')](_0x166a12,{'range':_0x433901,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2e844f){for(const _0x112729 of _0x2e844f[_0x5c06('0x4')]())if(this[_0x5c06('0xf')](_0x112729))return!0x0;return!0x1;}[_0x5c06('0xf')](_0x32efeb){return _0x32efeb['is'](_0x5c06('0xe'))||this['editor']['model'][_0x5c06('0x14')][_0x5c06('0x16')](_0x32efeb)&&!_0x32efeb['is'](_0x5c06('0x3'),_0x5c06('0x13'));}[_0x5c06('0x10')](_0xd80a36){const _0x54d5eb=_0x5dd0cf=>!this[_0x5c06('0xf')](_0x5dd0cf['item']),_0x39bb4a=_0xd80a36['start'][_0x5c06('0x11')](_0x54d5eb),_0x210590=_0xd80a36[_0x5c06('0xa')][_0x5c06('0x11')](_0x54d5eb,{'direction':_0x5c06('0xb')});return this[_0x5c06('0x6')][_0x5c06('0x1')][_0x5c06('0x7')](_0x39bb4a,_0x210590);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x336f=['resolvedThreads','isActive','requires','context','pluginName','plugins','length','CommentsArchive','reopenCommentThread','collection','add','get','highest','has','getCommentThread','removeCommentThread','_calculatePosition','init','listenTo'];(function(_0x19a476,_0x336faa){const _0x3d719a=function(_0x424797){while(--_0x424797){_0x19a476['push'](_0x19a476['shift']());}};_0x3d719a(++_0x336faa);}(_0x336f,0xcf));const _0x3d71=function(_0x19a476,_0x336faa){_0x19a476=_0x19a476-0x0;let _0x3d719a=_0x336f[_0x19a476];return _0x3d719a;};import{ContextPlugin as _0x11d459}from'ckeditor5/src/core';import{Collection as _0x5beb6e}from'ckeditor5/src/utils';import _0x3f4380 from'./commentsrepository';import _0x203c4d from'../annotations/annotations';export default class p extends _0x11d459{static get[_0x3d71('0x6')](){return _0x3d71('0x9');}static get[_0x3d71('0x4')](){return[_0x3f4380,_0x203c4d];}constructor(_0x2dbb24){super(_0x2dbb24),this['resolvedThreads']=new _0x5beb6e();}[_0x3d71('0x0')](){const _0xa41fe9=this[_0x3d71('0x5')],_0x25db5b=_0xa41fe9['plugins']['get'](_0x3f4380),_0x3bd740=_0xa41fe9[_0x3d71('0x7')][_0x3d71('0xd')](_0x203c4d);this['listenTo'](_0x25db5b,'addCommentThread',(_0x4ae259,{threadId:_0x298abb,resolvedAt:_0x411617,deletedAt:_0x4bbc1c})=>{if(_0x411617&&!_0x4bbc1c){const _0x5dc266=_0x25db5b[_0x3d71('0x10')](_0x298abb);this[_0x3d71('0x2')][_0x3d71('0xc')](_0x5dc266,this['_calculatePosition'](_0x411617));}}),this[_0x3d71('0x1')](_0x25db5b,'resolveCommentThread',(_0x9c2b48,{threadId:_0x56128d,resolvedAt:_0x3d0cb8})=>{const _0x18a4f8=_0x25db5b['getCommentThread'](_0x56128d);this[_0x3d71('0x2')][_0x3d71('0xc')](_0x18a4f8,this[_0x3d71('0x12')](_0x3d0cb8));},{'priority':_0x3d71('0xe')}),this[_0x3d71('0x1')](_0x25db5b,_0x3d71('0xa'),(_0x254b9f,{threadId:_0x3bde9a})=>{const _0x530249=_0x25db5b['getCommentThread'](_0x3bde9a);this[_0x3d71('0x2')]['has'](_0x530249)&&this[_0x3d71('0x2')]['remove'](_0x530249);},{'priority':_0x3d71('0xe')}),this[_0x3d71('0x1')](_0x25db5b,_0x3d71('0x11'),(_0x5d9d27,{threadId:_0x404b50})=>{const _0x3dea21=_0x25db5b[_0x3d71('0x10')](_0x404b50);this[_0x3d71('0x2')][_0x3d71('0xf')](_0x3dea21)&&this[_0x3d71('0x2')]['remove'](_0x3dea21);},{'priority':'highest'}),this[_0x3d71('0x1')](_0x3bd740[_0x3d71('0xb')],'focus',(_0x301cab,_0x323422)=>{_0x323422[_0x3d71('0x3')]=!0x0,_0x3bd740['activate'](_0x323422);});}['_calculatePosition'](_0x177358){const _0xc4d5af=[...this[_0x3d71('0x2')]]['findIndex'](_0x35ac42=>_0x35ac42['resolvedAt']<_0x177358);return _0xc4d5af>-0x1?_0xc4d5af:this[_0x3d71('0x2')][_0x3d71('0x8')];}}
23
+ const _0x31df=['removeCommentThread','remove','reopenCommentThread','length','collection','activate','pluginName','focus','get','findIndex','addCommentThread','_calculatePosition','isActive','plugins','context','getCommentThread','requires','highest','has','resolvedAt','add','resolvedThreads','listenTo','CommentsArchive','resolveCommentThread'];(function(_0x3acd06,_0x31dfac){const _0x5b2574=function(_0x1f4055){while(--_0x1f4055){_0x3acd06['push'](_0x3acd06['shift']());}};_0x5b2574(++_0x31dfac);}(_0x31df,0x15b));const _0x5b25=function(_0x3acd06,_0x31dfac){_0x3acd06=_0x3acd06-0x0;let _0x5b2574=_0x31df[_0x3acd06];return _0x5b2574;};import{ContextPlugin as _0x20b6a7}from'ckeditor5/src/core';import{Collection as _0x497a0a}from'ckeditor5/src/utils';import _0x486142 from'./commentsrepository';import _0x283a49 from'../annotations/annotations';export default class p extends _0x20b6a7{static get[_0x5b25('0x9')](){return _0x5b25('0x1');}static get[_0x5b25('0x13')](){return[_0x486142,_0x283a49];}constructor(_0x50dc2a){super(_0x50dc2a),this[_0x5b25('0x18')]=new _0x497a0a();}['init'](){const _0x5b975e=this[_0x5b25('0x11')],_0x4657a6=_0x5b975e['plugins'][_0x5b25('0xb')](_0x486142),_0x24ef43=_0x5b975e[_0x5b25('0x10')]['get'](_0x283a49);this[_0x5b25('0x0')](_0x4657a6,_0x5b25('0xd'),(_0x381b23,{threadId:_0x54f9a0,resolvedAt:_0x202aa0,deletedAt:_0x16e1ae})=>{if(_0x202aa0&&!_0x16e1ae){const _0x17172b=_0x4657a6[_0x5b25('0x12')](_0x54f9a0);this[_0x5b25('0x18')][_0x5b25('0x17')](_0x17172b,this[_0x5b25('0xe')](_0x202aa0));}}),this['listenTo'](_0x4657a6,_0x5b25('0x2'),(_0x14aade,{threadId:_0x56558a,resolvedAt:_0x881c3a})=>{const _0x4422d4=_0x4657a6['getCommentThread'](_0x56558a);this[_0x5b25('0x18')][_0x5b25('0x17')](_0x4422d4,this['_calculatePosition'](_0x881c3a));},{'priority':'highest'}),this[_0x5b25('0x0')](_0x4657a6,_0x5b25('0x5'),(_0x56a8bb,{threadId:_0x2fbe34})=>{const _0x8f18d1=_0x4657a6[_0x5b25('0x12')](_0x2fbe34);this['resolvedThreads'][_0x5b25('0x15')](_0x8f18d1)&&this[_0x5b25('0x18')][_0x5b25('0x4')](_0x8f18d1);},{'priority':_0x5b25('0x14')}),this['listenTo'](_0x4657a6,_0x5b25('0x3'),(_0x491887,{threadId:_0x1588d1})=>{const _0x1a51bc=_0x4657a6[_0x5b25('0x12')](_0x1588d1);this[_0x5b25('0x18')][_0x5b25('0x15')](_0x1a51bc)&&this['resolvedThreads']['remove'](_0x1a51bc);},{'priority':_0x5b25('0x14')}),this[_0x5b25('0x0')](_0x24ef43[_0x5b25('0x7')],_0x5b25('0xa'),(_0x27b49d,_0x4573a2)=>{_0x4573a2[_0x5b25('0xf')]=!0x0,_0x24ef43[_0x5b25('0x8')](_0x4573a2);});}['_calculatePosition'](_0x5757de){const _0x1781a8=[...this[_0x5b25('0x18')]][_0x5b25('0xc')](_0x4d0c40=>_0x4d0c40[_0x5b25('0x16')]<_0x5757de);return _0x1781a8>-0x1?_0x1781a8:this['resolvedThreads'][_0x5b25('0x6')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33f1=['channelId','ck-comments-archive-dropdown','buttonView','CommentsRepository','push','indexOf','panelView','Annotations','resolvedThreads','resolvedAt','componentFactory','collection','commentsArchive','ck-body','focusTracker','add','locale','children','_calculatePosition','extendTemplate','_handleAnnotationFocusableElements','requires','listenTo','_threadToController','_visibleAnnotations','collaboration.channelId','mainView','set','contains','editor','innerView','CommentsArchiveUI','length','pluginName','plugins','focusableElements','stopListening','get','_pendingThreads','view','init','classList','annotationViews','findIndex','_createArchiveUIDropdown','config','find','isVisible','getByInnerView','change:isOpen','remove','commentsArchiveView'];(function(_0xd05137,_0x33f106){const _0x49c086=function(_0xf60dd6){while(--_0xf60dd6){_0xd05137['push'](_0xd05137['shift']());}};_0x49c086(++_0x33f106);}(_0x33f1,0x9a));const _0x49c0=function(_0xd05137,_0x33f106){_0xd05137=_0xd05137-0x0;let _0x49c086=_0x33f1[_0xd05137];return _0x49c086;};import'../../theme/commentsarchive.css';import{Plugin as _0xc8ccb5}from'ckeditor5/src/core';import{createDropdown as _0x1fe0e8,ViewCollection as _0x978741}from'ckeditor5/src/ui';import _0x1beb58 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x34456b}from'../utils/common-translations';import _0x592669 from'./ui/view/commentsarchiveview';import _0x46428a from'./commentsarchive';export default class a extends _0xc8ccb5{static get[_0x49c0('0x23')](){return _0x49c0('0x21');}static get[_0x49c0('0x17')](){return[_0x46428a];}constructor(_0x32297e){super(_0x32297e),this['annotationViews']=new _0x978741(),this[_0x49c0('0x28')]=[];}[_0x49c0('0x2a')](){this[_0x49c0('0x1f')]['ui'][_0x49c0('0xc')][_0x49c0('0x11')](_0x49c0('0xe'),()=>this[_0x49c0('0x2e')]());const _0x1b9ca2=this['editor'][_0x49c0('0x24')][_0x49c0('0x27')](_0x46428a),_0xb370f9=this['editor']['plugins'][_0x49c0('0x27')]('Annotations'),_0x25e3f4=this[_0x49c0('0x1f')]['plugins'][_0x49c0('0x27')](_0x49c0('0x5'));this[_0x49c0('0x18')](_0x1b9ca2['resolvedThreads'],_0x49c0('0x11'),(_0x447b56,_0x56ed6e)=>{const _0x3dab23=this[_0x49c0('0x1f')][_0x49c0('0x2f')][_0x49c0('0x27')]('collaboration.channelId');if(!_0x3dab23||_0x56ed6e[_0x49c0('0x2')]===_0x3dab23){const _0x1f2cca=this['_calculatePosition'](_0x56ed6e[_0x49c0('0xb')]),_0x27593f=_0x25e3f4[_0x49c0('0x19')][_0x49c0('0x27')](_0x56ed6e);if(!_0x27593f)return void this[_0x49c0('0x28')][_0x49c0('0x6')]({'thread':_0x56ed6e,'position':_0x1f2cca});const _0x5864d3=_0xb370f9[_0x49c0('0x32')](_0x27593f[_0x49c0('0x29')]);_0x5864d3[_0x49c0('0x31')]&&_0xb370f9[_0x49c0('0x1a')][_0x49c0('0x0')](_0x5864d3),this['annotationViews']['add'](_0x5864d3[_0x49c0('0x29')],_0x1f2cca);}}),this[_0x49c0('0x18')](_0xb370f9[_0x49c0('0xd')],_0x49c0('0x11'),(_0x4b80a8,_0x7510a)=>{const _0x27cfa9=this[_0x49c0('0x28')][_0x49c0('0x30')](({thread:_0x13fe6b})=>{const _0x4d4511=_0x25e3f4[_0x49c0('0x19')][_0x49c0('0x27')](_0x13fe6b);return _0x4d4511&&_0x7510a[_0x49c0('0x20')]===_0x4d4511[_0x49c0('0x29')];});_0x27cfa9&&(this['annotationViews'][_0x49c0('0x11')](_0x7510a['view'],_0x27cfa9['position']),this[_0x49c0('0x28')]['splice'](this[_0x49c0('0x28')][_0x49c0('0x7')](_0x27cfa9),0x1));}),this[_0x49c0('0x18')](_0x1b9ca2[_0x49c0('0xa')],_0x49c0('0x0'),(_0x4059ae,_0x46a078)=>{const _0x426c64=this[_0x49c0('0x1f')][_0x49c0('0x2f')][_0x49c0('0x27')](_0x49c0('0x1b'));if(!_0x426c64||_0x46a078['channelId']===_0x426c64){const _0x2b9f15=_0x25e3f4[_0x49c0('0x19')][_0x49c0('0x27')](_0x46a078),_0x446d77=_0xb370f9['getByInnerView'](_0x2b9f15[_0x49c0('0x29')]);this[_0x49c0('0x2c')][_0x49c0('0x0')](_0x446d77['view']),this[_0x49c0('0x26')](_0x446d77[_0x49c0('0x25')]);}});}[_0x49c0('0x16')](_0x27d640,_0x588b8f){for(const _0x19c34f of _0x588b8f[_0x49c0('0x25')])_0x19c34f[_0x49c0('0x2b')][_0x49c0('0x1e')]('ck-body')&&_0x27d640[_0x49c0('0x10')]['add'](_0x19c34f);this[_0x49c0('0x18')](_0x588b8f[_0x49c0('0x25')],_0x49c0('0x11'),(_0x802f23,_0x37ef3b)=>{_0x37ef3b[_0x49c0('0x2b')][_0x49c0('0x1e')]('ck-body')&&_0x27d640[_0x49c0('0x10')]['add'](_0x37ef3b);}),this[_0x49c0('0x18')](_0x588b8f[_0x49c0('0x25')],'remove',(_0x29eb47,_0x1a0706)=>{_0x1a0706['classList'][_0x49c0('0x1e')](_0x49c0('0xf'))&&_0x27d640['focusTracker'][_0x49c0('0x0')](_0x1a0706);});}[_0x49c0('0x14')](_0x1c6616){const _0x59e966=this[_0x49c0('0x1f')][_0x49c0('0x2f')][_0x49c0('0x27')](_0x49c0('0x1b')),_0x5e7fcd=[...this[_0x49c0('0x1f')]['plugins'][_0x49c0('0x27')](_0x46428a)[_0x49c0('0xa')]]['filter'](_0x1e5d7b=>_0x1e5d7b['channelId']!==_0x59e966)[_0x49c0('0x2d')](_0xbdb8c3=>_0xbdb8c3[_0x49c0('0xb')]<_0x1c6616);return _0x5e7fcd>-0x1?_0x5e7fcd:this[_0x49c0('0x2c')][_0x49c0('0x22')];}['_createArchiveUIDropdown'](){const _0x39aa40=this[_0x49c0('0x1f')],_0x18785f=this[_0x49c0('0x1f')]['plugins']['get'](_0x49c0('0x9')),_0x178745=_0x1fe0e8(_0x39aa40[_0x49c0('0x12')]);_0x178745[_0x49c0('0x4')][_0x49c0('0x1d')]({'icon':_0x1beb58,'label':_0x34456b(_0x39aa40[_0x49c0('0x12')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x178745[_0x49c0('0x8')][_0x49c0('0x15')]({'attributes':{'class':_0x49c0('0x3')}}),_0x178745['on'](_0x49c0('0x33'),(_0x162f44,_0x9cff50,_0x3b88d6)=>{this[_0x49c0('0x1')]||(this[_0x49c0('0x1')]=new _0x592669(_0x39aa40['locale'],this[_0x49c0('0x2c')])),_0x3b88d6?_0x178745['panelView']['children']['add'](this[_0x49c0('0x1')]):_0x178745['panelView'][_0x49c0('0x13')][_0x49c0('0x0')](this[_0x49c0('0x1')]);});for(const _0x569cc8 of this[_0x49c0('0x2c')]){const _0x2386c0=_0x18785f[_0x49c0('0x32')](_0x569cc8[_0x49c0('0x1c')]);this['_handleAnnotationFocusableElements'](_0x178745,_0x2386c0);}return _0x178745[_0x49c0('0x18')](this[_0x49c0('0x2c')],_0x49c0('0x11'),(_0x20597b,_0x3eb51f)=>{const _0x484cad=_0x18785f['getByInnerView'](_0x3eb51f[_0x49c0('0x1c')]);this[_0x49c0('0x16')](_0x178745,_0x484cad);}),_0x178745[_0x49c0('0x18')](this['annotationViews'],_0x49c0('0x0'),(_0x1f4e7a,_0x1533cf)=>{const _0x422998=_0x18785f[_0x49c0('0x32')](_0x1533cf[_0x49c0('0x1c')]);for(const _0x569ba1 of _0x422998[_0x49c0('0x25')])_0x569ba1[_0x49c0('0x2b')]['contains'](_0x49c0('0xf'))&&_0x178745[_0x49c0('0x10')]['remove'](_0x569ba1);}),_0x178745;}}
23
+ const _0x3170=['findIndex','children','mainView','focusableElements','_pendingThreads','commentsArchiveView','isVisible','ck-body','change:isOpen','stopListening','componentFactory','filter','config','plugins','collection','getByInnerView','commentsArchive','collaboration.channelId','position','_handleAnnotationFocusableElements','push','editor','resolvedAt','resolvedThreads','pluginName','_threadToController','view','get','ck-comments-archive-dropdown','panelView','listenTo','requires','contains','Annotations','CommentsRepository','channelId','innerView','find','classList','CommentsArchiveUI','remove','_calculatePosition','annotationViews','add','splice','focusTracker'];(function(_0x1d462d,_0x317010){const _0x32a695=function(_0xc4759e){while(--_0xc4759e){_0x1d462d['push'](_0x1d462d['shift']());}};_0x32a695(++_0x317010);}(_0x3170,0xdf));const _0x32a6=function(_0x1d462d,_0x317010){_0x1d462d=_0x1d462d-0x0;let _0x32a695=_0x3170[_0x1d462d];return _0x32a695;};import'../../theme/commentsarchive.css';import{Plugin as _0x2d7afa}from'ckeditor5/src/core';import{createDropdown as _0x202c71,ViewCollection as _0x5f2c03}from'ckeditor5/src/ui';import _0x4b1c1b from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4bfba9}from'../utils/common-translations';import _0x4f6294 from'./ui/view/commentsarchiveview';import _0x4749e3 from'./commentsarchive';export default class a extends _0x2d7afa{static get[_0x32a6('0x1f')](){return _0x32a6('0x0');}static get[_0x32a6('0x26')](){return[_0x4749e3];}constructor(_0x533daa){super(_0x533daa),this[_0x32a6('0x3')]=new _0x5f2c03(),this[_0x32a6('0xb')]=[];}['init'](){this[_0x32a6('0x1c')]['ui'][_0x32a6('0x11')][_0x32a6('0x4')](_0x32a6('0x17'),()=>this['_createArchiveUIDropdown']());const _0x25bb77=this[_0x32a6('0x1c')][_0x32a6('0x14')]['get'](_0x4749e3),_0x586cf2=this[_0x32a6('0x1c')][_0x32a6('0x14')][_0x32a6('0x22')](_0x32a6('0x28')),_0x1da4ee=this[_0x32a6('0x1c')][_0x32a6('0x14')][_0x32a6('0x22')](_0x32a6('0x29'));this[_0x32a6('0x25')](_0x25bb77[_0x32a6('0x1e')],'add',(_0x1ad659,_0x191add)=>{const _0x2efe8a=this[_0x32a6('0x1c')][_0x32a6('0x13')][_0x32a6('0x22')](_0x32a6('0x18'));if(!_0x2efe8a||_0x191add[_0x32a6('0x2a')]===_0x2efe8a){const _0x348b45=this[_0x32a6('0x2')](_0x191add[_0x32a6('0x1d')]),_0x3eb963=_0x1da4ee[_0x32a6('0x20')][_0x32a6('0x22')](_0x191add);if(!_0x3eb963)return void this[_0x32a6('0xb')][_0x32a6('0x1b')]({'thread':_0x191add,'position':_0x348b45});const _0x2924f2=_0x586cf2['getByInnerView'](_0x3eb963[_0x32a6('0x21')]);_0x2924f2[_0x32a6('0xd')]&&_0x586cf2['_visibleAnnotations'][_0x32a6('0x1')](_0x2924f2),this['annotationViews']['add'](_0x2924f2['view'],_0x348b45);}}),this[_0x32a6('0x25')](_0x586cf2[_0x32a6('0x15')],_0x32a6('0x4'),(_0x15c7a1,_0x5cb4ee)=>{const _0x1b5411=this['_pendingThreads'][_0x32a6('0x2c')](({thread:_0xbb145d})=>{const _0x19cdf5=_0x1da4ee['_threadToController'][_0x32a6('0x22')](_0xbb145d);return _0x19cdf5&&_0x5cb4ee[_0x32a6('0x2b')]===_0x19cdf5[_0x32a6('0x21')];});_0x1b5411&&(this['annotationViews'][_0x32a6('0x4')](_0x5cb4ee['view'],_0x1b5411[_0x32a6('0x19')]),this['_pendingThreads'][_0x32a6('0x5')](this[_0x32a6('0xb')]['indexOf'](_0x1b5411),0x1));}),this[_0x32a6('0x25')](_0x25bb77[_0x32a6('0x1e')],_0x32a6('0x1'),(_0x3e45b0,_0x1764aa)=>{const _0x4080e9=this[_0x32a6('0x1c')][_0x32a6('0x13')]['get'](_0x32a6('0x18'));if(!_0x4080e9||_0x1764aa[_0x32a6('0x2a')]===_0x4080e9){const _0x34c3c6=_0x1da4ee[_0x32a6('0x20')][_0x32a6('0x22')](_0x1764aa),_0x41950a=_0x586cf2[_0x32a6('0x16')](_0x34c3c6[_0x32a6('0x21')]);this[_0x32a6('0x3')]['remove'](_0x41950a[_0x32a6('0x21')]),this[_0x32a6('0x10')](_0x41950a['focusableElements']);}});}[_0x32a6('0x1a')](_0x5ca102,_0x3e4b23){for(const _0x231d3e of _0x3e4b23[_0x32a6('0xa')])_0x231d3e[_0x32a6('0x2d')][_0x32a6('0x27')]('ck-body')&&_0x5ca102[_0x32a6('0x6')]['add'](_0x231d3e);this[_0x32a6('0x25')](_0x3e4b23[_0x32a6('0xa')],_0x32a6('0x4'),(_0x3fd917,_0x60ec4b)=>{_0x60ec4b[_0x32a6('0x2d')][_0x32a6('0x27')](_0x32a6('0xe'))&&_0x5ca102[_0x32a6('0x6')][_0x32a6('0x4')](_0x60ec4b);}),this[_0x32a6('0x25')](_0x3e4b23[_0x32a6('0xa')],_0x32a6('0x1'),(_0x27f0c2,_0x577a95)=>{_0x577a95['classList'][_0x32a6('0x27')](_0x32a6('0xe'))&&_0x5ca102[_0x32a6('0x6')]['remove'](_0x577a95);});}[_0x32a6('0x2')](_0x49d77b){const _0x396fbb=this[_0x32a6('0x1c')][_0x32a6('0x13')]['get']('collaboration.channelId'),_0xd40387=[...this[_0x32a6('0x1c')][_0x32a6('0x14')][_0x32a6('0x22')](_0x4749e3)[_0x32a6('0x1e')]][_0x32a6('0x12')](_0x13f818=>_0x13f818[_0x32a6('0x2a')]!==_0x396fbb)[_0x32a6('0x7')](_0x1d39f2=>_0x1d39f2[_0x32a6('0x1d')]<_0x49d77b);return _0xd40387>-0x1?_0xd40387:this['annotationViews']['length'];}['_createArchiveUIDropdown'](){const _0x159fb6=this['editor'],_0x5da29f=this[_0x32a6('0x1c')]['plugins'][_0x32a6('0x22')](_0x32a6('0x28')),_0x1beaaf=_0x202c71(_0x159fb6['locale']);_0x1beaaf['buttonView']['set']({'icon':_0x4b1c1b,'label':_0x4bfba9(_0x159fb6['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x1beaaf[_0x32a6('0x24')]['extendTemplate']({'attributes':{'class':_0x32a6('0x23')}}),_0x1beaaf['on'](_0x32a6('0xf'),(_0x1f0035,_0x5832c1,_0x5a5a86)=>{this[_0x32a6('0xc')]||(this[_0x32a6('0xc')]=new _0x4f6294(_0x159fb6['locale'],this[_0x32a6('0x3')])),_0x5a5a86?_0x1beaaf[_0x32a6('0x24')][_0x32a6('0x8')][_0x32a6('0x4')](this[_0x32a6('0xc')]):_0x1beaaf[_0x32a6('0x24')][_0x32a6('0x8')][_0x32a6('0x1')](this[_0x32a6('0xc')]);});for(const _0x1835ca of this['annotationViews']){const _0x4ac45=_0x5da29f['getByInnerView'](_0x1835ca['mainView']);this[_0x32a6('0x1a')](_0x1beaaf,_0x4ac45);}return _0x1beaaf[_0x32a6('0x25')](this[_0x32a6('0x3')],'add',(_0x413507,_0x5d72d4)=>{const _0x8daa8=_0x5da29f[_0x32a6('0x16')](_0x5d72d4[_0x32a6('0x9')]);this[_0x32a6('0x1a')](_0x1beaaf,_0x8daa8);}),_0x1beaaf[_0x32a6('0x25')](this[_0x32a6('0x3')],'remove',(_0x378e01,_0x571740)=>{const _0x3b65f1=_0x5da29f['getByInnerView'](_0x571740[_0x32a6('0x9')]);for(const _0x23f840 of _0x3b65f1[_0x32a6('0xa')])_0x23f840[_0x32a6('0x2d')][_0x32a6('0x27')](_0x32a6('0xe'))&&_0x1beaaf['focusTracker']['remove'](_0x23f840);}),_0x1beaaf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e38=['_detachCommentThread','getWalker','addCommentThread','resolveCommentThread','_threadToController','conversion','reconvertMarker','low','model','getAttribute','isResolved','change','fetchCommentThread','setContext','resolve','schema','markerToData','isObject','registerAnnotation','isCollapsed','ck-comment-marker--active','focus','_attachResolvedThread','$marker','_handleThreadMarker','reopenCommentThread','listenTo','length','set','_autoResolvedThreads','filter','getCommentThreads','getItems','change:isReadOnly','_reconvertMarkers','then','_attachedThreads','hasMarkerForId','item','createRange','affectsData','consume','markers','activeMarker','root','data','hasCommentThread','ready','config','getByInnerView','isThreadsLoadingPaused','_attachMarkerToThread','isEqual','collaboration.channelId','clear','removeCommentThread','removeMarker','isLocal','consumable','change:activeMarker','init','_initializeMarkerConverters','comment','text','getAllMarkersForId','from','refreshVisibility','delete','pluginName','getRange','_getTextContext','document','destroy','dataDowncast','scrollToThreadMarker','updateMarker','reopen','removeMarker:','for','getChangedMarkers','has','requires','_hasTargetInContent','push','editor','hasDomSelection','CommentsEditing','differ','view','markerToHighlight','managedUsingOperations','get','change:isThreadsLoadingPaused','createElement','end','_removedThread','once','$textProxy','start','switchReadOnly','render','attachTo','elementToElement','plugins','substring','map','editing','addComment','dataToMarker','state','markerName','getCommentThread','_getTargetForId','upcast','add','newRange','_handleMarkerAddAndRemove','high'];(function(_0x1fecad,_0x4e38d5){const _0x457a09=function(_0xb515c){while(--_0xb515c){_0x1fecad['push'](_0x1fecad['shift']());}};_0x457a09(++_0x4e38d5);}(_0x4e38,0xea));const _0x457a=function(_0x1fecad,_0x4e38d5){_0x1fecad=_0x1fecad-0x0;let _0x457a09=_0x4e38[_0x1fecad];return _0x457a09;};import{Plugin as _0x2ebd34}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x12d293}from'ckeditor5/src/utils';import _0x18c38b from'./commentsrepository';import _0x24a120 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x45ca2f}from'ckeditor5-collaboration/src/collaboration-core';import _0x1e432b from'../annotations/editorannotations';import _0x23e1c3 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x9d72a4 from'./integrations/importword';import _0x2ccbc0 from'../annotations/annotations';export default class r extends _0x2ebd34{static get[_0x457a('0x53')](){return[_0x18c38b,_0x1e432b,_0x23e1c3,_0x9d72a4];}static get[_0x457a('0x46')](){return _0x457a('0x58');}constructor(_0x165305){super(_0x165305),this[_0x457a('0x61')]=null,this[_0x457a('0x1f')]=new Set(),this['set']('isThreadsLoadingPaused',!0x0),_0x165305[_0x457a('0x2f')][_0x457a('0x62')](_0x457a('0x31'),()=>this[_0x457a('0x34')]=!0x1),this[_0x457a('0x1e')](_0x457a('0x2d'),null),this['on'](_0x457a('0x3d'),(_0x20790c,_0x2aafb8,_0x111d2d,_0x62c4f)=>{const _0x407ae7=_0x111d2d?tt(_0x111d2d)['id']:null;if(_0x165305[_0x457a('0xa')]['change'](()=>{if(_0x407ae7){const _0x289e00=this[_0x457a('0x42')](_0x407ae7);for(const _0x22baaf of _0x289e00)_0x165305['editing']['reconvertMarker'](_0x22baaf);}if(_0x62c4f){const {id:_0x5f11ff}=tt(_0x62c4f),_0x34f223=this[_0x457a('0x42')](_0x5f11ff);for(const _0x5ba23c of _0x34f223)_0x165305[_0x457a('0x6c')][_0x457a('0x8')](_0x5ba23c);}}),_0x407ae7){const _0x37bae5=_0x165305['plugins'][_0x457a('0x5d')](_0x18c38b)['getCommentThread'](_0x407ae7);_0x37bae5&&_0x37bae5['isResolved']&&this[_0x457a('0x4c')](_0x407ae7);}}),this[_0x457a('0x26')]=new Map();}[_0x457a('0x3e')](){const _0x240f63=this[_0x457a('0x56')],_0x15d444=_0x240f63[_0x457a('0x69')]['get'](_0x18c38b),_0x1066d2=_0x240f63['config'][_0x457a('0x5d')]('collaboration.channelId');_0x240f63['commands']['add']('addCommentThread',new _0x24a120(_0x240f63)),this[_0x457a('0x1c')](_0x240f63,_0x457a('0x23'),(_0x5b3863,_0xd7afc2,_0x38bd5d)=>{_0x15d444[_0x457a('0x65')](_0x38bd5d,_0x240f63['config']['get']('collaboration.channelId'));}),this[_0x457a('0x1c')](_0x15d444,Z(_0x457a('0x4'),_0x1066d2),(_0x80e6e1,{threadId:_0x2c01c3})=>{const _0x2b6198=this[_0x457a('0x56')]['plugins']['get'](_0x18c38b)[_0x457a('0x71')](_0x2c01c3);_0x2b6198&&_0x2b6198[_0x457a('0xc')]&&this[_0x457a('0x18')](_0x2c01c3);}),this['listenTo'](_0x15d444,Z(_0x457a('0x39'),_0x1066d2),(_0x1dfc52,{threadId:_0x5323e7})=>{_0x240f63[_0x457a('0xa')]['enqueueChange']({'isUndoable':!0x1},_0x592aeb=>{const _0x9e0bd6=this[_0x457a('0x42')](_0x5323e7);this[_0x457a('0x26')][_0x457a('0x45')](_0x5323e7),this[_0x457a('0x61')]=_0x5323e7;for(const _0x38a4d0 of _0x9e0bd6)_0x592aeb['removeMarker'](_0x38a4d0);}),this['_removedThread']=null;},{'priority':_0x457a('0x1')}),this[_0x457a('0x1c')](_0x15d444,Z(_0x457a('0x5'),_0x1066d2),(_0x1a364f,{threadId:_0x2e34a4})=>{this[_0x457a('0x18')](_0x2e34a4),this[_0x457a('0x24')](_0x2e34a4),this['editor']['editing']['view'][_0x457a('0x57')]&&this[_0x457a('0x56')][_0x457a('0x6c')][_0x457a('0x5a')][_0x457a('0x17')]();},{'priority':_0x457a('0x9')}),this[_0x457a('0x1c')](_0x15d444,Z(_0x457a('0x1b'),_0x1066d2),(_0x460b73,{threadId:_0x17c92c})=>{this[_0x457a('0x24')](_0x17c92c);},{'priority':_0x457a('0x9')}),this[_0x457a('0x1c')](_0x15d444,Z(_0x457a('0x6d'),_0x1066d2),(_0x55e817,{threadId:_0x6e72a7,isFromAdapter:_0x367616})=>{const _0x587f3d=this[_0x457a('0x42')](_0x6e72a7);if(_0x367616||0x0==_0x587f3d[_0x457a('0x1d')]||!_0x15d444[_0x457a('0x30')](_0x6e72a7))return;0x1===_0x15d444[_0x457a('0x71')](_0x6e72a7)[_0x457a('0x1d')]&&_0x240f63[_0x457a('0xa')]['enqueueChange']({'isUndoable':!0x1},_0x17da80=>{for(const _0x38d60e of _0x587f3d)_0x17da80['updateMarker'](_0x38d60e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x457a('0x9')}),this[_0x457a('0x3f')](),this[_0x457a('0x0')]();}[_0x457a('0x4a')](){const _0x52da8a=this['editor']['plugins'][_0x457a('0x5d')](_0x18c38b),_0x3e5db8=this[_0x457a('0x56')][_0x457a('0x32')][_0x457a('0x5d')](_0x457a('0x37'));for(const _0x5361fd of _0x52da8a[_0x457a('0x21')]({'channelId':_0x3e5db8}))_0x52da8a[_0x457a('0x2')](_0x5361fd['id']),_0x52da8a['_threads'][_0x457a('0x45')](_0x5361fd['id']);super[_0x457a('0x4a')]();}[_0x457a('0x27')](_0x567b17){return this[_0x457a('0x42')](_0x567b17)['length']>0x0;}[_0x457a('0x42')](_0x3e459a){return Array[_0x457a('0x43')](this[_0x457a('0x26')][_0x457a('0x5d')](_0x3e459a)||[])[_0x457a('0x6b')](_0x4ee282=>this[_0x457a('0x56')][_0x457a('0xa')][_0x457a('0x2c')]['get'](_0x4ee282))[_0x457a('0x20')](_0x3cfdf9=>_0x3cfdf9);}['scrollToThreadMarker'](_0x716321){const _0x5ab63f=this[_0x457a('0x72')](_0x716321);_0x5ab63f&&setTimeout(()=>{this[_0x457a('0x2d')]&&tt(this[_0x457a('0x2d')])['id']===_0x716321&&_0x12d293({'target':_0x5ab63f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x457a('0x24')](_0x4c491b){this[_0x457a('0x56')][_0x457a('0xa')][_0x457a('0xd')](()=>{for(const _0x2d7b02 of this[_0x457a('0x42')](_0x4c491b))this[_0x457a('0x56')][_0x457a('0x6c')]['reconvertMarker'](_0x2d7b02);});}[_0x457a('0x18')](_0x53c7c2){const _0x165060=this[_0x457a('0x56')]['plugins']['get'](_0x18c38b),_0xeb10e5=this['editor'][_0x457a('0x69')][_0x457a('0x5d')](_0x1e432b),_0x3b77f8=_0x165060[_0x457a('0x71')](_0x53c7c2);if(!this[_0x457a('0x26')][_0x457a('0x52')](_0x53c7c2)){const _0x284fa5=_0x3b77f8[_0x457a('0x67')](()=>this[_0x457a('0x72')](_0x3b77f8['id']));_0xeb10e5[_0x457a('0x14')](_0x284fa5),this[_0x457a('0x26')][_0x457a('0x1e')](_0x53c7c2,new Set()),_0x3b77f8[_0x457a('0x54')]=!0x1;}}[_0x457a('0x3f')](){const _0x362efe=this['editor'];_0x362efe['conversion'][_0x457a('0x50')]('editingDowncast')[_0x457a('0x5b')]({'model':'comment','view':(_0xb31975,_0x2d1d22)=>{const {id:_0x349c0a}=tt(_0xb31975[_0x457a('0x70')]),_0x4f1b8f=_0x362efe[_0x457a('0x69')][_0x457a('0x5d')](_0x18c38b)['getCommentThread'](_0x349c0a),_0x569805=this[_0x457a('0x2d')]&&tt(this['activeMarker'])['id']===_0x349c0a;if(_0x4f1b8f&&_0x4f1b8f[_0x457a('0xc')]&&!_0x569805&&_0xb31975[_0x457a('0x28')])return _0x2d1d22[_0x457a('0x3c')][_0x457a('0x2b')](_0xb31975[_0x457a('0x28')],'addMarker:'+_0xb31975[_0x457a('0x70')]),_0x2d1d22[_0x457a('0x3c')][_0x457a('0x2b')](_0xb31975['item'],_0x457a('0x4f')+_0xb31975[_0x457a('0x70')]),{'classes':[]};const _0x20d92f=['ck-comment-marker'];return _0x569805&&_0x20d92f[_0x457a('0x55')](_0x457a('0x16')),{'classes':_0x20d92f,'attributes':{'data-comment':_0x349c0a}};}}),_0x362efe[_0x457a('0x7')]['for'](_0x457a('0x4b'))[_0x457a('0x12')]({'model':_0x457a('0x40'),'view':(_0x499caa,{options:_0x20ee09})=>{const _0x9853f4=_0x362efe['plugins']['get'](_0x18c38b),_0x13a96e=_0x362efe[_0x457a('0xa')][_0x457a('0x2c')][_0x457a('0x5d')](_0x499caa),{id:_0x26bae1,part:_0x52c9d9}=tt(_0x499caa);if(_0x13a96e&&!_0x13a96e[_0x457a('0x2a')])return null;if(_0x20ee09['ignoreResolvedComments']){const _0x5962d8=_0x9853f4[_0x457a('0x71')](_0x26bae1);if(_0x5962d8&&_0x5962d8['isResolved'])return null;}return{'group':_0x457a('0x40'),'name':_0x52c9d9?_0x26bae1+':'+_0x52c9d9:_0x26bae1};}}),_0x362efe[_0x457a('0x7')][_0x457a('0x50')]('upcast')[_0x457a('0x68')]({'view':{'name':_0x457a('0x40'),'attributes':{'id':/^\w/}},'model':(_0xf6aebf,{writer:_0xf6929e})=>_0xf6929e[_0x457a('0x5f')](_0x457a('0x19'),{'data-name':'comment:'+_0xf6aebf[_0x457a('0xb')]('id')})}),_0x362efe[_0x457a('0x7')]['for'](_0x457a('0x73'))[_0x457a('0x6e')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x52fa7e=this['editor'],_0x5a38d3=_0x52fa7e['plugins']['get'](_0x18c38b),_0x3cd22b=new Set(),_0x4dbf8b=new Set();_0x52fa7e['model'][_0x457a('0x49')]['registerPostFixer'](_0x179b4a=>{let _0x542e10=!0x1;for(const {name:_0x59e50f,data:_0x1471df}of _0x52fa7e[_0x457a('0xa')]['document'][_0x457a('0x59')][_0x457a('0x51')]()){const {group:_0x299454,id:_0x54e39c}=tt(_0x59e50f);let _0x6ba3fd=_0x1471df['newRange'];if(_0x457a('0x40')!==_0x299454||!_0x6ba3fd)continue;const _0xfbf29f='$graveyard'===_0x6ba3fd[_0x457a('0x2e')]['rootName'];_0xfbf29f||(_0x6ba3fd=ot(_0x6ba3fd,_0x52fa7e[_0x457a('0xa')]),!_0x6ba3fd||_0x6ba3fd[_0x457a('0x15')]||!_0x1471df[_0x457a('0x75')]||_0x6ba3fd[_0x457a('0x36')](_0x1471df[_0x457a('0x75')]))?_0x52fa7e['model']['hasContent'](_0x6ba3fd)&&!_0xfbf29f?this['isThreadsLoadingPaused']?_0x3cd22b[_0x457a('0x74')](_0x59e50f):this[_0x457a('0x1a')](_0x59e50f,_0x54e39c):(_0x4dbf8b[_0x457a('0x74')](_0x59e50f),_0x3cd22b[_0x457a('0x45')](_0x59e50f),_0x179b4a[_0x457a('0x3a')](_0x59e50f),_0x542e10=!0x0):(_0x179b4a[_0x457a('0x4d')](_0x59e50f,{'range':_0x6ba3fd}),_0x542e10=!0x0);}return _0x542e10;}),this['on'](_0x457a('0x5e'),(_0x15508f,_0x37817b,_0x1a9a64)=>{if(!_0x1a9a64&&_0x3cd22b['size'])for(const _0xa85a84 of _0x3cd22b){const {id:_0x5d3452}=tt(_0xa85a84);_0x3cd22b[_0x457a('0x45')](_0xa85a84),_0x52fa7e[_0x457a('0xa')][_0x457a('0x2c')][_0x457a('0x5d')](_0xa85a84)&&this[_0x457a('0x1a')](_0xa85a84,_0x5d3452);}}),this[_0x457a('0x1c')](_0x52fa7e[_0x457a('0xa')]['document'],_0x457a('0xd'),(_0x22f501,_0x5596b7)=>{for(const {name:_0x1ff845,data:{newRange:_0x45c044}}of _0x52fa7e[_0x457a('0xa')]['document'][_0x457a('0x59')]['getChangedMarkers']()){const {group:_0x2f8ef7,id:_0x131245}=tt(_0x1ff845);if(_0x457a('0x40')!==_0x2f8ef7)continue;const _0xa8e636=_0x5a38d3[_0x457a('0x71')](_0x131245),_0x1292a9=this[_0x457a('0x27')](_0x131245);_0xa8e636&&(_0xa8e636['_hasTargetInContent']||_0x52fa7e['editing']['view'][_0x457a('0x62')](_0x457a('0x66'),()=>{const _0x1f755f=_0x52fa7e[_0x457a('0x69')][_0x457a('0x5d')](_0x2ccbc0),_0x19ccbc=_0x5a38d3[_0x457a('0x6')][_0x457a('0x5d')](_0xa8e636)[_0x457a('0x5a')];_0x1f755f[_0x457a('0x33')](_0x19ccbc)[_0x457a('0x44')]();},{'priority':_0x457a('0x9')}),_0xa8e636[_0x457a('0x54')]=_0x1292a9||!!_0x45c044),_0x45c044||(_0x4dbf8b[_0x457a('0x74')](_0x1ff845),_0x3cd22b[_0x457a('0x45')](_0x1ff845),this[_0x457a('0x26')][_0x457a('0x52')](_0x131245)&&this[_0x457a('0x26')][_0x457a('0x5d')](_0x131245)[_0x457a('0x45')](_0x1ff845));}if(_0x5596b7[_0x457a('0x3b')])for(const _0x51d24c of _0x4dbf8b){const {id:_0x2ce29d}=tt(_0x51d24c),_0x427418=_0x5a38d3[_0x457a('0x71')](_0x2ce29d),_0x5b25b2=this[_0x457a('0x27')](_0x2ce29d);_0x3cd22b[_0x457a('0x45')](_0x51d24c),!_0x427418||_0x5b25b2||_0x427418['isResolved']||this[_0x457a('0x61')]===_0x2ce29d||(this['_autoResolvedThreads'][_0x457a('0x74')](_0x427418),_0x427418[_0x457a('0x10')]());}_0x4dbf8b[_0x457a('0x38')]();});}['_getTargetForId'](_0x5b705a){const _0x1fa353=this['editor'],_0x176c0f=this[_0x457a('0x42')](_0x5b705a);return _0x45ca2f(_0x1fa353[_0x457a('0x6c')],_0x176c0f);}['_getTextContext'](_0x33a6a3){const _0x43470d=this['getAllMarkersForId'](_0x33a6a3);let _0x34b345='',_0x19009f=!0x1;for(const _0x46bcb2 of _0x43470d){const _0x477a10=_0x46bcb2[_0x457a('0x47')]();for(const _0x30c44f of Array[_0x457a('0x43')](_0x477a10[_0x457a('0x22')]()))_0x30c44f['is'](_0x457a('0x63'))?(_0x34b345&&_0x19009f&&(_0x34b345+='\x20',_0x19009f=!0x1),_0x34b345+=_0x30c44f[_0x457a('0x2f')]):_0x19009f=!0x0;_0x19009f=!0x0;}return _0x34b345[_0x457a('0x6a')](0x0,0x96);}[_0x457a('0x35')](_0x121731,_0x1f98ad){const _0xc00ebb=this[_0x457a('0x56')],_0x3b59ea=_0xc00ebb['plugins']['get'](_0x18c38b);let _0x352ca3=_0x3b59ea['getCommentThread'](_0x1f98ad);if(this['_attachedThreads'][_0x457a('0x52')](_0x1f98ad)){const _0x3be5ae=this[_0x457a('0x26')][_0x457a('0x5d')](_0x1f98ad);_0x3be5ae[_0x457a('0x52')](_0x121731)||_0x3be5ae['add'](_0x121731);}const _0x3ac325=_0xc00ebb[_0x457a('0x32')][_0x457a('0x5d')]('collaboration.channelId'),_0x503f0e=_0xc00ebb[_0x457a('0x69')]['get'](_0x1e432b);if(_0x352ca3&&_0x352ca3['isResolved']&&this[_0x457a('0x1f')]['has'](_0x352ca3)&&(this['_autoResolvedThreads'][_0x457a('0x45')](_0x352ca3),_0x352ca3[_0x457a('0x4e')]()),this[_0x457a('0x26')][_0x457a('0x52')](_0x1f98ad))return _0x352ca3;return this[_0x457a('0x26')][_0x457a('0x1e')](_0x1f98ad,new Set([_0x121731])),(!this[_0x457a('0x42')](_0x1f98ad)[0x0][_0x457a('0x5c')]?_0xc00ebb[_0x457a('0x6c')][_0x457a('0x5a')][_0x457a('0x62')](_0x457a('0x66'),()=>{const _0x3ee070=_0xc00ebb[_0x457a('0x69')][_0x457a('0x5d')](_0x2ccbc0);_0x352ca3=_0x3b59ea['openNewCommentThread']({'channelId':_0x3ac325,'threadId':_0x1f98ad,'target':()=>this['_getTargetForId'](_0x1f98ad),'context':{'type':'text','value':this[_0x457a('0x48')](_0x1f98ad)}});const _0xeafd16=_0x3b59ea[_0x457a('0x6')]['get'](_0x352ca3)[_0x457a('0x5a')],_0x545f20=_0x3ee070[_0x457a('0x33')](_0xeafd16);_0x545f20&&_0x503f0e[_0x457a('0x14')](_0x545f20);},{'priority':_0x457a('0x9')}):_0x3b59ea[_0x457a('0xe')]({'channelId':_0x3ac325,'threadId':_0x1f98ad})[_0x457a('0x25')](_0x3e5e57=>{if('destroyed'!==_0xc00ebb[_0x457a('0x6f')]){if(_0x352ca3=_0x3e5e57,_0x352ca3){const _0x5480b5=_0x352ca3[_0x457a('0x67')](()=>this[_0x457a('0x72')](_0x1f98ad));_0x503f0e[_0x457a('0x14')](_0x5480b5),_0x352ca3[_0x457a('0xc')]&&this[_0x457a('0x24')](_0x1f98ad);}else{const _0x5bfaa9=this['getAllMarkersForId'](_0x1f98ad);_0xc00ebb[_0x457a('0xa')][_0x457a('0xd')](_0x1fb9af=>{for(const _0x3a9714 of _0x5bfaa9)_0x1fb9af['removeMarker'](_0x3a9714);});}}}),_0x352ca3);}['_handleThreadMarker'](_0x182145,_0x4d4aa2){const _0x3be47e=this[_0x457a('0x35')](_0x182145,_0x4d4aa2);_0x3be47e&&!_0x3be47e['context']&&_0x3be47e[_0x457a('0xf')]({'type':'text','value':this[_0x457a('0x48')](_0x4d4aa2)});}}function Z(_0x2e48f7,_0x13c29e){return _0x13c29e?_0x2e48f7+':'+_0x13c29e:_0x2e48f7;}function tt(_0x17d60c){const _0x16adf0=_0x17d60c['split'](':');return{'group':_0x16adf0[0x0],'id':_0x16adf0[0x1],'part':_0x16adf0[0x2]};}function ot(_0x2f490f,_0x297022){const _0x3a958f=_0x297022[_0x457a('0x11')],_0x2b0d07=_0x297022[_0x457a('0x29')](_0x2f490f['start']);for(const _0x58b58a of _0x2f490f[_0x457a('0x3')]()){const {type:_0x5de73e,item:_0x27d0b9,nextPosition:_0x2a0675}=_0x58b58a;if(_0x457a('0x41')===_0x5de73e||_0x3a958f[_0x457a('0x13')](_0x27d0b9)){const _0x349653=_0x297022['createPositionBefore'](_0x27d0b9);_0x2b0d07[_0x457a('0x15')]&&(_0x2b0d07[_0x457a('0x64')]=_0x349653),_0x2b0d07[_0x457a('0x60')]=_0x2a0675;}}return _0x2b0d07;}
23
+ const _0x3352=['addCommentThread','openNewCommentThread','view','$graveyard','registerAnnotation','_removedThread','focus','schema','rootName','setContext','_hasTargetInContent','from','getAllMarkersForId','comment','editingDowncast','elementToElement','resolve','collaboration.channelId','item','getChangedMarkers','isLocal','markerName','destroyed','createElement','change:activeMarker','updateMarker','ignoreResolvedComments','delete','_autoResolvedThreads','change:isReadOnly','then','destroy','change:isThreadsLoadingPaused','reconvertMarker','isCollapsed','hasMarkerForId','activeMarker','set','conversion','split','text','render','differ','_handleMarkerAddAndRemove','_attachedThreads','listenTo','filter','high','consume','_attachResolvedThread','requires','getWalker','$textProxy','scrollToThreadMarker','_reconvertMarkers','add','clear','pluginName','data','editor','change','consumable','start','dataDowncast','end','substring','_initializeMarkerConverters','has','map','createPositionBefore','once','markerToHighlight','_getTextContext','_attachMarkerToThread','markers','resolveCommentThread','CommentsEditing','document','upcast','getRange','addMarker:','comment:','hasCommentThread','length','ck-comment-marker','config','size','newRange','model','isObject','addComment','_detachCommentThread','isResolved','low','getAttribute','ready','getByInnerView','ck-comment-marker--active','reopen','enqueueChange','plugins','_handleThreadMarker','_threadToController','hasDomSelection','affectsData','for','get','editing','removeMarker','managedUsingOperations','registerPostFixer','_getTargetForId','attachTo','dataToMarker','init','root','getCommentThread','removeCommentThread','isThreadsLoadingPaused'];(function(_0x1dd814,_0x335275){const _0x285682=function(_0x3fb72d){while(--_0x3fb72d){_0x1dd814['push'](_0x1dd814['shift']());}};_0x285682(++_0x335275);}(_0x3352,0xe1));const _0x2856=function(_0x1dd814,_0x335275){_0x1dd814=_0x1dd814-0x0;let _0x285682=_0x3352[_0x1dd814];return _0x285682;};import{Plugin as _0x2ef9db}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x43e8d5}from'ckeditor5/src/utils';import _0x3eb312 from'./commentsrepository';import _0x313360 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x5bccf9}from'ckeditor5-collaboration/src/collaboration-core';import _0x16f6a1 from'../annotations/editorannotations';import _0x1c783c from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1d0fde from'./integrations/importword';import _0x2c10a8 from'../annotations/annotations';export default class r extends _0x2ef9db{static get[_0x2856('0x3f')](){return[_0x3eb312,_0x16f6a1,_0x1c783c,_0x1d0fde];}static get[_0x2856('0x46')](){return _0x2856('0x59');}constructor(_0x56f13d){super(_0x56f13d),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this[_0x2856('0x32')](_0x2856('0xc'),!0x0),_0x56f13d[_0x2856('0x47')]['once'](_0x2856('0x6c'),()=>this[_0x2856('0xc')]=!0x1),this[_0x2856('0x32')](_0x2856('0x31'),null),this['on'](_0x2856('0x25'),(_0x3f0941,_0x34355c,_0x44db43,_0x50fe89)=>{const _0x4c2833=_0x44db43?et(_0x44db43)['id']:null;if(_0x56f13d['model'][_0x2856('0x49')](()=>{if(_0x4c2833){const _0x3e5b62=this[_0x2856('0x19')](_0x4c2833);for(const _0x14ebec of _0x3e5b62)_0x56f13d[_0x2856('0x1')][_0x2856('0x2e')](_0x14ebec);}if(_0x50fe89){const {id:_0x390bd5}=et(_0x50fe89),_0x178e40=this['getAllMarkersForId'](_0x390bd5);for(const _0x45db80 of _0x178e40)_0x56f13d[_0x2856('0x1')]['reconvertMarker'](_0x45db80);}}),_0x4c2833){const _0x3a2c3f=_0x56f13d[_0x2856('0x71')][_0x2856('0x0')](_0x3eb312)['getCommentThread'](_0x4c2833);_0x3a2c3f&&_0x3a2c3f[_0x2856('0x69')]&&this['scrollToThreadMarker'](_0x4c2833);}}),this['_attachedThreads']=new Map();}[_0x2856('0x8')](){const _0x596a06=this[_0x2856('0x48')],_0x437099=_0x596a06['plugins']['get'](_0x3eb312),_0x34b100=_0x596a06[_0x2856('0x62')][_0x2856('0x0')]('collaboration.channelId');_0x596a06['commands'][_0x2856('0x44')](_0x2856('0xd'),new _0x313360(_0x596a06)),this[_0x2856('0x3a')](_0x596a06,_0x2856('0x2a'),(_0x4a7b05,_0x1d9446,_0x53cb41)=>{_0x437099['switchReadOnly'](_0x53cb41,_0x596a06[_0x2856('0x62')][_0x2856('0x0')](_0x2856('0x1e')));}),this[_0x2856('0x3a')](_0x437099,ot(_0x2856('0xd'),_0x34b100),(_0x57c6e9,{threadId:_0x10a560})=>{const _0x5a9333=this[_0x2856('0x48')]['plugins'][_0x2856('0x0')](_0x3eb312)[_0x2856('0xa')](_0x10a560);_0x5a9333&&_0x5a9333[_0x2856('0x69')]&&this[_0x2856('0x3e')](_0x10a560);}),this[_0x2856('0x3a')](_0x437099,ot(_0x2856('0xb'),_0x34b100),(_0x6aa998,{threadId:_0x13b163})=>{_0x596a06[_0x2856('0x65')][_0x2856('0x70')]({'isUndoable':!0x1},_0x420e99=>{const _0x14c2b2=this[_0x2856('0x19')](_0x13b163);this['_attachedThreads'][_0x2856('0x28')](_0x13b163),this[_0x2856('0x12')]=_0x13b163;for(const _0x1eecd5 of _0x14c2b2)_0x420e99[_0x2856('0x2')](_0x1eecd5);}),this[_0x2856('0x12')]=null;},{'priority':_0x2856('0x3c')}),this[_0x2856('0x3a')](_0x437099,ot(_0x2856('0x58'),_0x34b100),(_0x141c65,{threadId:_0x2db2fa})=>{this[_0x2856('0x3e')](_0x2db2fa),this[_0x2856('0x43')](_0x2db2fa),this['editor'][_0x2856('0x1')][_0x2856('0xf')][_0x2856('0x74')]&&this[_0x2856('0x48')][_0x2856('0x1')]['view'][_0x2856('0x13')]();},{'priority':_0x2856('0x6a')}),this[_0x2856('0x3a')](_0x437099,ot('reopenCommentThread',_0x34b100),(_0x159e08,{threadId:_0x4a1829})=>{this[_0x2856('0x43')](_0x4a1829);},{'priority':'low'}),this[_0x2856('0x3a')](_0x437099,ot(_0x2856('0x67'),_0x34b100),(_0x2e5e17,{threadId:_0x55eda9,isFromAdapter:_0xb4cf1a})=>{const _0x909797=this[_0x2856('0x19')](_0x55eda9);if(_0xb4cf1a||0x0==_0x909797[_0x2856('0x60')]||!_0x437099[_0x2856('0x5f')](_0x55eda9))return;0x1===_0x437099[_0x2856('0xa')](_0x55eda9)[_0x2856('0x60')]&&_0x596a06[_0x2856('0x65')][_0x2856('0x70')]({'isUndoable':!0x1},_0x50ce11=>{for(const _0x2703cc of _0x909797)_0x50ce11[_0x2856('0x26')](_0x2703cc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2856('0x6a')}),this[_0x2856('0x4f')](),this['_handleMarkerAddAndRemove']();}[_0x2856('0x2c')](){const _0x3fbe57=this['editor'][_0x2856('0x71')][_0x2856('0x0')](_0x3eb312),_0x2e330d=this[_0x2856('0x48')][_0x2856('0x62')][_0x2856('0x0')](_0x2856('0x1e'));for(const _0x1e22a4 of _0x3fbe57['getCommentThreads']({'channelId':_0x2e330d}))_0x3fbe57[_0x2856('0x68')](_0x1e22a4['id']),_0x3fbe57['_threads'][_0x2856('0x28')](_0x1e22a4['id']);super[_0x2856('0x2c')]();}[_0x2856('0x30')](_0x486e75){return this[_0x2856('0x19')](_0x486e75)[_0x2856('0x60')]>0x0;}[_0x2856('0x19')](_0x73988f){return Array[_0x2856('0x18')](this['_attachedThreads'][_0x2856('0x0')](_0x73988f)||[])[_0x2856('0x51')](_0x238f2c=>this[_0x2856('0x48')]['model'][_0x2856('0x57')]['get'](_0x238f2c))[_0x2856('0x3b')](_0x5e9c8f=>_0x5e9c8f);}[_0x2856('0x42')](_0x3d4ec5){const _0x2f51a2=this['_getTargetForId'](_0x3d4ec5);_0x2f51a2&&setTimeout(()=>{this[_0x2856('0x31')]&&et(this[_0x2856('0x31')])['id']===_0x3d4ec5&&_0x43e8d5({'target':_0x2f51a2[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2856('0x43')](_0x3309f8){this[_0x2856('0x48')]['model'][_0x2856('0x49')](()=>{for(const _0x41a5c9 of this[_0x2856('0x19')](_0x3309f8))this[_0x2856('0x48')][_0x2856('0x1')]['reconvertMarker'](_0x41a5c9);});}['_attachResolvedThread'](_0x5a8415){const _0x20455b=this[_0x2856('0x48')][_0x2856('0x71')][_0x2856('0x0')](_0x3eb312),_0xfdb7b1=this[_0x2856('0x48')][_0x2856('0x71')][_0x2856('0x0')](_0x16f6a1),_0x14d668=_0x20455b[_0x2856('0xa')](_0x5a8415);if(!this[_0x2856('0x39')][_0x2856('0x50')](_0x5a8415)){const _0x33b86c=_0x14d668[_0x2856('0x6')](()=>this[_0x2856('0x5')](_0x14d668['id']));_0xfdb7b1[_0x2856('0x11')](_0x33b86c),this[_0x2856('0x39')][_0x2856('0x32')](_0x5a8415,new Set()),_0x14d668['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x20b585=this[_0x2856('0x48')];_0x20b585[_0x2856('0x33')][_0x2856('0x76')](_0x2856('0x1b'))[_0x2856('0x54')]({'model':'comment','view':(_0x26731f,_0xbfedfc)=>{const {id:_0x52e6da}=et(_0x26731f[_0x2856('0x22')]),_0x383fda=_0x20b585[_0x2856('0x71')]['get'](_0x3eb312)[_0x2856('0xa')](_0x52e6da),_0x33b23c=this[_0x2856('0x31')]&&et(this[_0x2856('0x31')])['id']===_0x52e6da;if(_0x383fda&&_0x383fda[_0x2856('0x69')]&&!_0x33b23c&&_0x26731f[_0x2856('0x1f')])return _0xbfedfc[_0x2856('0x4a')]['consume'](_0x26731f[_0x2856('0x1f')],_0x2856('0x5d')+_0x26731f[_0x2856('0x22')]),_0xbfedfc[_0x2856('0x4a')][_0x2856('0x3d')](_0x26731f[_0x2856('0x1f')],'removeMarker:'+_0x26731f[_0x2856('0x22')]),{'classes':[]};const _0x28a69d=[_0x2856('0x61')];return _0x33b23c&&_0x28a69d['push'](_0x2856('0x6e')),{'classes':_0x28a69d,'attributes':{'data-comment':_0x52e6da}};}}),_0x20b585[_0x2856('0x33')][_0x2856('0x76')](_0x2856('0x4c'))['markerToData']({'model':_0x2856('0x1a'),'view':(_0x1cc77a,{options:_0x51a86d})=>{const _0x6280bc=_0x20b585[_0x2856('0x71')][_0x2856('0x0')](_0x3eb312),_0x544adc=_0x20b585['model'][_0x2856('0x57')]['get'](_0x1cc77a),{id:_0x40b514,part:_0x43b6a5}=et(_0x1cc77a);if(_0x544adc&&!_0x544adc[_0x2856('0x75')])return null;if(_0x51a86d[_0x2856('0x27')]){const _0x562423=_0x6280bc[_0x2856('0xa')](_0x40b514);if(_0x562423&&_0x562423[_0x2856('0x69')])return null;}return{'group':_0x2856('0x1a'),'name':_0x43b6a5?_0x40b514+':'+_0x43b6a5:_0x40b514};}}),_0x20b585[_0x2856('0x33')][_0x2856('0x76')](_0x2856('0x5b'))[_0x2856('0x1c')]({'view':{'name':_0x2856('0x1a'),'attributes':{'id':/^\w/}},'model':(_0x25fd85,{writer:_0x54e894})=>_0x54e894[_0x2856('0x24')]('$marker',{'data-name':_0x2856('0x5e')+_0x25fd85[_0x2856('0x6b')]('id')})}),_0x20b585['conversion']['for'](_0x2856('0x5b'))[_0x2856('0x7')]({'view':_0x2856('0x1a')});}[_0x2856('0x38')](){const _0x191b3b=this[_0x2856('0x48')],_0x480bc2=_0x191b3b[_0x2856('0x71')][_0x2856('0x0')](_0x3eb312),_0x833983=new Set(),_0x497620=new Set();_0x191b3b['model'][_0x2856('0x5a')][_0x2856('0x4')](_0x4368fb=>{let _0x2af711=!0x1;for(const {name:_0x9444c3,data:_0x5826c6}of _0x191b3b[_0x2856('0x65')][_0x2856('0x5a')][_0x2856('0x37')][_0x2856('0x20')]()){const {group:_0x445019,id:_0x2b086f}=et(_0x9444c3);let _0x24fe2f=_0x5826c6[_0x2856('0x64')];if('comment'!==_0x445019||!_0x24fe2f)continue;const _0x3387d3=_0x2856('0x10')===_0x24fe2f[_0x2856('0x9')][_0x2856('0x15')];_0x3387d3||(_0x24fe2f=rt(_0x24fe2f,_0x191b3b['model']),!_0x24fe2f||_0x24fe2f[_0x2856('0x2f')]||!_0x5826c6['newRange']||_0x24fe2f['isEqual'](_0x5826c6['newRange']))?_0x191b3b['model']['hasContent'](_0x24fe2f)&&!_0x3387d3?this[_0x2856('0xc')]?_0x833983['add'](_0x9444c3):this[_0x2856('0x72')](_0x9444c3,_0x2b086f):(_0x497620[_0x2856('0x44')](_0x9444c3),_0x833983[_0x2856('0x28')](_0x9444c3),_0x4368fb[_0x2856('0x2')](_0x9444c3),_0x2af711=!0x0):(_0x4368fb[_0x2856('0x26')](_0x9444c3,{'range':_0x24fe2f}),_0x2af711=!0x0);}return _0x2af711;}),this['on'](_0x2856('0x2d'),(_0x40bbeb,_0x4a04b5,_0x1a3c79)=>{if(!_0x1a3c79&&_0x833983[_0x2856('0x63')])for(const _0xd99acf of _0x833983){const {id:_0x49d4c6}=et(_0xd99acf);_0x833983[_0x2856('0x28')](_0xd99acf),_0x191b3b[_0x2856('0x65')][_0x2856('0x57')][_0x2856('0x0')](_0xd99acf)&&this['_handleThreadMarker'](_0xd99acf,_0x49d4c6);}}),this[_0x2856('0x3a')](_0x191b3b[_0x2856('0x65')]['document'],_0x2856('0x49'),(_0x4db2da,_0x4c905e)=>{for(const {name:_0x318bd8,data:{newRange:_0x398830}}of _0x191b3b['model']['document'][_0x2856('0x37')][_0x2856('0x20')]()){const {group:_0x22d996,id:_0x3e9451}=et(_0x318bd8);if(_0x2856('0x1a')!==_0x22d996)continue;const _0x5979eb=_0x480bc2['getCommentThread'](_0x3e9451),_0x36b01a=this[_0x2856('0x30')](_0x3e9451);_0x5979eb&&(_0x5979eb[_0x2856('0x17')]||_0x191b3b['editing'][_0x2856('0xf')][_0x2856('0x53')]('render',()=>{const _0x2669b6=_0x191b3b[_0x2856('0x71')][_0x2856('0x0')](_0x2c10a8),_0x10751c=_0x480bc2[_0x2856('0x73')][_0x2856('0x0')](_0x5979eb)[_0x2856('0xf')];_0x2669b6[_0x2856('0x6d')](_0x10751c)['refreshVisibility']();},{'priority':_0x2856('0x6a')}),_0x5979eb[_0x2856('0x17')]=_0x36b01a||!!_0x398830),_0x398830||(_0x497620[_0x2856('0x44')](_0x318bd8),_0x833983[_0x2856('0x28')](_0x318bd8),this[_0x2856('0x39')]['has'](_0x3e9451)&&this[_0x2856('0x39')]['get'](_0x3e9451)['delete'](_0x318bd8));}if(_0x4c905e[_0x2856('0x21')])for(const _0x94079f of _0x497620){const {id:_0x4341fa}=et(_0x94079f),_0xe7be69=_0x480bc2[_0x2856('0xa')](_0x4341fa),_0x290c32=this[_0x2856('0x30')](_0x4341fa);_0x833983[_0x2856('0x28')](_0x94079f),!_0xe7be69||_0x290c32||_0xe7be69[_0x2856('0x69')]||this['_removedThread']===_0x4341fa||(this[_0x2856('0x29')][_0x2856('0x44')](_0xe7be69),_0xe7be69[_0x2856('0x1d')]());}_0x497620[_0x2856('0x45')]();});}['_getTargetForId'](_0x49df23){const _0x38770b=this[_0x2856('0x48')],_0x1c914a=this[_0x2856('0x19')](_0x49df23);return _0x5bccf9(_0x38770b['editing'],_0x1c914a);}['_getTextContext'](_0x5b3628){const _0x1b8588=this[_0x2856('0x19')](_0x5b3628);let _0x53d4bb='',_0x488229=!0x1;for(const _0x337dd0 of _0x1b8588){const _0x320dab=_0x337dd0[_0x2856('0x5c')]();for(const _0x10f12e of Array[_0x2856('0x18')](_0x320dab['getItems']()))_0x10f12e['is'](_0x2856('0x41'))?(_0x53d4bb&&_0x488229&&(_0x53d4bb+='\x20',_0x488229=!0x1),_0x53d4bb+=_0x10f12e[_0x2856('0x47')]):_0x488229=!0x0;_0x488229=!0x0;}return _0x53d4bb[_0x2856('0x4e')](0x0,0x96);}[_0x2856('0x56')](_0x2a2d26,_0x528adc){const _0x1e41ba=this[_0x2856('0x48')],_0x4c7266=_0x1e41ba[_0x2856('0x71')][_0x2856('0x0')](_0x3eb312);let _0x30eb2b=_0x4c7266[_0x2856('0xa')](_0x528adc);if(this['_attachedThreads']['has'](_0x528adc)){const _0x19a145=this[_0x2856('0x39')]['get'](_0x528adc);_0x19a145['has'](_0x2a2d26)||_0x19a145[_0x2856('0x44')](_0x2a2d26);}const _0x2eafef=_0x1e41ba[_0x2856('0x62')][_0x2856('0x0')](_0x2856('0x1e')),_0x3f1904=_0x1e41ba[_0x2856('0x71')][_0x2856('0x0')](_0x16f6a1);if(_0x30eb2b&&_0x30eb2b[_0x2856('0x69')]&&this['_autoResolvedThreads'][_0x2856('0x50')](_0x30eb2b)&&(this[_0x2856('0x29')]['delete'](_0x30eb2b),_0x30eb2b[_0x2856('0x6f')]()),this[_0x2856('0x39')][_0x2856('0x50')](_0x528adc))return _0x30eb2b;return this[_0x2856('0x39')]['set'](_0x528adc,new Set([_0x2a2d26])),(!this[_0x2856('0x19')](_0x528adc)[0x0][_0x2856('0x3')]?_0x1e41ba[_0x2856('0x1')][_0x2856('0xf')][_0x2856('0x53')](_0x2856('0x36'),()=>{const _0x2c3efb=_0x1e41ba[_0x2856('0x71')][_0x2856('0x0')](_0x2c10a8);_0x30eb2b=_0x4c7266[_0x2856('0xe')]({'channelId':_0x2eafef,'threadId':_0x528adc,'target':()=>this[_0x2856('0x5')](_0x528adc),'context':{'type':_0x2856('0x35'),'value':this[_0x2856('0x55')](_0x528adc)}});const _0x266158=_0x4c7266['_threadToController']['get'](_0x30eb2b)[_0x2856('0xf')],_0x396574=_0x2c3efb['getByInnerView'](_0x266158);_0x396574&&_0x3f1904[_0x2856('0x11')](_0x396574);},{'priority':_0x2856('0x6a')}):_0x4c7266['fetchCommentThread']({'channelId':_0x2eafef,'threadId':_0x528adc})[_0x2856('0x2b')](_0x5e1acf=>{if(_0x2856('0x23')!==_0x1e41ba['state']){if(_0x30eb2b=_0x5e1acf,_0x30eb2b){const _0x483f98=_0x30eb2b[_0x2856('0x6')](()=>this[_0x2856('0x5')](_0x528adc));_0x3f1904['registerAnnotation'](_0x483f98),_0x30eb2b['isResolved']&&this[_0x2856('0x43')](_0x528adc);}else{const _0x21d0fe=this['getAllMarkersForId'](_0x528adc);_0x1e41ba[_0x2856('0x65')][_0x2856('0x49')](_0x2ed1f7=>{for(const _0x2cabc5 of _0x21d0fe)_0x2ed1f7[_0x2856('0x2')](_0x2cabc5);});}}}),_0x30eb2b);}['_handleThreadMarker'](_0x23fdbb,_0x4b8284){const _0x1ec065=this[_0x2856('0x56')](_0x23fdbb,_0x4b8284);_0x1ec065&&!_0x1ec065['context']&&_0x1ec065[_0x2856('0x16')]({'type':_0x2856('0x35'),'value':this[_0x2856('0x55')](_0x4b8284)});}}function ot(_0x3b15ea,_0x2be2ec){return _0x2be2ec?_0x3b15ea+':'+_0x2be2ec:_0x3b15ea;}function et(_0x3f04a7){const _0x4fcfe5=_0x3f04a7[_0x2856('0x34')](':');return{'group':_0x4fcfe5[0x0],'id':_0x4fcfe5[0x1],'part':_0x4fcfe5[0x2]};}function rt(_0x3daa87,_0x10a987){const _0x546c0e=_0x10a987[_0x2856('0x14')],_0x535447=_0x10a987['createRange'](_0x3daa87[_0x2856('0x4b')]);for(const _0x575ebf of _0x3daa87[_0x2856('0x40')]()){const {type:_0x26d314,item:_0x11ac16,nextPosition:_0x7c5eb5}=_0x575ebf;if(_0x2856('0x35')===_0x26d314||_0x546c0e[_0x2856('0x66')](_0x11ac16)){const _0xc87cb1=_0x10a987[_0x2856('0x52')](_0x11ac16);_0x535447[_0x2856('0x2f')]&&(_0x535447['start']=_0xc87cb1),_0x535447[_0x2856('0x4d')]=_0x7c5eb5;}}return _0x535447;}