@ckeditor/ckeditor5-comments 0.0.0-nightly-20230811.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 _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);}}
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 _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')]();}}
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 _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')]});}}
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 _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);}}
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 _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);}}
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 _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')];}}
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 _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;}}
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 _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;}
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;}