@ckeditor/ckeditor5-comments 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230808.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 (45) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/comments.js +1 -1
  5. package/package.json +3 -3
  6. package/src/annotations/annotation.js +1 -1
  7. package/src/annotations/annotationcollection.js +1 -1
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.js +1 -1
  10. package/src/annotations/editorannotations.js +1 -1
  11. package/src/annotations/inlineannotations.js +1 -1
  12. package/src/annotations/narrowsidebar.js +1 -1
  13. package/src/annotations/sidebar.js +1 -1
  14. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  15. package/src/annotations/view/annotationview.js +1 -1
  16. package/src/annotations/view/sidebaritemview.js +1 -1
  17. package/src/annotations/view/sidebarview.js +1 -1
  18. package/src/annotations/widesidebar.js +1 -1
  19. package/src/comments/addcommentthreadcommand.js +1 -1
  20. package/src/comments/commentsarchive.js +1 -1
  21. package/src/comments/commentsarchiveui.js +1 -1
  22. package/src/comments/commentsediting.js +1 -1
  23. package/src/comments/commentsrepository.js +1 -1
  24. package/src/comments/commentsui.js +1 -1
  25. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  26. package/src/comments/integrations/importword.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  28. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  30. package/src/comments/ui/commentthreadcontroller.js +1 -1
  31. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  32. package/src/comments/ui/view/basecommentview.js +1 -1
  33. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  34. package/src/comments/ui/view/commentcontentview.js +1 -1
  35. package/src/comments/ui/view/commentinputview.js +1 -1
  36. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  37. package/src/comments/ui/view/commentslistview.js +1 -1
  38. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  39. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  40. package/src/comments/ui/view/commentthreadview.js +1 -1
  41. package/src/comments/ui/view/commentview.js +1 -1
  42. package/src/comments.js +1 -1
  43. package/src/commentsonly.js +1 -1
  44. package/src/utils/common-translations.js +1 -1
  45. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a40=['clear','detach','ck-annotation-wrapper','height','element','focus','setTemplate','set','focusTracker','bindTemplate','clientHeight','content','render','ck-annotation-wrapper--active','attach','createCollection','destroy','isDirty','mainView','listenTo','keystrokes','Esc','isActive','fire','targetRect','div','length','_mutationObserver','_updateHeight'];(function(_0x3744bf,_0x1a400c){const _0x39b742=function(_0x2904fa){while(--_0x2904fa){_0x3744bf['push'](_0x3744bf['shift']());}};_0x39b742(++_0x1a400c);}(_0x1a40,0x14c));const _0x39b7=function(_0x3744bf,_0x1a400c){_0x3744bf=_0x3744bf-0x0;let _0x39b742=_0x1a40[_0x3744bf];return _0x39b742;};import{View as _0x2e19d0}from'ckeditor5/src/ui';import{FocusTracker as _0x5e61a1,KeystrokeHandler as _0x256af6,uid as _0x45b771}from'ckeditor5/src/utils';import _0x57c78a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2e19d0{constructor(_0x1bb83f,_0x33f1a8){super(_0x1bb83f),this['id']=_0x45b771(),this['focusTracker']=new _0x5e61a1(),this[_0x39b7('0x7')]=new _0x256af6(),this[_0x39b7('0x7')][_0x39b7('0x17')](_0x39b7('0x8'),(_0x129583,_0x163138)=>this[_0x39b7('0xa')](_0x39b7('0x8'),_0x163138)),this[_0x39b7('0x17')](_0x39b7('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x39b7('0x17')](_0x39b7('0x13'),0x0),this[_0x39b7('0x17')]('isActive',!0x1),this[_0x39b7('0x17')](_0x39b7('0x4'),!0x1),this[_0x39b7('0x17')](_0x39b7('0xd'),0x0),this['set']('type',''),this['_mutationObserver']=_0x57c78a(()=>this[_0x39b7('0xf')]()),this['content']=this[_0x39b7('0x2')](),this[_0x39b7('0x1b')]['add'](_0x33f1a8),this[_0x39b7('0x5')]=_0x33f1a8;const _0x22edab=this[_0x39b7('0x19')];this[_0x39b7('0x16')]({'tag':_0x39b7('0xc'),'attributes':{'class':['ck',_0x39b7('0x12'),'ck-rounded-corners',_0x22edab['if'](_0x39b7('0x9'),_0x39b7('0x0'))],'tabindex':-0x1},'children':this[_0x39b7('0x1b')]});}[_0x39b7('0x1c')](){super[_0x39b7('0x1c')](),this[_0x39b7('0x18')]['add'](this['element']),this[_0x39b7('0x7')][_0x39b7('0x6')](this[_0x39b7('0x14')]),this[_0x39b7('0xe')][_0x39b7('0x1')](this[_0x39b7('0x14')]);}[_0x39b7('0x3')](){this[_0x39b7('0x1b')][_0x39b7('0x10')](),this[_0x39b7('0x7')][_0x39b7('0x3')](),this['focusTracker'][_0x39b7('0x3')](),this['_mutationObserver'][_0x39b7('0x11')](),super[_0x39b7('0x3')]();}[_0x39b7('0x15')](){this[_0x39b7('0x14')][_0x39b7('0x15')]();}[_0x39b7('0xf')](){const _0x5a25b6=this['element'][_0x39b7('0x1a')];_0x5a25b6&&(this[_0x39b7('0x13')]=_0x5a25b6);}}
23
+ const _0x5a39=['ck-annotation-wrapper','render','keystrokes','length','element','createCollection','ck-rounded-corners','clear','isActive','_mutationObserver','listenTo','focusTracker','content','_updateHeight','detach','focus','add','bindTemplate','destroy','set','attach','div','type','targetRect','setTemplate'];(function(_0x2b7bf3,_0x5a3915){const _0x69949b=function(_0x383fa7){while(--_0x383fa7){_0x2b7bf3['push'](_0x2b7bf3['shift']());}};_0x69949b(++_0x5a3915);}(_0x5a39,0x11a));const _0x6994=function(_0x2b7bf3,_0x5a3915){_0x2b7bf3=_0x2b7bf3-0x0;let _0x69949b=_0x5a39[_0x2b7bf3];return _0x69949b;};import{View as _0x3d7d65}from'ckeditor5/src/ui';import{FocusTracker as _0x542e67,KeystrokeHandler as _0xd10b91,uid as _0x40c531}from'ckeditor5/src/utils';import _0x19ecf8 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3d7d65{constructor(_0x878cdf,_0x2dda8b){super(_0x878cdf),this['id']=_0x40c531(),this['focusTracker']=new _0x542e67(),this[_0x6994('0x14')]=new _0xd10b91(),this[_0x6994('0x14')]['set']('Esc',(_0x555c58,_0x4cd57b)=>this['fire']('Esc',_0x4cd57b)),this[_0x6994('0xc')](_0x6994('0x10'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x6994('0xc')]('height',0x0),this[_0x6994('0xc')](_0x6994('0x1'),!0x1),this[_0x6994('0xc')]('isDirty',!0x1),this['set'](_0x6994('0x15'),0x0),this[_0x6994('0xc')](_0x6994('0xf'),''),this[_0x6994('0x2')]=_0x19ecf8(()=>this[_0x6994('0x6')]()),this[_0x6994('0x5')]=this[_0x6994('0x17')](),this[_0x6994('0x5')][_0x6994('0x9')](_0x2dda8b),this['mainView']=_0x2dda8b;const _0x3e7002=this[_0x6994('0xa')];this[_0x6994('0x11')]({'tag':_0x6994('0xe'),'attributes':{'class':['ck',_0x6994('0x12'),_0x6994('0x18'),_0x3e7002['if'](_0x6994('0x1'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x6994('0x5')]});}[_0x6994('0x13')](){super['render'](),this[_0x6994('0x4')][_0x6994('0x9')](this[_0x6994('0x16')]),this[_0x6994('0x14')][_0x6994('0x3')](this[_0x6994('0x16')]),this['_mutationObserver'][_0x6994('0xd')](this[_0x6994('0x16')]);}['destroy'](){this[_0x6994('0x5')][_0x6994('0x0')](),this[_0x6994('0x14')][_0x6994('0xb')](),this[_0x6994('0x4')]['destroy'](),this[_0x6994('0x2')][_0x6994('0x7')](),super['destroy']();}[_0x6994('0x8')](){this[_0x6994('0x16')][_0x6994('0x8')]();}['_updateHeight'](){const _0x735081=this[_0x6994('0x16')]['clientHeight'];_0x735081&&(this['height']=_0x735081);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eb9=['updateHeight','isAnimationDisabled','height','set','attach','ck-sidebar-item--no-animation','destroy','clear','bindTemplate','element','setTemplate','bind','detach','top','_targetTop','_mutationObserver','div','render','ck-sidebar-item','clientHeight','content'];(function(_0x5ce54e,_0x4eb95a){const _0x373f64=function(_0x5097da){while(--_0x5097da){_0x5ce54e['push'](_0x5ce54e['shift']());}};_0x373f64(++_0x4eb95a);}(_0x4eb9,0x1ea));const _0x373f=function(_0x5ce54e,_0x4eb95a){_0x5ce54e=_0x5ce54e-0x0;let _0x373f64=_0x4eb9[_0x5ce54e];return _0x373f64;};import{View as _0x1fc29e}from'ckeditor5/src/ui';import{toUnit as _0x201752}from'ckeditor5/src/utils';import _0x375a7d from'../../utils/createmutationobserver';const At=_0x201752('px');export default class C extends _0x1fc29e{constructor(_0x335667){super(_0x335667),this[_0x373f('0x11')]('top',0x0),this[_0x373f('0x11')](_0x373f('0x10'),0x0),this[_0x373f('0x4')]('bottom')['to'](this,_0x373f('0x6'),this,_0x373f('0x10'),(_0x3786cc,_0x4f55e6)=>_0x3786cc+_0x4f55e6),this[_0x373f('0x11')](_0x373f('0xf'),!0x1),this['_mutationObserver']=_0x375a7d(()=>this['updateHeight']()),this[_0x373f('0x7')]=null,this[_0x373f('0xd')]=this['createCollection']();const _0x3528ae=this[_0x373f('0x1')];this[_0x373f('0x3')]({'tag':_0x373f('0x9'),'attributes':{'class':[_0x373f('0xb'),_0x3528ae['to'](_0x373f('0xf'),_0x4bcd44=>_0x4bcd44?_0x373f('0x13'):'')],'style':{'top':_0x3528ae['to'](_0x373f('0x6'),_0x44c610=>At(_0x44c610))}},'children':this[_0x373f('0xd')]});}['render'](){super[_0x373f('0xa')](),this['_mutationObserver'][_0x373f('0x12')](this[_0x373f('0x2')]);}[_0x373f('0xe')](){const _0x2f89a8=this['element'][_0x373f('0xc')];_0x2f89a8&&(this[_0x373f('0x10')]=_0x2f89a8);}[_0x373f('0x14')](){this[_0x373f('0xd')][_0x373f('0x0')](),this[_0x373f('0x8')][_0x373f('0x5')](),super['destroy']();}}
23
+ const _0x16ee=['ck-sidebar-item--no-animation','ck-sidebar-item','clear','_targetTop','content','set','clientHeight','div','isAnimationDisabled','bindTemplate','height','attach','_mutationObserver','updateHeight','destroy','setTemplate','render','bottom','top'];(function(_0x276c4c,_0x16ee22){const _0x5c2b18=function(_0x249db0){while(--_0x249db0){_0x276c4c['push'](_0x276c4c['shift']());}};_0x5c2b18(++_0x16ee22);}(_0x16ee,0x109));const _0x5c2b=function(_0x276c4c,_0x16ee22){_0x276c4c=_0x276c4c-0x0;let _0x5c2b18=_0x16ee[_0x276c4c];return _0x5c2b18;};import{View as _0x5d6a05}from'ckeditor5/src/ui';import{toUnit as _0x19aa4c}from'ckeditor5/src/utils';import _0x4ab1c2 from'../../utils/createmutationobserver';const At=_0x19aa4c('px');export default class C extends _0x5d6a05{constructor(_0x1b32a3){super(_0x1b32a3),this[_0x5c2b('0x6')](_0x5c2b('0x0'),0x0),this[_0x5c2b('0x6')](_0x5c2b('0xb'),0x0),this['bind'](_0x5c2b('0x12'))['to'](this,_0x5c2b('0x0'),this,'height',(_0x2688e3,_0x4218a4)=>_0x2688e3+_0x4218a4),this['set'](_0x5c2b('0x9'),!0x1),this[_0x5c2b('0xd')]=_0x4ab1c2(()=>this[_0x5c2b('0xe')]()),this[_0x5c2b('0x4')]=null,this[_0x5c2b('0x5')]=this['createCollection']();const _0x1c5083=this[_0x5c2b('0xa')];this[_0x5c2b('0x10')]({'tag':_0x5c2b('0x8'),'attributes':{'class':[_0x5c2b('0x2'),_0x1c5083['to'](_0x5c2b('0x9'),_0x985064=>_0x985064?_0x5c2b('0x1'):'')],'style':{'top':_0x1c5083['to']('top',_0x444fdd=>At(_0x444fdd))}},'children':this[_0x5c2b('0x5')]});}[_0x5c2b('0x11')](){super[_0x5c2b('0x11')](),this[_0x5c2b('0xd')][_0x5c2b('0xc')](this['element']);}[_0x5c2b('0xe')](){const _0x5e64f8=this['element'][_0x5c2b('0x7')];_0x5e64f8&&(this[_0x5c2b('0xb')]=_0x5e64f8);}['destroy'](){this['content'][_0x5c2b('0x3')](),this[_0x5c2b('0xd')]['detach'](),super[_0x5c2b('0xf')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x394d=['class','list','ck-reset','createCollection','div','bindTemplate','set','minHeight','number'];(function(_0x52c3e0,_0x394de8){const _0x5a9335=function(_0x983988){while(--_0x983988){_0x52c3e0['push'](_0x52c3e0['shift']());}};_0x5a9335(++_0x394de8);}(_0x394d,0x1c0));const _0x5a93=function(_0x52c3e0,_0x394de8){_0x52c3e0=_0x52c3e0-0x0;let _0x5a9335=_0x394d[_0x52c3e0];return _0x5a9335;};import{View as _0x2b792c}from'ckeditor5/src/ui';import{toUnit as _0x26d305}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x26d305('px');export default class T extends _0x2b792c{constructor(_0x4c58ee){super(_0x4c58ee);const _0x23c88e=this[_0x5a93('0x7')];this['set']('minHeight',0x0),this[_0x5a93('0x8')](_0x5a93('0x2'),''),this[_0x5a93('0x3')]=this[_0x5a93('0x5')](),this['setTemplate']({'tag':_0x5a93('0x6'),'attributes':{'class':['ck','ck-sidebar',_0x5a93('0x4'),_0x23c88e['to']('class')],'style':{'minHeight':_0x23c88e['to'](_0x5a93('0x0'),_0x381705=>_0x5a93('0x1')==typeof _0x381705?At(_0x381705+0xa):null)}},'children':this[_0x5a93('0x3')]});}}
23
+ const _0x218a=['ck-reset','createCollection','div','set','setTemplate','ck-sidebar','list','bindTemplate','class'];(function(_0x7bb443,_0x218a58){const _0x43a313=function(_0x3d4dad){while(--_0x3d4dad){_0x7bb443['push'](_0x7bb443['shift']());}};_0x43a313(++_0x218a58);}(_0x218a,0x84));const _0x43a3=function(_0x7bb443,_0x218a58){_0x7bb443=_0x7bb443-0x0;let _0x43a313=_0x218a[_0x7bb443];return _0x43a313;};import{View as _0x5994f8}from'ckeditor5/src/ui';import{toUnit as _0xbb16c1}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0xbb16c1('px');export default class T extends _0x5994f8{constructor(_0x5a3ba0){super(_0x5a3ba0);const _0x1c2a99=this[_0x43a3('0x1')];this[_0x43a3('0x6')]('minHeight',0x0),this[_0x43a3('0x6')](_0x43a3('0x2'),''),this[_0x43a3('0x0')]=this[_0x43a3('0x4')](),this[_0x43a3('0x7')]({'tag':_0x43a3('0x5'),'attributes':{'class':['ck',_0x43a3('0x8'),_0x43a3('0x3'),_0x1c2a99['to'](_0x43a3('0x2'))],'style':{'minHeight':_0x1c2a99['to']('minHeight',_0x3ba4ed=>'number'==typeof _0x3ba4ed?At(_0x3ba4ed+0xa):null)}},'children':this['list']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfacf=['_destroyEditorAnnotationsIntegration','getOrderedSelectedAnnotations','uiUpdate','set','pluginName','register','container','addAnnotation','set:container','_refreshPositioningDebounced','high','destroy','resize','remove','ready','plugins','rearrange','add','refreshPositioning','listenTo','hasDomSelection','has','activeAnnotation','isAttached','cancel','init','annotations','change:container','_attachToContainer','widesidebar-detach-not-attached','refresh','detach','removeEventListener','stop','stopListening','WideSidebar','_integrateWithEditorAnnotations','get','setActiveAnnotation','editors','EditorAnnotations','attach','wideSidebar','focus','from','blur','updateTargetRect','_activeAnnotation','context'];(function(_0x313f2b,_0xfacf58){const _0x4ea7c7=function(_0x4787de){while(--_0x4787de){_0x313f2b['push'](_0x313f2b['shift']());}};_0x4ea7c7(++_0xfacf58);}(_0xfacf,0x133));const _0x4ea7=function(_0x313f2b,_0xfacf58){_0x313f2b=_0x313f2b-0x0;let _0x4ea7c7=_0xfacf[_0x313f2b];return _0x4ea7c7;};import{ContextPlugin as _0x1356fd,Context as _0x4c6161}from'ckeditor5/src/core';import _0x182540 from'./annotationsuis';import _0x3cbdc7 from'./sidebar';import{CKEditorError as _0x4f8263,Collection as _0x28b547}from'ckeditor5/src/utils';import{debounce as _0x4d888d}from'lodash-es';import _0x5ecc17 from'./editorannotations';export default class i extends _0x1356fd{static get['requires'](){return[_0x3cbdc7,_0x182540];}static get[_0x4ea7('0x28')](){return _0x4ea7('0x16');}constructor(_0x546731){super(_0x546731),this[_0x4ea7('0xa')]=!0x1,this[_0x4ea7('0x27')](_0x4ea7('0x9'),null),this[_0x4ea7('0xd')]=null,this['_editorAnnotations']=new _0x28b547(),this[_0x4ea7('0x2d')]=_0x4d888d(()=>{this[_0x4ea7('0xd')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x4ea7('0xc')](){const _0x266809=this[_0x4ea7('0x23')][_0x4ea7('0x2')][_0x4ea7('0x18')](_0x182540),_0x55fca0=this[_0x4ea7('0x23')][_0x4ea7('0x2')][_0x4ea7('0x18')](_0x3cbdc7);_0x266809[_0x4ea7('0x29')]('wideSidebar',this),_0x55fca0[_0x4ea7('0x2a')]&&_0x266809['switchTo'](_0x4ea7('0x1d'));}['setActiveAnnotation'](_0x992a9b){if(_0x992a9b===this[_0x4ea7('0x9')])return;const _0x1202dd=this[_0x4ea7('0x23')][_0x4ea7('0x2')][_0x4ea7('0x18')](_0x3cbdc7);_0x1202dd[_0x4ea7('0x22')]=_0x992a9b;const _0x50b764=this['activeAnnotation'];this[_0x4ea7('0x9')]=_0x992a9b,_0x1202dd[_0x4ea7('0x11')]({'blurredAnnotation':_0x50b764,'activatedAnnotation':this[_0x4ea7('0x9')]});}[_0x4ea7('0x1c')](_0x2df45d){this[_0x4ea7('0xd')]=_0x2df45d;const _0x4be5b1=this[_0x4ea7('0x23')][_0x4ea7('0x2')][_0x4ea7('0x18')](_0x3cbdc7);if(_0x4be5b1['_annotations']=_0x2df45d,this[_0x4ea7('0xa')])throw new _0x4f8263('widesidebar-attach-already-attached',this);this[_0x4ea7('0xa')]=!0x0,this[_0x4ea7('0x6')](_0x4be5b1,_0x4ea7('0x2c'),()=>{this['detach'](),this[_0x4ea7('0x6')](_0x4be5b1,_0x4ea7('0xe'),_0x289736=>{_0x289736['off'](),this[_0x4ea7('0x1c')](_0x2df45d);});}),_0x4be5b1[_0x4ea7('0xf')]({'viewClass':'ck-sidebar--wide'});const _0x51efe2=_0x4698ac=>{_0x4698ac[_0x4ea7('0x21')](),_0x4be5b1[_0x4ea7('0x2b')](_0x4698ac);};for(const _0x1ad75c of _0x2df45d)_0x51efe2(_0x1ad75c);this[_0x4ea7('0x6')](_0x2df45d,_0x4ea7('0x4'),(_0x188b6d,_0x3e6002)=>{_0x51efe2(_0x3e6002);}),this[_0x4ea7('0x6')](_0x2df45d,'remove',(_0x1d0278,_0x30a015,_0x347fa9)=>{_0x4be5b1[_0x4ea7('0x3')]({'removedAnnotation':_0x30a015,'previousAnnotation':_0x2df45d['get'](_0x347fa9-0x1),'nextAnnotation':_0x2df45d[_0x4ea7('0x18')](_0x347fa9+0x1)}),_0x30a015===this[_0x4ea7('0x9')]&&this[_0x4ea7('0x19')](null);},{'priority':_0x4ea7('0x2e')}),this[_0x4ea7('0x6')](_0x2df45d,_0x4ea7('0x1e'),(_0x4c86e8,_0xe579d2)=>{this[_0x4ea7('0x19')](_0xe579d2);}),this[_0x4ea7('0x6')](_0x2df45d,_0x4ea7('0x20'),()=>{this[_0x4ea7('0x19')](null);});const _0x172056=this['context']instanceof _0x4c6161?this['context'][_0x4ea7('0x1a')]:new _0x28b547([this['context']]);for(const _0x43e14d of _0x172056)this[_0x4ea7('0x17')](_0x43e14d);this[_0x4ea7('0x6')](_0x172056,_0x4ea7('0x4'),(_0x5c54f9,_0x3403b3)=>{this[_0x4ea7('0x6')](_0x3403b3,_0x4ea7('0x1'),()=>{this[_0x4ea7('0x17')](_0x3403b3);});}),this[_0x4ea7('0x6')](_0x172056,_0x4ea7('0x0'),(_0x1e40c4,_0x275cf7)=>{_0x275cf7[_0x4ea7('0x2')][_0x4ea7('0x8')](_0x4ea7('0x1b'))&&this['_destroyEditorAnnotationsIntegration'](_0x275cf7['plugins'][_0x4ea7('0x18')]('EditorAnnotations'));}),window['addEventListener'](_0x4ea7('0x30'),this['_refreshPositioningDebounced']),this['annotations'][_0x4ea7('0x5')]();}[_0x4ea7('0x12')](){if(!this['isAttached'])throw new _0x4f8263(_0x4ea7('0x10'),this);this[_0x4ea7('0x19')](null);const _0x371c65=this[_0x4ea7('0x23')]['plugins'][_0x4ea7('0x18')](_0x3cbdc7);_0x371c65['_detachFromContainer'](this['annotations']),this['stopListening'](_0x371c65),this[_0x4ea7('0x15')](this[_0x4ea7('0xd')]),this[_0x4ea7('0x23')]instanceof _0x4c6161&&this[_0x4ea7('0x15')](this[_0x4ea7('0x23')][_0x4ea7('0x1a')]);for(const _0x400750 of Array[_0x4ea7('0x1f')](this['_editorAnnotations']))this[_0x4ea7('0x24')](_0x400750);window[_0x4ea7('0x13')]('resize',this['_refreshPositioningDebounced']),this[_0x4ea7('0x2d')][_0x4ea7('0xb')](),this[_0x4ea7('0x9')]=null,this[_0x4ea7('0xa')]=!0x1,this['annotations']=null;}[_0x4ea7('0x2f')](){this[_0x4ea7('0xa')]&&this[_0x4ea7('0x12')]();}['_integrateWithEditorAnnotations'](_0x4ee2a8){const _0x4e3edc=_0x4ee2a8[_0x4ea7('0x2')]['get'](_0x5ecc17);if(!_0x4e3edc)return;const _0xdcfb38=()=>{const _0x13fc5d=_0x4e3edc[_0x4ea7('0x25')]({'annotations':this[_0x4ea7('0xd')],'activeAnnotation':this[_0x4ea7('0x9')]});this[_0x4ea7('0x19')](_0x13fc5d[0x0]||null);};this[_0x4ea7('0x6')](_0x4e3edc,_0x4ea7('0x11'),_0xdcfb38),this[_0x4ea7('0x6')](_0x4e3edc,_0x4ea7('0x20'),(_0x2ed284,{isAnnotationTracked:_0x5692bf})=>{this[_0x4ea7('0x9')]&&_0x5692bf(this['activeAnnotation'])&&this[_0x4ea7('0x19')](null);}),this[_0x4ea7('0x6')](_0x4e3edc,_0x4ea7('0x26'),()=>{this['_refreshPositioningDebounced']();}),this[_0x4ea7('0x6')](this[_0x4ea7('0xd')],_0x4ea7('0x20'),_0x3c80d3=>{_0x4e3edc[_0x4ea7('0x7')]()&&(_0xdcfb38(),_0x3c80d3[_0x4ea7('0x14')]());},{'priority':_0x4ea7('0x2e')}),this['_editorAnnotations']['add'](_0x4e3edc);}[_0x4ea7('0x24')](_0x1c37f7){this[_0x4ea7('0x15')](_0x1c37f7),this['_editorAnnotations'][_0x4ea7('0x0')](_0x1c37f7);}}
23
+ const _0x58e7=['attach','pluginName','widesidebar-attach-already-attached','addAnnotation','ready','wideSidebar','get','stopListening','activeAnnotation','annotations','rearrange','getOrderedSelectedAnnotations','high','focus','widesidebar-detach-not-attached','init','remove','resize','container','register','from','context','_detachFromContainer','_editorAnnotations','detach','removeEventListener','add','refresh','plugins','_integrateWithEditorAnnotations','_destroyEditorAnnotationsIntegration','EditorAnnotations','destroy','switchTo','setActiveAnnotation','listenTo','off','ck-sidebar--wide','isAttached','_activeAnnotation','has','editors','change:container','blur','cancel','_attachToContainer','_refreshPositioningDebounced','hasDomSelection','refreshPositioning','requires','addEventListener','updateTargetRect'];(function(_0x4ed35f,_0x58e7a1){const _0x6f21b8=function(_0x386191){while(--_0x386191){_0x4ed35f['push'](_0x4ed35f['shift']());}};_0x6f21b8(++_0x58e7a1);}(_0x58e7,0x1af));const _0x6f21=function(_0x4ed35f,_0x58e7a1){_0x4ed35f=_0x4ed35f-0x0;let _0x6f21b8=_0x58e7[_0x4ed35f];return _0x6f21b8;};import{ContextPlugin as _0x51b7d3,Context as _0x16641c}from'ckeditor5/src/core';import _0x5a98f4 from'./annotationsuis';import _0x242f89 from'./sidebar';import{CKEditorError as _0x11a062,Collection as _0x32c201}from'ckeditor5/src/utils';import{debounce as _0x570303}from'lodash-es';import _0x4c69ce from'./editorannotations';export default class i extends _0x51b7d3{static get[_0x6f21('0x22')](){return[_0x242f89,_0x5a98f4];}static get[_0x6f21('0x26')](){return'WideSidebar';}constructor(_0x4aaef8){super(_0x4aaef8),this['isAttached']=!0x1,this['set'](_0x6f21('0x2d'),null),this[_0x6f21('0x2e')]=null,this[_0x6f21('0x8')]=new _0x32c201(),this['_refreshPositioningDebounced']=_0x570303(()=>{this[_0x6f21('0x2e')][_0x6f21('0x21')]();},0xfa,{'leading':!0x1});}[_0x6f21('0x0')](){const _0x3da126=this[_0x6f21('0x6')][_0x6f21('0xd')][_0x6f21('0x2b')](_0x5a98f4),_0x441f46=this[_0x6f21('0x6')][_0x6f21('0xd')][_0x6f21('0x2b')](_0x242f89);_0x3da126[_0x6f21('0x4')](_0x6f21('0x2a'),this),_0x441f46[_0x6f21('0x3')]&&_0x3da126[_0x6f21('0x12')](_0x6f21('0x2a'));}[_0x6f21('0x13')](_0x197535){if(_0x197535===this[_0x6f21('0x2d')])return;const _0xe342ea=this[_0x6f21('0x6')][_0x6f21('0xd')][_0x6f21('0x2b')](_0x242f89);_0xe342ea[_0x6f21('0x18')]=_0x197535;const _0x414776=this['activeAnnotation'];this[_0x6f21('0x2d')]=_0x197535,_0xe342ea[_0x6f21('0xc')]({'blurredAnnotation':_0x414776,'activatedAnnotation':this[_0x6f21('0x2d')]});}[_0x6f21('0x25')](_0x2e4a27){this[_0x6f21('0x2e')]=_0x2e4a27;const _0x5b3eff=this[_0x6f21('0x6')][_0x6f21('0xd')][_0x6f21('0x2b')](_0x242f89);if(_0x5b3eff['_annotations']=_0x2e4a27,this[_0x6f21('0x17')])throw new _0x11a062(_0x6f21('0x27'),this);this[_0x6f21('0x17')]=!0x0,this[_0x6f21('0x14')](_0x5b3eff,'set:container',()=>{this['detach'](),this[_0x6f21('0x14')](_0x5b3eff,_0x6f21('0x1b'),_0x4f58d4=>{_0x4f58d4[_0x6f21('0x15')](),this[_0x6f21('0x25')](_0x2e4a27);});}),_0x5b3eff[_0x6f21('0x1e')]({'viewClass':_0x6f21('0x16')});const _0x3b2ceb=_0x275856=>{_0x275856[_0x6f21('0x24')](),_0x5b3eff[_0x6f21('0x28')](_0x275856);};for(const _0x187faa of _0x2e4a27)_0x3b2ceb(_0x187faa);this[_0x6f21('0x14')](_0x2e4a27,_0x6f21('0xb'),(_0x213e12,_0x911a77)=>{_0x3b2ceb(_0x911a77);}),this[_0x6f21('0x14')](_0x2e4a27,_0x6f21('0x1'),(_0x31cf33,_0x169884,_0x44a6db)=>{_0x5b3eff[_0x6f21('0x2f')]({'removedAnnotation':_0x169884,'previousAnnotation':_0x2e4a27[_0x6f21('0x2b')](_0x44a6db-0x1),'nextAnnotation':_0x2e4a27['get'](_0x44a6db+0x1)}),_0x169884===this[_0x6f21('0x2d')]&&this[_0x6f21('0x13')](null);},{'priority':_0x6f21('0x31')}),this[_0x6f21('0x14')](_0x2e4a27,_0x6f21('0x32'),(_0x3f314d,_0x2b5352)=>{this[_0x6f21('0x13')](_0x2b5352);}),this[_0x6f21('0x14')](_0x2e4a27,_0x6f21('0x1c'),()=>{this[_0x6f21('0x13')](null);});const _0x466d7b=this['context']instanceof _0x16641c?this[_0x6f21('0x6')][_0x6f21('0x1a')]:new _0x32c201([this['context']]);for(const _0x3f7400 of _0x466d7b)this[_0x6f21('0xe')](_0x3f7400);this[_0x6f21('0x14')](_0x466d7b,_0x6f21('0xb'),(_0x588382,_0x14bf63)=>{this[_0x6f21('0x14')](_0x14bf63,_0x6f21('0x29'),()=>{this[_0x6f21('0xe')](_0x14bf63);});}),this[_0x6f21('0x14')](_0x466d7b,'remove',(_0x3bf2a6,_0x3433c7)=>{_0x3433c7['plugins'][_0x6f21('0x19')](_0x6f21('0x10'))&&this['_destroyEditorAnnotationsIntegration'](_0x3433c7[_0x6f21('0xd')]['get']('EditorAnnotations'));}),window[_0x6f21('0x23')](_0x6f21('0x2'),this[_0x6f21('0x1f')]),this[_0x6f21('0x2e')][_0x6f21('0x21')]();}[_0x6f21('0x9')](){if(!this['isAttached'])throw new _0x11a062(_0x6f21('0x33'),this);this[_0x6f21('0x13')](null);const _0x672170=this[_0x6f21('0x6')][_0x6f21('0xd')][_0x6f21('0x2b')](_0x242f89);_0x672170[_0x6f21('0x7')](this[_0x6f21('0x2e')]),this[_0x6f21('0x2c')](_0x672170),this['stopListening'](this['annotations']),this[_0x6f21('0x6')]instanceof _0x16641c&&this['stopListening'](this[_0x6f21('0x6')][_0x6f21('0x1a')]);for(const _0x21a4ce of Array[_0x6f21('0x5')](this['_editorAnnotations']))this[_0x6f21('0xf')](_0x21a4ce);window[_0x6f21('0xa')](_0x6f21('0x2'),this[_0x6f21('0x1f')]),this[_0x6f21('0x1f')][_0x6f21('0x1d')](),this[_0x6f21('0x2d')]=null,this['isAttached']=!0x1,this[_0x6f21('0x2e')]=null;}[_0x6f21('0x11')](){this[_0x6f21('0x17')]&&this[_0x6f21('0x9')]();}[_0x6f21('0xe')](_0x1d8cce){const _0x54026f=_0x1d8cce[_0x6f21('0xd')]['get'](_0x4c69ce);if(!_0x54026f)return;const _0x3f922c=()=>{const _0x2158a7=_0x54026f[_0x6f21('0x30')]({'annotations':this[_0x6f21('0x2e')],'activeAnnotation':this[_0x6f21('0x2d')]});this['setActiveAnnotation'](_0x2158a7[0x0]||null);};this[_0x6f21('0x14')](_0x54026f,_0x6f21('0xc'),_0x3f922c),this[_0x6f21('0x14')](_0x54026f,_0x6f21('0x1c'),(_0x429d96,{isAnnotationTracked:_0x49732b})=>{this['activeAnnotation']&&_0x49732b(this[_0x6f21('0x2d')])&&this['setActiveAnnotation'](null);}),this[_0x6f21('0x14')](_0x54026f,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x6f21('0x14')](this[_0x6f21('0x2e')],_0x6f21('0x1c'),_0x4ca87f=>{_0x54026f[_0x6f21('0x20')]()&&(_0x3f922c(),_0x4ca87f['stop']());},{'priority':_0x6f21('0x31')}),this[_0x6f21('0x8')]['add'](_0x54026f);}[_0x6f21('0xf')](_0x50ffa7){this[_0x6f21('0x2c')](_0x50ffa7),this['_editorAnnotations']['remove'](_0x50ffa7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x200f=['substr','editor','isObject','$textProxy','change','tableCell','schema','refresh','end','createRange','_itemIsContent','getRanges','model','addMarker','getLastMatchingPosition','isEnabled','getItems','_hasContent','selection','push'];(function(_0x2e3ba5,_0x200f43){const _0x3e4369=function(_0x3637e4){while(--_0x3637e4){_0x2e3ba5['push'](_0x2e3ba5['shift']());}};_0x3e4369(++_0x200f43);}(_0x200f,0x126));const _0x3e43=function(_0x2e3ba5,_0x200f43){_0x2e3ba5=_0x2e3ba5-0x0;let _0x3e4369=_0x200f[_0x2e3ba5];return _0x3e4369;};import{Command as _0x40534c}from'ckeditor5/src/core';import{uid as _0x4e3f04}from'ckeditor5/src/utils';export default class q extends _0x40534c{[_0x3e43('0xd')](){const _0x4ba3c7=this[_0x3e43('0x7')][_0x3e43('0x12')]['document'][_0x3e43('0x4')];for(const _0x19b732 of _0x4ba3c7[_0x3e43('0x11')]())if(this[_0x3e43('0x3')](_0x19b732))return void(this[_0x3e43('0x1')]=!0x0);this[_0x3e43('0x1')]=!0x1;}['execute']({threadId:_0xa0ac01=_0x4e3f04()}={}){const _0x56ec52=this['editor'][_0x3e43('0x12')],_0x3d8593=[];for(const _0x5e5622 of _0x56ec52['document'][_0x3e43('0x4')][_0x3e43('0x11')]())this[_0x3e43('0x3')](_0x5e5622)&&_0x3d8593[_0x3e43('0x5')](this['_trimToContent'](_0x5e5622));_0x56ec52[_0x3e43('0xa')](_0x250825=>{for(const _0x289efa of _0x3d8593){const _0x1ad436=_0x4e3f04()[_0x3e43('0x6')](0x1,0x5),_0x21e26d='comment:'+_0xa0ac01+':'+_0x1ad436;_0x250825[_0x3e43('0x13')](_0x21e26d,{'range':_0x289efa,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3e43('0x3')](_0x29182a){for(const _0x42b12e of _0x29182a[_0x3e43('0x2')]())if(this['_itemIsContent'](_0x42b12e))return!0x0;return!0x1;}[_0x3e43('0x10')](_0x5e14a0){return _0x5e14a0['is'](_0x3e43('0x9'))||this['editor'][_0x3e43('0x12')][_0x3e43('0xc')][_0x3e43('0x8')](_0x5e14a0)&&!_0x5e14a0['is']('element',_0x3e43('0xb'));}['_trimToContent'](_0x323c55){const _0x7529ed=_0x519237=>!this[_0x3e43('0x10')](_0x519237['item']),_0x5934eb=_0x323c55['start']['getLastMatchingPosition'](_0x7529ed),_0x5be96e=_0x323c55[_0x3e43('0xe')][_0x3e43('0x0')](_0x7529ed,{'direction':'backward'});return this[_0x3e43('0x7')][_0x3e43('0x12')][_0x3e43('0xf')](_0x5934eb,_0x5be96e);}}
23
+ const _0x3d5e=['_itemIsContent','refresh','schema','execute','isEnabled','$textProxy','backward','getLastMatchingPosition','substr','model','tableCell','selection','_trimToContent','end','editor','push','createRange','getItems','document','comment:','start','getRanges','item','_hasContent','addMarker','isObject'];(function(_0x393134,_0x3d5e06){const _0x80bdcb=function(_0x3f4da0){while(--_0x3f4da0){_0x393134['push'](_0x393134['shift']());}};_0x80bdcb(++_0x3d5e06);}(_0x3d5e,0x72));const _0x80bd=function(_0x393134,_0x3d5e06){_0x393134=_0x393134-0x0;let _0x80bdcb=_0x3d5e[_0x393134];return _0x80bdcb;};import{Command as _0x26b92d}from'ckeditor5/src/core';import{uid as _0x127e82}from'ckeditor5/src/utils';export default class q extends _0x26b92d{[_0x80bd('0x11')](){const _0x4486fd=this['editor'][_0x80bd('0x19')]['document'][_0x80bd('0x1')];for(const _0x5a1266 of _0x4486fd[_0x80bd('0xb')]())if(this[_0x80bd('0xd')](_0x5a1266))return void(this[_0x80bd('0x14')]=!0x0);this[_0x80bd('0x14')]=!0x1;}[_0x80bd('0x13')]({threadId:_0x4fb7f7=_0x127e82()}={}){const _0x4d2c08=this['editor'][_0x80bd('0x19')],_0x2b3937=[];for(const _0x16ef8c of _0x4d2c08[_0x80bd('0x8')]['selection'][_0x80bd('0xb')]())this['_hasContent'](_0x16ef8c)&&_0x2b3937[_0x80bd('0x5')](this[_0x80bd('0x2')](_0x16ef8c));_0x4d2c08['change'](_0x449e9b=>{for(const _0x45c1db of _0x2b3937){const _0x533df7=_0x127e82()[_0x80bd('0x18')](0x1,0x5),_0x2ae6cb=_0x80bd('0x9')+_0x4fb7f7+':'+_0x533df7;_0x449e9b[_0x80bd('0xe')](_0x2ae6cb,{'range':_0x45c1db,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x80bd('0xd')](_0x4ea92c){for(const _0x50ade5 of _0x4ea92c[_0x80bd('0x7')]())if(this[_0x80bd('0x10')](_0x50ade5))return!0x0;return!0x1;}[_0x80bd('0x10')](_0x86c5c5){return _0x86c5c5['is'](_0x80bd('0x15'))||this[_0x80bd('0x4')][_0x80bd('0x19')][_0x80bd('0x12')][_0x80bd('0xf')](_0x86c5c5)&&!_0x86c5c5['is']('element',_0x80bd('0x0'));}['_trimToContent'](_0x536a7a){const _0x12b34f=_0x4ff565=>!this['_itemIsContent'](_0x4ff565[_0x80bd('0xc')]),_0x2a02e1=_0x536a7a[_0x80bd('0xa')]['getLastMatchingPosition'](_0x12b34f),_0x4bf2d2=_0x536a7a[_0x80bd('0x3')][_0x80bd('0x17')](_0x12b34f,{'direction':_0x80bd('0x16')});return this['editor'][_0x80bd('0x19')][_0x80bd('0x6')](_0x2a02e1,_0x4bf2d2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d7f=['addCommentThread','init','remove','context','length','resolveCommentThread','add','removeCommentThread','activate','focus','resolvedAt','isActive','reopenCommentThread','listenTo','resolvedThreads','getCommentThread','_calculatePosition','highest','has','pluginName','collection'];(function(_0x180c27,_0x1d7f59){const _0x383692=function(_0x4365b9){while(--_0x4365b9){_0x180c27['push'](_0x180c27['shift']());}};_0x383692(++_0x1d7f59);}(_0x1d7f,0xc9));const _0x3836=function(_0x180c27,_0x1d7f59){_0x180c27=_0x180c27-0x0;let _0x383692=_0x1d7f[_0x180c27];return _0x383692;};import{ContextPlugin as _0x56a89b}from'ckeditor5/src/core';import{Collection as _0x2d23d1}from'ckeditor5/src/utils';import _0x3bfa23 from'./commentsrepository';import _0x4599d1 from'../annotations/annotations';export default class p extends _0x56a89b{static get[_0x3836('0x7')](){return'CommentsArchive';}static get['requires'](){return[_0x3bfa23,_0x4599d1];}constructor(_0x1afa98){super(_0x1afa98),this[_0x3836('0x2')]=new _0x2d23d1();}[_0x3836('0xa')](){const _0xb2936d=this[_0x3836('0xc')],_0x148a26=_0xb2936d['plugins']['get'](_0x3bfa23),_0x420f13=_0xb2936d['plugins']['get'](_0x4599d1);this[_0x3836('0x1')](_0x148a26,_0x3836('0x9'),(_0x5bbf34,{threadId:_0xbe4abb,resolvedAt:_0x1bc487,deletedAt:_0x512237})=>{if(_0x1bc487&&!_0x512237){const _0x446941=_0x148a26[_0x3836('0x3')](_0xbe4abb);this[_0x3836('0x2')][_0x3836('0xf')](_0x446941,this['_calculatePosition'](_0x1bc487));}}),this[_0x3836('0x1')](_0x148a26,_0x3836('0xe'),(_0x523570,{threadId:_0x19bf66,resolvedAt:_0x37edd6})=>{const _0x2ccf40=_0x148a26[_0x3836('0x3')](_0x19bf66);this[_0x3836('0x2')]['add'](_0x2ccf40,this[_0x3836('0x4')](_0x37edd6));},{'priority':_0x3836('0x5')}),this[_0x3836('0x1')](_0x148a26,_0x3836('0x0'),(_0x4518a5,{threadId:_0x44bb5a})=>{const _0x539747=_0x148a26[_0x3836('0x3')](_0x44bb5a);this['resolvedThreads'][_0x3836('0x6')](_0x539747)&&this[_0x3836('0x2')][_0x3836('0xb')](_0x539747);},{'priority':_0x3836('0x5')}),this[_0x3836('0x1')](_0x148a26,_0x3836('0x10'),(_0x55ac4e,{threadId:_0x1aaca5})=>{const _0x6f4d7a=_0x148a26[_0x3836('0x3')](_0x1aaca5);this[_0x3836('0x2')][_0x3836('0x6')](_0x6f4d7a)&&this[_0x3836('0x2')][_0x3836('0xb')](_0x6f4d7a);},{'priority':_0x3836('0x5')}),this[_0x3836('0x1')](_0x420f13[_0x3836('0x8')],_0x3836('0x12'),(_0x4feff6,_0x446fc8)=>{_0x446fc8[_0x3836('0x14')]=!0x0,_0x420f13[_0x3836('0x11')](_0x446fc8);});}[_0x3836('0x4')](_0x2baa64){const _0x27cda8=[...this[_0x3836('0x2')]]['findIndex'](_0xc19f0d=>_0xc19f0d[_0x3836('0x13')]<_0x2baa64);return _0x27cda8>-0x1?_0x27cda8:this[_0x3836('0x2')][_0x3836('0xd')];}}
23
+ const _0x4ee6=['focus','resolvedThreads','collection','has','length','activate','addCommentThread','get','highest','reopenCommentThread','listenTo','resolvedAt','resolveCommentThread','plugins','pluginName','CommentsArchive','init','_calculatePosition','remove','getCommentThread','removeCommentThread'];(function(_0x98712e,_0x4ee64f){const _0x574eb7=function(_0x25baaf){while(--_0x25baaf){_0x98712e['push'](_0x98712e['shift']());}};_0x574eb7(++_0x4ee64f);}(_0x4ee6,0x8c));const _0x574e=function(_0x98712e,_0x4ee64f){_0x98712e=_0x98712e-0x0;let _0x574eb7=_0x4ee6[_0x98712e];return _0x574eb7;};import{ContextPlugin as _0x2a8265}from'ckeditor5/src/core';import{Collection as _0x500056}from'ckeditor5/src/utils';import _0x36c2a1 from'./commentsrepository';import _0x29627e from'../annotations/annotations';export default class p extends _0x2a8265{static get[_0x574e('0x0')](){return _0x574e('0x1');}static get['requires'](){return[_0x36c2a1,_0x29627e];}constructor(_0x325041){super(_0x325041),this['resolvedThreads']=new _0x500056();}[_0x574e('0x2')](){const _0x4f46fc=this['context'],_0x9f1a4b=_0x4f46fc[_0x574e('0x14')]['get'](_0x36c2a1),_0xd7a8b7=_0x4f46fc[_0x574e('0x14')][_0x574e('0xe')](_0x29627e);this[_0x574e('0x11')](_0x9f1a4b,_0x574e('0xd'),(_0x1fa79c,{threadId:_0x3a19a2,resolvedAt:_0x445736,deletedAt:_0x23d064})=>{if(_0x445736&&!_0x23d064){const _0x5b0bd1=_0x9f1a4b[_0x574e('0x5')](_0x3a19a2);this[_0x574e('0x8')]['add'](_0x5b0bd1,this['_calculatePosition'](_0x445736));}}),this[_0x574e('0x11')](_0x9f1a4b,_0x574e('0x13'),(_0x59537f,{threadId:_0x59b32e,resolvedAt:_0x20d5df})=>{const _0x38faba=_0x9f1a4b[_0x574e('0x5')](_0x59b32e);this['resolvedThreads']['add'](_0x38faba,this[_0x574e('0x3')](_0x20d5df));},{'priority':_0x574e('0xf')}),this['listenTo'](_0x9f1a4b,_0x574e('0x10'),(_0x2a7089,{threadId:_0x399abb})=>{const _0x5be605=_0x9f1a4b[_0x574e('0x5')](_0x399abb);this[_0x574e('0x8')]['has'](_0x5be605)&&this[_0x574e('0x8')]['remove'](_0x5be605);},{'priority':_0x574e('0xf')}),this[_0x574e('0x11')](_0x9f1a4b,_0x574e('0x6'),(_0x50b439,{threadId:_0x278689})=>{const _0x9f8999=_0x9f1a4b[_0x574e('0x5')](_0x278689);this[_0x574e('0x8')][_0x574e('0xa')](_0x9f8999)&&this['resolvedThreads'][_0x574e('0x4')](_0x9f8999);},{'priority':_0x574e('0xf')}),this[_0x574e('0x11')](_0xd7a8b7[_0x574e('0x9')],_0x574e('0x7'),(_0x3fa54e,_0x2bc396)=>{_0x2bc396['isActive']=!0x0,_0xd7a8b7[_0x574e('0xc')](_0x2bc396);});}[_0x574e('0x3')](_0x4ce2b7){const _0x298983=[...this[_0x574e('0x8')]]['findIndex'](_0x32f4a1=>_0x32f4a1[_0x574e('0x12')]<_0x4ce2b7);return _0x298983>-0x1?_0x298983:this[_0x574e('0x8')][_0x574e('0xb')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5251=['filter','splice','CommentsRepository','Annotations','ck-body','children','_calculatePosition','collection','view','get','find','locale','collaboration.channelId','_createArchiveUIDropdown','stopListening','channelId','focusableElements','length','_pendingThreads','panelView','remove','resolvedAt','_handleAnnotationFocusableElements','focusTracker','contains','findIndex','ck-comments-archive-dropdown','CommentsArchiveUI','commentsArchive','listenTo','set','mainView','config','indexOf','commentsArchiveView','change:isOpen','plugins','isVisible','add','editor','getByInnerView','COMMENTS_ARCHIVE','classList','_threadToController','extendTemplate','_visibleAnnotations','resolvedThreads','requires','position','innerView','annotationViews','init'];(function(_0x3b5404,_0x5251c1){const _0x1560ff=function(_0x526e28){while(--_0x526e28){_0x3b5404['push'](_0x3b5404['shift']());}};_0x1560ff(++_0x5251c1);}(_0x5251,0x15d));const _0x1560=function(_0x3b5404,_0x5251c1){_0x3b5404=_0x3b5404-0x0;let _0x1560ff=_0x5251[_0x3b5404];return _0x1560ff;};import'../../theme/commentsarchive.css';import{Plugin as _0x3c23d1}from'ckeditor5/src/core';import{createDropdown as _0x5672d3,ViewCollection as _0xd76367}from'ckeditor5/src/ui';import _0x195796 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x14a613}from'../utils/common-translations';import _0x1acaf2 from'./ui/view/commentsarchiveview';import _0x3e4ea1 from'./commentsarchive';export default class a extends _0x3c23d1{static get['pluginName'](){return _0x1560('0x2a');}static get[_0x1560('0xa')](){return[_0x3e4ea1];}constructor(_0x454cef){super(_0x454cef),this[_0x1560('0xd')]=new _0xd76367(),this[_0x1560('0x21')]=[];}[_0x1560('0xe')](){this[_0x1560('0x2')]['ui']['componentFactory'][_0x1560('0x1')](_0x1560('0x2b'),()=>this[_0x1560('0x1c')]());const _0x4e4c1e=this[_0x1560('0x2')][_0x1560('0x33')][_0x1560('0x18')](_0x3e4ea1),_0x27fb72=this[_0x1560('0x2')][_0x1560('0x33')][_0x1560('0x18')](_0x1560('0x12')),_0x28aefe=this[_0x1560('0x2')]['plugins'][_0x1560('0x18')](_0x1560('0x11'));this['listenTo'](_0x4e4c1e['resolvedThreads'],_0x1560('0x1'),(_0x26f4a6,_0x38eaef)=>{const _0x527c96=this[_0x1560('0x2')][_0x1560('0x2f')]['get'](_0x1560('0x1b'));if(!_0x527c96||_0x38eaef['channelId']===_0x527c96){const _0x4c5eed=this[_0x1560('0x15')](_0x38eaef[_0x1560('0x24')]),_0x34adec=_0x28aefe['_threadToController'][_0x1560('0x18')](_0x38eaef);if(!_0x34adec)return void this['_pendingThreads']['push']({'thread':_0x38eaef,'position':_0x4c5eed});const _0x3b334d=_0x27fb72[_0x1560('0x3')](_0x34adec[_0x1560('0x17')]);_0x3b334d[_0x1560('0x0')]&&_0x27fb72[_0x1560('0x8')]['remove'](_0x3b334d),this['annotationViews'][_0x1560('0x1')](_0x3b334d['view'],_0x4c5eed);}}),this[_0x1560('0x2c')](_0x27fb72[_0x1560('0x16')],_0x1560('0x1'),(_0xa54ea8,_0x41c890)=>{const _0x2292b5=this[_0x1560('0x21')][_0x1560('0x19')](({thread:_0x12ec06})=>{const _0x40334f=_0x28aefe[_0x1560('0x6')]['get'](_0x12ec06);return _0x40334f&&_0x41c890[_0x1560('0xc')]===_0x40334f[_0x1560('0x17')];});_0x2292b5&&(this[_0x1560('0xd')][_0x1560('0x1')](_0x41c890[_0x1560('0x17')],_0x2292b5[_0x1560('0xb')]),this[_0x1560('0x21')][_0x1560('0x10')](this[_0x1560('0x21')][_0x1560('0x30')](_0x2292b5),0x1));}),this['listenTo'](_0x4e4c1e[_0x1560('0x9')],'remove',(_0xf217b6,_0x3900bb)=>{const _0x3c6e65=this['editor'][_0x1560('0x2f')][_0x1560('0x18')]('collaboration.channelId');if(!_0x3c6e65||_0x3900bb[_0x1560('0x1e')]===_0x3c6e65){const _0x2bfc7f=_0x28aefe[_0x1560('0x6')]['get'](_0x3900bb),_0x2823dd=_0x27fb72[_0x1560('0x3')](_0x2bfc7f[_0x1560('0x17')]);this[_0x1560('0xd')][_0x1560('0x23')](_0x2823dd[_0x1560('0x17')]),this[_0x1560('0x1d')](_0x2823dd[_0x1560('0x1f')]);}});}[_0x1560('0x25')](_0x1170c5,_0x1f657f){for(const _0x59e25d of _0x1f657f[_0x1560('0x1f')])_0x59e25d[_0x1560('0x5')][_0x1560('0x27')]('ck-body')&&_0x1170c5[_0x1560('0x26')]['add'](_0x59e25d);this[_0x1560('0x2c')](_0x1f657f[_0x1560('0x1f')],_0x1560('0x1'),(_0x436281,_0x2e7112)=>{_0x2e7112[_0x1560('0x5')]['contains'](_0x1560('0x13'))&&_0x1170c5['focusTracker'][_0x1560('0x1')](_0x2e7112);}),this[_0x1560('0x2c')](_0x1f657f[_0x1560('0x1f')],_0x1560('0x23'),(_0xec0fda,_0x4454e3)=>{_0x4454e3['classList']['contains'](_0x1560('0x13'))&&_0x1170c5[_0x1560('0x26')]['remove'](_0x4454e3);});}[_0x1560('0x15')](_0x4080bd){const _0x1cbd29=this[_0x1560('0x2')][_0x1560('0x2f')][_0x1560('0x18')](_0x1560('0x1b')),_0x880730=[...this[_0x1560('0x2')][_0x1560('0x33')][_0x1560('0x18')](_0x3e4ea1)[_0x1560('0x9')]][_0x1560('0xf')](_0xba0f24=>_0xba0f24[_0x1560('0x1e')]!==_0x1cbd29)[_0x1560('0x28')](_0x42503e=>_0x42503e[_0x1560('0x24')]<_0x4080bd);return _0x880730>-0x1?_0x880730:this[_0x1560('0xd')][_0x1560('0x20')];}['_createArchiveUIDropdown'](){const _0x4dcc59=this[_0x1560('0x2')],_0x101d4d=this[_0x1560('0x2')]['plugins'][_0x1560('0x18')](_0x1560('0x12')),_0x412fb8=_0x5672d3(_0x4dcc59[_0x1560('0x1a')]);_0x412fb8['buttonView'][_0x1560('0x2d')]({'icon':_0x195796,'label':_0x14a613(_0x4dcc59['locale'],_0x1560('0x4')),'tooltip':!0x0}),_0x412fb8[_0x1560('0x22')][_0x1560('0x7')]({'attributes':{'class':_0x1560('0x29')}}),_0x412fb8['on'](_0x1560('0x32'),(_0x2293d4,_0x4c282c,_0x1f7103)=>{this[_0x1560('0x31')]||(this[_0x1560('0x31')]=new _0x1acaf2(_0x4dcc59[_0x1560('0x1a')],this[_0x1560('0xd')])),_0x1f7103?_0x412fb8[_0x1560('0x22')][_0x1560('0x14')][_0x1560('0x1')](this['commentsArchiveView']):_0x412fb8[_0x1560('0x22')]['children'][_0x1560('0x23')](this[_0x1560('0x31')]);});for(const _0x344f28 of this['annotationViews']){const _0x163bbe=_0x101d4d[_0x1560('0x3')](_0x344f28[_0x1560('0x2e')]);this['_handleAnnotationFocusableElements'](_0x412fb8,_0x163bbe);}return _0x412fb8[_0x1560('0x2c')](this[_0x1560('0xd')],_0x1560('0x1'),(_0x340fb8,_0x42a8ae)=>{const _0x344700=_0x101d4d['getByInnerView'](_0x42a8ae['mainView']);this[_0x1560('0x25')](_0x412fb8,_0x344700);}),_0x412fb8[_0x1560('0x2c')](this[_0x1560('0xd')],'remove',(_0x38e42f,_0xfe5930)=>{const _0x333896=_0x101d4d[_0x1560('0x3')](_0xfe5930[_0x1560('0x2e')]);for(const _0x2d1299 of _0x333896['focusableElements'])_0x2d1299[_0x1560('0x5')]['contains'](_0x1560('0x13'))&&_0x412fb8['focusTracker'][_0x1560('0x23')](_0x2d1299);}),_0x412fb8;}}
23
+ const _0x48d9=['Annotations','view','_visibleAnnotations','collection','position','ck-comments-archive-dropdown','collaboration.channelId','stopListening','plugins','children','requires','get','resolvedThreads','_calculatePosition','push','focusableElements','commentsArchiveView','config','splice','find','isVisible','resolvedAt','add','set','annotationViews','_pendingThreads','classList','getByInnerView','mainView','length','panelView','focusTracker','remove','_handleAnnotationFocusableElements','ck-body','_threadToController','contains','editor','componentFactory','listenTo','locale'];(function(_0x33081f,_0x48d923){const _0x12a75f=function(_0x5dbc98){while(--_0x5dbc98){_0x33081f['push'](_0x33081f['shift']());}};_0x12a75f(++_0x48d923);}(_0x48d9,0x13a));const _0x12a7=function(_0x33081f,_0x48d923){_0x33081f=_0x33081f-0x0;let _0x12a75f=_0x48d9[_0x33081f];return _0x12a75f;};import'../../theme/commentsarchive.css';import{Plugin as _0x5ab657}from'ckeditor5/src/core';import{createDropdown as _0x11a716,ViewCollection as _0x4306f4}from'ckeditor5/src/ui';import _0x56002d from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x144055}from'../utils/common-translations';import _0x329072 from'./ui/view/commentsarchiveview';import _0xe927ef from'./commentsarchive';export default class a extends _0x5ab657{static get['pluginName'](){return'CommentsArchiveUI';}static get[_0x12a7('0x18')](){return[_0xe927ef];}constructor(_0x12115a){super(_0x12115a),this[_0x12a7('0x26')]=new _0x4306f4(),this[_0x12a7('0x27')]=[];}['init'](){this['editor']['ui'][_0x12a7('0xb')]['add']('commentsArchive',()=>this['_createArchiveUIDropdown']());const _0x41ef73=this['editor'][_0x12a7('0x16')][_0x12a7('0x19')](_0xe927ef),_0x49b136=this[_0x12a7('0xa')][_0x12a7('0x16')][_0x12a7('0x19')](_0x12a7('0xe')),_0x1993bb=this[_0x12a7('0xa')][_0x12a7('0x16')][_0x12a7('0x19')]('CommentsRepository');this[_0x12a7('0xc')](_0x41ef73[_0x12a7('0x1a')],_0x12a7('0x24'),(_0x224424,_0x26269f)=>{const _0x25407f=this[_0x12a7('0xa')][_0x12a7('0x1f')][_0x12a7('0x19')](_0x12a7('0x14'));if(!_0x25407f||_0x26269f['channelId']===_0x25407f){const _0x196bc3=this['_calculatePosition'](_0x26269f[_0x12a7('0x23')]),_0x34605b=_0x1993bb[_0x12a7('0x8')][_0x12a7('0x19')](_0x26269f);if(!_0x34605b)return void this[_0x12a7('0x27')][_0x12a7('0x1c')]({'thread':_0x26269f,'position':_0x196bc3});const _0x45e36d=_0x49b136[_0x12a7('0x0')](_0x34605b[_0x12a7('0xf')]);_0x45e36d[_0x12a7('0x22')]&&_0x49b136[_0x12a7('0x10')]['remove'](_0x45e36d),this[_0x12a7('0x26')]['add'](_0x45e36d[_0x12a7('0xf')],_0x196bc3);}}),this[_0x12a7('0xc')](_0x49b136[_0x12a7('0x11')],_0x12a7('0x24'),(_0x1b4d76,_0x3e7ee6)=>{const _0x5caa1a=this[_0x12a7('0x27')][_0x12a7('0x21')](({thread:_0x49958a})=>{const _0x52a954=_0x1993bb[_0x12a7('0x8')][_0x12a7('0x19')](_0x49958a);return _0x52a954&&_0x3e7ee6['innerView']===_0x52a954[_0x12a7('0xf')];});_0x5caa1a&&(this['annotationViews'][_0x12a7('0x24')](_0x3e7ee6['view'],_0x5caa1a[_0x12a7('0x12')]),this['_pendingThreads'][_0x12a7('0x20')](this['_pendingThreads']['indexOf'](_0x5caa1a),0x1));}),this[_0x12a7('0xc')](_0x41ef73[_0x12a7('0x1a')],'remove',(_0x4d3a78,_0x58efff)=>{const _0x1f6585=this[_0x12a7('0xa')][_0x12a7('0x1f')][_0x12a7('0x19')](_0x12a7('0x14'));if(!_0x1f6585||_0x58efff['channelId']===_0x1f6585){const _0x232f98=_0x1993bb[_0x12a7('0x8')][_0x12a7('0x19')](_0x58efff),_0x43ccbf=_0x49b136[_0x12a7('0x0')](_0x232f98['view']);this['annotationViews'][_0x12a7('0x5')](_0x43ccbf['view']),this[_0x12a7('0x15')](_0x43ccbf[_0x12a7('0x1d')]);}});}[_0x12a7('0x6')](_0x29b229,_0x46f5e2){for(const _0x16bba5 of _0x46f5e2['focusableElements'])_0x16bba5[_0x12a7('0x28')]['contains']('ck-body')&&_0x29b229['focusTracker'][_0x12a7('0x24')](_0x16bba5);this[_0x12a7('0xc')](_0x46f5e2[_0x12a7('0x1d')],'add',(_0x34830c,_0x3d0a17)=>{_0x3d0a17[_0x12a7('0x28')]['contains'](_0x12a7('0x7'))&&_0x29b229[_0x12a7('0x4')][_0x12a7('0x24')](_0x3d0a17);}),this[_0x12a7('0xc')](_0x46f5e2['focusableElements'],'remove',(_0x472d73,_0x4b16cb)=>{_0x4b16cb[_0x12a7('0x28')][_0x12a7('0x9')]('ck-body')&&_0x29b229[_0x12a7('0x4')][_0x12a7('0x5')](_0x4b16cb);});}[_0x12a7('0x1b')](_0x20cb21){const _0x3e3867=this[_0x12a7('0xa')][_0x12a7('0x1f')][_0x12a7('0x19')](_0x12a7('0x14')),_0x1dc8b0=[...this[_0x12a7('0xa')]['plugins']['get'](_0xe927ef)[_0x12a7('0x1a')]]['filter'](_0x3e1faa=>_0x3e1faa['channelId']!==_0x3e3867)['findIndex'](_0x1255ef=>_0x1255ef[_0x12a7('0x23')]<_0x20cb21);return _0x1dc8b0>-0x1?_0x1dc8b0:this[_0x12a7('0x26')][_0x12a7('0x2')];}['_createArchiveUIDropdown'](){const _0x10a8aa=this[_0x12a7('0xa')],_0x2a808f=this['editor'][_0x12a7('0x16')]['get'](_0x12a7('0xe')),_0xda22af=_0x11a716(_0x10a8aa[_0x12a7('0xd')]);_0xda22af['buttonView'][_0x12a7('0x25')]({'icon':_0x56002d,'label':_0x144055(_0x10a8aa['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0xda22af[_0x12a7('0x3')]['extendTemplate']({'attributes':{'class':_0x12a7('0x13')}}),_0xda22af['on']('change:isOpen',(_0x12ae04,_0x3fc824,_0x2ec020)=>{this[_0x12a7('0x1e')]||(this['commentsArchiveView']=new _0x329072(_0x10a8aa[_0x12a7('0xd')],this['annotationViews'])),_0x2ec020?_0xda22af[_0x12a7('0x3')][_0x12a7('0x17')][_0x12a7('0x24')](this['commentsArchiveView']):_0xda22af[_0x12a7('0x3')][_0x12a7('0x17')][_0x12a7('0x5')](this[_0x12a7('0x1e')]);});for(const _0x11f5cd of this[_0x12a7('0x26')]){const _0x31d1dc=_0x2a808f[_0x12a7('0x0')](_0x11f5cd[_0x12a7('0x1')]);this[_0x12a7('0x6')](_0xda22af,_0x31d1dc);}return _0xda22af[_0x12a7('0xc')](this[_0x12a7('0x26')],_0x12a7('0x24'),(_0x4f1958,_0x42eb80)=>{const _0x4e6c88=_0x2a808f[_0x12a7('0x0')](_0x42eb80[_0x12a7('0x1')]);this['_handleAnnotationFocusableElements'](_0xda22af,_0x4e6c88);}),_0xda22af[_0x12a7('0xc')](this[_0x12a7('0x26')],'remove',(_0x5eb7e3,_0xb0e1b7)=>{const _0x5d0d70=_0x2a808f[_0x12a7('0x0')](_0xb0e1b7[_0x12a7('0x1')]);for(const _0x564fe6 of _0x5d0d70['focusableElements'])_0x564fe6['classList']['contains'](_0x12a7('0x7'))&&_0xda22af[_0x12a7('0x4')][_0x12a7('0x5')](_0x564fe6);}),_0xda22af;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7461=['updateMarker','document','_threadToController','markerToHighlight','config','reopen','editor','push','attachTo','markerName','editing','_handleMarkerAddAndRemove','change:activeMarker','fetchCommentThread','high','markers','$textProxy','add','rootName','for','ready','get','registerAnnotation','hasCommentThread','ck-comment-marker--active','then','map','setContext','start','change','_reconvertMarkers','text','comment','listenTo','getAllMarkersForId','getByInnerView','activeMarker','differ','hasDomSelection','affectsData','ck-comment-marker','upcast','isEqual','_attachResolvedThread','getWalker','editingDowncast','_threads','filter','model','end','newRange','low','_getTextContext','set','addMarker:','state','root','length','markerToData','isLocal','hasMarkerForId','reconvertMarker','elementToElement','createPositionBefore','addComment','plugins','context','delete','_initializeMarkerConverters','resolve','isThreadsLoadingPaused','substring','_attachMarkerToThread','registerPostFixer','change:isReadOnly','focus','collaboration.channelId','once','getAttribute','change:isThreadsLoadingPaused','has','_attachedThreads','consumable','data','scrollToThreadMarker','from','dataToMarker','isResolved','createElement','isCollapsed','item','removeCommentThread','getItems','managedUsingOperations','dataDowncast','_removedThread','getChangedMarkers','schema','_autoResolvedThreads','_getTargetForId','conversion','$graveyard','_handleThreadMarker','_hasTargetInContent','destroy','removeMarker','isObject','comment:','render','getCommentThread','init','addCommentThread','view','requires','enqueueChange','ignoreResolvedComments'];(function(_0x5ab515,_0x74615){const _0x161d3f=function(_0xea2917){while(--_0xea2917){_0x5ab515['push'](_0x5ab515['shift']());}};_0x161d3f(++_0x74615);}(_0x7461,0x1e1));const _0x161d=function(_0x5ab515,_0x74615){_0x5ab515=_0x5ab515-0x0;let _0x161d3f=_0x7461[_0x5ab515];return _0x161d3f;};import{Plugin as _0x28bcd5}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x18e60a}from'ckeditor5/src/utils';import _0x9178b1 from'./commentsrepository';import _0x201cbd from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4c8d3a}from'ckeditor5-collaboration/src/collaboration-core';import _0x4523d7 from'../annotations/editorannotations';import _0x3b737d from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x53cf7d from'./integrations/importword';import _0x3231e8 from'../annotations/annotations';export default class r extends _0x28bcd5{static get[_0x161d('0x60')](){return[_0x9178b1,_0x4523d7,_0x3b737d,_0x53cf7d];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x3f64eb){super(_0x3f64eb),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this[_0x161d('0x24')](_0x161d('0x35'),!0x0),_0x3f64eb[_0x161d('0x42')][_0x161d('0x3c')](_0x161d('0x3'),()=>this[_0x161d('0x35')]=!0x1),this['set'](_0x161d('0x13'),null),this['on'](_0x161d('0x6f'),(_0x4d8d07,_0x12f569,_0x3203b0,_0x2017b7)=>{const _0x13291c=_0x3203b0?tt(_0x3203b0)['id']:null;if(_0x3f64eb[_0x161d('0x1f')][_0x161d('0xc')](()=>{if(_0x13291c){const _0x2f5a16=this[_0x161d('0x11')](_0x13291c);for(const _0x33fce9 of _0x2f5a16)_0x3f64eb[_0x161d('0x6d')][_0x161d('0x2c')](_0x33fce9);}if(_0x2017b7){const {id:_0x2211c4}=tt(_0x2017b7),_0x22f949=this[_0x161d('0x11')](_0x2211c4);for(const _0xa0daa5 of _0x22f949)_0x3f64eb[_0x161d('0x6d')][_0x161d('0x2c')](_0xa0daa5);}}),_0x13291c){const _0x2773da=_0x3f64eb[_0x161d('0x30')][_0x161d('0x4')](_0x9178b1)[_0x161d('0x5c')](_0x13291c);_0x2773da&&_0x2773da[_0x161d('0x46')]&&this[_0x161d('0x43')](_0x13291c);}}),this['_attachedThreads']=new Map();}[_0x161d('0x5d')](){const _0x6fd026=this[_0x161d('0x69')],_0x29460e=_0x6fd026['plugins'][_0x161d('0x4')](_0x9178b1),_0x37e14a=_0x6fd026[_0x161d('0x67')][_0x161d('0x4')](_0x161d('0x3b'));_0x6fd026['commands']['add'](_0x161d('0x5e'),new _0x201cbd(_0x6fd026)),this[_0x161d('0x10')](_0x6fd026,_0x161d('0x39'),(_0x718ad7,_0x2c302c,_0x44e851)=>{_0x29460e['switchReadOnly'](_0x44e851,_0x6fd026[_0x161d('0x67')]['get'](_0x161d('0x3b')));}),this[_0x161d('0x10')](_0x29460e,Z(_0x161d('0x5e'),_0x37e14a),(_0x283b89,{threadId:_0x526789})=>{const _0x35cb15=this[_0x161d('0x69')][_0x161d('0x30')][_0x161d('0x4')](_0x9178b1)['getCommentThread'](_0x526789);_0x35cb15&&_0x35cb15[_0x161d('0x46')]&&this[_0x161d('0x1a')](_0x526789);}),this[_0x161d('0x10')](_0x29460e,Z(_0x161d('0x4a'),_0x37e14a),(_0x37bdde,{threadId:_0x1c2da4})=>{_0x6fd026[_0x161d('0x1f')][_0x161d('0x61')]({'isUndoable':!0x1},_0x13b17b=>{const _0x171750=this[_0x161d('0x11')](_0x1c2da4);this[_0x161d('0x40')][_0x161d('0x32')](_0x1c2da4),this['_removedThread']=_0x1c2da4;for(const _0xc56f46 of _0x171750)_0x13b17b[_0x161d('0x58')](_0xc56f46);}),this[_0x161d('0x4e')]=null;},{'priority':_0x161d('0x71')}),this[_0x161d('0x10')](_0x29460e,Z('resolveCommentThread',_0x37e14a),(_0x13ae57,{threadId:_0x2de28b})=>{this[_0x161d('0x1a')](_0x2de28b),this[_0x161d('0xd')](_0x2de28b),this['editor'][_0x161d('0x6d')][_0x161d('0x5f')][_0x161d('0x15')]&&this[_0x161d('0x69')][_0x161d('0x6d')][_0x161d('0x5f')][_0x161d('0x3a')]();},{'priority':'low'}),this[_0x161d('0x10')](_0x29460e,Z('reopenCommentThread',_0x37e14a),(_0x3e28bf,{threadId:_0x104886})=>{this[_0x161d('0xd')](_0x104886);},{'priority':_0x161d('0x22')}),this[_0x161d('0x10')](_0x29460e,Z(_0x161d('0x2f'),_0x37e14a),(_0x55f552,{threadId:_0x46f91c,isFromAdapter:_0x3d72d8})=>{const _0x1ed309=this[_0x161d('0x11')](_0x46f91c);if(_0x3d72d8||0x0==_0x1ed309[_0x161d('0x28')]||!_0x29460e[_0x161d('0x6')](_0x46f91c))return;0x1===_0x29460e[_0x161d('0x5c')](_0x46f91c)[_0x161d('0x28')]&&_0x6fd026[_0x161d('0x1f')][_0x161d('0x61')]({'isUndoable':!0x1},_0x2e3aae=>{for(const _0x466b97 of _0x1ed309)_0x2e3aae[_0x161d('0x63')](_0x466b97,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x161d('0x33')](),this[_0x161d('0x6e')]();}['destroy'](){const _0x3bfe42=this['editor']['plugins'][_0x161d('0x4')](_0x9178b1),_0x2bad34=this[_0x161d('0x69')][_0x161d('0x67')][_0x161d('0x4')]('collaboration.channelId');for(const _0x4bb32e of _0x3bfe42['getCommentThreads']({'channelId':_0x2bad34}))_0x3bfe42['_detachCommentThread'](_0x4bb32e['id']),_0x3bfe42[_0x161d('0x1d')][_0x161d('0x32')](_0x4bb32e['id']);super[_0x161d('0x57')]();}[_0x161d('0x2b')](_0x5e6e78){return this[_0x161d('0x11')](_0x5e6e78)[_0x161d('0x28')]>0x0;}['getAllMarkersForId'](_0x4bb6f9){return Array['from'](this[_0x161d('0x40')][_0x161d('0x4')](_0x4bb6f9)||[])[_0x161d('0x9')](_0xffc1f2=>this[_0x161d('0x69')][_0x161d('0x1f')]['markers']['get'](_0xffc1f2))[_0x161d('0x1e')](_0x52bdda=>_0x52bdda);}[_0x161d('0x43')](_0x1a1458){const _0x4a5cd9=this[_0x161d('0x52')](_0x1a1458);_0x4a5cd9&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x161d('0x13')])['id']===_0x1a1458&&_0x18e60a({'target':_0x4a5cd9[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3b5297){this[_0x161d('0x69')]['model']['change'](()=>{for(const _0x15d86d of this[_0x161d('0x11')](_0x3b5297))this[_0x161d('0x69')]['editing']['reconvertMarker'](_0x15d86d);});}['_attachResolvedThread'](_0x2177ae){const _0x37d468=this[_0x161d('0x69')][_0x161d('0x30')][_0x161d('0x4')](_0x9178b1),_0xe76640=this[_0x161d('0x69')]['plugins'][_0x161d('0x4')](_0x4523d7),_0x12cd52=_0x37d468[_0x161d('0x5c')](_0x2177ae);if(!this[_0x161d('0x40')][_0x161d('0x3f')](_0x2177ae)){const _0x96ca02=_0x12cd52[_0x161d('0x6b')](()=>this[_0x161d('0x52')](_0x12cd52['id']));_0xe76640['registerAnnotation'](_0x96ca02),this['_attachedThreads'][_0x161d('0x24')](_0x2177ae,new Set()),_0x12cd52['_hasTargetInContent']=!0x1;}}[_0x161d('0x33')](){const _0x2062c0=this[_0x161d('0x69')];_0x2062c0[_0x161d('0x53')][_0x161d('0x2')](_0x161d('0x1c'))[_0x161d('0x66')]({'model':'comment','view':(_0x2d0394,_0x24e171)=>{const {id:_0xaea32}=tt(_0x2d0394[_0x161d('0x6c')]),_0x5aad8c=_0x2062c0[_0x161d('0x30')][_0x161d('0x4')](_0x9178b1)['getCommentThread'](_0xaea32),_0x229e75=this[_0x161d('0x13')]&&tt(this['activeMarker'])['id']===_0xaea32;if(_0x5aad8c&&_0x5aad8c['isResolved']&&!_0x229e75&&_0x2d0394[_0x161d('0x49')])return _0x24e171['consumable']['consume'](_0x2d0394[_0x161d('0x49')],_0x161d('0x25')+_0x2d0394[_0x161d('0x6c')]),_0x24e171[_0x161d('0x41')]['consume'](_0x2d0394['item'],'removeMarker:'+_0x2d0394[_0x161d('0x6c')]),{'classes':[]};const _0x464e7f=[_0x161d('0x17')];return _0x229e75&&_0x464e7f[_0x161d('0x6a')](_0x161d('0x7')),{'classes':_0x464e7f,'attributes':{'data-comment':_0xaea32}};}}),_0x2062c0[_0x161d('0x53')][_0x161d('0x2')](_0x161d('0x4d'))[_0x161d('0x29')]({'model':_0x161d('0xf'),'view':(_0x40b10d,{options:_0x1cd623})=>{const _0x100682=_0x2062c0[_0x161d('0x30')][_0x161d('0x4')](_0x9178b1),_0x9c6c66=_0x2062c0[_0x161d('0x1f')][_0x161d('0x72')]['get'](_0x40b10d),{id:_0x231d23,part:_0x4f541b}=tt(_0x40b10d);if(_0x9c6c66&&!_0x9c6c66[_0x161d('0x16')])return null;if(_0x1cd623[_0x161d('0x62')]){const _0x105ee2=_0x100682[_0x161d('0x5c')](_0x231d23);if(_0x105ee2&&_0x105ee2[_0x161d('0x46')])return null;}return{'group':_0x161d('0xf'),'name':_0x4f541b?_0x231d23+':'+_0x4f541b:_0x231d23};}}),_0x2062c0[_0x161d('0x53')]['for'](_0x161d('0x18'))[_0x161d('0x2d')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x34021c,{writer:_0x4785a3})=>_0x4785a3[_0x161d('0x47')]('$marker',{'data-name':_0x161d('0x5a')+_0x34021c[_0x161d('0x3d')]('id')})}),_0x2062c0[_0x161d('0x53')][_0x161d('0x2')]('upcast')[_0x161d('0x45')]({'view':'comment'});}[_0x161d('0x6e')](){const _0x4f2661=this[_0x161d('0x69')],_0x2dd8cd=_0x4f2661[_0x161d('0x30')][_0x161d('0x4')](_0x9178b1),_0x5d01e7=new Set(),_0x251e06=new Set();_0x4f2661['model'][_0x161d('0x64')][_0x161d('0x38')](_0x388b98=>{let _0xb52b4d=!0x1;for(const {name:_0x25bbfb,data:_0x341975}of _0x4f2661['model'][_0x161d('0x64')][_0x161d('0x14')][_0x161d('0x4f')]()){const {group:_0x59befd,id:_0x588f14}=tt(_0x25bbfb);let _0x1ecd0a=_0x341975[_0x161d('0x21')];if(_0x161d('0xf')!==_0x59befd||!_0x1ecd0a)continue;const _0x25439a=_0x161d('0x54')===_0x1ecd0a[_0x161d('0x27')][_0x161d('0x1')];_0x25439a||(_0x1ecd0a=ot(_0x1ecd0a,_0x4f2661[_0x161d('0x1f')]),!_0x1ecd0a||_0x1ecd0a[_0x161d('0x48')]||!_0x341975[_0x161d('0x21')]||_0x1ecd0a[_0x161d('0x19')](_0x341975[_0x161d('0x21')]))?_0x4f2661[_0x161d('0x1f')]['hasContent'](_0x1ecd0a)&&!_0x25439a?this[_0x161d('0x35')]?_0x5d01e7['add'](_0x25bbfb):this['_handleThreadMarker'](_0x25bbfb,_0x588f14):(_0x251e06[_0x161d('0x0')](_0x25bbfb),_0x5d01e7[_0x161d('0x32')](_0x25bbfb),_0x388b98['removeMarker'](_0x25bbfb),_0xb52b4d=!0x0):(_0x388b98['updateMarker'](_0x25bbfb,{'range':_0x1ecd0a}),_0xb52b4d=!0x0);}return _0xb52b4d;}),this['on'](_0x161d('0x3e'),(_0x191f2e,_0x3fd435,_0x5cdc1b)=>{if(!_0x5cdc1b&&_0x5d01e7['size'])for(const _0x58f628 of _0x5d01e7){const {id:_0x24b8ba}=tt(_0x58f628);_0x5d01e7[_0x161d('0x32')](_0x58f628),_0x4f2661[_0x161d('0x1f')][_0x161d('0x72')][_0x161d('0x4')](_0x58f628)&&this[_0x161d('0x55')](_0x58f628,_0x24b8ba);}}),this[_0x161d('0x10')](_0x4f2661[_0x161d('0x1f')]['document'],_0x161d('0xc'),(_0x4a9990,_0xccf25d)=>{for(const {name:_0x24c871,data:{newRange:_0x26bc87}}of _0x4f2661[_0x161d('0x1f')][_0x161d('0x64')][_0x161d('0x14')][_0x161d('0x4f')]()){const {group:_0x541379,id:_0x59701f}=tt(_0x24c871);if(_0x161d('0xf')!==_0x541379)continue;const _0x20dde6=_0x2dd8cd['getCommentThread'](_0x59701f),_0xbe78d8=this[_0x161d('0x2b')](_0x59701f);_0x20dde6&&(_0x20dde6[_0x161d('0x56')]||_0x4f2661['editing'][_0x161d('0x5f')][_0x161d('0x3c')](_0x161d('0x5b'),()=>{const _0x45fe23=_0x4f2661['plugins'][_0x161d('0x4')](_0x3231e8),_0x6c2647=_0x2dd8cd[_0x161d('0x65')]['get'](_0x20dde6)[_0x161d('0x5f')];_0x45fe23[_0x161d('0x12')](_0x6c2647)['refreshVisibility']();},{'priority':_0x161d('0x22')}),_0x20dde6[_0x161d('0x56')]=_0xbe78d8||!!_0x26bc87),_0x26bc87||(_0x251e06[_0x161d('0x0')](_0x24c871),_0x5d01e7[_0x161d('0x32')](_0x24c871),this[_0x161d('0x40')][_0x161d('0x3f')](_0x59701f)&&this['_attachedThreads'][_0x161d('0x4')](_0x59701f)['delete'](_0x24c871));}if(_0xccf25d[_0x161d('0x2a')])for(const _0x3b8d5c of _0x251e06){const {id:_0x3838da}=tt(_0x3b8d5c),_0x1eafa4=_0x2dd8cd[_0x161d('0x5c')](_0x3838da),_0x2e7a9e=this['hasMarkerForId'](_0x3838da);_0x5d01e7[_0x161d('0x32')](_0x3b8d5c),!_0x1eafa4||_0x2e7a9e||_0x1eafa4[_0x161d('0x46')]||this['_removedThread']===_0x3838da||(this['_autoResolvedThreads'][_0x161d('0x0')](_0x1eafa4),_0x1eafa4[_0x161d('0x34')]());}_0x251e06['clear']();});}['_getTargetForId'](_0x31d875){const _0x3bf503=this[_0x161d('0x69')],_0x16a29b=this[_0x161d('0x11')](_0x31d875);return _0x4c8d3a(_0x3bf503[_0x161d('0x6d')],_0x16a29b);}[_0x161d('0x23')](_0x48f5de){const _0x417d95=this[_0x161d('0x11')](_0x48f5de);let _0x1f7a76='',_0x4e2203=!0x1;for(const _0x433063 of _0x417d95){const _0x3dd39c=_0x433063['getRange']();for(const _0x384f36 of Array[_0x161d('0x44')](_0x3dd39c[_0x161d('0x4b')]()))_0x384f36['is'](_0x161d('0x73'))?(_0x1f7a76&&_0x4e2203&&(_0x1f7a76+='\x20',_0x4e2203=!0x1),_0x1f7a76+=_0x384f36[_0x161d('0x42')]):_0x4e2203=!0x0;_0x4e2203=!0x0;}return _0x1f7a76[_0x161d('0x36')](0x0,0x96);}[_0x161d('0x37')](_0x297061,_0x25aaae){const _0x3f7d93=this['editor'],_0x49e43e=_0x3f7d93[_0x161d('0x30')][_0x161d('0x4')](_0x9178b1);let _0x4c4943=_0x49e43e['getCommentThread'](_0x25aaae);if(this[_0x161d('0x40')][_0x161d('0x3f')](_0x25aaae)){const _0x55fc9f=this[_0x161d('0x40')][_0x161d('0x4')](_0x25aaae);_0x55fc9f[_0x161d('0x3f')](_0x297061)||_0x55fc9f[_0x161d('0x0')](_0x297061);}const _0x471736=_0x3f7d93[_0x161d('0x67')][_0x161d('0x4')](_0x161d('0x3b')),_0x4fca06=_0x3f7d93[_0x161d('0x30')][_0x161d('0x4')](_0x4523d7);if(_0x4c4943&&_0x4c4943[_0x161d('0x46')]&&this[_0x161d('0x51')]['has'](_0x4c4943)&&(this[_0x161d('0x51')][_0x161d('0x32')](_0x4c4943),_0x4c4943[_0x161d('0x68')]()),this[_0x161d('0x40')][_0x161d('0x3f')](_0x25aaae))return _0x4c4943;return this[_0x161d('0x40')]['set'](_0x25aaae,new Set([_0x297061])),(!this[_0x161d('0x11')](_0x25aaae)[0x0][_0x161d('0x4c')]?_0x3f7d93[_0x161d('0x6d')][_0x161d('0x5f')][_0x161d('0x3c')]('render',()=>{const _0x1d745b=_0x3f7d93[_0x161d('0x30')][_0x161d('0x4')](_0x3231e8);_0x4c4943=_0x49e43e['openNewCommentThread']({'channelId':_0x471736,'threadId':_0x25aaae,'target':()=>this[_0x161d('0x52')](_0x25aaae),'context':{'type':_0x161d('0xe'),'value':this['_getTextContext'](_0x25aaae)}});const _0x30f1d3=_0x49e43e[_0x161d('0x65')][_0x161d('0x4')](_0x4c4943)[_0x161d('0x5f')],_0xe003d8=_0x1d745b[_0x161d('0x12')](_0x30f1d3);_0xe003d8&&_0x4fca06[_0x161d('0x5')](_0xe003d8);},{'priority':_0x161d('0x22')}):_0x49e43e[_0x161d('0x70')]({'channelId':_0x471736,'threadId':_0x25aaae})[_0x161d('0x8')](_0x35591a=>{if('destroyed'!==_0x3f7d93[_0x161d('0x26')]){if(_0x4c4943=_0x35591a,_0x4c4943){const _0x3e8b8c=_0x4c4943[_0x161d('0x6b')](()=>this[_0x161d('0x52')](_0x25aaae));_0x4fca06[_0x161d('0x5')](_0x3e8b8c),_0x4c4943[_0x161d('0x46')]&&this['_reconvertMarkers'](_0x25aaae);}else{const _0x533683=this[_0x161d('0x11')](_0x25aaae);_0x3f7d93[_0x161d('0x1f')][_0x161d('0xc')](_0x2da32a=>{for(const _0x4584a7 of _0x533683)_0x2da32a[_0x161d('0x58')](_0x4584a7);});}}}),_0x4c4943);}[_0x161d('0x55')](_0x4c3713,_0x2162cd){const _0x436799=this[_0x161d('0x37')](_0x4c3713,_0x2162cd);_0x436799&&!_0x436799[_0x161d('0x31')]&&_0x436799[_0x161d('0xa')]({'type':_0x161d('0xe'),'value':this['_getTextContext'](_0x2162cd)});}}function Z(_0x2daf28,_0x355ff6){return _0x355ff6?_0x2daf28+':'+_0x355ff6:_0x2daf28;}function tt(_0x42c8dd){const _0x27f242=_0x42c8dd['split'](':');return{'group':_0x27f242[0x0],'id':_0x27f242[0x1],'part':_0x27f242[0x2]};}function ot(_0x533f9a,_0x4f044d){const _0x58916c=_0x4f044d[_0x161d('0x50')],_0x1bd95d=_0x4f044d['createRange'](_0x533f9a[_0x161d('0xb')]);for(const _0x5fc02f of _0x533f9a[_0x161d('0x1b')]()){const {type:_0x1e46d3,item:_0x1256ae,nextPosition:_0x4ca3ae}=_0x5fc02f;if(_0x161d('0xe')===_0x1e46d3||_0x58916c[_0x161d('0x59')](_0x1256ae)){const _0x3b14ca=_0x4f044d[_0x161d('0x2e')](_0x1256ae);_0x1bd95d['isCollapsed']&&(_0x1bd95d[_0x161d('0xb')]=_0x3b14ca),_0x1bd95d[_0x161d('0x20')]=_0x4ca3ae;}}return _0x1bd95d;}
23
+ const _0x5c2c=['registerAnnotation','high','then','_threadToController','comment:','comment','start','split','resolveCommentThread','schema','destroy','from','collaboration.channelId','ignoreResolvedComments','ck-comment-marker','getItems','isResolved','hasMarkerForId','switchReadOnly','get','change:isReadOnly','upcast','activeMarker','markerToHighlight','isThreadsLoadingPaused','markerToData','getCommentThreads','requires','newRange','markers','isCollapsed','updateMarker','rootName','getWalker','has','focus','enqueueChange','plugins','set','substring','editing','clear','getByInnerView','$textProxy','isEqual','add','change','CommentsEditing','item','model','low','once','removeCommentThread','_getTargetForId','_removedThread','push','_detachCommentThread','removeMarker:','getCommentThread','data','destroyed','_reconvertMarkers','_handleMarkerAddAndRemove','_hasTargetInContent','resolve','_attachedThreads','addCommentThread','_attachResolvedThread','getAttribute','createRange','hasContent','getAllMarkersForId','change:isThreadsLoadingPaused','addMarker:','pluginName','fetchCommentThread','_autoResolvedThreads','delete','for','text','reconvertMarker','config','registerPostFixer','_getTextContext','ck-comment-marker--active','init','editor','isObject','view','state','$marker','createElement','differ','root','listenTo','isLocal','dataToMarker','change:activeMarker','_handleThreadMarker','consume','setContext','scrollToThreadMarker','conversion','hasCommentThread','commands','removeMarker','_attachMarkerToThread','end','length','reopenCommentThread','createPositionBefore','context','managedUsingOperations','getChangedMarkers','refreshVisibility','getRange','openNewCommentThread','markerName','dataDowncast','_initializeMarkerConverters','document'];(function(_0x4f74b4,_0x5c2c1e){const _0x3f02e0=function(_0x4a8883){while(--_0x4a8883){_0x4f74b4['push'](_0x4f74b4['shift']());}};_0x3f02e0(++_0x5c2c1e);}(_0x5c2c,0x1b2));const _0x3f02=function(_0x4f74b4,_0x5c2c1e){_0x4f74b4=_0x4f74b4-0x0;let _0x3f02e0=_0x5c2c[_0x4f74b4];return _0x3f02e0;};import{Plugin as _0xf62bda}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3b8b95}from'ckeditor5/src/utils';import _0x5aeffc from'./commentsrepository';import _0x5efacb from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0xea51c7}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f2b50 from'../annotations/editorannotations';import _0x583add from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0xcf9d25 from'./integrations/importword';import _0xa1bf1c from'../annotations/annotations';export default class r extends _0xf62bda{static get[_0x3f02('0x4d')](){return[_0x5aeffc,_0x2f2b50,_0x583add,_0xcf9d25];}static get[_0x3f02('0x3')](){return _0x3f02('0x61');}constructor(_0x22ea5f){super(_0x22ea5f),this[_0x3f02('0x68')]=null,this[_0x3f02('0x5')]=new Set(),this[_0x3f02('0x58')](_0x3f02('0x4a'),!0x0),_0x22ea5f[_0x3f02('0x6d')][_0x3f02('0x65')]('ready',()=>this[_0x3f02('0x4a')]=!0x1),this[_0x3f02('0x58')](_0x3f02('0x48'),null),this['on'](_0x3f02('0x1a'),(_0x482e9e,_0x18664e,_0x360047,_0x450f69)=>{const _0x2ebb7b=_0x360047?tt(_0x360047)['id']:null;if(_0x22ea5f['model'][_0x3f02('0x60')](()=>{if(_0x2ebb7b){const _0x2b5f33=this[_0x3f02('0x0')](_0x2ebb7b);for(const _0xfc1933 of _0x2b5f33)_0x22ea5f['editing'][_0x3f02('0x9')](_0xfc1933);}if(_0x450f69){const {id:_0x272edf}=tt(_0x450f69),_0x1d745c=this['getAllMarkersForId'](_0x272edf);for(const _0x214510 of _0x1d745c)_0x22ea5f[_0x3f02('0x5a')][_0x3f02('0x9')](_0x214510);}}),_0x2ebb7b){const _0x48011a=_0x22ea5f[_0x3f02('0x57')]['get'](_0x5aeffc)['getCommentThread'](_0x2ebb7b);_0x48011a&&_0x48011a[_0x3f02('0x42')]&&this[_0x3f02('0x1e')](_0x2ebb7b);}}),this[_0x3f02('0x73')]=new Map();}[_0x3f02('0xe')](){const _0x296733=this[_0x3f02('0xf')],_0x55cec0=_0x296733[_0x3f02('0x57')][_0x3f02('0x45')](_0x5aeffc),_0x274246=_0x296733[_0x3f02('0xa')][_0x3f02('0x45')](_0x3f02('0x3e'));_0x296733[_0x3f02('0x21')][_0x3f02('0x5f')]('addCommentThread',new _0x5efacb(_0x296733)),this[_0x3f02('0x17')](_0x296733,_0x3f02('0x46'),(_0x1f7757,_0x3c9b5e,_0x56aa59)=>{_0x55cec0[_0x3f02('0x44')](_0x56aa59,_0x296733[_0x3f02('0xa')][_0x3f02('0x45')](_0x3f02('0x3e')));}),this[_0x3f02('0x17')](_0x55cec0,Z(_0x3f02('0x74'),_0x274246),(_0x37cbe5,{threadId:_0x32be19})=>{const _0x2ed1a1=this['editor']['plugins'][_0x3f02('0x45')](_0x5aeffc)[_0x3f02('0x6c')](_0x32be19);_0x2ed1a1&&_0x2ed1a1[_0x3f02('0x42')]&&this[_0x3f02('0x75')](_0x32be19);}),this[_0x3f02('0x17')](_0x55cec0,Z(_0x3f02('0x66'),_0x274246),(_0x2b7fba,{threadId:_0x34ad64})=>{_0x296733[_0x3f02('0x63')][_0x3f02('0x56')]({'isUndoable':!0x1},_0x5d9bc3=>{const _0x1d3bd2=this['getAllMarkersForId'](_0x34ad64);this[_0x3f02('0x73')][_0x3f02('0x6')](_0x34ad64),this[_0x3f02('0x68')]=_0x34ad64;for(const _0x435ecd of _0x1d3bd2)_0x5d9bc3[_0x3f02('0x22')](_0x435ecd);}),this[_0x3f02('0x68')]=null;},{'priority':_0x3f02('0x33')}),this[_0x3f02('0x17')](_0x55cec0,Z(_0x3f02('0x3a'),_0x274246),(_0x1e18ae,{threadId:_0x14ea9c})=>{this[_0x3f02('0x75')](_0x14ea9c),this[_0x3f02('0x6f')](_0x14ea9c),this[_0x3f02('0xf')][_0x3f02('0x5a')][_0x3f02('0x11')]['hasDomSelection']&&this[_0x3f02('0xf')][_0x3f02('0x5a')]['view'][_0x3f02('0x55')]();},{'priority':'low'}),this[_0x3f02('0x17')](_0x55cec0,Z(_0x3f02('0x26'),_0x274246),(_0x3b43b3,{threadId:_0x2a8b35})=>{this[_0x3f02('0x6f')](_0x2a8b35);},{'priority':_0x3f02('0x64')}),this[_0x3f02('0x17')](_0x55cec0,Z('addComment',_0x274246),(_0x23c081,{threadId:_0x9d6148,isFromAdapter:_0x34a6d3})=>{const _0xeac1e=this['getAllMarkersForId'](_0x9d6148);if(_0x34a6d3||0x0==_0xeac1e['length']||!_0x55cec0[_0x3f02('0x20')](_0x9d6148))return;0x1===_0x55cec0['getCommentThread'](_0x9d6148)['length']&&_0x296733[_0x3f02('0x63')][_0x3f02('0x56')]({'isUndoable':!0x1},_0x59e677=>{for(const _0x20e55a of _0xeac1e)_0x59e677[_0x3f02('0x51')](_0x20e55a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3f02('0x64')}),this[_0x3f02('0x30')](),this[_0x3f02('0x70')]();}['destroy'](){const _0x262dcc=this[_0x3f02('0xf')][_0x3f02('0x57')][_0x3f02('0x45')](_0x5aeffc),_0x49d83b=this[_0x3f02('0xf')][_0x3f02('0xa')][_0x3f02('0x45')]('collaboration.channelId');for(const _0x107b18 of _0x262dcc[_0x3f02('0x4c')]({'channelId':_0x49d83b}))_0x262dcc[_0x3f02('0x6a')](_0x107b18['id']),_0x262dcc['_threads'][_0x3f02('0x6')](_0x107b18['id']);super[_0x3f02('0x3c')]();}[_0x3f02('0x43')](_0x1bbb23){return this['getAllMarkersForId'](_0x1bbb23)[_0x3f02('0x25')]>0x0;}[_0x3f02('0x0')](_0x623fe6){return Array[_0x3f02('0x3d')](this[_0x3f02('0x73')][_0x3f02('0x45')](_0x623fe6)||[])['map'](_0xd6330=>this[_0x3f02('0xf')]['model'][_0x3f02('0x4f')][_0x3f02('0x45')](_0xd6330))['filter'](_0x2cba98=>_0x2cba98);}[_0x3f02('0x1e')](_0x57d649){const _0x206b02=this[_0x3f02('0x67')](_0x57d649);_0x206b02&&setTimeout(()=>{this[_0x3f02('0x48')]&&tt(this['activeMarker'])['id']===_0x57d649&&_0x3b8b95({'target':_0x206b02[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3f02('0x6f')](_0x36bb2c){this[_0x3f02('0xf')]['model'][_0x3f02('0x60')](()=>{for(const _0x325c7d of this[_0x3f02('0x0')](_0x36bb2c))this[_0x3f02('0xf')][_0x3f02('0x5a')][_0x3f02('0x9')](_0x325c7d);});}[_0x3f02('0x75')](_0xda8e10){const _0x1298db=this[_0x3f02('0xf')][_0x3f02('0x57')][_0x3f02('0x45')](_0x5aeffc),_0x57334a=this[_0x3f02('0xf')]['plugins']['get'](_0x2f2b50),_0x4f8020=_0x1298db[_0x3f02('0x6c')](_0xda8e10);if(!this[_0x3f02('0x73')][_0x3f02('0x54')](_0xda8e10)){const _0x1ea1bb=_0x4f8020['attachTo'](()=>this[_0x3f02('0x67')](_0x4f8020['id']));_0x57334a[_0x3f02('0x32')](_0x1ea1bb),this['_attachedThreads'][_0x3f02('0x58')](_0xda8e10,new Set()),_0x4f8020[_0x3f02('0x71')]=!0x1;}}['_initializeMarkerConverters'](){const _0x5d810a=this[_0x3f02('0xf')];_0x5d810a[_0x3f02('0x1f')][_0x3f02('0x7')]('editingDowncast')[_0x3f02('0x49')]({'model':_0x3f02('0x37'),'view':(_0x2ce295,_0x40b1a9)=>{const {id:_0xd2d090}=tt(_0x2ce295['markerName']),_0x58ad73=_0x5d810a[_0x3f02('0x57')][_0x3f02('0x45')](_0x5aeffc)[_0x3f02('0x6c')](_0xd2d090),_0x2c82b2=this['activeMarker']&&tt(this[_0x3f02('0x48')])['id']===_0xd2d090;if(_0x58ad73&&_0x58ad73[_0x3f02('0x42')]&&!_0x2c82b2&&_0x2ce295['item'])return _0x40b1a9['consumable'][_0x3f02('0x1c')](_0x2ce295[_0x3f02('0x62')],_0x3f02('0x2')+_0x2ce295[_0x3f02('0x2e')]),_0x40b1a9['consumable'][_0x3f02('0x1c')](_0x2ce295[_0x3f02('0x62')],_0x3f02('0x6b')+_0x2ce295[_0x3f02('0x2e')]),{'classes':[]};const _0x131a12=[_0x3f02('0x40')];return _0x2c82b2&&_0x131a12[_0x3f02('0x69')](_0x3f02('0xd')),{'classes':_0x131a12,'attributes':{'data-comment':_0xd2d090}};}}),_0x5d810a['conversion'][_0x3f02('0x7')](_0x3f02('0x2f'))[_0x3f02('0x4b')]({'model':_0x3f02('0x37'),'view':(_0x5e9601,{options:_0x2f1df1})=>{const _0x44cffb=_0x5d810a[_0x3f02('0x57')]['get'](_0x5aeffc),_0x71d736=_0x5d810a[_0x3f02('0x63')][_0x3f02('0x4f')][_0x3f02('0x45')](_0x5e9601),{id:_0x13ad49,part:_0x2d4d9d}=tt(_0x5e9601);if(_0x71d736&&!_0x71d736['affectsData'])return null;if(_0x2f1df1[_0x3f02('0x3f')]){const _0x1a7c27=_0x44cffb[_0x3f02('0x6c')](_0x13ad49);if(_0x1a7c27&&_0x1a7c27[_0x3f02('0x42')])return null;}return{'group':_0x3f02('0x37'),'name':_0x2d4d9d?_0x13ad49+':'+_0x2d4d9d:_0x13ad49};}}),_0x5d810a[_0x3f02('0x1f')][_0x3f02('0x7')]('upcast')['elementToElement']({'view':{'name':_0x3f02('0x37'),'attributes':{'id':/^\w/}},'model':(_0x29ee58,{writer:_0x46caed})=>_0x46caed[_0x3f02('0x14')](_0x3f02('0x13'),{'data-name':_0x3f02('0x36')+_0x29ee58[_0x3f02('0x76')]('id')})}),_0x5d810a[_0x3f02('0x1f')][_0x3f02('0x7')](_0x3f02('0x47'))[_0x3f02('0x19')]({'view':_0x3f02('0x37')});}['_handleMarkerAddAndRemove'](){const _0x208760=this[_0x3f02('0xf')],_0x8d37bb=_0x208760[_0x3f02('0x57')][_0x3f02('0x45')](_0x5aeffc),_0x243645=new Set(),_0x5a5df7=new Set();_0x208760['model'][_0x3f02('0x31')][_0x3f02('0xb')](_0x1d4328=>{let _0x3d325b=!0x1;for(const {name:_0x2d512e,data:_0x50e037}of _0x208760[_0x3f02('0x63')]['document'][_0x3f02('0x15')]['getChangedMarkers']()){const {group:_0x147fbb,id:_0x3d36f8}=tt(_0x2d512e);let _0x1b859f=_0x50e037[_0x3f02('0x4e')];if(_0x3f02('0x37')!==_0x147fbb||!_0x1b859f)continue;const _0x35f67a='$graveyard'===_0x1b859f[_0x3f02('0x16')][_0x3f02('0x52')];_0x35f67a||(_0x1b859f=ot(_0x1b859f,_0x208760[_0x3f02('0x63')]),!_0x1b859f||_0x1b859f[_0x3f02('0x50')]||!_0x50e037['newRange']||_0x1b859f[_0x3f02('0x5e')](_0x50e037[_0x3f02('0x4e')]))?_0x208760['model'][_0x3f02('0x78')](_0x1b859f)&&!_0x35f67a?this[_0x3f02('0x4a')]?_0x243645[_0x3f02('0x5f')](_0x2d512e):this[_0x3f02('0x1b')](_0x2d512e,_0x3d36f8):(_0x5a5df7[_0x3f02('0x5f')](_0x2d512e),_0x243645[_0x3f02('0x6')](_0x2d512e),_0x1d4328[_0x3f02('0x22')](_0x2d512e),_0x3d325b=!0x0):(_0x1d4328['updateMarker'](_0x2d512e,{'range':_0x1b859f}),_0x3d325b=!0x0);}return _0x3d325b;}),this['on'](_0x3f02('0x1'),(_0x2bdff7,_0x286210,_0x49f332)=>{if(!_0x49f332&&_0x243645['size'])for(const _0x5cec01 of _0x243645){const {id:_0x1f439b}=tt(_0x5cec01);_0x243645[_0x3f02('0x6')](_0x5cec01),_0x208760[_0x3f02('0x63')][_0x3f02('0x4f')]['get'](_0x5cec01)&&this[_0x3f02('0x1b')](_0x5cec01,_0x1f439b);}}),this['listenTo'](_0x208760[_0x3f02('0x63')][_0x3f02('0x31')],_0x3f02('0x60'),(_0x21050c,_0x1de22c)=>{for(const {name:_0x2b1c0b,data:{newRange:_0x271185}}of _0x208760['model'][_0x3f02('0x31')][_0x3f02('0x15')][_0x3f02('0x2a')]()){const {group:_0x45938f,id:_0x4198ec}=tt(_0x2b1c0b);if(_0x3f02('0x37')!==_0x45938f)continue;const _0x28042c=_0x8d37bb['getCommentThread'](_0x4198ec),_0x3fb2da=this[_0x3f02('0x43')](_0x4198ec);_0x28042c&&(_0x28042c[_0x3f02('0x71')]||_0x208760['editing']['view'][_0x3f02('0x65')]('render',()=>{const _0x543f60=_0x208760[_0x3f02('0x57')][_0x3f02('0x45')](_0xa1bf1c),_0x556f1d=_0x8d37bb[_0x3f02('0x35')][_0x3f02('0x45')](_0x28042c)[_0x3f02('0x11')];_0x543f60['getByInnerView'](_0x556f1d)[_0x3f02('0x2b')]();},{'priority':_0x3f02('0x64')}),_0x28042c[_0x3f02('0x71')]=_0x3fb2da||!!_0x271185),_0x271185||(_0x5a5df7['add'](_0x2b1c0b),_0x243645['delete'](_0x2b1c0b),this[_0x3f02('0x73')][_0x3f02('0x54')](_0x4198ec)&&this['_attachedThreads']['get'](_0x4198ec)[_0x3f02('0x6')](_0x2b1c0b));}if(_0x1de22c[_0x3f02('0x18')])for(const _0x16aa34 of _0x5a5df7){const {id:_0x55b9ce}=tt(_0x16aa34),_0x2ac00d=_0x8d37bb[_0x3f02('0x6c')](_0x55b9ce),_0x821d32=this[_0x3f02('0x43')](_0x55b9ce);_0x243645[_0x3f02('0x6')](_0x16aa34),!_0x2ac00d||_0x821d32||_0x2ac00d[_0x3f02('0x42')]||this[_0x3f02('0x68')]===_0x55b9ce||(this[_0x3f02('0x5')][_0x3f02('0x5f')](_0x2ac00d),_0x2ac00d[_0x3f02('0x72')]());}_0x5a5df7[_0x3f02('0x5b')]();});}['_getTargetForId'](_0x5dc01f){const _0x56f55b=this[_0x3f02('0xf')],_0x53a929=this[_0x3f02('0x0')](_0x5dc01f);return _0xea51c7(_0x56f55b['editing'],_0x53a929);}[_0x3f02('0xc')](_0x4b4d36){const _0x574da7=this[_0x3f02('0x0')](_0x4b4d36);let _0x22cefb='',_0x44c6dc=!0x1;for(const _0x47a66b of _0x574da7){const _0x1a1b19=_0x47a66b[_0x3f02('0x2c')]();for(const _0x5da541 of Array[_0x3f02('0x3d')](_0x1a1b19[_0x3f02('0x41')]()))_0x5da541['is'](_0x3f02('0x5d'))?(_0x22cefb&&_0x44c6dc&&(_0x22cefb+='\x20',_0x44c6dc=!0x1),_0x22cefb+=_0x5da541[_0x3f02('0x6d')]):_0x44c6dc=!0x0;_0x44c6dc=!0x0;}return _0x22cefb[_0x3f02('0x59')](0x0,0x96);}[_0x3f02('0x23')](_0x1fad24,_0x21ea50){const _0x117581=this[_0x3f02('0xf')],_0x49e60e=_0x117581['plugins']['get'](_0x5aeffc);let _0xf3b5e9=_0x49e60e['getCommentThread'](_0x21ea50);if(this['_attachedThreads']['has'](_0x21ea50)){const _0x1bd966=this['_attachedThreads'][_0x3f02('0x45')](_0x21ea50);_0x1bd966['has'](_0x1fad24)||_0x1bd966[_0x3f02('0x5f')](_0x1fad24);}const _0x3513ae=_0x117581[_0x3f02('0xa')][_0x3f02('0x45')]('collaboration.channelId'),_0x2e55cd=_0x117581[_0x3f02('0x57')][_0x3f02('0x45')](_0x2f2b50);if(_0xf3b5e9&&_0xf3b5e9['isResolved']&&this['_autoResolvedThreads'][_0x3f02('0x54')](_0xf3b5e9)&&(this[_0x3f02('0x5')][_0x3f02('0x6')](_0xf3b5e9),_0xf3b5e9['reopen']()),this[_0x3f02('0x73')][_0x3f02('0x54')](_0x21ea50))return _0xf3b5e9;return this[_0x3f02('0x73')][_0x3f02('0x58')](_0x21ea50,new Set([_0x1fad24])),(!this[_0x3f02('0x0')](_0x21ea50)[0x0][_0x3f02('0x29')]?_0x117581[_0x3f02('0x5a')][_0x3f02('0x11')]['once']('render',()=>{const _0x534d48=_0x117581['plugins'][_0x3f02('0x45')](_0xa1bf1c);_0xf3b5e9=_0x49e60e[_0x3f02('0x2d')]({'channelId':_0x3513ae,'threadId':_0x21ea50,'target':()=>this[_0x3f02('0x67')](_0x21ea50),'context':{'type':_0x3f02('0x8'),'value':this[_0x3f02('0xc')](_0x21ea50)}});const _0x342589=_0x49e60e[_0x3f02('0x35')][_0x3f02('0x45')](_0xf3b5e9)[_0x3f02('0x11')],_0x36f0a5=_0x534d48[_0x3f02('0x5c')](_0x342589);_0x36f0a5&&_0x2e55cd[_0x3f02('0x32')](_0x36f0a5);},{'priority':_0x3f02('0x64')}):_0x49e60e[_0x3f02('0x4')]({'channelId':_0x3513ae,'threadId':_0x21ea50})[_0x3f02('0x34')](_0x4b5133=>{if(_0x3f02('0x6e')!==_0x117581[_0x3f02('0x12')]){if(_0xf3b5e9=_0x4b5133,_0xf3b5e9){const _0x407704=_0xf3b5e9['attachTo'](()=>this[_0x3f02('0x67')](_0x21ea50));_0x2e55cd['registerAnnotation'](_0x407704),_0xf3b5e9[_0x3f02('0x42')]&&this[_0x3f02('0x6f')](_0x21ea50);}else{const _0x5175fd=this[_0x3f02('0x0')](_0x21ea50);_0x117581[_0x3f02('0x63')]['change'](_0x38173d=>{for(const _0x5807fc of _0x5175fd)_0x38173d[_0x3f02('0x22')](_0x5807fc);});}}}),_0xf3b5e9);}[_0x3f02('0x1b')](_0x1fd354,_0x2c1f4c){const _0x5eb656=this['_attachMarkerToThread'](_0x1fd354,_0x2c1f4c);_0x5eb656&&!_0x5eb656[_0x3f02('0x28')]&&_0x5eb656[_0x3f02('0x1d')]({'type':_0x3f02('0x8'),'value':this['_getTextContext'](_0x2c1f4c)});}}function Z(_0x27f715,_0x286ec1){return _0x286ec1?_0x27f715+':'+_0x286ec1:_0x27f715;}function tt(_0xb4a37){const _0x2c253c=_0xb4a37[_0x3f02('0x39')](':');return{'group':_0x2c253c[0x0],'id':_0x2c253c[0x1],'part':_0x2c253c[0x2]};}function ot(_0x5d0ddd,_0x1e6e8e){const _0x191f02=_0x1e6e8e[_0x3f02('0x3b')],_0x399c01=_0x1e6e8e[_0x3f02('0x77')](_0x5d0ddd['start']);for(const _0x377138 of _0x5d0ddd[_0x3f02('0x53')]()){const {type:_0x1bc1e,item:_0x94a18d,nextPosition:_0x3ba39d}=_0x377138;if(_0x3f02('0x8')===_0x1bc1e||_0x191f02[_0x3f02('0x10')](_0x94a18d)){const _0x3a5c27=_0x1e6e8e[_0x3f02('0x27')](_0x94a18d);_0x399c01[_0x3f02('0x50')]&&(_0x399c01[_0x3f02('0x38')]=_0x3a5c27),_0x399c01[_0x3f02('0x24')]=_0x3ba39d;}}return _0x399c01;}