@ckeditor/ckeditor5-comments 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230812.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 _0x4776=['mainView','fire','set','element','height','clientHeight','Esc','focusTracker','add','isActive','render','destroy','isDirty','type','bindTemplate','_updateHeight','ck-rounded-corners','attach','content','keystrokes','_mutationObserver','detach'];(function(_0x2df0b1,_0x4776fb){const _0x2b2b3f=function(_0x1e5d9f){while(--_0x1e5d9f){_0x2df0b1['push'](_0x2df0b1['shift']());}};_0x2b2b3f(++_0x4776fb);}(_0x4776,0x125));const _0x2b2b=function(_0x2df0b1,_0x4776fb){_0x2df0b1=_0x2df0b1-0x0;let _0x2b2b3f=_0x4776[_0x2df0b1];return _0x2b2b3f;};import{View as _0x134224}from'ckeditor5/src/ui';import{FocusTracker as _0x14bbca,KeystrokeHandler as _0x429dd5,uid as _0x18157c}from'ckeditor5/src/utils';import _0x4b78de from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x134224{constructor(_0x265224,_0x33fe65){super(_0x265224),this['id']=_0x18157c(),this[_0x2b2b('0x0')]=new _0x14bbca(),this[_0x2b2b('0xc')]=new _0x429dd5(),this[_0x2b2b('0xc')][_0x2b2b('0x11')](_0x2b2b('0x15'),(_0x4a7c50,_0x131894)=>this[_0x2b2b('0x10')](_0x2b2b('0x15'),_0x131894)),this[_0x2b2b('0x11')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2b2b('0x11')](_0x2b2b('0x13'),0x0),this[_0x2b2b('0x11')](_0x2b2b('0x2'),!0x1),this[_0x2b2b('0x11')](_0x2b2b('0x5'),!0x1),this['set']('length',0x0),this[_0x2b2b('0x11')](_0x2b2b('0x6'),''),this['_mutationObserver']=_0x4b78de(()=>this[_0x2b2b('0x8')]()),this[_0x2b2b('0xb')]=this['createCollection'](),this[_0x2b2b('0xb')][_0x2b2b('0x1')](_0x33fe65),this[_0x2b2b('0xf')]=_0x33fe65;const _0x2e73f7=this[_0x2b2b('0x7')];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x2b2b('0x9'),_0x2e73f7['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x2b2b('0x3')](){super[_0x2b2b('0x3')](),this[_0x2b2b('0x0')][_0x2b2b('0x1')](this[_0x2b2b('0x12')]),this['keystrokes']['listenTo'](this[_0x2b2b('0x12')]),this['_mutationObserver'][_0x2b2b('0xa')](this[_0x2b2b('0x12')]);}[_0x2b2b('0x4')](){this['content']['clear'](),this['keystrokes'][_0x2b2b('0x4')](),this['focusTracker'][_0x2b2b('0x4')](),this[_0x2b2b('0xd')][_0x2b2b('0xe')](),super[_0x2b2b('0x4')]();}['focus'](){this['element']['focus']();}['_updateHeight'](){const _0x4e0c9a=this[_0x2b2b('0x12')][_0x2b2b('0x14')];_0x4e0c9a&&(this[_0x2b2b('0x13')]=_0x4e0c9a);}}
23
+ const _0x2cc5=['length','height','set','clear','_mutationObserver','attach','isActive','type','targetRect','content','ck-annotation-wrapper','fire','focusTracker','add','createCollection','listenTo','focus','setTemplate','mainView','bindTemplate','keystrokes','_updateHeight','Esc','div','element','destroy','render'];(function(_0x3ed2a3,_0x2cc500){const _0x4d8586=function(_0x5729da){while(--_0x5729da){_0x3ed2a3['push'](_0x3ed2a3['shift']());}};_0x4d8586(++_0x2cc500);}(_0x2cc5,0x16c));const _0x4d85=function(_0x3ed2a3,_0x2cc500){_0x3ed2a3=_0x3ed2a3-0x0;let _0x4d8586=_0x2cc5[_0x3ed2a3];return _0x4d8586;};import{View as _0xef81b1}from'ckeditor5/src/ui';import{FocusTracker as _0x25d669,KeystrokeHandler as _0x4f159b,uid as _0x1dfcd5}from'ckeditor5/src/utils';import _0x55dbd3 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0xef81b1{constructor(_0x38b3dc,_0x1eb53c){super(_0x38b3dc),this['id']=_0x1dfcd5(),this[_0x4d85('0x1a')]=new _0x25d669(),this[_0x4d85('0x7')]=new _0x4f159b(),this[_0x4d85('0x7')][_0x4d85('0x10')](_0x4d85('0x9'),(_0x97fd3f,_0x1643f2)=>this[_0x4d85('0x19')](_0x4d85('0x9'),_0x1643f2)),this['set'](_0x4d85('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x4d85('0x10')](_0x4d85('0xf'),0x0),this[_0x4d85('0x10')](_0x4d85('0x14'),!0x1),this[_0x4d85('0x10')]('isDirty',!0x1),this['set'](_0x4d85('0xe'),0x0),this[_0x4d85('0x10')](_0x4d85('0x15'),''),this['_mutationObserver']=_0x55dbd3(()=>this['_updateHeight']()),this['content']=this[_0x4d85('0x1')](),this[_0x4d85('0x17')]['add'](_0x1eb53c),this[_0x4d85('0x5')]=_0x1eb53c;const _0x46da86=this[_0x4d85('0x6')];this[_0x4d85('0x4')]({'tag':_0x4d85('0xa'),'attributes':{'class':['ck',_0x4d85('0x18'),'ck-rounded-corners',_0x46da86['if'](_0x4d85('0x14'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x4d85('0xd')](),this['focusTracker'][_0x4d85('0x0')](this[_0x4d85('0xb')]),this[_0x4d85('0x7')][_0x4d85('0x2')](this[_0x4d85('0xb')]),this['_mutationObserver'][_0x4d85('0x13')](this[_0x4d85('0xb')]);}[_0x4d85('0xc')](){this[_0x4d85('0x17')][_0x4d85('0x11')](),this['keystrokes'][_0x4d85('0xc')](),this[_0x4d85('0x1a')][_0x4d85('0xc')](),this[_0x4d85('0x12')]['detach'](),super[_0x4d85('0xc')]();}[_0x4d85('0x3')](){this[_0x4d85('0xb')]['focus']();}[_0x4d85('0x8')](){const _0x173690=this[_0x4d85('0xb')]['clientHeight'];_0x173690&&(this[_0x4d85('0xf')]=_0x173690);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2105=['top','ck-sidebar-item--no-animation','attach','content','clear','updateHeight','destroy','height','div','ck-sidebar-item','detach','element','set','createCollection','setTemplate','_mutationObserver','render','clientHeight','_targetTop','bottom','bind','bindTemplate'];(function(_0x569601,_0x2105b7){const _0x52545a=function(_0x253b1d){while(--_0x253b1d){_0x569601['push'](_0x569601['shift']());}};_0x52545a(++_0x2105b7);}(_0x2105,0x1d0));const _0x5254=function(_0x569601,_0x2105b7){_0x569601=_0x569601-0x0;let _0x52545a=_0x2105[_0x569601];return _0x52545a;};import{View as _0x51b8a4}from'ckeditor5/src/ui';import{toUnit as _0x5cfe13}from'ckeditor5/src/utils';import _0x4dadcf from'../../utils/createmutationobserver';const At=_0x5cfe13('px');export default class C extends _0x51b8a4{constructor(_0x4ea3b4){super(_0x4ea3b4),this[_0x5254('0xa')](_0x5254('0x14'),0x0),this[_0x5254('0xa')](_0x5254('0x5'),0x0),this[_0x5254('0x12')](_0x5254('0x11'))['to'](this,'top',this,_0x5254('0x5'),(_0x554caa,_0x1d17d9)=>_0x554caa+_0x1d17d9),this[_0x5254('0xa')]('isAnimationDisabled',!0x1),this[_0x5254('0xd')]=_0x4dadcf(()=>this[_0x5254('0x3')]()),this[_0x5254('0x10')]=null,this['content']=this[_0x5254('0xb')]();const _0x587a8d=this[_0x5254('0x13')];this[_0x5254('0xc')]({'tag':_0x5254('0x6'),'attributes':{'class':[_0x5254('0x7'),_0x587a8d['to']('isAnimationDisabled',_0x12f6d7=>_0x12f6d7?_0x5254('0x15'):'')],'style':{'top':_0x587a8d['to']('top',_0x3fd9cc=>At(_0x3fd9cc))}},'children':this[_0x5254('0x1')]});}[_0x5254('0xe')](){super['render'](),this[_0x5254('0xd')][_0x5254('0x0')](this['element']);}[_0x5254('0x3')](){const _0x1c32ba=this[_0x5254('0x9')][_0x5254('0xf')];_0x1c32ba&&(this[_0x5254('0x5')]=_0x1c32ba);}['destroy'](){this[_0x5254('0x1')][_0x5254('0x2')](),this['_mutationObserver'][_0x5254('0x8')](),super[_0x5254('0x4')]();}}
23
+ const _0x57ff=['clear','clientHeight','ck-sidebar-item--no-animation','ck-sidebar-item','isAnimationDisabled','height','_mutationObserver','content','set','render','bottom','setTemplate','destroy','createCollection','attach','updateHeight','bind','element','top','detach','bindTemplate','_targetTop'];(function(_0x1d1fcf,_0x57ff70){const _0x2a5407=function(_0x4a6ad4){while(--_0x4a6ad4){_0x1d1fcf['push'](_0x1d1fcf['shift']());}};_0x2a5407(++_0x57ff70);}(_0x57ff,0xde));const _0x2a54=function(_0x1d1fcf,_0x57ff70){_0x1d1fcf=_0x1d1fcf-0x0;let _0x2a5407=_0x57ff[_0x1d1fcf];return _0x2a5407;};import{View as _0x185d54}from'ckeditor5/src/ui';import{toUnit as _0x4848bb}from'ckeditor5/src/utils';import _0x83d932 from'../../utils/createmutationobserver';const At=_0x4848bb('px');export default class C extends _0x185d54{constructor(_0x4381f6){super(_0x4381f6),this[_0x2a54('0x6')]('top',0x0),this[_0x2a54('0x6')](_0x2a54('0x3'),0x0),this[_0x2a54('0xe')](_0x2a54('0x8'))['to'](this,'top',this,'height',(_0x48f782,_0xa9a540)=>_0x48f782+_0xa9a540),this[_0x2a54('0x6')](_0x2a54('0x2'),!0x1),this['_mutationObserver']=_0x83d932(()=>this[_0x2a54('0xd')]()),this[_0x2a54('0x13')]=null,this['content']=this[_0x2a54('0xb')]();const _0x4482cb=this[_0x2a54('0x12')];this[_0x2a54('0x9')]({'tag':'div','attributes':{'class':[_0x2a54('0x1'),_0x4482cb['to'](_0x2a54('0x2'),_0x294335=>_0x294335?_0x2a54('0x0'):'')],'style':{'top':_0x4482cb['to'](_0x2a54('0x10'),_0x436324=>At(_0x436324))}},'children':this[_0x2a54('0x5')]});}['render'](){super[_0x2a54('0x7')](),this[_0x2a54('0x4')][_0x2a54('0xc')](this[_0x2a54('0xf')]);}[_0x2a54('0xd')](){const _0x137149=this[_0x2a54('0xf')][_0x2a54('0x15')];_0x137149&&(this[_0x2a54('0x3')]=_0x137149);}['destroy'](){this[_0x2a54('0x5')][_0x2a54('0x14')](),this[_0x2a54('0x4')][_0x2a54('0x11')](),super[_0x2a54('0xa')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdd89=['class','ck-reset','number','ck-sidebar','list','div','minHeight','createCollection','set','setTemplate'];(function(_0x37aec8,_0xdd893a){const _0xaaaca2=function(_0x456707){while(--_0x456707){_0x37aec8['push'](_0x37aec8['shift']());}};_0xaaaca2(++_0xdd893a);}(_0xdd89,0x14e));const _0xaaac=function(_0x37aec8,_0xdd893a){_0x37aec8=_0x37aec8-0x0;let _0xaaaca2=_0xdd89[_0x37aec8];return _0xaaaca2;};import{View as _0x29957f}from'ckeditor5/src/ui';import{toUnit as _0x2bcf1a}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x2bcf1a('px');export default class T extends _0x29957f{constructor(_0x49ec5a){super(_0x49ec5a);const _0x423463=this['bindTemplate'];this['set']('minHeight',0x0),this[_0xaaac('0x4')](_0xaaac('0x6'),''),this['list']=this[_0xaaac('0x3')](),this[_0xaaac('0x5')]({'tag':_0xaaac('0x1'),'attributes':{'class':['ck',_0xaaac('0x9'),_0xaaac('0x7'),_0x423463['to']('class')],'style':{'minHeight':_0x423463['to'](_0xaaac('0x2'),_0x4948f3=>_0xaaac('0x8')==typeof _0x4948f3?At(_0x4948f3+0xa):null)}},'children':this[_0xaaac('0x0')]});}}
23
+ const _0x4ffd=['bindTemplate','ck-sidebar','setTemplate','createCollection','minHeight','set','number','class'];(function(_0x1b0de7,_0x4ffd5a){const _0x472734=function(_0x568bcc){while(--_0x568bcc){_0x1b0de7['push'](_0x1b0de7['shift']());}};_0x472734(++_0x4ffd5a);}(_0x4ffd,0xd5));const _0x4727=function(_0x1b0de7,_0x4ffd5a){_0x1b0de7=_0x1b0de7-0x0;let _0x472734=_0x4ffd[_0x1b0de7];return _0x472734;};import{View as _0x27c6b5}from'ckeditor5/src/ui';import{toUnit as _0x5ba42d}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x5ba42d('px');export default class T extends _0x27c6b5{constructor(_0x401da2){super(_0x401da2);const _0x2960d0=this[_0x4727('0x3')];this[_0x4727('0x0')](_0x4727('0x7'),0x0),this[_0x4727('0x0')](_0x4727('0x2'),''),this['list']=this[_0x4727('0x6')](),this[_0x4727('0x5')]({'tag':'div','attributes':{'class':['ck',_0x4727('0x4'),'ck-reset',_0x2960d0['to'](_0x4727('0x2'))],'style':{'minHeight':_0x2960d0['to'](_0x4727('0x7'),_0xad4600=>_0x4727('0x1')==typeof _0xad4600?At(_0xad4600+0xa):null)}},'children':this['list']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x518f=['editors','switchTo','get','_refreshPositioningDebounced','widesidebar-detach-not-attached','getOrderedSelectedAnnotations','detach','hasDomSelection','remove','stop','addEventListener','blur','init','attach','_integrateWithEditorAnnotations','container','add','has','set','_detachFromContainer','WideSidebar','_destroyEditorAnnotationsIntegration','register','ck-sidebar--wide','widesidebar-attach-already-attached','set:container','_editorAnnotations','stopListening','cancel','EditorAnnotations','change:container','_annotations','off','rearrange','listenTo','isAttached','refreshPositioning','setActiveAnnotation','high','updateTargetRect','uiUpdate','resize','context','wideSidebar','plugins','activeAnnotation','annotations'];(function(_0x577e9e,_0x518f6d){const _0x18890f=function(_0x22d36a){while(--_0x22d36a){_0x577e9e['push'](_0x577e9e['shift']());}};_0x18890f(++_0x518f6d);}(_0x518f,0x1d3));const _0x1889=function(_0x577e9e,_0x518f6d){_0x577e9e=_0x577e9e-0x0;let _0x18890f=_0x518f[_0x577e9e];return _0x18890f;};import{ContextPlugin as _0x43bc6f,Context as _0x1587f5}from'ckeditor5/src/core';import _0x199873 from'./annotationsuis';import _0x2d1de4 from'./sidebar';import{CKEditorError as _0x4618d5,Collection as _0x4448dd}from'ckeditor5/src/utils';import{debounce as _0x326785}from'lodash-es';import _0x320922 from'./editorannotations';export default class i extends _0x43bc6f{static get['requires'](){return[_0x2d1de4,_0x199873];}static get['pluginName'](){return _0x1889('0x17');}constructor(_0x495c2c){super(_0x495c2c),this[_0x1889('0x26')]=!0x1,this[_0x1889('0x15')](_0x1889('0x1'),null),this['annotations']=null,this[_0x1889('0x1d')]=new _0x4448dd(),this[_0x1889('0x6')]=_0x326785(()=>{this[_0x1889('0x2')][_0x1889('0x27')]();},0xfa,{'leading':!0x1});}[_0x1889('0xf')](){const _0x5579b5=this[_0x1889('0x2d')][_0x1889('0x0')][_0x1889('0x5')](_0x199873),_0x4b21f4=this[_0x1889('0x2d')]['plugins'][_0x1889('0x5')](_0x2d1de4);_0x5579b5[_0x1889('0x19')](_0x1889('0x2e'),this),_0x4b21f4[_0x1889('0x12')]&&_0x5579b5[_0x1889('0x4')](_0x1889('0x2e'));}[_0x1889('0x28')](_0x10e146){if(_0x10e146===this[_0x1889('0x1')])return;const _0xb4962f=this['context']['plugins']['get'](_0x2d1de4);_0xb4962f['_activeAnnotation']=_0x10e146;const _0xb5e44b=this[_0x1889('0x1')];this[_0x1889('0x1')]=_0x10e146,_0xb4962f['refresh']({'blurredAnnotation':_0xb5e44b,'activatedAnnotation':this[_0x1889('0x1')]});}[_0x1889('0x10')](_0x4ab9c0){this[_0x1889('0x2')]=_0x4ab9c0;const _0x237241=this['context'][_0x1889('0x0')]['get'](_0x2d1de4);if(_0x237241[_0x1889('0x22')]=_0x4ab9c0,this[_0x1889('0x26')])throw new _0x4618d5(_0x1889('0x1b'),this);this[_0x1889('0x26')]=!0x0,this[_0x1889('0x25')](_0x237241,_0x1889('0x1c'),()=>{this['detach'](),this[_0x1889('0x25')](_0x237241,_0x1889('0x21'),_0x5ae844=>{_0x5ae844[_0x1889('0x23')](),this[_0x1889('0x10')](_0x4ab9c0);});}),_0x237241['_attachToContainer']({'viewClass':_0x1889('0x1a')});const _0x5c9a26=_0x2f84e4=>{_0x2f84e4[_0x1889('0x2a')](),_0x237241['addAnnotation'](_0x2f84e4);};for(const _0x3ac206 of _0x4ab9c0)_0x5c9a26(_0x3ac206);this[_0x1889('0x25')](_0x4ab9c0,'add',(_0x5f26bf,_0x2a7fca)=>{_0x5c9a26(_0x2a7fca);}),this[_0x1889('0x25')](_0x4ab9c0,_0x1889('0xb'),(_0x319dc0,_0x758861,_0x26b3d0)=>{_0x237241[_0x1889('0x24')]({'removedAnnotation':_0x758861,'previousAnnotation':_0x4ab9c0['get'](_0x26b3d0-0x1),'nextAnnotation':_0x4ab9c0[_0x1889('0x5')](_0x26b3d0+0x1)}),_0x758861===this[_0x1889('0x1')]&&this[_0x1889('0x28')](null);},{'priority':_0x1889('0x29')}),this[_0x1889('0x25')](_0x4ab9c0,'focus',(_0x253761,_0x4ca060)=>{this['setActiveAnnotation'](_0x4ca060);}),this[_0x1889('0x25')](_0x4ab9c0,'blur',()=>{this[_0x1889('0x28')](null);});const _0x16ae9a=this['context']instanceof _0x1587f5?this[_0x1889('0x2d')]['editors']:new _0x4448dd([this[_0x1889('0x2d')]]);for(const _0x12d15c of _0x16ae9a)this['_integrateWithEditorAnnotations'](_0x12d15c);this['listenTo'](_0x16ae9a,'add',(_0x2894a8,_0x15821f)=>{this[_0x1889('0x25')](_0x15821f,'ready',()=>{this[_0x1889('0x11')](_0x15821f);});}),this[_0x1889('0x25')](_0x16ae9a,_0x1889('0xb'),(_0x19c025,_0x42e6bf)=>{_0x42e6bf[_0x1889('0x0')][_0x1889('0x14')](_0x1889('0x20'))&&this[_0x1889('0x18')](_0x42e6bf[_0x1889('0x0')]['get']('EditorAnnotations'));}),window[_0x1889('0xd')](_0x1889('0x2c'),this[_0x1889('0x6')]),this[_0x1889('0x2')][_0x1889('0x27')]();}[_0x1889('0x9')](){if(!this[_0x1889('0x26')])throw new _0x4618d5(_0x1889('0x7'),this);this[_0x1889('0x28')](null);const _0x1bb2f8=this['context']['plugins'][_0x1889('0x5')](_0x2d1de4);_0x1bb2f8[_0x1889('0x16')](this['annotations']),this[_0x1889('0x1e')](_0x1bb2f8),this['stopListening'](this[_0x1889('0x2')]),this['context']instanceof _0x1587f5&&this[_0x1889('0x1e')](this['context'][_0x1889('0x3')]);for(const _0x4bb1e7 of Array['from'](this[_0x1889('0x1d')]))this['_destroyEditorAnnotationsIntegration'](_0x4bb1e7);window['removeEventListener'](_0x1889('0x2c'),this['_refreshPositioningDebounced']),this[_0x1889('0x6')][_0x1889('0x1f')](),this['activeAnnotation']=null,this[_0x1889('0x26')]=!0x1,this[_0x1889('0x2')]=null;}['destroy'](){this['isAttached']&&this['detach']();}[_0x1889('0x11')](_0x5279a9){const _0x48e8e9=_0x5279a9['plugins'][_0x1889('0x5')](_0x320922);if(!_0x48e8e9)return;const _0x1ff7a2=()=>{const _0x598ef2=_0x48e8e9[_0x1889('0x8')]({'annotations':this[_0x1889('0x2')],'activeAnnotation':this[_0x1889('0x1')]});this[_0x1889('0x28')](_0x598ef2[0x0]||null);};this[_0x1889('0x25')](_0x48e8e9,'refresh',_0x1ff7a2),this[_0x1889('0x25')](_0x48e8e9,_0x1889('0xe'),(_0x53949c,{isAnnotationTracked:_0x555c32})=>{this[_0x1889('0x1')]&&_0x555c32(this['activeAnnotation'])&&this[_0x1889('0x28')](null);}),this[_0x1889('0x25')](_0x48e8e9,_0x1889('0x2b'),()=>{this[_0x1889('0x6')]();}),this[_0x1889('0x25')](this[_0x1889('0x2')],'blur',_0x1905a9=>{_0x48e8e9[_0x1889('0xa')]()&&(_0x1ff7a2(),_0x1905a9[_0x1889('0xc')]());},{'priority':_0x1889('0x29')}),this[_0x1889('0x1d')][_0x1889('0x13')](_0x48e8e9);}[_0x1889('0x18')](_0x1d45b1){this[_0x1889('0x1e')](_0x1d45b1),this[_0x1889('0x1d')]['remove'](_0x1d45b1);}}
23
+ const _0x4289=['wideSidebar','_editorAnnotations','context','resize','blur','container','refreshPositioning','widesidebar-attach-already-attached','_refreshPositioningDebounced','detach','_attachToContainer','stopListening','setActiveAnnotation','register','rearrange','addEventListener','high','pluginName','getOrderedSelectedAnnotations','_detachFromContainer','isAttached','plugins','destroy','attach','_destroyEditorAnnotationsIntegration','_activeAnnotation','editors','set:container','updateTargetRect','stop','init','removeEventListener','switchTo','hasDomSelection','addAnnotation','off','widesidebar-detach-not-attached','listenTo','EditorAnnotations','WideSidebar','change:container','annotations','focus','activeAnnotation','_integrateWithEditorAnnotations','remove','cancel','from','refresh','_annotations','add','get','set'];(function(_0x3e53b2,_0x4289a6){const _0x1678d2=function(_0x1dab0b){while(--_0x1dab0b){_0x3e53b2['push'](_0x3e53b2['shift']());}};_0x1678d2(++_0x4289a6);}(_0x4289,0x16a));const _0x1678=function(_0x3e53b2,_0x4289a6){_0x3e53b2=_0x3e53b2-0x0;let _0x1678d2=_0x4289[_0x3e53b2];return _0x1678d2;};import{ContextPlugin as _0x50b02c,Context as _0x413eb1}from'ckeditor5/src/core';import _0x3043fc from'./annotationsuis';import _0x284173 from'./sidebar';import{CKEditorError as _0x3ff738,Collection as _0x58df78}from'ckeditor5/src/utils';import{debounce as _0x1115ce}from'lodash-es';import _0x45e636 from'./editorannotations';export default class i extends _0x50b02c{static get['requires'](){return[_0x284173,_0x3043fc];}static get[_0x1678('0x1a')](){return _0x1678('0x30');}constructor(_0x3f2793){super(_0x3f2793),this[_0x1678('0x1d')]=!0x1,this[_0x1678('0x8')](_0x1678('0x34'),null),this[_0x1678('0x32')]=null,this['_editorAnnotations']=new _0x58df78(),this['_refreshPositioningDebounced']=_0x1115ce(()=>{this[_0x1678('0x32')][_0x1678('0xf')]();},0xfa,{'leading':!0x1});}[_0x1678('0x27')](){const _0x530fef=this[_0x1678('0xb')][_0x1678('0x1e')][_0x1678('0x7')](_0x3043fc),_0x2dd5bf=this[_0x1678('0xb')]['plugins'][_0x1678('0x7')](_0x284173);_0x530fef[_0x1678('0x16')](_0x1678('0x9'),this),_0x2dd5bf[_0x1678('0xe')]&&_0x530fef[_0x1678('0x29')](_0x1678('0x9'));}['setActiveAnnotation'](_0x160fb3){if(_0x160fb3===this[_0x1678('0x34')])return;const _0x54f745=this['context'][_0x1678('0x1e')][_0x1678('0x7')](_0x284173);_0x54f745[_0x1678('0x22')]=_0x160fb3;const _0x3149b9=this[_0x1678('0x34')];this[_0x1678('0x34')]=_0x160fb3,_0x54f745['refresh']({'blurredAnnotation':_0x3149b9,'activatedAnnotation':this[_0x1678('0x34')]});}[_0x1678('0x20')](_0x4fb395){this[_0x1678('0x32')]=_0x4fb395;const _0x3a3340=this['context']['plugins'][_0x1678('0x7')](_0x284173);if(_0x3a3340[_0x1678('0x5')]=_0x4fb395,this['isAttached'])throw new _0x3ff738(_0x1678('0x10'),this);this[_0x1678('0x1d')]=!0x0,this['listenTo'](_0x3a3340,_0x1678('0x24'),()=>{this['detach'](),this[_0x1678('0x2e')](_0x3a3340,_0x1678('0x31'),_0x20625f=>{_0x20625f[_0x1678('0x2c')](),this[_0x1678('0x20')](_0x4fb395);});}),_0x3a3340[_0x1678('0x13')]({'viewClass':'ck-sidebar--wide'});const _0x1c0d16=_0x525c16=>{_0x525c16[_0x1678('0x25')](),_0x3a3340[_0x1678('0x2b')](_0x525c16);};for(const _0x2c50b7 of _0x4fb395)_0x1c0d16(_0x2c50b7);this[_0x1678('0x2e')](_0x4fb395,_0x1678('0x6'),(_0x3d0227,_0x2755db)=>{_0x1c0d16(_0x2755db);}),this['listenTo'](_0x4fb395,'remove',(_0x525543,_0x22f800,_0x347bf8)=>{_0x3a3340[_0x1678('0x17')]({'removedAnnotation':_0x22f800,'previousAnnotation':_0x4fb395[_0x1678('0x7')](_0x347bf8-0x1),'nextAnnotation':_0x4fb395[_0x1678('0x7')](_0x347bf8+0x1)}),_0x22f800===this['activeAnnotation']&&this[_0x1678('0x15')](null);},{'priority':'high'}),this[_0x1678('0x2e')](_0x4fb395,_0x1678('0x33'),(_0x2edd5c,_0x2e000e)=>{this[_0x1678('0x15')](_0x2e000e);}),this[_0x1678('0x2e')](_0x4fb395,_0x1678('0xd'),()=>{this[_0x1678('0x15')](null);});const _0x23497b=this[_0x1678('0xb')]instanceof _0x413eb1?this['context'][_0x1678('0x23')]:new _0x58df78([this[_0x1678('0xb')]]);for(const _0x4c464f of _0x23497b)this[_0x1678('0x0')](_0x4c464f);this['listenTo'](_0x23497b,_0x1678('0x6'),(_0x2a1410,_0x3d7e8)=>{this[_0x1678('0x2e')](_0x3d7e8,'ready',()=>{this[_0x1678('0x0')](_0x3d7e8);});}),this['listenTo'](_0x23497b,_0x1678('0x1'),(_0x4b2c33,_0x134ce3)=>{_0x134ce3[_0x1678('0x1e')]['has']('EditorAnnotations')&&this[_0x1678('0x21')](_0x134ce3[_0x1678('0x1e')]['get'](_0x1678('0x2f')));}),window[_0x1678('0x18')]('resize',this['_refreshPositioningDebounced']),this[_0x1678('0x32')][_0x1678('0xf')]();}[_0x1678('0x12')](){if(!this[_0x1678('0x1d')])throw new _0x3ff738(_0x1678('0x2d'),this);this[_0x1678('0x15')](null);const _0xf91bfb=this['context']['plugins']['get'](_0x284173);_0xf91bfb[_0x1678('0x1c')](this[_0x1678('0x32')]),this[_0x1678('0x14')](_0xf91bfb),this['stopListening'](this[_0x1678('0x32')]),this[_0x1678('0xb')]instanceof _0x413eb1&&this[_0x1678('0x14')](this[_0x1678('0xb')][_0x1678('0x23')]);for(const _0x3a4762 of Array[_0x1678('0x3')](this[_0x1678('0xa')]))this[_0x1678('0x21')](_0x3a4762);window[_0x1678('0x28')](_0x1678('0xc'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x1678('0x2')](),this[_0x1678('0x34')]=null,this['isAttached']=!0x1,this[_0x1678('0x32')]=null;}[_0x1678('0x1f')](){this['isAttached']&&this[_0x1678('0x12')]();}[_0x1678('0x0')](_0x20c94a){const _0x17b0b4=_0x20c94a[_0x1678('0x1e')][_0x1678('0x7')](_0x45e636);if(!_0x17b0b4)return;const _0x4ea025=()=>{const _0x20825a=_0x17b0b4[_0x1678('0x1b')]({'annotations':this['annotations'],'activeAnnotation':this[_0x1678('0x34')]});this[_0x1678('0x15')](_0x20825a[0x0]||null);};this['listenTo'](_0x17b0b4,_0x1678('0x4'),_0x4ea025),this[_0x1678('0x2e')](_0x17b0b4,_0x1678('0xd'),(_0x284938,{isAnnotationTracked:_0x34d62b})=>{this[_0x1678('0x34')]&&_0x34d62b(this[_0x1678('0x34')])&&this[_0x1678('0x15')](null);}),this[_0x1678('0x2e')](_0x17b0b4,'uiUpdate',()=>{this[_0x1678('0x11')]();}),this[_0x1678('0x2e')](this[_0x1678('0x32')],'blur',_0x450fd4=>{_0x17b0b4[_0x1678('0x2a')]()&&(_0x4ea025(),_0x450fd4[_0x1678('0x26')]());},{'priority':_0x1678('0x19')}),this[_0x1678('0xa')][_0x1678('0x6')](_0x17b0b4);}[_0x1678('0x21')](_0x3728c2){this[_0x1678('0x14')](_0x3728c2),this[_0x1678('0xa')][_0x1678('0x1')](_0x3728c2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x768e=['item','getLastMatchingPosition','_hasContent','model','start','backward','$textProxy','createRange','getRanges','push','change','_trimToContent','addMarker','execute','comment:','selection','end','_itemIsContent','editor','getItems','substr','isObject','tableCell'];(function(_0xa3cd7,_0x768e2a){const _0x1a15f5=function(_0x2e7bb2){while(--_0x2e7bb2){_0xa3cd7['push'](_0xa3cd7['shift']());}};_0x1a15f5(++_0x768e2a);}(_0x768e,0x66));const _0x1a15=function(_0xa3cd7,_0x768e2a){_0xa3cd7=_0xa3cd7-0x0;let _0x1a15f5=_0x768e[_0xa3cd7];return _0x1a15f5;};import{Command as _0x5ede7c}from'ckeditor5/src/core';import{uid as _0x13b037}from'ckeditor5/src/utils';export default class q extends _0x5ede7c{['refresh'](){const _0x3b0910=this[_0x1a15('0x8')][_0x1a15('0x10')]['document'][_0x1a15('0x5')];for(const _0x5b9cfd of _0x3b0910['getRanges']())if(this[_0x1a15('0xf')](_0x5b9cfd))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x1a15('0x3')]({threadId:_0x3156eb=_0x13b037()}={}){const _0x2f203f=this[_0x1a15('0x8')][_0x1a15('0x10')],_0x1f73f9=[];for(const _0x561c8d of _0x2f203f['document']['selection'][_0x1a15('0x15')]())this[_0x1a15('0xf')](_0x561c8d)&&_0x1f73f9[_0x1a15('0x16')](this[_0x1a15('0x1')](_0x561c8d));_0x2f203f[_0x1a15('0x0')](_0x311cd3=>{for(const _0x5685d9 of _0x1f73f9){const _0x2b7621=_0x13b037()[_0x1a15('0xa')](0x1,0x5),_0x159cdf=_0x1a15('0x4')+_0x3156eb+':'+_0x2b7621;_0x311cd3[_0x1a15('0x2')](_0x159cdf,{'range':_0x5685d9,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1a15('0xf')](_0x41b561){for(const _0x45b7aa of _0x41b561[_0x1a15('0x9')]())if(this['_itemIsContent'](_0x45b7aa))return!0x0;return!0x1;}[_0x1a15('0x7')](_0x6ee69e){return _0x6ee69e['is'](_0x1a15('0x13'))||this['editor'][_0x1a15('0x10')]['schema'][_0x1a15('0xb')](_0x6ee69e)&&!_0x6ee69e['is']('element',_0x1a15('0xc'));}['_trimToContent'](_0x59cf66){const _0x38f553=_0x1b0113=>!this[_0x1a15('0x7')](_0x1b0113[_0x1a15('0xd')]),_0x52a33b=_0x59cf66[_0x1a15('0x11')]['getLastMatchingPosition'](_0x38f553),_0x5ddcf5=_0x59cf66[_0x1a15('0x6')][_0x1a15('0xe')](_0x38f553,{'direction':_0x1a15('0x12')});return this['editor'][_0x1a15('0x10')][_0x1a15('0x14')](_0x52a33b,_0x5ddcf5);}}
23
+ const _0x5d6d=['_trimToContent','isObject','_itemIsContent','substr','addMarker','getLastMatchingPosition','change','editor','isEnabled','execute','backward','$textProxy','getRanges','tableCell','end','schema','document','getItems','selection','createRange','_hasContent','model','item'];(function(_0x286f10,_0x5d6df5){const _0x41c925=function(_0x59790b){while(--_0x59790b){_0x286f10['push'](_0x286f10['shift']());}};_0x41c925(++_0x5d6df5);}(_0x5d6d,0x10d));const _0x41c9=function(_0x286f10,_0x5d6df5){_0x286f10=_0x286f10-0x0;let _0x41c925=_0x5d6d[_0x286f10];return _0x41c925;};import{Command as _0x39a846}from'ckeditor5/src/core';import{uid as _0x195d70}from'ckeditor5/src/utils';export default class q extends _0x39a846{['refresh'](){const _0x53783b=this[_0x41c9('0xe')][_0x41c9('0x5')][_0x41c9('0x0')][_0x41c9('0x2')];for(const _0x4c8eb4 of _0x53783b[_0x41c9('0x13')]())if(this[_0x41c9('0x4')](_0x4c8eb4))return void(this[_0x41c9('0xf')]=!0x0);this[_0x41c9('0xf')]=!0x1;}[_0x41c9('0x10')]({threadId:_0x23dc20=_0x195d70()}={}){const _0x4a072e=this[_0x41c9('0xe')]['model'],_0xb190f=[];for(const _0x12134a of _0x4a072e[_0x41c9('0x0')]['selection'][_0x41c9('0x13')]())this[_0x41c9('0x4')](_0x12134a)&&_0xb190f['push'](this['_trimToContent'](_0x12134a));_0x4a072e[_0x41c9('0xd')](_0x45525d=>{for(const _0x75640b of _0xb190f){const _0x55fbec=_0x195d70()[_0x41c9('0xa')](0x1,0x5),_0x1db9de='comment:'+_0x23dc20+':'+_0x55fbec;_0x45525d[_0x41c9('0xb')](_0x1db9de,{'range':_0x75640b,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x59a76d){for(const _0x3aadde of _0x59a76d[_0x41c9('0x1')]())if(this[_0x41c9('0x9')](_0x3aadde))return!0x0;return!0x1;}[_0x41c9('0x9')](_0x1107ab){return _0x1107ab['is'](_0x41c9('0x12'))||this[_0x41c9('0xe')][_0x41c9('0x5')][_0x41c9('0x16')][_0x41c9('0x8')](_0x1107ab)&&!_0x1107ab['is']('element',_0x41c9('0x14'));}[_0x41c9('0x7')](_0x1e6f84){const _0xc82bef=_0x3b9abf=>!this['_itemIsContent'](_0x3b9abf[_0x41c9('0x6')]),_0x1636a1=_0x1e6f84['start'][_0x41c9('0xc')](_0xc82bef),_0x273ae2=_0x1e6f84[_0x41c9('0x15')]['getLastMatchingPosition'](_0xc82bef,{'direction':_0x41c9('0x11')});return this[_0x41c9('0xe')][_0x41c9('0x5')][_0x41c9('0x3')](_0x1636a1,_0x273ae2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56e7=['add','resolvedThreads','isActive','init','length','CommentsArchive','getCommentThread','highest','get','context','remove','activate','requires','resolvedAt','has','pluginName','plugins','listenTo','resolveCommentThread','collection','_calculatePosition'];(function(_0xbad035,_0x56e707){const _0x1a3b53=function(_0x33f4b7){while(--_0x33f4b7){_0xbad035['push'](_0xbad035['shift']());}};_0x1a3b53(++_0x56e707);}(_0x56e7,0x95));const _0x1a3b=function(_0xbad035,_0x56e707){_0xbad035=_0xbad035-0x0;let _0x1a3b53=_0x56e7[_0xbad035];return _0x1a3b53;};import{ContextPlugin as _0x5cc8e3}from'ckeditor5/src/core';import{Collection as _0x3012fb}from'ckeditor5/src/utils';import _0x18f596 from'./commentsrepository';import _0xa05301 from'../annotations/annotations';export default class p extends _0x5cc8e3{static get[_0x1a3b('0xd')](){return _0x1a3b('0x3');}static get[_0x1a3b('0xa')](){return[_0x18f596,_0xa05301];}constructor(_0x381ddc){super(_0x381ddc),this['resolvedThreads']=new _0x3012fb();}[_0x1a3b('0x1')](){const _0xe9c0fb=this[_0x1a3b('0x7')],_0x50fc92=_0xe9c0fb[_0x1a3b('0xe')][_0x1a3b('0x6')](_0x18f596),_0x4ab1d9=_0xe9c0fb[_0x1a3b('0xe')][_0x1a3b('0x6')](_0xa05301);this['listenTo'](_0x50fc92,'addCommentThread',(_0x47b4f6,{threadId:_0x4a1e2f,resolvedAt:_0x5e28d5,deletedAt:_0x1ce77d})=>{if(_0x5e28d5&&!_0x1ce77d){const _0x38ad1=_0x50fc92['getCommentThread'](_0x4a1e2f);this[_0x1a3b('0x14')][_0x1a3b('0x13')](_0x38ad1,this[_0x1a3b('0x12')](_0x5e28d5));}}),this['listenTo'](_0x50fc92,_0x1a3b('0x10'),(_0xc1dc84,{threadId:_0x22ac5a,resolvedAt:_0x490614})=>{const _0x58574f=_0x50fc92['getCommentThread'](_0x22ac5a);this[_0x1a3b('0x14')][_0x1a3b('0x13')](_0x58574f,this[_0x1a3b('0x12')](_0x490614));},{'priority':_0x1a3b('0x5')}),this[_0x1a3b('0xf')](_0x50fc92,'reopenCommentThread',(_0x2a3ccd,{threadId:_0x5a5a37})=>{const _0x1ac7e7=_0x50fc92[_0x1a3b('0x4')](_0x5a5a37);this[_0x1a3b('0x14')][_0x1a3b('0xc')](_0x1ac7e7)&&this[_0x1a3b('0x14')][_0x1a3b('0x8')](_0x1ac7e7);},{'priority':_0x1a3b('0x5')}),this[_0x1a3b('0xf')](_0x50fc92,'removeCommentThread',(_0x7ea682,{threadId:_0x14e4bd})=>{const _0x4d6eaa=_0x50fc92[_0x1a3b('0x4')](_0x14e4bd);this[_0x1a3b('0x14')][_0x1a3b('0xc')](_0x4d6eaa)&&this['resolvedThreads'][_0x1a3b('0x8')](_0x4d6eaa);},{'priority':_0x1a3b('0x5')}),this[_0x1a3b('0xf')](_0x4ab1d9[_0x1a3b('0x11')],'focus',(_0x54ba74,_0x304867)=>{_0x304867[_0x1a3b('0x0')]=!0x0,_0x4ab1d9[_0x1a3b('0x9')](_0x304867);});}[_0x1a3b('0x12')](_0x19ec69){const _0x1f3c31=[...this[_0x1a3b('0x14')]]['findIndex'](_0x3c3a1a=>_0x3c3a1a[_0x1a3b('0xb')]<_0x19ec69);return _0x1f3c31>-0x1?_0x1f3c31:this[_0x1a3b('0x14')][_0x1a3b('0x2')];}}
23
+ const _0x4358=['remove','requires','highest','CommentsArchive','has','getCommentThread','get','listenTo','collection','findIndex','focus','reopenCommentThread','plugins','resolveCommentThread','_calculatePosition','resolvedThreads','resolvedAt','add'];(function(_0x43413a,_0x435809){const _0x44f001=function(_0x5c4406){while(--_0x5c4406){_0x43413a['push'](_0x43413a['shift']());}};_0x44f001(++_0x435809);}(_0x4358,0x17e));const _0x44f0=function(_0x43413a,_0x435809){_0x43413a=_0x43413a-0x0;let _0x44f001=_0x4358[_0x43413a];return _0x44f001;};import{ContextPlugin as _0x2ce8a9}from'ckeditor5/src/core';import{Collection as _0x552518}from'ckeditor5/src/utils';import _0xc425ff from'./commentsrepository';import _0x101a78 from'../annotations/annotations';export default class p extends _0x2ce8a9{static get['pluginName'](){return _0x44f0('0x11');}static get[_0x44f0('0xf')](){return[_0xc425ff,_0x101a78];}constructor(_0x2a55ab){super(_0x2a55ab),this[_0x44f0('0xb')]=new _0x552518();}['init'](){const _0x53eb67=this['context'],_0x56581d=_0x53eb67[_0x44f0('0x8')][_0x44f0('0x2')](_0xc425ff),_0x4bbb5d=_0x53eb67[_0x44f0('0x8')][_0x44f0('0x2')](_0x101a78);this[_0x44f0('0x3')](_0x56581d,'addCommentThread',(_0x434e84,{threadId:_0x415f4b,resolvedAt:_0x1b1801,deletedAt:_0x23c223})=>{if(_0x1b1801&&!_0x23c223){const _0x256487=_0x56581d[_0x44f0('0x1')](_0x415f4b);this[_0x44f0('0xb')]['add'](_0x256487,this['_calculatePosition'](_0x1b1801));}}),this[_0x44f0('0x3')](_0x56581d,_0x44f0('0x9'),(_0x138719,{threadId:_0x259a7b,resolvedAt:_0x2258a5})=>{const _0x4c940f=_0x56581d[_0x44f0('0x1')](_0x259a7b);this['resolvedThreads'][_0x44f0('0xd')](_0x4c940f,this[_0x44f0('0xa')](_0x2258a5));},{'priority':'highest'}),this[_0x44f0('0x3')](_0x56581d,_0x44f0('0x7'),(_0x342b17,{threadId:_0x56b06e})=>{const _0x317852=_0x56581d[_0x44f0('0x1')](_0x56b06e);this[_0x44f0('0xb')][_0x44f0('0x0')](_0x317852)&&this['resolvedThreads'][_0x44f0('0xe')](_0x317852);},{'priority':_0x44f0('0x10')}),this[_0x44f0('0x3')](_0x56581d,'removeCommentThread',(_0x214343,{threadId:_0x1486a5})=>{const _0x248755=_0x56581d[_0x44f0('0x1')](_0x1486a5);this[_0x44f0('0xb')]['has'](_0x248755)&&this[_0x44f0('0xb')][_0x44f0('0xe')](_0x248755);},{'priority':_0x44f0('0x10')}),this[_0x44f0('0x3')](_0x4bbb5d[_0x44f0('0x4')],_0x44f0('0x6'),(_0x5874bb,_0x144256)=>{_0x144256['isActive']=!0x0,_0x4bbb5d['activate'](_0x144256);});}[_0x44f0('0xa')](_0x39110d){const _0x332d79=[...this[_0x44f0('0xb')]][_0x44f0('0x5')](_0x63efc6=>_0x63efc6[_0x44f0('0xc')]<_0x39110d);return _0x332d79>-0x1?_0x332d79:this[_0x44f0('0xb')]['length'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5939=['pluginName','_handleAnnotationFocusableElements','splice','COMMENTS_ARCHIVE','remove','channelId','requires','collaboration.channelId','resolvedThreads','children','panelView','commentsArchiveView','config','buttonView','_calculatePosition','ck-comments-archive-dropdown','get','change:isOpen','plugins','innerView','locale','ck-body','_visibleAnnotations','CommentsRepository','CommentsArchiveUI','listenTo','resolvedAt','extendTemplate','add','contains','view','stopListening','mainView','focusableElements','position','editor','indexOf','_threadToController','isVisible','annotationViews','_pendingThreads','filter','getByInnerView','_createArchiveUIDropdown','classList','find'];(function(_0xe3c872,_0x5939a7){const _0x4f6edb=function(_0x3e3083){while(--_0x3e3083){_0xe3c872['push'](_0xe3c872['shift']());}};_0x4f6edb(++_0x5939a7);}(_0x5939,0x9f));const _0x4f6e=function(_0xe3c872,_0x5939a7){_0xe3c872=_0xe3c872-0x0;let _0x4f6edb=_0x5939[_0xe3c872];return _0x4f6edb;};import'../../theme/commentsarchive.css';import{Plugin as _0x4925fa}from'ckeditor5/src/core';import{createDropdown as _0x34ee42,ViewCollection as _0x1b0e97}from'ckeditor5/src/ui';import _0x3ae223 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x47176a}from'../utils/common-translations';import _0x521ed7 from'./ui/view/commentsarchiveview';import _0x1a2873 from'./commentsarchive';export default class a extends _0x4925fa{static get[_0x4f6e('0x19')](){return _0x4f6e('0x3');}static get[_0x4f6e('0x1f')](){return[_0x1a2873];}constructor(_0x1d63ae){super(_0x1d63ae),this['annotationViews']=new _0x1b0e97(),this['_pendingThreads']=[];}['init'](){this[_0x4f6e('0xe')]['ui']['componentFactory'][_0x4f6e('0x7')]('commentsArchive',()=>this[_0x4f6e('0x16')]());const _0x28a46d=this[_0x4f6e('0xe')][_0x4f6e('0x2b')][_0x4f6e('0x29')](_0x1a2873),_0x40fa3c=this[_0x4f6e('0xe')][_0x4f6e('0x2b')][_0x4f6e('0x29')]('Annotations'),_0x1d0159=this[_0x4f6e('0xe')]['plugins'][_0x4f6e('0x29')](_0x4f6e('0x2'));this[_0x4f6e('0x4')](_0x28a46d[_0x4f6e('0x21')],_0x4f6e('0x7'),(_0x413d45,_0x3cb703)=>{const _0x455f86=this[_0x4f6e('0xe')][_0x4f6e('0x25')][_0x4f6e('0x29')]('collaboration.channelId');if(!_0x455f86||_0x3cb703[_0x4f6e('0x1e')]===_0x455f86){const _0x5a013d=this[_0x4f6e('0x27')](_0x3cb703[_0x4f6e('0x5')]),_0x29982e=_0x1d0159[_0x4f6e('0x10')]['get'](_0x3cb703);if(!_0x29982e)return void this[_0x4f6e('0x13')]['push']({'thread':_0x3cb703,'position':_0x5a013d});const _0x137602=_0x40fa3c[_0x4f6e('0x15')](_0x29982e[_0x4f6e('0x9')]);_0x137602[_0x4f6e('0x11')]&&_0x40fa3c[_0x4f6e('0x1')][_0x4f6e('0x1d')](_0x137602),this['annotationViews']['add'](_0x137602[_0x4f6e('0x9')],_0x5a013d);}}),this[_0x4f6e('0x4')](_0x40fa3c['collection'],_0x4f6e('0x7'),(_0x12c0b4,_0xa45b96)=>{const _0x19a0c9=this[_0x4f6e('0x13')][_0x4f6e('0x18')](({thread:_0x322547})=>{const _0x1f0e2a=_0x1d0159[_0x4f6e('0x10')][_0x4f6e('0x29')](_0x322547);return _0x1f0e2a&&_0xa45b96[_0x4f6e('0x2c')]===_0x1f0e2a['view'];});_0x19a0c9&&(this[_0x4f6e('0x12')][_0x4f6e('0x7')](_0xa45b96[_0x4f6e('0x9')],_0x19a0c9[_0x4f6e('0xd')]),this[_0x4f6e('0x13')][_0x4f6e('0x1b')](this[_0x4f6e('0x13')][_0x4f6e('0xf')](_0x19a0c9),0x1));}),this[_0x4f6e('0x4')](_0x28a46d[_0x4f6e('0x21')],_0x4f6e('0x1d'),(_0x14245e,_0x300389)=>{const _0x1a31ed=this[_0x4f6e('0xe')]['config'][_0x4f6e('0x29')](_0x4f6e('0x20'));if(!_0x1a31ed||_0x300389['channelId']===_0x1a31ed){const _0x4560ff=_0x1d0159[_0x4f6e('0x10')][_0x4f6e('0x29')](_0x300389),_0x52348e=_0x40fa3c[_0x4f6e('0x15')](_0x4560ff[_0x4f6e('0x9')]);this['annotationViews']['remove'](_0x52348e[_0x4f6e('0x9')]),this[_0x4f6e('0xa')](_0x52348e['focusableElements']);}});}['_handleAnnotationFocusableElements'](_0x2fc8e4,_0x5f03fb){for(const _0x3915d6 of _0x5f03fb[_0x4f6e('0xc')])_0x3915d6['classList'][_0x4f6e('0x8')](_0x4f6e('0x0'))&&_0x2fc8e4['focusTracker'][_0x4f6e('0x7')](_0x3915d6);this['listenTo'](_0x5f03fb[_0x4f6e('0xc')],_0x4f6e('0x7'),(_0x186456,_0x301cbe)=>{_0x301cbe['classList'][_0x4f6e('0x8')](_0x4f6e('0x0'))&&_0x2fc8e4['focusTracker'][_0x4f6e('0x7')](_0x301cbe);}),this[_0x4f6e('0x4')](_0x5f03fb[_0x4f6e('0xc')],_0x4f6e('0x1d'),(_0x22b095,_0x2fabef)=>{_0x2fabef[_0x4f6e('0x17')]['contains']('ck-body')&&_0x2fc8e4['focusTracker']['remove'](_0x2fabef);});}[_0x4f6e('0x27')](_0x2db2eb){const _0x383653=this[_0x4f6e('0xe')][_0x4f6e('0x25')][_0x4f6e('0x29')](_0x4f6e('0x20')),_0x572939=[...this[_0x4f6e('0xe')]['plugins'][_0x4f6e('0x29')](_0x1a2873)[_0x4f6e('0x21')]][_0x4f6e('0x14')](_0x1ee019=>_0x1ee019[_0x4f6e('0x1e')]!==_0x383653)['findIndex'](_0x560fb8=>_0x560fb8['resolvedAt']<_0x2db2eb);return _0x572939>-0x1?_0x572939:this[_0x4f6e('0x12')]['length'];}['_createArchiveUIDropdown'](){const _0x3fd4fb=this['editor'],_0x4d23a9=this[_0x4f6e('0xe')][_0x4f6e('0x2b')]['get']('Annotations'),_0x1233cb=_0x34ee42(_0x3fd4fb[_0x4f6e('0x2d')]);_0x1233cb[_0x4f6e('0x26')]['set']({'icon':_0x3ae223,'label':_0x47176a(_0x3fd4fb[_0x4f6e('0x2d')],_0x4f6e('0x1c')),'tooltip':!0x0}),_0x1233cb[_0x4f6e('0x23')][_0x4f6e('0x6')]({'attributes':{'class':_0x4f6e('0x28')}}),_0x1233cb['on'](_0x4f6e('0x2a'),(_0x37d7a7,_0x19f3e4,_0x5bebb6)=>{this[_0x4f6e('0x24')]||(this['commentsArchiveView']=new _0x521ed7(_0x3fd4fb['locale'],this['annotationViews'])),_0x5bebb6?_0x1233cb[_0x4f6e('0x23')][_0x4f6e('0x22')][_0x4f6e('0x7')](this['commentsArchiveView']):_0x1233cb[_0x4f6e('0x23')]['children'][_0x4f6e('0x1d')](this['commentsArchiveView']);});for(const _0x103a7c of this[_0x4f6e('0x12')]){const _0xf22c67=_0x4d23a9[_0x4f6e('0x15')](_0x103a7c[_0x4f6e('0xb')]);this[_0x4f6e('0x1a')](_0x1233cb,_0xf22c67);}return _0x1233cb[_0x4f6e('0x4')](this[_0x4f6e('0x12')],'add',(_0x53a1ab,_0x29a199)=>{const _0x162506=_0x4d23a9[_0x4f6e('0x15')](_0x29a199[_0x4f6e('0xb')]);this[_0x4f6e('0x1a')](_0x1233cb,_0x162506);}),_0x1233cb[_0x4f6e('0x4')](this['annotationViews'],'remove',(_0x291c17,_0x2e89cd)=>{const _0x5a0ce2=_0x4d23a9['getByInnerView'](_0x2e89cd[_0x4f6e('0xb')]);for(const _0x1207f1 of _0x5a0ce2[_0x4f6e('0xc')])_0x1207f1[_0x4f6e('0x17')][_0x4f6e('0x8')](_0x4f6e('0x0'))&&_0x1233cb['focusTracker']['remove'](_0x1207f1);}),_0x1233cb;}}
23
+ const _0x4dba=['contains','componentFactory','config','classList','focusableElements','buttonView','_handleAnnotationFocusableElements','collection','init','get','stopListening','add','annotationViews','resolvedAt','listenTo','ck-comments-archive-dropdown','set','_threadToController','findIndex','_pendingThreads','commentsArchiveView','extendTemplate','change:isOpen','view','Annotations','indexOf','mainView','collaboration.channelId','plugins','focusTracker','splice','_createArchiveUIDropdown','resolvedThreads','_calculatePosition','CommentsArchiveUI','channelId','getByInnerView','panelView','CommentsRepository','remove','locale','commentsArchive','ck-body','innerView','editor','filter','find'];(function(_0x5b4b7c,_0x4dba7f){const _0x5d2984=function(_0x52b872){while(--_0x52b872){_0x5b4b7c['push'](_0x5b4b7c['shift']());}};_0x5d2984(++_0x4dba7f);}(_0x4dba,0x1e3));const _0x5d29=function(_0x5b4b7c,_0x4dba7f){_0x5b4b7c=_0x5b4b7c-0x0;let _0x5d2984=_0x4dba[_0x5b4b7c];return _0x5d2984;};import'../../theme/commentsarchive.css';import{Plugin as _0x2446fa}from'ckeditor5/src/core';import{createDropdown as _0x16d0c5,ViewCollection as _0x3c0e84}from'ckeditor5/src/ui';import _0x55439f from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x14f6b4}from'../utils/common-translations';import _0x456749 from'./ui/view/commentsarchiveview';import _0x56b75b from'./commentsarchive';export default class a extends _0x2446fa{static get['pluginName'](){return _0x5d29('0x15');}static get['requires'](){return[_0x56b75b];}constructor(_0x145135){super(_0x145135),this[_0x5d29('0x2e')]=new _0x3c0e84(),this['_pendingThreads']=[];}[_0x5d29('0x2a')](){this[_0x5d29('0x1f')]['ui'][_0x5d29('0x23')][_0x5d29('0x2d')](_0x5d29('0x1c'),()=>this[_0x5d29('0x12')]());const _0x2aedd2=this[_0x5d29('0x1f')][_0x5d29('0xf')]['get'](_0x56b75b),_0x1c359b=this[_0x5d29('0x1f')]['plugins'][_0x5d29('0x2b')](_0x5d29('0xb')),_0x1fbd56=this[_0x5d29('0x1f')][_0x5d29('0xf')]['get'](_0x5d29('0x19'));this[_0x5d29('0x1')](_0x2aedd2[_0x5d29('0x13')],_0x5d29('0x2d'),(_0x1a9676,_0x4c7dbe)=>{const _0x166b84=this[_0x5d29('0x1f')][_0x5d29('0x24')][_0x5d29('0x2b')](_0x5d29('0xe'));if(!_0x166b84||_0x4c7dbe['channelId']===_0x166b84){const _0x5c28ec=this[_0x5d29('0x14')](_0x4c7dbe[_0x5d29('0x0')]),_0x203509=_0x1fbd56['_threadToController'][_0x5d29('0x2b')](_0x4c7dbe);if(!_0x203509)return void this['_pendingThreads']['push']({'thread':_0x4c7dbe,'position':_0x5c28ec});const _0x16f729=_0x1c359b[_0x5d29('0x17')](_0x203509[_0x5d29('0xa')]);_0x16f729['isVisible']&&_0x1c359b['_visibleAnnotations']['remove'](_0x16f729),this[_0x5d29('0x2e')][_0x5d29('0x2d')](_0x16f729['view'],_0x5c28ec);}}),this[_0x5d29('0x1')](_0x1c359b[_0x5d29('0x29')],_0x5d29('0x2d'),(_0x2e40a8,_0x1ddfff)=>{const _0x176fc8=this[_0x5d29('0x6')][_0x5d29('0x21')](({thread:_0x2349e9})=>{const _0x290a52=_0x1fbd56[_0x5d29('0x4')][_0x5d29('0x2b')](_0x2349e9);return _0x290a52&&_0x1ddfff[_0x5d29('0x1e')]===_0x290a52['view'];});_0x176fc8&&(this[_0x5d29('0x2e')][_0x5d29('0x2d')](_0x1ddfff[_0x5d29('0xa')],_0x176fc8['position']),this[_0x5d29('0x6')][_0x5d29('0x11')](this[_0x5d29('0x6')][_0x5d29('0xc')](_0x176fc8),0x1));}),this['listenTo'](_0x2aedd2['resolvedThreads'],_0x5d29('0x1a'),(_0x1327f5,_0x594947)=>{const _0x3696ec=this[_0x5d29('0x1f')]['config']['get']('collaboration.channelId');if(!_0x3696ec||_0x594947['channelId']===_0x3696ec){const _0x10617b=_0x1fbd56[_0x5d29('0x4')][_0x5d29('0x2b')](_0x594947),_0x14112a=_0x1c359b[_0x5d29('0x17')](_0x10617b[_0x5d29('0xa')]);this[_0x5d29('0x2e')]['remove'](_0x14112a['view']),this[_0x5d29('0x2c')](_0x14112a[_0x5d29('0x26')]);}});}[_0x5d29('0x28')](_0xe43c4c,_0x4deffd){for(const _0x14839e of _0x4deffd[_0x5d29('0x26')])_0x14839e[_0x5d29('0x25')]['contains']('ck-body')&&_0xe43c4c[_0x5d29('0x10')][_0x5d29('0x2d')](_0x14839e);this[_0x5d29('0x1')](_0x4deffd['focusableElements'],_0x5d29('0x2d'),(_0x1fb5cd,_0x366aa1)=>{_0x366aa1[_0x5d29('0x25')][_0x5d29('0x22')](_0x5d29('0x1d'))&&_0xe43c4c[_0x5d29('0x10')][_0x5d29('0x2d')](_0x366aa1);}),this[_0x5d29('0x1')](_0x4deffd['focusableElements'],_0x5d29('0x1a'),(_0x150137,_0x2af8a3)=>{_0x2af8a3[_0x5d29('0x25')]['contains']('ck-body')&&_0xe43c4c['focusTracker'][_0x5d29('0x1a')](_0x2af8a3);});}[_0x5d29('0x14')](_0x25a8c5){const _0x5dd48f=this[_0x5d29('0x1f')]['config'][_0x5d29('0x2b')](_0x5d29('0xe')),_0x42c893=[...this['editor'][_0x5d29('0xf')][_0x5d29('0x2b')](_0x56b75b)[_0x5d29('0x13')]][_0x5d29('0x20')](_0x3d1ea9=>_0x3d1ea9[_0x5d29('0x16')]!==_0x5dd48f)[_0x5d29('0x5')](_0x552559=>_0x552559[_0x5d29('0x0')]<_0x25a8c5);return _0x42c893>-0x1?_0x42c893:this[_0x5d29('0x2e')]['length'];}[_0x5d29('0x12')](){const _0xcb70de=this[_0x5d29('0x1f')],_0x189308=this[_0x5d29('0x1f')][_0x5d29('0xf')][_0x5d29('0x2b')](_0x5d29('0xb')),_0x5dcc7e=_0x16d0c5(_0xcb70de[_0x5d29('0x1b')]);_0x5dcc7e[_0x5d29('0x27')][_0x5d29('0x3')]({'icon':_0x55439f,'label':_0x14f6b4(_0xcb70de['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x5dcc7e[_0x5d29('0x18')][_0x5d29('0x8')]({'attributes':{'class':_0x5d29('0x2')}}),_0x5dcc7e['on'](_0x5d29('0x9'),(_0x400ae6,_0x495974,_0x2ab06b)=>{this[_0x5d29('0x7')]||(this[_0x5d29('0x7')]=new _0x456749(_0xcb70de[_0x5d29('0x1b')],this[_0x5d29('0x2e')])),_0x2ab06b?_0x5dcc7e[_0x5d29('0x18')]['children'][_0x5d29('0x2d')](this[_0x5d29('0x7')]):_0x5dcc7e[_0x5d29('0x18')]['children']['remove'](this[_0x5d29('0x7')]);});for(const _0x3f2e31 of this[_0x5d29('0x2e')]){const _0x57312f=_0x189308['getByInnerView'](_0x3f2e31[_0x5d29('0xd')]);this[_0x5d29('0x28')](_0x5dcc7e,_0x57312f);}return _0x5dcc7e[_0x5d29('0x1')](this[_0x5d29('0x2e')],_0x5d29('0x2d'),(_0x495d1f,_0x377c7b)=>{const _0x2a330d=_0x189308[_0x5d29('0x17')](_0x377c7b[_0x5d29('0xd')]);this[_0x5d29('0x28')](_0x5dcc7e,_0x2a330d);}),_0x5dcc7e[_0x5d29('0x1')](this[_0x5d29('0x2e')],_0x5d29('0x1a'),(_0x254ff5,_0x1988cd)=>{const _0x596a5d=_0x189308[_0x5d29('0x17')](_0x1988cd[_0x5d29('0xd')]);for(const _0x2d7f5d of _0x596a5d[_0x5d29('0x26')])_0x2d7f5d[_0x5d29('0x25')][_0x5d29('0x22')](_0x5d29('0x1d'))&&_0x5dcc7e['focusTracker'][_0x5d29('0x1a')](_0x2d7f5d);}),_0x5dcc7e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3762=['document','_autoResolvedThreads','getWalker','resolveCommentThread','dataDowncast','fetchCommentThread','render','upcast','add','text','once','managedUsingOperations','plugins','init','createRange','destroy','editing','affectsData','getAttribute','rootName','scrollToThreadMarker','view','consume','reconvertMarker','isResolved','_removedThread','conversion','_handleThreadMarker','getChangedMarkers','getByInnerView','activeMarker','_attachResolvedThread','$graveyard','attachTo','addCommentThread','_threads','ck-comment-marker--active','comment:','removeMarker','editor','from','updateMarker','ready','isObject','_hasTargetInContent','has','getAllMarkersForId','openNewCommentThread','_attachMarkerToThread','split','get','getCommentThreads','end','ck-comment-marker','_getTextContext','then','$textProxy','config','resolve','listenTo','model','newRange','switchReadOnly','getItems','root','for','start','length','reopenCommentThread','push','item','_initializeMarkerConverters','removeCommentThread','_reconvertMarkers','differ','isThreadsLoadingPaused','enqueueChange','isCollapsed','set','createElement','comment','clear','getCommentThread','hasMarkerForId','focus','isLocal','dataToMarker','requires','consumable','_handleMarkerAddAndRemove','data','change:isThreadsLoadingPaused','hasCommentThread','state','ignoreResolvedComments','size','registerPostFixer','markers','markerName','change','createPositionBefore','delete','low','markerToHighlight','_getTargetForId','collaboration.channelId','substring','markerToData','setContext','_attachedThreads','destroyed','registerAnnotation','isEqual','change:activeMarker','map','refreshVisibility'];(function(_0x136ecb,_0x3762f4){const _0x57aec7=function(_0x767901){while(--_0x767901){_0x136ecb['push'](_0x136ecb['shift']());}};_0x57aec7(++_0x3762f4);}(_0x3762,0xb5));const _0x57ae=function(_0x136ecb,_0x3762f4){_0x136ecb=_0x136ecb-0x0;let _0x57aec7=_0x3762[_0x136ecb];return _0x57aec7;};import{Plugin as _0x238406}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xb0db80}from'ckeditor5/src/utils';import _0xcc9867 from'./commentsrepository';import _0x450cbe from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x59ce1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x10c373 from'../annotations/editorannotations';import _0x18a350 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x267315 from'./integrations/importword';import _0x351cd9 from'../annotations/annotations';export default class r extends _0x238406{static get[_0x57ae('0x16')](){return[_0xcc9867,_0x10c373,_0x18a350,_0x267315];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x1e4693){super(_0x1e4693),this['_removedThread']=null,this[_0x57ae('0x34')]=new Set(),this['set']('isThreadsLoadingPaused',!0x0),_0x1e4693[_0x57ae('0x19')]['once'](_0x57ae('0x5d'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x57ae('0xd')](_0x57ae('0x51'),null),this['on'](_0x57ae('0x30'),(_0x395389,_0x24a315,_0x762647,_0x186a62)=>{const _0x333584=_0x762647?tt(_0x762647)['id']:null;if(_0x1e4693['model'][_0x57ae('0x22')](()=>{if(_0x333584){const _0xc22313=this['getAllMarkersForId'](_0x333584);for(const _0x25ab5b of _0xc22313)_0x1e4693[_0x57ae('0x43')][_0x57ae('0x4a')](_0x25ab5b);}if(_0x186a62){const {id:_0x4a18ab}=tt(_0x186a62),_0x583a89=this['getAllMarkersForId'](_0x4a18ab);for(const _0x4f45df of _0x583a89)_0x1e4693['editing'][_0x57ae('0x4a')](_0x4f45df);}}),_0x333584){const _0x32716=_0x1e4693[_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867)[_0x57ae('0x11')](_0x333584);_0x32716&&_0x32716[_0x57ae('0x4b')]&&this['scrollToThreadMarker'](_0x333584);}}),this['_attachedThreads']=new Map();}[_0x57ae('0x40')](){const _0x32d914=this[_0x57ae('0x5a')],_0x5ac1bb=_0x32d914[_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867),_0x2556db=_0x32d914[_0x57ae('0x6c')][_0x57ae('0x65')](_0x57ae('0x28'));_0x32d914['commands']['add'](_0x57ae('0x55'),new _0x450cbe(_0x32d914)),this[_0x57ae('0x6e')](_0x32d914,'change:isReadOnly',(_0x5786d4,_0xb0e53a,_0x23f75d)=>{_0x5ac1bb[_0x57ae('0x71')](_0x23f75d,_0x32d914[_0x57ae('0x6c')][_0x57ae('0x65')](_0x57ae('0x28')));}),this[_0x57ae('0x6e')](_0x5ac1bb,Z('addCommentThread',_0x2556db),(_0x5d2cfb,{threadId:_0x5d4eb2})=>{const _0x1c7d23=this[_0x57ae('0x5a')]['plugins'][_0x57ae('0x65')](_0xcc9867)[_0x57ae('0x11')](_0x5d4eb2);_0x1c7d23&&_0x1c7d23[_0x57ae('0x4b')]&&this[_0x57ae('0x52')](_0x5d4eb2);}),this[_0x57ae('0x6e')](_0x5ac1bb,Z(_0x57ae('0x7'),_0x2556db),(_0x6aa547,{threadId:_0x5d6d18})=>{_0x32d914['model'][_0x57ae('0xb')]({'isUndoable':!0x1},_0x3b564e=>{const _0x228332=this[_0x57ae('0x61')](_0x5d6d18);this[_0x57ae('0x2c')]['delete'](_0x5d6d18),this['_removedThread']=_0x5d6d18;for(const _0x261edb of _0x228332)_0x3b564e[_0x57ae('0x59')](_0x261edb);}),this[_0x57ae('0x4c')]=null;},{'priority':'high'}),this[_0x57ae('0x6e')](_0x5ac1bb,Z(_0x57ae('0x36'),_0x2556db),(_0x3fb25c,{threadId:_0x2bfb9d})=>{this[_0x57ae('0x52')](_0x2bfb9d),this[_0x57ae('0x8')](_0x2bfb9d),this['editor']['editing'][_0x57ae('0x48')]['hasDomSelection']&&this['editor']['editing'][_0x57ae('0x48')][_0x57ae('0x13')]();},{'priority':_0x57ae('0x25')}),this[_0x57ae('0x6e')](_0x5ac1bb,Z(_0x57ae('0x3'),_0x2556db),(_0x1485ce,{threadId:_0x27b2b9})=>{this[_0x57ae('0x8')](_0x27b2b9);},{'priority':_0x57ae('0x25')}),this[_0x57ae('0x6e')](_0x5ac1bb,Z('addComment',_0x2556db),(_0x5d35d2,{threadId:_0x305aeb,isFromAdapter:_0x7b8ac8})=>{const _0x1053ef=this[_0x57ae('0x61')](_0x305aeb);if(_0x7b8ac8||0x0==_0x1053ef[_0x57ae('0x2')]||!_0x5ac1bb[_0x57ae('0x1b')](_0x305aeb))return;0x1===_0x5ac1bb[_0x57ae('0x11')](_0x305aeb)['length']&&_0x32d914[_0x57ae('0x6f')][_0x57ae('0xb')]({'isUndoable':!0x1},_0x344619=>{for(const _0x529584 of _0x1053ef)_0x344619[_0x57ae('0x5c')](_0x529584,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x57ae('0x25')}),this[_0x57ae('0x6')](),this['_handleMarkerAddAndRemove']();}[_0x57ae('0x42')](){const _0x485bd4=this['editor'][_0x57ae('0x3f')]['get'](_0xcc9867),_0x3f4869=this[_0x57ae('0x5a')]['config'][_0x57ae('0x65')](_0x57ae('0x28'));for(const _0x1f7ca6 of _0x485bd4[_0x57ae('0x66')]({'channelId':_0x3f4869}))_0x485bd4['_detachCommentThread'](_0x1f7ca6['id']),_0x485bd4[_0x57ae('0x56')][_0x57ae('0x24')](_0x1f7ca6['id']);super[_0x57ae('0x42')]();}['hasMarkerForId'](_0x4c813e){return this[_0x57ae('0x61')](_0x4c813e)['length']>0x0;}[_0x57ae('0x61')](_0x5273ea){return Array[_0x57ae('0x5b')](this[_0x57ae('0x2c')][_0x57ae('0x65')](_0x5273ea)||[])[_0x57ae('0x31')](_0x33f918=>this[_0x57ae('0x5a')]['model']['markers'][_0x57ae('0x65')](_0x33f918))['filter'](_0x2720fb=>_0x2720fb);}[_0x57ae('0x47')](_0xa7e172){const _0x1254db=this[_0x57ae('0x27')](_0xa7e172);_0x1254db&&setTimeout(()=>{this[_0x57ae('0x51')]&&tt(this[_0x57ae('0x51')])['id']===_0xa7e172&&_0xb0db80({'target':_0x1254db[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1f674f){this['editor'][_0x57ae('0x6f')][_0x57ae('0x22')](()=>{for(const _0x424054 of this[_0x57ae('0x61')](_0x1f674f))this[_0x57ae('0x5a')]['editing'][_0x57ae('0x4a')](_0x424054);});}[_0x57ae('0x52')](_0x110ff0){const _0x204d18=this[_0x57ae('0x5a')][_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867),_0x29357f=this['editor'][_0x57ae('0x3f')]['get'](_0x10c373),_0x160c15=_0x204d18['getCommentThread'](_0x110ff0);if(!this[_0x57ae('0x2c')]['has'](_0x110ff0)){const _0x1cfaf5=_0x160c15[_0x57ae('0x54')](()=>this[_0x57ae('0x27')](_0x160c15['id']));_0x29357f[_0x57ae('0x2e')](_0x1cfaf5),this[_0x57ae('0x2c')][_0x57ae('0xd')](_0x110ff0,new Set()),_0x160c15[_0x57ae('0x5f')]=!0x1;}}[_0x57ae('0x6')](){const _0x110c45=this['editor'];_0x110c45['conversion'][_0x57ae('0x0')]('editingDowncast')[_0x57ae('0x26')]({'model':_0x57ae('0xf'),'view':(_0x4d0cb4,_0x5a7892)=>{const {id:_0x5b4934}=tt(_0x4d0cb4[_0x57ae('0x21')]),_0x2c0eda=_0x110c45[_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867)[_0x57ae('0x11')](_0x5b4934),_0x58026e=this[_0x57ae('0x51')]&&tt(this[_0x57ae('0x51')])['id']===_0x5b4934;if(_0x2c0eda&&_0x2c0eda['isResolved']&&!_0x58026e&&_0x4d0cb4[_0x57ae('0x5')])return _0x5a7892['consumable']['consume'](_0x4d0cb4[_0x57ae('0x5')],'addMarker:'+_0x4d0cb4['markerName']),_0x5a7892[_0x57ae('0x17')][_0x57ae('0x49')](_0x4d0cb4[_0x57ae('0x5')],'removeMarker:'+_0x4d0cb4[_0x57ae('0x21')]),{'classes':[]};const _0x3f2365=[_0x57ae('0x68')];return _0x58026e&&_0x3f2365[_0x57ae('0x4')](_0x57ae('0x57')),{'classes':_0x3f2365,'attributes':{'data-comment':_0x5b4934}};}}),_0x110c45[_0x57ae('0x4d')][_0x57ae('0x0')](_0x57ae('0x37'))[_0x57ae('0x2a')]({'model':_0x57ae('0xf'),'view':(_0x1651dc,{options:_0x1e0b76})=>{const _0x21493e=_0x110c45[_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867),_0x398bb1=_0x110c45['model'][_0x57ae('0x20')][_0x57ae('0x65')](_0x1651dc),{id:_0x1ad2cf,part:_0x56651a}=tt(_0x1651dc);if(_0x398bb1&&!_0x398bb1[_0x57ae('0x44')])return null;if(_0x1e0b76[_0x57ae('0x1d')]){const _0x5c9dc6=_0x21493e[_0x57ae('0x11')](_0x1ad2cf);if(_0x5c9dc6&&_0x5c9dc6['isResolved'])return null;}return{'group':_0x57ae('0xf'),'name':_0x56651a?_0x1ad2cf+':'+_0x56651a:_0x1ad2cf};}}),_0x110c45['conversion'][_0x57ae('0x0')](_0x57ae('0x3a'))['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5aaca1,{writer:_0x12210c})=>_0x12210c[_0x57ae('0xe')]('$marker',{'data-name':_0x57ae('0x58')+_0x5aaca1[_0x57ae('0x45')]('id')})}),_0x110c45[_0x57ae('0x4d')][_0x57ae('0x0')](_0x57ae('0x3a'))[_0x57ae('0x15')]({'view':'comment'});}[_0x57ae('0x18')](){const _0x508910=this[_0x57ae('0x5a')],_0x3b790a=_0x508910[_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867),_0x38f69e=new Set(),_0x28e61c=new Set();_0x508910[_0x57ae('0x6f')][_0x57ae('0x33')][_0x57ae('0x1f')](_0x5a6564=>{let _0x348bd6=!0x1;for(const {name:_0x266b45,data:_0x1e97b7}of _0x508910[_0x57ae('0x6f')][_0x57ae('0x33')]['differ'][_0x57ae('0x4f')]()){const {group:_0x55a708,id:_0x5981d3}=tt(_0x266b45);let _0x5a9c35=_0x1e97b7[_0x57ae('0x70')];if(_0x57ae('0xf')!==_0x55a708||!_0x5a9c35)continue;const _0x6dd42d=_0x57ae('0x53')===_0x5a9c35[_0x57ae('0x73')][_0x57ae('0x46')];_0x6dd42d||(_0x5a9c35=ot(_0x5a9c35,_0x508910[_0x57ae('0x6f')]),!_0x5a9c35||_0x5a9c35[_0x57ae('0xc')]||!_0x1e97b7[_0x57ae('0x70')]||_0x5a9c35[_0x57ae('0x2f')](_0x1e97b7[_0x57ae('0x70')]))?_0x508910[_0x57ae('0x6f')]['hasContent'](_0x5a9c35)&&!_0x6dd42d?this[_0x57ae('0xa')]?_0x38f69e[_0x57ae('0x3b')](_0x266b45):this[_0x57ae('0x4e')](_0x266b45,_0x5981d3):(_0x28e61c[_0x57ae('0x3b')](_0x266b45),_0x38f69e[_0x57ae('0x24')](_0x266b45),_0x5a6564[_0x57ae('0x59')](_0x266b45),_0x348bd6=!0x0):(_0x5a6564[_0x57ae('0x5c')](_0x266b45,{'range':_0x5a9c35}),_0x348bd6=!0x0);}return _0x348bd6;}),this['on'](_0x57ae('0x1a'),(_0x61136f,_0x3ed891,_0x31cc17)=>{if(!_0x31cc17&&_0x38f69e[_0x57ae('0x1e')])for(const _0x2dc0c5 of _0x38f69e){const {id:_0x19d5ab}=tt(_0x2dc0c5);_0x38f69e[_0x57ae('0x24')](_0x2dc0c5),_0x508910[_0x57ae('0x6f')][_0x57ae('0x20')][_0x57ae('0x65')](_0x2dc0c5)&&this[_0x57ae('0x4e')](_0x2dc0c5,_0x19d5ab);}}),this[_0x57ae('0x6e')](_0x508910[_0x57ae('0x6f')]['document'],_0x57ae('0x22'),(_0x497d9c,_0x330dd1)=>{for(const {name:_0x65be47,data:{newRange:_0x4f1e6f}}of _0x508910[_0x57ae('0x6f')][_0x57ae('0x33')][_0x57ae('0x9')]['getChangedMarkers']()){const {group:_0x51d639,id:_0x5a859a}=tt(_0x65be47);if(_0x57ae('0xf')!==_0x51d639)continue;const _0x198553=_0x3b790a[_0x57ae('0x11')](_0x5a859a),_0x1b546e=this[_0x57ae('0x12')](_0x5a859a);_0x198553&&(_0x198553[_0x57ae('0x5f')]||_0x508910[_0x57ae('0x43')]['view'][_0x57ae('0x3d')](_0x57ae('0x39'),()=>{const _0x1f7768=_0x508910[_0x57ae('0x3f')][_0x57ae('0x65')](_0x351cd9),_0xd2e0d1=_0x3b790a['_threadToController'][_0x57ae('0x65')](_0x198553)[_0x57ae('0x48')];_0x1f7768[_0x57ae('0x50')](_0xd2e0d1)[_0x57ae('0x32')]();},{'priority':_0x57ae('0x25')}),_0x198553[_0x57ae('0x5f')]=_0x1b546e||!!_0x4f1e6f),_0x4f1e6f||(_0x28e61c[_0x57ae('0x3b')](_0x65be47),_0x38f69e[_0x57ae('0x24')](_0x65be47),this['_attachedThreads'][_0x57ae('0x60')](_0x5a859a)&&this[_0x57ae('0x2c')][_0x57ae('0x65')](_0x5a859a)[_0x57ae('0x24')](_0x65be47));}if(_0x330dd1[_0x57ae('0x14')])for(const _0x5b732c of _0x28e61c){const {id:_0x1fc02b}=tt(_0x5b732c),_0x20ccd3=_0x3b790a[_0x57ae('0x11')](_0x1fc02b),_0x1d2129=this[_0x57ae('0x12')](_0x1fc02b);_0x38f69e[_0x57ae('0x24')](_0x5b732c),!_0x20ccd3||_0x1d2129||_0x20ccd3[_0x57ae('0x4b')]||this[_0x57ae('0x4c')]===_0x1fc02b||(this[_0x57ae('0x34')][_0x57ae('0x3b')](_0x20ccd3),_0x20ccd3[_0x57ae('0x6d')]());}_0x28e61c[_0x57ae('0x10')]();});}[_0x57ae('0x27')](_0x541335){const _0x5c8382=this[_0x57ae('0x5a')],_0x9c8e97=this[_0x57ae('0x61')](_0x541335);return _0x59ce1f(_0x5c8382['editing'],_0x9c8e97);}[_0x57ae('0x69')](_0x4c8bd1){const _0x290c2f=this[_0x57ae('0x61')](_0x4c8bd1);let _0x383cc7='',_0x22e540=!0x1;for(const _0x17b690 of _0x290c2f){const _0x20ee98=_0x17b690['getRange']();for(const _0x2ebab0 of Array[_0x57ae('0x5b')](_0x20ee98[_0x57ae('0x72')]()))_0x2ebab0['is'](_0x57ae('0x6b'))?(_0x383cc7&&_0x22e540&&(_0x383cc7+='\x20',_0x22e540=!0x1),_0x383cc7+=_0x2ebab0[_0x57ae('0x19')]):_0x22e540=!0x0;_0x22e540=!0x0;}return _0x383cc7[_0x57ae('0x29')](0x0,0x96);}[_0x57ae('0x63')](_0x413cde,_0x699b9e){const _0x1c3aa9=this['editor'],_0x22a9ef=_0x1c3aa9[_0x57ae('0x3f')][_0x57ae('0x65')](_0xcc9867);let _0x419045=_0x22a9ef[_0x57ae('0x11')](_0x699b9e);if(this[_0x57ae('0x2c')]['has'](_0x699b9e)){const _0x902e14=this['_attachedThreads'][_0x57ae('0x65')](_0x699b9e);_0x902e14['has'](_0x413cde)||_0x902e14['add'](_0x413cde);}const _0x9f7091=_0x1c3aa9[_0x57ae('0x6c')][_0x57ae('0x65')]('collaboration.channelId'),_0x40f812=_0x1c3aa9['plugins'][_0x57ae('0x65')](_0x10c373);if(_0x419045&&_0x419045[_0x57ae('0x4b')]&&this[_0x57ae('0x34')]['has'](_0x419045)&&(this[_0x57ae('0x34')]['delete'](_0x419045),_0x419045['reopen']()),this[_0x57ae('0x2c')]['has'](_0x699b9e))return _0x419045;return this[_0x57ae('0x2c')][_0x57ae('0xd')](_0x699b9e,new Set([_0x413cde])),(!this['getAllMarkersForId'](_0x699b9e)[0x0][_0x57ae('0x3e')]?_0x1c3aa9[_0x57ae('0x43')][_0x57ae('0x48')]['once'](_0x57ae('0x39'),()=>{const _0x4a377f=_0x1c3aa9[_0x57ae('0x3f')][_0x57ae('0x65')](_0x351cd9);_0x419045=_0x22a9ef[_0x57ae('0x62')]({'channelId':_0x9f7091,'threadId':_0x699b9e,'target':()=>this[_0x57ae('0x27')](_0x699b9e),'context':{'type':'text','value':this[_0x57ae('0x69')](_0x699b9e)}});const _0x22cefe=_0x22a9ef['_threadToController']['get'](_0x419045)[_0x57ae('0x48')],_0x678082=_0x4a377f[_0x57ae('0x50')](_0x22cefe);_0x678082&&_0x40f812[_0x57ae('0x2e')](_0x678082);},{'priority':_0x57ae('0x25')}):_0x22a9ef[_0x57ae('0x38')]({'channelId':_0x9f7091,'threadId':_0x699b9e})[_0x57ae('0x6a')](_0x192441=>{if(_0x57ae('0x2d')!==_0x1c3aa9[_0x57ae('0x1c')]){if(_0x419045=_0x192441,_0x419045){const _0x4cadcb=_0x419045[_0x57ae('0x54')](()=>this[_0x57ae('0x27')](_0x699b9e));_0x40f812[_0x57ae('0x2e')](_0x4cadcb),_0x419045[_0x57ae('0x4b')]&&this[_0x57ae('0x8')](_0x699b9e);}else{const _0x3b828f=this[_0x57ae('0x61')](_0x699b9e);_0x1c3aa9['model']['change'](_0x334724=>{for(const _0x58b318 of _0x3b828f)_0x334724[_0x57ae('0x59')](_0x58b318);});}}}),_0x419045);}['_handleThreadMarker'](_0x2db4ad,_0x997614){const _0x3bf9da=this[_0x57ae('0x63')](_0x2db4ad,_0x997614);_0x3bf9da&&!_0x3bf9da['context']&&_0x3bf9da[_0x57ae('0x2b')]({'type':_0x57ae('0x3c'),'value':this[_0x57ae('0x69')](_0x997614)});}}function Z(_0x32f794,_0x5e6774){return _0x5e6774?_0x32f794+':'+_0x5e6774:_0x32f794;}function tt(_0x1c43a6){const _0x48b0b8=_0x1c43a6[_0x57ae('0x64')](':');return{'group':_0x48b0b8[0x0],'id':_0x48b0b8[0x1],'part':_0x48b0b8[0x2]};}function ot(_0x1d9c44,_0x5ad92c){const _0x5c3223=_0x5ad92c['schema'],_0x146475=_0x5ad92c[_0x57ae('0x41')](_0x1d9c44[_0x57ae('0x1')]);for(const _0x31fdd0 of _0x1d9c44[_0x57ae('0x35')]()){const {type:_0x232824,item:_0x474c82,nextPosition:_0x3dd35e}=_0x31fdd0;if('text'===_0x232824||_0x5c3223[_0x57ae('0x5e')](_0x474c82)){const _0xe2a7f0=_0x5ad92c[_0x57ae('0x23')](_0x474c82);_0x146475[_0x57ae('0xc')]&&(_0x146475[_0x57ae('0x1')]=_0xe2a7f0),_0x146475[_0x57ae('0x67')]=_0x3dd35e;}}return _0x146475;}
23
+ const _0x5634=['managedUsingOperations','attachTo','getAttribute','_getTargetForId','clear','reopen','registerPostFixer','config','hasCommentThread','pluginName','filter','markerToHighlight','getRange','upcast','markers','destroyed','differ','affectsData','isObject','low','_removedThread','isCollapsed','reconvertMarker','$graveyard','end','ck-comment-marker--active','add','length','isThreadsLoadingPaused','enqueueChange','_autoResolvedThreads','getChangedMarkers','setContext','delete','removeCommentThread','init','markerToData','openNewCommentThread','_handleThreadMarker','_initializeMarkerConverters','_attachMarkerToThread','from','elementToElement','consumable','ck-comment-marker','for','view','requires','newRange','getCommentThread','root','createPositionBefore','get','focus','text','schema','switchReadOnly','_attachedThreads','addMarker:','plugins','hasDomSelection','resolve','registerAnnotation','conversion','change:isReadOnly','render','commands','_getTextContext','createRange','_reconvertMarkers','start','map','ready','collaboration.channelId','context','_hasTargetInContent','listenTo','consume','getByInnerView','getAllMarkersForId','document','item','change','scrollToThreadMarker','comment','hasContent','state','_threadToController','dataDowncast','data','removeMarker','getWalker','activeMarker','fetchCommentThread','split','destroy','ignoreResolvedComments','isResolved','set','_attachResolvedThread','high','push','change:isThreadsLoadingPaused','has','CommentsEditing','$marker','hasMarkerForId','model','editor','once','change:activeMarker','editing','markerName'];(function(_0x1878af,_0x56341c){const _0xf5596b=function(_0x4f3992){while(--_0x4f3992){_0x1878af['push'](_0x1878af['shift']());}};_0xf5596b(++_0x56341c);}(_0x5634,0xca));const _0xf559=function(_0x1878af,_0x56341c){_0x1878af=_0x1878af-0x0;let _0xf5596b=_0x5634[_0x1878af];return _0xf5596b;};import{Plugin as _0x732dfe}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2bc588}from'ckeditor5/src/utils';import _0x1444ef from'./commentsrepository';import _0x583d1b from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3c78d8}from'ckeditor5-collaboration/src/collaboration-core';import _0x280162 from'../annotations/editorannotations';import _0x571fe6 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x8a158d from'./integrations/importword';import _0x237d03 from'../annotations/annotations';export default class r extends _0x732dfe{static get[_0xf559('0x47')](){return[_0x1444ef,_0x280162,_0x571fe6,_0x8a158d];}static get[_0xf559('0x21')](){return _0xf559('0xf');}constructor(_0x5750a6){super(_0x5750a6),this[_0xf559('0x2c')]=null,this[_0xf559('0x36')]=new Set(),this[_0xf559('0x9')](_0xf559('0x34'),!0x0),_0x5750a6[_0xf559('0x0')][_0xf559('0x14')](_0xf559('0x60'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0xf559('0x9')](_0xf559('0x3'),null),this['on'](_0xf559('0x15'),(_0x3b0494,_0xd64c8f,_0x4ff6c2,_0x50dd1e)=>{const _0xb10bc2=_0x4ff6c2?tt(_0x4ff6c2)['id']:null;if(_0x5750a6[_0xf559('0x12')][_0xf559('0x6a')](()=>{if(_0xb10bc2){const _0x4488a0=this[_0xf559('0x67')](_0xb10bc2);for(const _0x26be47 of _0x4488a0)_0x5750a6[_0xf559('0x16')]['reconvertMarker'](_0x26be47);}if(_0x50dd1e){const {id:_0x54e318}=tt(_0x50dd1e),_0x157117=this[_0xf559('0x67')](_0x54e318);for(const _0x1cd438 of _0x157117)_0x5750a6[_0xf559('0x16')][_0xf559('0x2e')](_0x1cd438);}}),_0xb10bc2){const _0x581fa6=_0x5750a6[_0xf559('0x53')]['get'](_0x1444ef)[_0xf559('0x49')](_0xb10bc2);_0x581fa6&&_0x581fa6[_0xf559('0x8')]&&this[_0xf559('0x6b')](_0xb10bc2);}}),this['_attachedThreads']=new Map();}[_0xf559('0x3b')](){const _0x37a660=this[_0xf559('0x13')],_0x583a97=_0x37a660[_0xf559('0x53')]['get'](_0x1444ef),_0x2012da=_0x37a660['config']['get'](_0xf559('0x61'));_0x37a660[_0xf559('0x5a')][_0xf559('0x32')]('addCommentThread',new _0x583d1b(_0x37a660)),this[_0xf559('0x64')](_0x37a660,_0xf559('0x58'),(_0x4e832a,_0x31422e,_0x47ddb7)=>{_0x583a97[_0xf559('0x50')](_0x47ddb7,_0x37a660[_0xf559('0x1f')]['get'](_0xf559('0x61')));}),this[_0xf559('0x64')](_0x583a97,Z('addCommentThread',_0x2012da),(_0x5a5d41,{threadId:_0x11824d})=>{const _0x39c956=this[_0xf559('0x13')][_0xf559('0x53')][_0xf559('0x4c')](_0x1444ef)[_0xf559('0x49')](_0x11824d);_0x39c956&&_0x39c956[_0xf559('0x8')]&&this['_attachResolvedThread'](_0x11824d);}),this[_0xf559('0x64')](_0x583a97,Z(_0xf559('0x3a'),_0x2012da),(_0x355f5b,{threadId:_0x26a046})=>{_0x37a660[_0xf559('0x12')][_0xf559('0x35')]({'isUndoable':!0x1},_0x524f4d=>{const _0x556503=this[_0xf559('0x67')](_0x26a046);this[_0xf559('0x51')]['delete'](_0x26a046),this[_0xf559('0x2c')]=_0x26a046;for(const _0x2d4d48 of _0x556503)_0x524f4d['removeMarker'](_0x2d4d48);}),this[_0xf559('0x2c')]=null;},{'priority':_0xf559('0xb')}),this[_0xf559('0x64')](_0x583a97,Z('resolveCommentThread',_0x2012da),(_0x2ad7a1,{threadId:_0x3b6fab})=>{this[_0xf559('0xa')](_0x3b6fab),this[_0xf559('0x5d')](_0x3b6fab),this['editor'][_0xf559('0x16')][_0xf559('0x46')][_0xf559('0x54')]&&this[_0xf559('0x13')][_0xf559('0x16')][_0xf559('0x46')][_0xf559('0x4d')]();},{'priority':_0xf559('0x2b')}),this[_0xf559('0x64')](_0x583a97,Z('reopenCommentThread',_0x2012da),(_0x3e10e9,{threadId:_0x1be4a5})=>{this[_0xf559('0x5d')](_0x1be4a5);},{'priority':'low'}),this['listenTo'](_0x583a97,Z('addComment',_0x2012da),(_0x481bfe,{threadId:_0x2e9c4b,isFromAdapter:_0x2e1e8f})=>{const _0x1d1bf7=this['getAllMarkersForId'](_0x2e9c4b);if(_0x2e1e8f||0x0==_0x1d1bf7[_0xf559('0x33')]||!_0x583a97[_0xf559('0x20')](_0x2e9c4b))return;0x1===_0x583a97['getCommentThread'](_0x2e9c4b)[_0xf559('0x33')]&&_0x37a660[_0xf559('0x12')]['enqueueChange']({'isUndoable':!0x1},_0x754865=>{for(const _0x21a3d0 of _0x1d1bf7)_0x754865['updateMarker'](_0x21a3d0,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0xf559('0x3f')](),this['_handleMarkerAddAndRemove']();}[_0xf559('0x6')](){const _0x523311=this[_0xf559('0x13')][_0xf559('0x53')]['get'](_0x1444ef),_0x2e7dc4=this[_0xf559('0x13')][_0xf559('0x1f')]['get'](_0xf559('0x61'));for(const _0x2726ec of _0x523311['getCommentThreads']({'channelId':_0x2e7dc4}))_0x523311['_detachCommentThread'](_0x2726ec['id']),_0x523311['_threads'][_0xf559('0x39')](_0x2726ec['id']);super[_0xf559('0x6')]();}[_0xf559('0x11')](_0x1c3fde){return this['getAllMarkersForId'](_0x1c3fde)['length']>0x0;}[_0xf559('0x67')](_0x304121){return Array['from'](this[_0xf559('0x51')][_0xf559('0x4c')](_0x304121)||[])[_0xf559('0x5f')](_0x20b562=>this[_0xf559('0x13')][_0xf559('0x12')][_0xf559('0x26')]['get'](_0x20b562))[_0xf559('0x22')](_0x51c37a=>_0x51c37a);}['scrollToThreadMarker'](_0x54e737){const _0x4de4c4=this[_0xf559('0x1b')](_0x54e737);_0x4de4c4&&setTimeout(()=>{this['activeMarker']&&tt(this[_0xf559('0x3')])['id']===_0x54e737&&_0x2bc588({'target':_0x4de4c4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0xf559('0x5d')](_0x21d90b){this[_0xf559('0x13')][_0xf559('0x12')]['change'](()=>{for(const _0x56ff74 of this[_0xf559('0x67')](_0x21d90b))this[_0xf559('0x13')][_0xf559('0x16')][_0xf559('0x2e')](_0x56ff74);});}[_0xf559('0xa')](_0x5d3ba2){const _0x76098d=this[_0xf559('0x13')][_0xf559('0x53')]['get'](_0x1444ef),_0x3a4bdb=this[_0xf559('0x13')][_0xf559('0x53')][_0xf559('0x4c')](_0x280162),_0x5e42d4=_0x76098d['getCommentThread'](_0x5d3ba2);if(!this[_0xf559('0x51')][_0xf559('0xe')](_0x5d3ba2)){const _0x20f581=_0x5e42d4['attachTo'](()=>this[_0xf559('0x1b')](_0x5e42d4['id']));_0x3a4bdb[_0xf559('0x56')](_0x20f581),this[_0xf559('0x51')]['set'](_0x5d3ba2,new Set()),_0x5e42d4[_0xf559('0x63')]=!0x1;}}[_0xf559('0x3f')](){const _0x4ae7e3=this[_0xf559('0x13')];_0x4ae7e3['conversion'][_0xf559('0x45')]('editingDowncast')[_0xf559('0x23')]({'model':_0xf559('0x6c'),'view':(_0x142d92,_0x3ef7da)=>{const {id:_0x22d007}=tt(_0x142d92[_0xf559('0x17')]),_0x4e8018=_0x4ae7e3[_0xf559('0x53')]['get'](_0x1444ef)[_0xf559('0x49')](_0x22d007),_0x361ac3=this[_0xf559('0x3')]&&tt(this[_0xf559('0x3')])['id']===_0x22d007;if(_0x4e8018&&_0x4e8018['isResolved']&&!_0x361ac3&&_0x142d92[_0xf559('0x69')])return _0x3ef7da[_0xf559('0x43')][_0xf559('0x65')](_0x142d92[_0xf559('0x69')],_0xf559('0x52')+_0x142d92[_0xf559('0x17')]),_0x3ef7da[_0xf559('0x43')][_0xf559('0x65')](_0x142d92[_0xf559('0x69')],'removeMarker:'+_0x142d92[_0xf559('0x17')]),{'classes':[]};const _0x13b9b1=[_0xf559('0x44')];return _0x361ac3&&_0x13b9b1[_0xf559('0xc')](_0xf559('0x31')),{'classes':_0x13b9b1,'attributes':{'data-comment':_0x22d007}};}}),_0x4ae7e3[_0xf559('0x57')][_0xf559('0x45')](_0xf559('0x70'))[_0xf559('0x3c')]({'model':_0xf559('0x6c'),'view':(_0x3ccaee,{options:_0x2573d4})=>{const _0x39d575=_0x4ae7e3[_0xf559('0x53')]['get'](_0x1444ef),_0x2ed7af=_0x4ae7e3[_0xf559('0x12')][_0xf559('0x26')][_0xf559('0x4c')](_0x3ccaee),{id:_0x3c8503,part:_0x5d1f40}=tt(_0x3ccaee);if(_0x2ed7af&&!_0x2ed7af[_0xf559('0x29')])return null;if(_0x2573d4[_0xf559('0x7')]){const _0x4530ab=_0x39d575[_0xf559('0x49')](_0x3c8503);if(_0x4530ab&&_0x4530ab[_0xf559('0x8')])return null;}return{'group':_0xf559('0x6c'),'name':_0x5d1f40?_0x3c8503+':'+_0x5d1f40:_0x3c8503};}}),_0x4ae7e3[_0xf559('0x57')][_0xf559('0x45')](_0xf559('0x25'))[_0xf559('0x42')]({'view':{'name':_0xf559('0x6c'),'attributes':{'id':/^\w/}},'model':(_0x23387f,{writer:_0x2b09f9})=>_0x2b09f9['createElement'](_0xf559('0x10'),{'data-name':'comment:'+_0x23387f[_0xf559('0x1a')]('id')})}),_0x4ae7e3[_0xf559('0x57')][_0xf559('0x45')](_0xf559('0x25'))['dataToMarker']({'view':_0xf559('0x6c')});}['_handleMarkerAddAndRemove'](){const _0x8ed7fb=this[_0xf559('0x13')],_0x1efe7f=_0x8ed7fb[_0xf559('0x53')][_0xf559('0x4c')](_0x1444ef),_0xbfa2db=new Set(),_0x16a6f1=new Set();_0x8ed7fb['model'][_0xf559('0x68')][_0xf559('0x1e')](_0x4387ea=>{let _0x511dc6=!0x1;for(const {name:_0x410b16,data:_0x11c572}of _0x8ed7fb[_0xf559('0x12')][_0xf559('0x68')][_0xf559('0x28')][_0xf559('0x37')]()){const {group:_0x564e30,id:_0xd1914d}=tt(_0x410b16);let _0x19a03e=_0x11c572['newRange'];if(_0xf559('0x6c')!==_0x564e30||!_0x19a03e)continue;const _0x5b244e=_0xf559('0x2f')===_0x19a03e[_0xf559('0x4a')]['rootName'];_0x5b244e||(_0x19a03e=ot(_0x19a03e,_0x8ed7fb[_0xf559('0x12')]),!_0x19a03e||_0x19a03e['isCollapsed']||!_0x11c572['newRange']||_0x19a03e['isEqual'](_0x11c572[_0xf559('0x48')]))?_0x8ed7fb[_0xf559('0x12')][_0xf559('0x6d')](_0x19a03e)&&!_0x5b244e?this[_0xf559('0x34')]?_0xbfa2db[_0xf559('0x32')](_0x410b16):this[_0xf559('0x3e')](_0x410b16,_0xd1914d):(_0x16a6f1[_0xf559('0x32')](_0x410b16),_0xbfa2db[_0xf559('0x39')](_0x410b16),_0x4387ea[_0xf559('0x1')](_0x410b16),_0x511dc6=!0x0):(_0x4387ea['updateMarker'](_0x410b16,{'range':_0x19a03e}),_0x511dc6=!0x0);}return _0x511dc6;}),this['on'](_0xf559('0xd'),(_0x450846,_0x5805fe,_0x263faa)=>{if(!_0x263faa&&_0xbfa2db['size'])for(const _0x10c987 of _0xbfa2db){const {id:_0x5722a2}=tt(_0x10c987);_0xbfa2db[_0xf559('0x39')](_0x10c987),_0x8ed7fb[_0xf559('0x12')][_0xf559('0x26')][_0xf559('0x4c')](_0x10c987)&&this[_0xf559('0x3e')](_0x10c987,_0x5722a2);}}),this['listenTo'](_0x8ed7fb[_0xf559('0x12')][_0xf559('0x68')],_0xf559('0x6a'),(_0x499475,_0x4ee54c)=>{for(const {name:_0x410af4,data:{newRange:_0x1fb5cf}}of _0x8ed7fb['model'][_0xf559('0x68')]['differ']['getChangedMarkers']()){const {group:_0x3ed448,id:_0x359a64}=tt(_0x410af4);if(_0xf559('0x6c')!==_0x3ed448)continue;const _0x566d30=_0x1efe7f['getCommentThread'](_0x359a64),_0x26db3e=this[_0xf559('0x11')](_0x359a64);_0x566d30&&(_0x566d30[_0xf559('0x63')]||_0x8ed7fb[_0xf559('0x16')]['view'][_0xf559('0x14')](_0xf559('0x59'),()=>{const _0xa3141e=_0x8ed7fb[_0xf559('0x53')]['get'](_0x237d03),_0x18ff3a=_0x1efe7f[_0xf559('0x6f')][_0xf559('0x4c')](_0x566d30)[_0xf559('0x46')];_0xa3141e[_0xf559('0x66')](_0x18ff3a)['refreshVisibility']();},{'priority':'low'}),_0x566d30[_0xf559('0x63')]=_0x26db3e||!!_0x1fb5cf),_0x1fb5cf||(_0x16a6f1['add'](_0x410af4),_0xbfa2db['delete'](_0x410af4),this['_attachedThreads']['has'](_0x359a64)&&this['_attachedThreads'][_0xf559('0x4c')](_0x359a64)[_0xf559('0x39')](_0x410af4));}if(_0x4ee54c['isLocal'])for(const _0x1c8515 of _0x16a6f1){const {id:_0x189800}=tt(_0x1c8515),_0x4276a4=_0x1efe7f[_0xf559('0x49')](_0x189800),_0x1fff7b=this[_0xf559('0x11')](_0x189800);_0xbfa2db[_0xf559('0x39')](_0x1c8515),!_0x4276a4||_0x1fff7b||_0x4276a4[_0xf559('0x8')]||this[_0xf559('0x2c')]===_0x189800||(this[_0xf559('0x36')][_0xf559('0x32')](_0x4276a4),_0x4276a4[_0xf559('0x55')]());}_0x16a6f1[_0xf559('0x1c')]();});}[_0xf559('0x1b')](_0x26fbff){const _0x279441=this[_0xf559('0x13')],_0x1429f6=this[_0xf559('0x67')](_0x26fbff);return _0x3c78d8(_0x279441[_0xf559('0x16')],_0x1429f6);}[_0xf559('0x5b')](_0x4ecdd1){const _0x316b12=this[_0xf559('0x67')](_0x4ecdd1);let _0x217bf9='',_0x56a83d=!0x1;for(const _0x14f86c of _0x316b12){const _0x33368b=_0x14f86c[_0xf559('0x24')]();for(const _0x37ef9a of Array[_0xf559('0x41')](_0x33368b['getItems']()))_0x37ef9a['is']('$textProxy')?(_0x217bf9&&_0x56a83d&&(_0x217bf9+='\x20',_0x56a83d=!0x1),_0x217bf9+=_0x37ef9a[_0xf559('0x0')]):_0x56a83d=!0x0;_0x56a83d=!0x0;}return _0x217bf9['substring'](0x0,0x96);}[_0xf559('0x40')](_0x4a52e9,_0x118781){const _0xa1d09a=this[_0xf559('0x13')],_0x437b19=_0xa1d09a[_0xf559('0x53')][_0xf559('0x4c')](_0x1444ef);let _0x396c02=_0x437b19['getCommentThread'](_0x118781);if(this[_0xf559('0x51')][_0xf559('0xe')](_0x118781)){const _0x1ffbb2=this['_attachedThreads'][_0xf559('0x4c')](_0x118781);_0x1ffbb2[_0xf559('0xe')](_0x4a52e9)||_0x1ffbb2[_0xf559('0x32')](_0x4a52e9);}const _0x4a908a=_0xa1d09a[_0xf559('0x1f')][_0xf559('0x4c')](_0xf559('0x61')),_0x3bfdeb=_0xa1d09a['plugins'][_0xf559('0x4c')](_0x280162);if(_0x396c02&&_0x396c02[_0xf559('0x8')]&&this[_0xf559('0x36')][_0xf559('0xe')](_0x396c02)&&(this[_0xf559('0x36')][_0xf559('0x39')](_0x396c02),_0x396c02[_0xf559('0x1d')]()),this[_0xf559('0x51')][_0xf559('0xe')](_0x118781))return _0x396c02;return this[_0xf559('0x51')]['set'](_0x118781,new Set([_0x4a52e9])),(!this[_0xf559('0x67')](_0x118781)[0x0][_0xf559('0x18')]?_0xa1d09a[_0xf559('0x16')]['view']['once'](_0xf559('0x59'),()=>{const _0x5961f2=_0xa1d09a['plugins'][_0xf559('0x4c')](_0x237d03);_0x396c02=_0x437b19[_0xf559('0x3d')]({'channelId':_0x4a908a,'threadId':_0x118781,'target':()=>this[_0xf559('0x1b')](_0x118781),'context':{'type':_0xf559('0x4e'),'value':this[_0xf559('0x5b')](_0x118781)}});const _0x339373=_0x437b19[_0xf559('0x6f')][_0xf559('0x4c')](_0x396c02)['view'],_0x25a34f=_0x5961f2[_0xf559('0x66')](_0x339373);_0x25a34f&&_0x3bfdeb[_0xf559('0x56')](_0x25a34f);},{'priority':'low'}):_0x437b19[_0xf559('0x4')]({'channelId':_0x4a908a,'threadId':_0x118781})['then'](_0x45d7b3=>{if(_0xf559('0x27')!==_0xa1d09a[_0xf559('0x6e')]){if(_0x396c02=_0x45d7b3,_0x396c02){const _0xf4f79f=_0x396c02[_0xf559('0x19')](()=>this[_0xf559('0x1b')](_0x118781));_0x3bfdeb['registerAnnotation'](_0xf4f79f),_0x396c02['isResolved']&&this[_0xf559('0x5d')](_0x118781);}else{const _0xc6e72a=this[_0xf559('0x67')](_0x118781);_0xa1d09a[_0xf559('0x12')][_0xf559('0x6a')](_0x16b94d=>{for(const _0x33868b of _0xc6e72a)_0x16b94d[_0xf559('0x1')](_0x33868b);});}}}),_0x396c02);}[_0xf559('0x3e')](_0x4c72a2,_0x594330){const _0x11d396=this[_0xf559('0x40')](_0x4c72a2,_0x594330);_0x11d396&&!_0x11d396[_0xf559('0x62')]&&_0x11d396[_0xf559('0x38')]({'type':_0xf559('0x4e'),'value':this['_getTextContext'](_0x594330)});}}function Z(_0x5f57ef,_0x19ce2d){return _0x19ce2d?_0x5f57ef+':'+_0x19ce2d:_0x5f57ef;}function tt(_0x1ef824){const _0x277f40=_0x1ef824[_0xf559('0x5')](':');return{'group':_0x277f40[0x0],'id':_0x277f40[0x1],'part':_0x277f40[0x2]};}function ot(_0x460db9,_0x2187f0){const _0x272083=_0x2187f0[_0xf559('0x4f')],_0x5e39d1=_0x2187f0[_0xf559('0x5c')](_0x460db9[_0xf559('0x5e')]);for(const _0x44a6b4 of _0x460db9[_0xf559('0x2')]()){const {type:_0x185170,item:_0x375e2a,nextPosition:_0x53954a}=_0x44a6b4;if(_0xf559('0x4e')===_0x185170||_0x272083[_0xf559('0x2a')](_0x375e2a)){const _0x57123b=_0x2187f0[_0xf559('0x4b')](_0x375e2a);_0x5e39d1[_0xf559('0x2d')]&&(_0x5e39d1[_0xf559('0x5e')]=_0x57123b),_0x5e39d1[_0xf559('0x30')]=_0x53954a;}}return _0x5e39d1;}