@ckeditor/ckeditor5-comments 37.0.0-rc.0 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +2 -2
  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 _0x2442=['add','div','isActive','_updateHeight','element','keystrokes','listenTo','_mutationObserver','type','ck-annotation-wrapper','focusTracker','render','set','fire','height','focus','bindTemplate','mainView','ck-rounded-corners','clientHeight','clear','destroy','setTemplate','ck-annotation-wrapper--active','content','length','detach','Esc'];(function(_0x49f9d7,_0x244296){const _0x19eadf=function(_0x4397d8){while(--_0x4397d8){_0x49f9d7['push'](_0x49f9d7['shift']());}};_0x19eadf(++_0x244296);}(_0x2442,0x19b));const _0x19ea=function(_0x49f9d7,_0x244296){_0x49f9d7=_0x49f9d7-0x0;let _0x19eadf=_0x2442[_0x49f9d7];return _0x19eadf;};import{View as _0x4f10f7}from'ckeditor5/src/ui';import{FocusTracker as _0x33d0eb,KeystrokeHandler as _0x4c3d70,uid as _0x13df42}from'ckeditor5/src/utils';import _0x34ead2 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4f10f7{constructor(_0x2223dc,_0x1d0d73){super(_0x2223dc),this['id']=_0x13df42(),this[_0x19ea('0x13')]=new _0x33d0eb(),this[_0x19ea('0xe')]=new _0x4c3d70(),this['keystrokes'][_0x19ea('0x15')](_0x19ea('0x8'),(_0x40e75d,_0x58c38c)=>this[_0x19ea('0x16')](_0x19ea('0x8'),_0x58c38c)),this[_0x19ea('0x15')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x19ea('0x15')](_0x19ea('0x17'),0x0),this[_0x19ea('0x15')](_0x19ea('0xb'),!0x1),this[_0x19ea('0x15')]('isDirty',!0x1),this[_0x19ea('0x15')](_0x19ea('0x6'),0x0),this['set'](_0x19ea('0x11'),''),this[_0x19ea('0x10')]=_0x34ead2(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this[_0x19ea('0x5')][_0x19ea('0x9')](_0x1d0d73),this[_0x19ea('0x1a')]=_0x1d0d73;const _0x4b8a8d=this[_0x19ea('0x19')];this[_0x19ea('0x3')]({'tag':_0x19ea('0xa'),'attributes':{'class':['ck',_0x19ea('0x12'),_0x19ea('0x1b'),_0x4b8a8d['if'](_0x19ea('0xb'),_0x19ea('0x4'))],'tabindex':-0x1},'children':this[_0x19ea('0x5')]});}[_0x19ea('0x14')](){super[_0x19ea('0x14')](),this[_0x19ea('0x13')]['add'](this['element']),this[_0x19ea('0xe')][_0x19ea('0xf')](this[_0x19ea('0xd')]),this[_0x19ea('0x10')]['attach'](this[_0x19ea('0xd')]);}[_0x19ea('0x2')](){this['content'][_0x19ea('0x1')](),this[_0x19ea('0xe')][_0x19ea('0x2')](),this[_0x19ea('0x13')]['destroy'](),this[_0x19ea('0x10')][_0x19ea('0x7')](),super['destroy']();}[_0x19ea('0x18')](){this[_0x19ea('0xd')][_0x19ea('0x18')]();}[_0x19ea('0xc')](){const _0x19acf8=this[_0x19ea('0xd')][_0x19ea('0x0')];_0x19acf8&&(this[_0x19ea('0x17')]=_0x19acf8);}}
23
+ const _0x2620=['_updateHeight','bindTemplate','fire','element','setTemplate','isActive','attach','listenTo','height','ck-annotation-wrapper--active','type','ck-annotation-wrapper','isDirty','destroy','clear','ck-rounded-corners','_mutationObserver','div','set','detach','render','add','focus','keystrokes','focusTracker','Esc','mainView','content'];(function(_0x393546,_0x2620ac){const _0x3dfef8=function(_0x18336a){while(--_0x18336a){_0x393546['push'](_0x393546['shift']());}};_0x3dfef8(++_0x2620ac);}(_0x2620,0x154));const _0x3dfe=function(_0x393546,_0x2620ac){_0x393546=_0x393546-0x0;let _0x3dfef8=_0x2620[_0x393546];return _0x3dfef8;};import{View as _0x2a3dcf}from'ckeditor5/src/ui';import{FocusTracker as _0x3a59c5,KeystrokeHandler as _0x3f176a,uid as _0x2c8c03}from'ckeditor5/src/utils';import _0xd2c46b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2a3dcf{constructor(_0x310bc8,_0x55fa49){super(_0x310bc8),this['id']=_0x2c8c03(),this['focusTracker']=new _0x3a59c5(),this['keystrokes']=new _0x3f176a(),this[_0x3dfe('0x13')][_0x3dfe('0xe')](_0x3dfe('0x15'),(_0x8f6580,_0x4e6e31)=>this[_0x3dfe('0x1a')](_0x3dfe('0x15'),_0x4e6e31)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x3dfe('0x4'),0x0),this[_0x3dfe('0xe')](_0x3dfe('0x1'),!0x1),this[_0x3dfe('0xe')](_0x3dfe('0x8'),!0x1),this[_0x3dfe('0xe')]('length',0x0),this[_0x3dfe('0xe')](_0x3dfe('0x6'),''),this['_mutationObserver']=_0xd2c46b(()=>this[_0x3dfe('0x18')]()),this[_0x3dfe('0x17')]=this['createCollection'](),this[_0x3dfe('0x17')][_0x3dfe('0x11')](_0x55fa49),this[_0x3dfe('0x16')]=_0x55fa49;const _0x340c0b=this[_0x3dfe('0x19')];this[_0x3dfe('0x0')]({'tag':_0x3dfe('0xd'),'attributes':{'class':['ck',_0x3dfe('0x7'),_0x3dfe('0xb'),_0x340c0b['if'](_0x3dfe('0x1'),_0x3dfe('0x5'))],'tabindex':-0x1},'children':this[_0x3dfe('0x17')]});}[_0x3dfe('0x10')](){super['render'](),this[_0x3dfe('0x14')][_0x3dfe('0x11')](this[_0x3dfe('0x1b')]),this[_0x3dfe('0x13')][_0x3dfe('0x3')](this['element']),this[_0x3dfe('0xc')][_0x3dfe('0x2')](this[_0x3dfe('0x1b')]);}[_0x3dfe('0x9')](){this[_0x3dfe('0x17')][_0x3dfe('0xa')](),this[_0x3dfe('0x13')]['destroy'](),this[_0x3dfe('0x14')][_0x3dfe('0x9')](),this[_0x3dfe('0xc')][_0x3dfe('0xf')](),super[_0x3dfe('0x9')]();}['focus'](){this['element'][_0x3dfe('0x12')]();}[_0x3dfe('0x18')](){const _0x4d159e=this[_0x3dfe('0x1b')]['clientHeight'];_0x4d159e&&(this[_0x3dfe('0x4')]=_0x4d159e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d82=['render','element','top','content','clientHeight','bottom','_mutationObserver','isAnimationDisabled','createCollection','setTemplate','attach','ck-sidebar-item','div','height','updateHeight','_targetTop','set','clear','ck-sidebar-item--no-animation'];(function(_0x3f6664,_0x3d82ec){const _0x29c88a=function(_0xdba03b){while(--_0xdba03b){_0x3f6664['push'](_0x3f6664['shift']());}};_0x29c88a(++_0x3d82ec);}(_0x3d82,0x16e));const _0x29c8=function(_0x3f6664,_0x3d82ec){_0x3f6664=_0x3f6664-0x0;let _0x29c88a=_0x3d82[_0x3f6664];return _0x29c88a;};import{View as _0x588609}from'ckeditor5/src/ui';import{toUnit as _0x4a88cc}from'ckeditor5/src/utils';import _0x988c64 from'../../utils/createmutationobserver';const At=_0x4a88cc('px');export default class C extends _0x588609{constructor(_0x50a1bc){super(_0x50a1bc),this[_0x29c8('0xb')]('top',0x0),this['set'](_0x29c8('0x8'),0x0),this['bind'](_0x29c8('0x0'))['to'](this,_0x29c8('0x10'),this,_0x29c8('0x8'),(_0x22c445,_0x422ed6)=>_0x22c445+_0x422ed6),this[_0x29c8('0xb')](_0x29c8('0x2'),!0x1),this[_0x29c8('0x1')]=_0x988c64(()=>this[_0x29c8('0x9')]()),this[_0x29c8('0xa')]=null,this['content']=this[_0x29c8('0x3')]();const _0x4f8fa9=this['bindTemplate'];this[_0x29c8('0x4')]({'tag':_0x29c8('0x7'),'attributes':{'class':[_0x29c8('0x6'),_0x4f8fa9['to']('isAnimationDisabled',_0x19d4d3=>_0x19d4d3?_0x29c8('0xd'):'')],'style':{'top':_0x4f8fa9['to'](_0x29c8('0x10'),_0x219140=>At(_0x219140))}},'children':this[_0x29c8('0x11')]});}[_0x29c8('0xe')](){super[_0x29c8('0xe')](),this[_0x29c8('0x1')][_0x29c8('0x5')](this[_0x29c8('0xf')]);}[_0x29c8('0x9')](){const _0x1b58ff=this[_0x29c8('0xf')][_0x29c8('0x12')];_0x1b58ff&&(this[_0x29c8('0x8')]=_0x1b58ff);}['destroy'](){this['content'][_0x29c8('0xc')](),this[_0x29c8('0x1')]['detach'](),super['destroy']();}}
23
+ const _0x140f=['clientHeight','top','destroy','height','bottom','createCollection','updateHeight','attach','bindTemplate','bind','render','div','isAnimationDisabled','clear','detach','element','content','set'];(function(_0x47b3c8,_0x140ff3){const _0x2ffb80=function(_0x543197){while(--_0x543197){_0x47b3c8['push'](_0x47b3c8['shift']());}};_0x2ffb80(++_0x140ff3);}(_0x140f,0x191));const _0x2ffb=function(_0x47b3c8,_0x140ff3){_0x47b3c8=_0x47b3c8-0x0;let _0x2ffb80=_0x140f[_0x47b3c8];return _0x2ffb80;};import{View as _0x15b993}from'ckeditor5/src/ui';import{toUnit as _0x103372}from'ckeditor5/src/utils';import _0x3d906c from'../../utils/createmutationobserver';const At=_0x103372('px');export default class C extends _0x15b993{constructor(_0x17c10e){super(_0x17c10e),this['set'](_0x2ffb('0xe'),0x0),this['set'](_0x2ffb('0x10'),0x0),this[_0x2ffb('0x4')](_0x2ffb('0x11'))['to'](this,_0x2ffb('0xe'),this,'height',(_0x34ae64,_0x5978e8)=>_0x34ae64+_0x5978e8),this[_0x2ffb('0xc')](_0x2ffb('0x7'),!0x1),this['_mutationObserver']=_0x3d906c(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x2ffb('0xb')]=this[_0x2ffb('0x0')]();const _0x46cf1e=this[_0x2ffb('0x3')];this['setTemplate']({'tag':_0x2ffb('0x6'),'attributes':{'class':['ck-sidebar-item',_0x46cf1e['to'](_0x2ffb('0x7'),_0x2974c7=>_0x2974c7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x46cf1e['to'](_0x2ffb('0xe'),_0x7fc5f7=>At(_0x7fc5f7))}},'children':this['content']});}['render'](){super[_0x2ffb('0x5')](),this['_mutationObserver'][_0x2ffb('0x2')](this['element']);}[_0x2ffb('0x1')](){const _0x4f057b=this[_0x2ffb('0xa')][_0x2ffb('0xd')];_0x4f057b&&(this['height']=_0x4f057b);}[_0x2ffb('0xf')](){this[_0x2ffb('0xb')][_0x2ffb('0x8')](),this['_mutationObserver'][_0x2ffb('0x9')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x540f=['minHeight','list','createCollection','bindTemplate','setTemplate','div','ck-reset','set','class','ck-sidebar'];(function(_0x597ae8,_0x540f71){const _0x19e27f=function(_0x4f344c){while(--_0x4f344c){_0x597ae8['push'](_0x597ae8['shift']());}};_0x19e27f(++_0x540f71);}(_0x540f,0x1dc));const _0x19e2=function(_0x597ae8,_0x540f71){_0x597ae8=_0x597ae8-0x0;let _0x19e27f=_0x540f[_0x597ae8];return _0x19e27f;};import{View as _0x21b99c}from'ckeditor5/src/ui';import{toUnit as _0x95b56f}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x95b56f('px');export default class T extends _0x21b99c{constructor(_0x1dc2d0){super(_0x1dc2d0);const _0x178f68=this[_0x19e2('0x7')];this[_0x19e2('0x1')](_0x19e2('0x4'),0x0),this['set'](_0x19e2('0x2'),''),this[_0x19e2('0x5')]=this[_0x19e2('0x6')](),this[_0x19e2('0x8')]({'tag':_0x19e2('0x9'),'attributes':{'class':['ck',_0x19e2('0x3'),_0x19e2('0x0'),_0x178f68['to'](_0x19e2('0x2'))],'style':{'minHeight':_0x178f68['to'](_0x19e2('0x4'),_0x2fed8f=>'number'==typeof _0x2fed8f?At(_0x2fed8f+0xa):null)}},'children':this['list']});}}
23
+ const _0x5dd4=['ck-sidebar','minHeight','class','set','list','ck-reset'];(function(_0x403050,_0x5dd435){const _0x3ca817=function(_0x537819){while(--_0x537819){_0x403050['push'](_0x403050['shift']());}};_0x3ca817(++_0x5dd435);}(_0x5dd4,0x171));const _0x3ca8=function(_0x403050,_0x5dd435){_0x403050=_0x403050-0x0;let _0x3ca817=_0x5dd4[_0x403050];return _0x3ca817;};import{View as _0x583617}from'ckeditor5/src/ui';import{toUnit as _0x2c10c9}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x2c10c9('px');export default class T extends _0x583617{constructor(_0x2ef8a8){super(_0x2ef8a8);const _0x1ad2e4=this['bindTemplate'];this['set'](_0x3ca8('0x4'),0x0),this[_0x3ca8('0x0')](_0x3ca8('0x5'),''),this['list']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3ca8('0x3'),_0x3ca8('0x2'),_0x1ad2e4['to'](_0x3ca8('0x5'))],'style':{'minHeight':_0x1ad2e4['to']('minHeight',_0x2183a2=>'number'==typeof _0x2183a2?At(_0x2183a2+0xa):null)}},'children':this[_0x3ca8('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a56=['change:container','isAttached','stopListening','addEventListener','_activeAnnotation','switchTo','register','refreshPositioning','high','ck-sidebar--wide','_refreshPositioningDebounced','_annotations','container','from','EditorAnnotations','_integrateWithEditorAnnotations','activeAnnotation','annotations','rearrange','stop','widesidebar-detach-not-attached','plugins','attach','uiUpdate','widesidebar-attach-already-attached','hasDomSelection','requires','destroy','set','setActiveAnnotation','addAnnotation','_attachToContainer','blur','editors','remove','ready','_destroyEditorAnnotationsIntegration','updateTargetRect','off','WideSidebar','context','listenTo','focus','detach','removeEventListener','set:container','wideSidebar','get','_detachFromContainer','refresh','getOrderedSelectedAnnotations','pluginName','add','_editorAnnotations'];(function(_0x14ef4c,_0x1a56c1){const _0x555b87=function(_0x4b6d01){while(--_0x4b6d01){_0x14ef4c['push'](_0x14ef4c['shift']());}};_0x555b87(++_0x1a56c1);}(_0x1a56,0xbb));const _0x555b=function(_0x14ef4c,_0x1a56c1){_0x14ef4c=_0x14ef4c-0x0;let _0x555b87=_0x1a56[_0x14ef4c];return _0x555b87;};import{ContextPlugin as _0x3c782a,Context as _0x1afcb1}from'ckeditor5/src/core';import _0x35c4c5 from'./annotationsuis';import _0x3a4c51 from'./sidebar';import{CKEditorError as _0x146d80,Collection as _0x1ae6d5}from'ckeditor5/src/utils';import{debounce as _0x495dd1}from'lodash-es';import _0x569253 from'./editorannotations';export default class i extends _0x3c782a{static get[_0x555b('0x1')](){return[_0x3a4c51,_0x35c4c5];}static get[_0x555b('0x1a')](){return _0x555b('0xe');}constructor(_0x2a3268){super(_0x2a3268),this['isAttached']=!0x1,this[_0x555b('0x3')](_0x555b('0x2d'),null),this[_0x555b('0x2e')]=null,this[_0x555b('0x1c')]=new _0x1ae6d5(),this[_0x555b('0x27')]=_0x495dd1(()=>{this[_0x555b('0x2e')][_0x555b('0x24')]();},0xfa,{'leading':!0x1});}['init'](){const _0x3b3190=this[_0x555b('0xf')][_0x555b('0x32')][_0x555b('0x16')](_0x35c4c5),_0x10bd0a=this[_0x555b('0xf')]['plugins'][_0x555b('0x16')](_0x3a4c51);_0x3b3190[_0x555b('0x23')]('wideSidebar',this),_0x10bd0a[_0x555b('0x29')]&&_0x3b3190[_0x555b('0x22')](_0x555b('0x15'));}[_0x555b('0x4')](_0x1e9bfc){if(_0x1e9bfc===this[_0x555b('0x2d')])return;const _0x484440=this[_0x555b('0xf')][_0x555b('0x32')][_0x555b('0x16')](_0x3a4c51);_0x484440[_0x555b('0x21')]=_0x1e9bfc;const _0x297273=this[_0x555b('0x2d')];this[_0x555b('0x2d')]=_0x1e9bfc,_0x484440[_0x555b('0x18')]({'blurredAnnotation':_0x297273,'activatedAnnotation':this[_0x555b('0x2d')]});}[_0x555b('0x33')](_0x400935){this[_0x555b('0x2e')]=_0x400935;const _0xae8693=this['context'][_0x555b('0x32')][_0x555b('0x16')](_0x3a4c51);if(_0xae8693[_0x555b('0x28')]=_0x400935,this[_0x555b('0x1e')])throw new _0x146d80(_0x555b('0x35'),this);this['isAttached']=!0x0,this[_0x555b('0x10')](_0xae8693,_0x555b('0x14'),()=>{this[_0x555b('0x12')](),this[_0x555b('0x10')](_0xae8693,_0x555b('0x1d'),_0x17a6ec=>{_0x17a6ec[_0x555b('0xd')](),this[_0x555b('0x33')](_0x400935);});}),_0xae8693[_0x555b('0x6')]({'viewClass':_0x555b('0x26')});const _0x17efb3=_0x428c11=>{_0x428c11[_0x555b('0xc')](),_0xae8693[_0x555b('0x5')](_0x428c11);};for(const _0x6dcc0b of _0x400935)_0x17efb3(_0x6dcc0b);this[_0x555b('0x10')](_0x400935,_0x555b('0x1b'),(_0x209412,_0x44a986)=>{_0x17efb3(_0x44a986);}),this[_0x555b('0x10')](_0x400935,_0x555b('0x9'),(_0x4c5346,_0xcf2ed2,_0x5725da)=>{_0xae8693[_0x555b('0x2f')]({'removedAnnotation':_0xcf2ed2,'previousAnnotation':_0x400935['get'](_0x5725da-0x1),'nextAnnotation':_0x400935[_0x555b('0x16')](_0x5725da+0x1)}),_0xcf2ed2===this[_0x555b('0x2d')]&&this[_0x555b('0x4')](null);},{'priority':_0x555b('0x25')}),this[_0x555b('0x10')](_0x400935,_0x555b('0x11'),(_0x2a2d90,_0x1a59a3)=>{this[_0x555b('0x4')](_0x1a59a3);}),this[_0x555b('0x10')](_0x400935,_0x555b('0x7'),()=>{this[_0x555b('0x4')](null);});const _0x28bc5d=this[_0x555b('0xf')]instanceof _0x1afcb1?this[_0x555b('0xf')][_0x555b('0x8')]:new _0x1ae6d5([this[_0x555b('0xf')]]);for(const _0x2be6e0 of _0x28bc5d)this['_integrateWithEditorAnnotations'](_0x2be6e0);this[_0x555b('0x10')](_0x28bc5d,'add',(_0x18bc5d,_0x3c9641)=>{this[_0x555b('0x10')](_0x3c9641,_0x555b('0xa'),()=>{this[_0x555b('0x2c')](_0x3c9641);});}),this['listenTo'](_0x28bc5d,_0x555b('0x9'),(_0x2146ed,_0x77fdfc)=>{_0x77fdfc['plugins']['has'](_0x555b('0x2b'))&&this[_0x555b('0xb')](_0x77fdfc['plugins'][_0x555b('0x16')](_0x555b('0x2b')));}),window[_0x555b('0x20')]('resize',()=>this[_0x555b('0x27')]()),this['annotations']['refreshPositioning']();}[_0x555b('0x12')](){if(!this[_0x555b('0x1e')])throw new _0x146d80(_0x555b('0x31'),this);this[_0x555b('0x4')](null);const _0x1d221e=this[_0x555b('0xf')][_0x555b('0x32')][_0x555b('0x16')](_0x3a4c51);_0x1d221e[_0x555b('0x17')](this[_0x555b('0x2e')]),this['stopListening'](_0x1d221e),this[_0x555b('0x1f')](this[_0x555b('0x2e')]),this[_0x555b('0xf')]instanceof _0x1afcb1&&this[_0x555b('0x1f')](this[_0x555b('0xf')][_0x555b('0x8')]);for(const _0x4120f0 of Array[_0x555b('0x2a')](this[_0x555b('0x1c')]))this[_0x555b('0xb')](_0x4120f0);window[_0x555b('0x13')]('resize',this[_0x555b('0x27')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x555b('0x2d')]=null,this[_0x555b('0x1e')]=!0x1,this[_0x555b('0x2e')]=null;}[_0x555b('0x2')](){this[_0x555b('0x1e')]&&this['detach']();}[_0x555b('0x2c')](_0xabba53){const _0x2f5d17=_0xabba53[_0x555b('0x32')][_0x555b('0x16')](_0x569253);if(!_0x2f5d17)return;const _0xd47c10=()=>{const _0x65d73e=_0x2f5d17[_0x555b('0x19')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x555b('0x4')](_0x65d73e[0x0]||null);};this['listenTo'](_0x2f5d17,'refresh',_0xd47c10),this[_0x555b('0x10')](_0x2f5d17,'blur',(_0x16f4ff,{isAnnotationTracked:_0x6128a})=>{this['activeAnnotation']&&_0x6128a(this[_0x555b('0x2d')])&&this[_0x555b('0x4')](null);}),this[_0x555b('0x10')](_0x2f5d17,_0x555b('0x34'),()=>{this['_refreshPositioningDebounced']();}),this[_0x555b('0x10')](this[_0x555b('0x2e')],_0x555b('0x7'),_0x1be359=>{_0x2f5d17[_0x555b('0x0')]()&&(_0xd47c10(),_0x1be359[_0x555b('0x30')]());},{'priority':_0x555b('0x25')}),this[_0x555b('0x1c')][_0x555b('0x1b')](_0x2f5d17);}[_0x555b('0xb')](_0x1b5c59){this['stopListening'](_0x1b5c59),this[_0x555b('0x1c')]['remove'](_0x1b5c59);}}
23
+ const _0x1054=['_detachFromContainer','off','removeEventListener','remove','widesidebar-detach-not-attached','cancel','wideSidebar','detach','listenTo','add','switchTo','ck-sidebar--wide','requires','refresh','_refreshPositioningDebounced','_annotations','hasDomSelection','stopListening','setActiveAnnotation','set','getOrderedSelectedAnnotations','container','attach','rearrange','blur','high','editors','init','get','_integrateWithEditorAnnotations','plugins','uiUpdate','annotations','register','isAttached','WideSidebar','pluginName','widesidebar-attach-already-attached','addEventListener','addAnnotation','ready','resize','has','_editorAnnotations','stop','_destroyEditorAnnotationsIntegration','from','activeAnnotation','context'];(function(_0x413aba,_0x1054e1){const _0x4529b2=function(_0x680f02){while(--_0x680f02){_0x413aba['push'](_0x413aba['shift']());}};_0x4529b2(++_0x1054e1);}(_0x1054,0x176));const _0x4529=function(_0x413aba,_0x1054e1){_0x413aba=_0x413aba-0x0;let _0x4529b2=_0x1054[_0x413aba];return _0x4529b2;};import{ContextPlugin as _0x53cc35,Context as _0x285ae4}from'ckeditor5/src/core';import _0x6879f1 from'./annotationsuis';import _0x22d9eb from'./sidebar';import{CKEditorError as _0x5d6b7c,Collection as _0x3704af}from'ckeditor5/src/utils';import{debounce as _0x45c99b}from'lodash-es';import _0x2ef266 from'./editorannotations';export default class i extends _0x53cc35{static get[_0x4529('0x1e')](){return[_0x22d9eb,_0x6879f1];}static get[_0x4529('0x5')](){return _0x4529('0x4');}constructor(_0x1112a8){super(_0x1112a8),this['isAttached']=!0x1,this[_0x4529('0x25')](_0x4529('0x10'),null),this[_0x4529('0x1')]=null,this['_editorAnnotations']=new _0x3704af(),this[_0x4529('0x20')]=_0x45c99b(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x4529('0x2d')](){const _0x506798=this[_0x4529('0x11')]['plugins']['get'](_0x6879f1),_0x189efb=this[_0x4529('0x11')][_0x4529('0x30')]['get'](_0x22d9eb);_0x506798[_0x4529('0x2')](_0x4529('0x18'),this),_0x189efb[_0x4529('0x27')]&&_0x506798[_0x4529('0x1c')](_0x4529('0x18'));}[_0x4529('0x24')](_0x2ece45){if(_0x2ece45===this['activeAnnotation'])return;const _0x329e36=this[_0x4529('0x11')]['plugins'][_0x4529('0x2e')](_0x22d9eb);_0x329e36['_activeAnnotation']=_0x2ece45;const _0x322eec=this['activeAnnotation'];this['activeAnnotation']=_0x2ece45,_0x329e36['refresh']({'blurredAnnotation':_0x322eec,'activatedAnnotation':this['activeAnnotation']});}[_0x4529('0x28')](_0x212a87){this[_0x4529('0x1')]=_0x212a87;const _0x336966=this[_0x4529('0x11')][_0x4529('0x30')][_0x4529('0x2e')](_0x22d9eb);if(_0x336966[_0x4529('0x21')]=_0x212a87,this[_0x4529('0x3')])throw new _0x5d6b7c(_0x4529('0x6'),this);this[_0x4529('0x3')]=!0x0,this[_0x4529('0x1a')](_0x336966,'set:container',()=>{this[_0x4529('0x19')](),this[_0x4529('0x1a')](_0x336966,'change:container',_0x4564f7=>{_0x4564f7[_0x4529('0x13')](),this[_0x4529('0x28')](_0x212a87);});}),_0x336966['_attachToContainer']({'viewClass':_0x4529('0x1d')});const _0xf6a24e=_0x4aafdf=>{_0x4aafdf['updateTargetRect'](),_0x336966[_0x4529('0x8')](_0x4aafdf);};for(const _0x3512f9 of _0x212a87)_0xf6a24e(_0x3512f9);this[_0x4529('0x1a')](_0x212a87,_0x4529('0x1b'),(_0x11d066,_0x2488a5)=>{_0xf6a24e(_0x2488a5);}),this[_0x4529('0x1a')](_0x212a87,_0x4529('0x15'),(_0x5b6fbb,_0x5d4906,_0x700c97)=>{_0x336966[_0x4529('0x29')]({'removedAnnotation':_0x5d4906,'previousAnnotation':_0x212a87[_0x4529('0x2e')](_0x700c97-0x1),'nextAnnotation':_0x212a87[_0x4529('0x2e')](_0x700c97+0x1)}),_0x5d4906===this['activeAnnotation']&&this[_0x4529('0x24')](null);},{'priority':_0x4529('0x2b')}),this[_0x4529('0x1a')](_0x212a87,'focus',(_0x466555,_0xf77f37)=>{this[_0x4529('0x24')](_0xf77f37);}),this[_0x4529('0x1a')](_0x212a87,'blur',()=>{this[_0x4529('0x24')](null);});const _0x331ed5=this[_0x4529('0x11')]instanceof _0x285ae4?this[_0x4529('0x11')][_0x4529('0x2c')]:new _0x3704af([this[_0x4529('0x11')]]);for(const _0x352d8e of _0x331ed5)this['_integrateWithEditorAnnotations'](_0x352d8e);this[_0x4529('0x1a')](_0x331ed5,_0x4529('0x1b'),(_0x3a28bf,_0x3c40a4)=>{this[_0x4529('0x1a')](_0x3c40a4,_0x4529('0x9'),()=>{this[_0x4529('0x2f')](_0x3c40a4);});}),this[_0x4529('0x1a')](_0x331ed5,_0x4529('0x15'),(_0x148606,_0x958a85)=>{_0x958a85[_0x4529('0x30')][_0x4529('0xb')]('EditorAnnotations')&&this[_0x4529('0xe')](_0x958a85[_0x4529('0x30')]['get']('EditorAnnotations'));}),window[_0x4529('0x7')](_0x4529('0xa'),this['_refreshPositioningDebounced']),this[_0x4529('0x1')]['refreshPositioning']();}[_0x4529('0x19')](){if(!this[_0x4529('0x3')])throw new _0x5d6b7c(_0x4529('0x16'),this);this[_0x4529('0x24')](null);const _0x5f4d9b=this[_0x4529('0x11')]['plugins'][_0x4529('0x2e')](_0x22d9eb);_0x5f4d9b[_0x4529('0x12')](this[_0x4529('0x1')]),this['stopListening'](_0x5f4d9b),this[_0x4529('0x23')](this[_0x4529('0x1')]),this[_0x4529('0x11')]instanceof _0x285ae4&&this[_0x4529('0x23')](this['context'][_0x4529('0x2c')]);for(const _0x3f02ae of Array[_0x4529('0xf')](this[_0x4529('0xc')]))this[_0x4529('0xe')](_0x3f02ae);window[_0x4529('0x14')]('resize',this['_refreshPositioningDebounced']),this[_0x4529('0x20')][_0x4529('0x17')](),this[_0x4529('0x10')]=null,this[_0x4529('0x3')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x4529('0x3')]&&this[_0x4529('0x19')]();}[_0x4529('0x2f')](_0x601dcc){const _0x3afc53=_0x601dcc[_0x4529('0x30')][_0x4529('0x2e')](_0x2ef266);if(!_0x3afc53)return;const _0x3b1f9f=()=>{const _0x3e0370=_0x3afc53[_0x4529('0x26')]({'annotations':this[_0x4529('0x1')],'activeAnnotation':this['activeAnnotation']});this[_0x4529('0x24')](_0x3e0370[0x0]||null);};this['listenTo'](_0x3afc53,_0x4529('0x1f'),_0x3b1f9f),this['listenTo'](_0x3afc53,_0x4529('0x2a'),(_0x3b1e1f,{isAnnotationTracked:_0x53a09c})=>{this['activeAnnotation']&&_0x53a09c(this[_0x4529('0x10')])&&this[_0x4529('0x24')](null);}),this[_0x4529('0x1a')](_0x3afc53,_0x4529('0x0'),()=>{this[_0x4529('0x20')]();}),this['listenTo'](this[_0x4529('0x1')],_0x4529('0x2a'),_0x49cd4c=>{_0x3afc53[_0x4529('0x22')]()&&(_0x3b1f9f(),_0x49cd4c[_0x4529('0xd')]());},{'priority':_0x4529('0x2b')}),this[_0x4529('0xc')]['add'](_0x3afc53);}[_0x4529('0xe')](_0x116675){this[_0x4529('0x23')](_0x116675),this[_0x4529('0xc')][_0x4529('0x15')](_0x116675);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34f1=['change','document','model','_hasContent','getRanges','refresh','substr','start','$textProxy','schema','_trimToContent','push','_itemIsContent','isObject','selection','getLastMatchingPosition','isEnabled','addMarker','backward','getItems','editor','tableCell','end','execute','item'];(function(_0x3100e,_0x34f15c){const _0x141f04=function(_0x522470){while(--_0x522470){_0x3100e['push'](_0x3100e['shift']());}};_0x141f04(++_0x34f15c);}(_0x34f1,0x64));const _0x141f=function(_0x3100e,_0x34f15c){_0x3100e=_0x3100e-0x0;let _0x141f04=_0x34f1[_0x3100e];return _0x141f04;};import{Command as _0x5dc56e}from'ckeditor5/src/core';import{uid as _0x9e25da}from'ckeditor5/src/utils';export default class q extends _0x5dc56e{[_0x141f('0x5')](){const _0x47566d=this[_0x141f('0x14')][_0x141f('0x2')][_0x141f('0x1')]['selection'];for(const _0x21dc1f of _0x47566d[_0x141f('0x4')]())if(this[_0x141f('0x3')](_0x21dc1f))return void(this[_0x141f('0x10')]=!0x0);this[_0x141f('0x10')]=!0x1;}[_0x141f('0x17')]({threadId:_0x20ddf6=_0x9e25da()}={}){const _0x1141f4=this[_0x141f('0x14')]['model'],_0x22da3c=[];for(const _0x37627a of _0x1141f4[_0x141f('0x1')][_0x141f('0xe')][_0x141f('0x4')]())this[_0x141f('0x3')](_0x37627a)&&_0x22da3c[_0x141f('0xb')](this[_0x141f('0xa')](_0x37627a));_0x1141f4[_0x141f('0x0')](_0x1a629e=>{for(const _0x51d375 of _0x22da3c){const _0x3b7dcf=_0x9e25da()[_0x141f('0x6')](0x1,0x5),_0x2d5d3d='comment:'+_0x20ddf6+':'+_0x3b7dcf;_0x1a629e[_0x141f('0x11')](_0x2d5d3d,{'range':_0x51d375,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x30e237){for(const _0x39ed5c of _0x30e237[_0x141f('0x13')]())if(this['_itemIsContent'](_0x39ed5c))return!0x0;return!0x1;}[_0x141f('0xc')](_0x331c8c){return _0x331c8c['is'](_0x141f('0x8'))||this[_0x141f('0x14')][_0x141f('0x2')][_0x141f('0x9')][_0x141f('0xd')](_0x331c8c)&&!_0x331c8c['is']('element',_0x141f('0x15'));}['_trimToContent'](_0x182665){const _0x7b70de=_0x1673f8=>!this[_0x141f('0xc')](_0x1673f8[_0x141f('0x18')]),_0x28e837=_0x182665[_0x141f('0x7')][_0x141f('0xf')](_0x7b70de),_0x273241=_0x182665[_0x141f('0x16')]['getLastMatchingPosition'](_0x7b70de,{'direction':_0x141f('0x12')});return this[_0x141f('0x14')][_0x141f('0x2')]['createRange'](_0x28e837,_0x273241);}}
23
+ const _0x49ed=['editor','item','element','isObject','getRanges','$textProxy','model','getLastMatchingPosition','change','tableCell','selection','start','createRange','addMarker','push','_hasContent','_trimToContent','_itemIsContent','comment:','getItems','refresh','isEnabled','substr','schema'];(function(_0x2123a9,_0x49ed0a){const _0x31789e=function(_0x56ad87){while(--_0x56ad87){_0x2123a9['push'](_0x2123a9['shift']());}};_0x31789e(++_0x49ed0a);}(_0x49ed,0xef));const _0x3178=function(_0x2123a9,_0x49ed0a){_0x2123a9=_0x2123a9-0x0;let _0x31789e=_0x49ed[_0x2123a9];return _0x31789e;};import{Command as _0x5b3d43}from'ckeditor5/src/core';import{uid as _0x1b3d1}from'ckeditor5/src/utils';export default class q extends _0x5b3d43{[_0x3178('0x15')](){const _0x55c3e9=this[_0x3178('0x1')][_0x3178('0x7')]['document'][_0x3178('0xb')];for(const _0x125899 of _0x55c3e9[_0x3178('0x5')]())if(this['_hasContent'](_0x125899))return void(this[_0x3178('0x16')]=!0x0);this[_0x3178('0x16')]=!0x1;}['execute']({threadId:_0x30c253=_0x1b3d1()}={}){const _0x4c639a=this[_0x3178('0x1')][_0x3178('0x7')],_0x1bbc5a=[];for(const _0x37080d of _0x4c639a['document']['selection'][_0x3178('0x5')]())this[_0x3178('0x10')](_0x37080d)&&_0x1bbc5a[_0x3178('0xf')](this[_0x3178('0x11')](_0x37080d));_0x4c639a[_0x3178('0x9')](_0xaaf3f3=>{for(const _0x100bea of _0x1bbc5a){const _0x2c992b=_0x1b3d1()[_0x3178('0x17')](0x1,0x5),_0x5d191f=_0x3178('0x13')+_0x30c253+':'+_0x2c992b;_0xaaf3f3[_0x3178('0xe')](_0x5d191f,{'range':_0x100bea,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3178('0x10')](_0x299132){for(const _0x577118 of _0x299132[_0x3178('0x14')]())if(this[_0x3178('0x12')](_0x577118))return!0x0;return!0x1;}[_0x3178('0x12')](_0x337150){return _0x337150['is'](_0x3178('0x6'))||this['editor']['model'][_0x3178('0x0')][_0x3178('0x4')](_0x337150)&&!_0x337150['is'](_0x3178('0x3'),_0x3178('0xa'));}[_0x3178('0x11')](_0x5b26aa){const _0x58330a=_0x1afb40=>!this[_0x3178('0x12')](_0x1afb40[_0x3178('0x2')]),_0x450dcf=_0x5b26aa[_0x3178('0xc')][_0x3178('0x8')](_0x58330a),_0x2b56b7=_0x5b26aa['end'][_0x3178('0x8')](_0x58330a,{'direction':'backward'});return this[_0x3178('0x1')][_0x3178('0x7')][_0x3178('0xd')](_0x450dcf,_0x2b56b7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4981=['isActive','resolveCommentThread','CommentsArchive','reopenCommentThread','listenTo','getCommentThread','focus','plugins','collection','pluginName','add','get','has','_calculatePosition','highest','context','resolvedAt','length','resolvedThreads','requires','removeCommentThread','activate'];(function(_0x4c7140,_0x4981c1){const _0x1ce093=function(_0x18c98e){while(--_0x18c98e){_0x4c7140['push'](_0x4c7140['shift']());}};_0x1ce093(++_0x4981c1);}(_0x4981,0x1a5));const _0x1ce0=function(_0x4c7140,_0x4981c1){_0x4c7140=_0x4c7140-0x0;let _0x1ce093=_0x4981[_0x4c7140];return _0x1ce093;};import{ContextPlugin as _0x5ee389}from'ckeditor5/src/core';import{Collection as _0x1c01ad}from'ckeditor5/src/utils';import _0x908d7 from'./commentsrepository';import _0x159017 from'../annotations/annotations';export default class p extends _0x5ee389{static get[_0x1ce0('0x6')](){return _0x1ce0('0x15');}static get[_0x1ce0('0x10')](){return[_0x908d7,_0x159017];}constructor(_0x3677ca){super(_0x3677ca),this[_0x1ce0('0xf')]=new _0x1c01ad();}['init'](){const _0x35c7c8=this[_0x1ce0('0xc')],_0x19295e=_0x35c7c8['plugins']['get'](_0x908d7),_0x225d5a=_0x35c7c8[_0x1ce0('0x4')][_0x1ce0('0x8')](_0x159017);this[_0x1ce0('0x1')](_0x19295e,'addCommentThread',(_0x1447ed,{threadId:_0x5a0e13,resolvedAt:_0x1e7c6d})=>{if(_0x1e7c6d){const _0x447242=_0x19295e['getCommentThread'](_0x5a0e13);this[_0x1ce0('0xf')][_0x1ce0('0x7')](_0x447242,this[_0x1ce0('0xa')](_0x1e7c6d));}}),this[_0x1ce0('0x1')](_0x19295e,_0x1ce0('0x14'),(_0x53218a,{threadId:_0xf3c1c3,resolvedAt:_0xcd5ec})=>{const _0xb70779=_0x19295e[_0x1ce0('0x2')](_0xf3c1c3);this[_0x1ce0('0xf')][_0x1ce0('0x7')](_0xb70779,this[_0x1ce0('0xa')](_0xcd5ec));},{'priority':_0x1ce0('0xb')}),this['listenTo'](_0x19295e,_0x1ce0('0x0'),(_0x3ff9ce,{threadId:_0x459f10})=>{const _0x5abeb1=_0x19295e[_0x1ce0('0x2')](_0x459f10);this[_0x1ce0('0xf')][_0x1ce0('0x9')](_0x5abeb1)&&this[_0x1ce0('0xf')]['remove'](_0x5abeb1);},{'priority':'highest'}),this['listenTo'](_0x19295e,_0x1ce0('0x11'),(_0x3f83dd,{threadId:_0x3b0007})=>{const _0x4fcbf3=_0x19295e[_0x1ce0('0x2')](_0x3b0007);this[_0x1ce0('0xf')][_0x1ce0('0x9')](_0x4fcbf3)&&this[_0x1ce0('0xf')]['remove'](_0x4fcbf3);},{'priority':_0x1ce0('0xb')}),this[_0x1ce0('0x1')](_0x225d5a[_0x1ce0('0x5')],_0x1ce0('0x3'),(_0x5dba09,_0x16281c)=>{_0x16281c[_0x1ce0('0x13')]=!0x0,_0x225d5a[_0x1ce0('0x12')](_0x16281c);});}[_0x1ce0('0xa')](_0x386b3e){const _0x125c71=[...this['resolvedThreads']]['findIndex'](_0x7b9be6=>_0x7b9be6[_0x1ce0('0xd')]<_0x386b3e);return _0x125c71>-0x1?_0x125c71:this['resolvedThreads'][_0x1ce0('0xe')];}}
23
+ const _0x28af=['isActive','highest','addCommentThread','activate','has','listenTo','removeCommentThread','remove','resolvedThreads','findIndex','_calculatePosition','get','focus','resolveCommentThread','reopenCommentThread','add','plugins','getCommentThread'];(function(_0x220fd0,_0x28af99){const _0x5dfd11=function(_0x127d10){while(--_0x127d10){_0x220fd0['push'](_0x220fd0['shift']());}};_0x5dfd11(++_0x28af99);}(_0x28af,0xf3));const _0x5dfd=function(_0x220fd0,_0x28af99){_0x220fd0=_0x220fd0-0x0;let _0x5dfd11=_0x28af[_0x220fd0];return _0x5dfd11;};import{ContextPlugin as _0x177e6e}from'ckeditor5/src/core';import{Collection as _0x113b05}from'ckeditor5/src/utils';import _0x4c744d from'./commentsrepository';import _0x5a78fd from'../annotations/annotations';export default class p extends _0x177e6e{static get['pluginName'](){return'CommentsArchive';}static get['requires'](){return[_0x4c744d,_0x5a78fd];}constructor(_0x5dc3b8){super(_0x5dc3b8),this['resolvedThreads']=new _0x113b05();}['init'](){const _0x1cff2c=this['context'],_0x31aec8=_0x1cff2c['plugins'][_0x5dfd('0x2')](_0x4c744d),_0x1a75db=_0x1cff2c[_0x5dfd('0x7')][_0x5dfd('0x2')](_0x5a78fd);this[_0x5dfd('0xe')](_0x31aec8,_0x5dfd('0xb'),(_0x1a7f23,{threadId:_0x273a63,resolvedAt:_0x41a745})=>{if(_0x41a745){const _0x4065cc=_0x31aec8[_0x5dfd('0x8')](_0x273a63);this[_0x5dfd('0x11')][_0x5dfd('0x6')](_0x4065cc,this[_0x5dfd('0x1')](_0x41a745));}}),this[_0x5dfd('0xe')](_0x31aec8,_0x5dfd('0x4'),(_0x12ec11,{threadId:_0x3e618c,resolvedAt:_0x5d9d12})=>{const _0x8d21a0=_0x31aec8[_0x5dfd('0x8')](_0x3e618c);this[_0x5dfd('0x11')][_0x5dfd('0x6')](_0x8d21a0,this[_0x5dfd('0x1')](_0x5d9d12));},{'priority':_0x5dfd('0xa')}),this['listenTo'](_0x31aec8,_0x5dfd('0x5'),(_0x1737d0,{threadId:_0x3dba09})=>{const _0xf42de8=_0x31aec8[_0x5dfd('0x8')](_0x3dba09);this[_0x5dfd('0x11')][_0x5dfd('0xd')](_0xf42de8)&&this[_0x5dfd('0x11')][_0x5dfd('0x10')](_0xf42de8);},{'priority':_0x5dfd('0xa')}),this[_0x5dfd('0xe')](_0x31aec8,_0x5dfd('0xf'),(_0x1c9842,{threadId:_0x50f796})=>{const _0x3d5cc7=_0x31aec8[_0x5dfd('0x8')](_0x50f796);this[_0x5dfd('0x11')][_0x5dfd('0xd')](_0x3d5cc7)&&this[_0x5dfd('0x11')][_0x5dfd('0x10')](_0x3d5cc7);},{'priority':'highest'}),this['listenTo'](_0x1a75db['collection'],_0x5dfd('0x3'),(_0x581ad5,_0x7c2aef)=>{_0x7c2aef[_0x5dfd('0x9')]=!0x0,_0x1a75db[_0x5dfd('0xc')](_0x7c2aef);});}[_0x5dfd('0x1')](_0x1f35e9){const _0x4e76d0=[...this[_0x5dfd('0x11')]][_0x5dfd('0x0')](_0xeb2cf3=>_0xeb2cf3['resolvedAt']<_0x1f35e9);return _0x4e76d0>-0x1?_0x4e76d0:this['resolvedThreads']['length'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cab=['panelView','CommentsArchiveUI','componentFactory','requires','CommentsRepository','resolvedThreads','children','config','commentsArchiveView','stopListening','_createArchiveUIDropdown','locale','isVisible','channelId','annotationViews','COMMENTS_ARCHIVE','remove','_threadToController','editor','view','init','collaboration.channelId','buttonView','plugins','getByInnerView','commentsArchive','get','add','Annotations','pluginName','listenTo'];(function(_0x49b4c8,_0x1cab94){const _0x2a39f0=function(_0x5c533c){while(--_0x5c533c){_0x49b4c8['push'](_0x49b4c8['shift']());}};_0x2a39f0(++_0x1cab94);}(_0x1cab,0x199));const _0x2a39=function(_0x49b4c8,_0x1cab94){_0x49b4c8=_0x49b4c8-0x0;let _0x2a39f0=_0x1cab[_0x49b4c8];return _0x2a39f0;};import'../../theme/commentsarchive.css';import{Plugin as _0x2f6dad}from'ckeditor5/src/core';import{createDropdown as _0x49c0dc,ViewCollection as _0x49b979}from'ckeditor5/src/ui';import _0x39f4af from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x239c11}from'../utils/common-translations';import _0x44a8d4 from'./ui/view/commentsarchiveview';import _0x614cb7 from'./commentsarchive';export default class a extends _0x2f6dad{static get[_0x2a39('0x17')](){return _0x2a39('0x1a');}static get[_0x2a39('0x1c')](){return[_0x614cb7];}constructor(_0x318a17){super(_0x318a17),this[_0x2a39('0x8')]=new _0x49b979();}[_0x2a39('0xe')](){this[_0x2a39('0xc')]['ui'][_0x2a39('0x1b')][_0x2a39('0x15')](_0x2a39('0x13'),()=>this[_0x2a39('0x4')]());const _0x7aaa68=this['editor'][_0x2a39('0x11')][_0x2a39('0x14')](_0x614cb7),_0x14af19=this[_0x2a39('0xc')]['plugins'][_0x2a39('0x14')](_0x2a39('0x16')),_0x534020=this[_0x2a39('0xc')][_0x2a39('0x11')][_0x2a39('0x14')](_0x2a39('0x1d'));this[_0x2a39('0x18')](_0x7aaa68[_0x2a39('0x1e')],_0x2a39('0x15'),(_0x3eda91,_0x51578f,_0x371c9b)=>{const _0x31fbc2=this[_0x2a39('0xc')][_0x2a39('0x1')][_0x2a39('0x14')](_0x2a39('0xf'));if(!_0x31fbc2||_0x51578f['channelId']===_0x31fbc2){const _0x457462=_0x534020[_0x2a39('0xb')][_0x2a39('0x14')](_0x51578f),_0x26aa3e=_0x14af19[_0x2a39('0x12')](_0x457462[_0x2a39('0xd')]);_0x26aa3e[_0x2a39('0x6')]?this[_0x2a39('0x18')](_0x26aa3e,'change:isVisible',(_0x26fe61,_0x4e6833,_0x40b686)=>{_0x40b686||(this[_0x2a39('0x8')][_0x2a39('0x15')](_0x26aa3e[_0x2a39('0xd')],_0x371c9b),this[_0x2a39('0x3')](_0x26aa3e));}):this[_0x2a39('0x8')]['add'](_0x26aa3e[_0x2a39('0xd')],_0x371c9b);}}),this[_0x2a39('0x18')](_0x7aaa68[_0x2a39('0x1e')],_0x2a39('0xa'),(_0x2b6a57,_0x6b5f03)=>{const _0xac0ec=this[_0x2a39('0xc')][_0x2a39('0x1')][_0x2a39('0x14')]('collaboration.channelId');if(!_0xac0ec||_0x6b5f03[_0x2a39('0x7')]===_0xac0ec){const _0x596c7a=_0x534020[_0x2a39('0xb')][_0x2a39('0x14')](_0x6b5f03),_0xfd77ad=_0x14af19[_0x2a39('0x12')](_0x596c7a[_0x2a39('0xd')])[_0x2a39('0xd')];this[_0x2a39('0x8')][_0x2a39('0xa')](_0xfd77ad);}});}[_0x2a39('0x4')](){const _0x172c33=this[_0x2a39('0xc')],_0x2b3d26=_0x49c0dc(_0x172c33[_0x2a39('0x5')]);return _0x2b3d26[_0x2a39('0x10')]['set']({'icon':_0x39f4af,'label':_0x239c11(_0x172c33[_0x2a39('0x5')],_0x2a39('0x9')),'tooltip':!0x0}),_0x2b3d26['on']('change:isOpen',()=>{this[_0x2a39('0x2')]||(this[_0x2a39('0x2')]=new _0x44a8d4(_0x172c33[_0x2a39('0x5')],this['annotationViews']),_0x2b3d26[_0x2a39('0x19')][_0x2a39('0x0')][_0x2a39('0x15')](this['commentsArchiveView']));}),_0x2b3d26;}}
23
+ const _0x3e0f=['commentsArchiveView','CommentsArchiveUI','panelView','_threadToController','isVisible','channelId','locale','stopListening','listenTo','config','requires','annotationViews','buttonView','change:isOpen','CommentsRepository','resolvedThreads','init','set','pluginName','collaboration.channelId','plugins','get','remove','change:isVisible','COMMENTS_ARCHIVE','componentFactory','editor','getByInnerView','commentsArchive','add','view','_createArchiveUIDropdown'];(function(_0x1521b2,_0x3e0f7c){const _0x984b24=function(_0xa09122){while(--_0xa09122){_0x1521b2['push'](_0x1521b2['shift']());}};_0x984b24(++_0x3e0f7c);}(_0x3e0f,0xbc));const _0x984b=function(_0x1521b2,_0x3e0f7c){_0x1521b2=_0x1521b2-0x0;let _0x984b24=_0x3e0f[_0x1521b2];return _0x984b24;};import'../../theme/commentsarchive.css';import{Plugin as _0x1cfc03}from'ckeditor5/src/core';import{createDropdown as _0x2839bb,ViewCollection as _0x11af99}from'ckeditor5/src/ui';import _0x2704e4 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x345bc4}from'../utils/common-translations';import _0x491950 from'./ui/view/commentsarchiveview';import _0x5382d2 from'./commentsarchive';export default class a extends _0x1cfc03{static get[_0x984b('0x16')](){return _0x984b('0x5');}static get[_0x984b('0xe')](){return[_0x5382d2];}constructor(_0x86af6b){super(_0x86af6b),this[_0x984b('0xf')]=new _0x11af99();}[_0x984b('0x14')](){this['editor']['ui'][_0x984b('0x1d')][_0x984b('0x1')](_0x984b('0x0'),()=>this[_0x984b('0x3')]());const _0x36379b=this[_0x984b('0x1e')][_0x984b('0x18')]['get'](_0x5382d2),_0x4bd286=this[_0x984b('0x1e')][_0x984b('0x18')]['get']('Annotations'),_0x471b34=this[_0x984b('0x1e')]['plugins'][_0x984b('0x19')](_0x984b('0x12'));this[_0x984b('0xc')](_0x36379b[_0x984b('0x13')],_0x984b('0x1'),(_0x15f34b,_0x17f0d5,_0x4caa2e)=>{const _0x33fb43=this[_0x984b('0x1e')][_0x984b('0xd')][_0x984b('0x19')](_0x984b('0x17'));if(!_0x33fb43||_0x17f0d5[_0x984b('0x9')]===_0x33fb43){const _0x3cc8e5=_0x471b34[_0x984b('0x7')][_0x984b('0x19')](_0x17f0d5),_0x2435fc=_0x4bd286[_0x984b('0x1f')](_0x3cc8e5[_0x984b('0x2')]);_0x2435fc[_0x984b('0x8')]?this[_0x984b('0xc')](_0x2435fc,_0x984b('0x1b'),(_0x45cf28,_0x282347,_0x2ec02e)=>{_0x2ec02e||(this[_0x984b('0xf')][_0x984b('0x1')](_0x2435fc[_0x984b('0x2')],_0x4caa2e),this[_0x984b('0xb')](_0x2435fc));}):this['annotationViews'][_0x984b('0x1')](_0x2435fc['view'],_0x4caa2e);}}),this[_0x984b('0xc')](_0x36379b[_0x984b('0x13')],_0x984b('0x1a'),(_0x28fbd7,_0x57fa33)=>{const _0x10a65a=this[_0x984b('0x1e')][_0x984b('0xd')][_0x984b('0x19')](_0x984b('0x17'));if(!_0x10a65a||_0x57fa33['channelId']===_0x10a65a){const _0x466599=_0x471b34['_threadToController'][_0x984b('0x19')](_0x57fa33),_0x27ed19=_0x4bd286[_0x984b('0x1f')](_0x466599[_0x984b('0x2')])[_0x984b('0x2')];this[_0x984b('0xf')]['remove'](_0x27ed19);}});}['_createArchiveUIDropdown'](){const _0x9be32b=this[_0x984b('0x1e')],_0x3cc47b=_0x2839bb(_0x9be32b['locale']);return _0x3cc47b[_0x984b('0x10')][_0x984b('0x15')]({'icon':_0x2704e4,'label':_0x345bc4(_0x9be32b[_0x984b('0xa')],_0x984b('0x1c')),'tooltip':!0x0}),_0x3cc47b['on'](_0x984b('0x11'),()=>{this[_0x984b('0x4')]||(this['commentsArchiveView']=new _0x491950(_0x9be32b['locale'],this['annotationViews']),_0x3cc47b[_0x984b('0x6')]['children'][_0x984b('0x1')](this['commentsArchiveView']));}),_0x3cc47b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4783=['context','for','plugins','managedUsingOperations','createElement','markerToHighlight','_getTargetForId','conversion','ck-comment-marker','getWalker','listenTo','scrollToThreadMarker','createPositionBefore','getChangedMarkers','ready','isCollapsed','getItems','data','filter','render','markers','setContext','change','get','schema','_handleMarkerAddAndRemove','delete','isThreadsLoadingPaused','substring','markerToData','getRange','editor','_attachedThreads','size','focus','switchReadOnly','dataToMarker','document','_initializeMarkerConverters','reopenCommentThread','commands','consume','updateMarker','hasContent','add','newRange','collaboration.channelId','ignoreResolvedComments','item','text','enqueueChange','addCommentThread','_getTextContext','model','change:isReadOnly','$marker','length','comment','isLocal','resolveCommentThread','includes','high','isResolvable','once','openNewCommentThread','removeMarker:','getByInnerView','createRange','attachTo','push','_detachCommentThread','editing','isEqual','getCommentThreads','registerAnnotation','differ','_handleThreadMarker','editingDowncast','init','view','config','ck-comment-marker--active','pluginName','_attachMarkerToThread','dataDowncast','registerPostFixer','destroy','elementToElement','getCommentThread','_threads','map','reconvertMarker','hasCommentThread','getAllMarkersForId','set','activeMarker','CommentsEditing','isResolved','consumable','_threadToController','start','_reconvertMarkers','$graveyard','low','comment:','state','refreshVisibility','upcast','isObject','has','root','reopen','removeMarker','markerName','hasDomSelection'];(function(_0x392ad2,_0x478381){const _0x440f42=function(_0x5cfa73){while(--_0x5cfa73){_0x392ad2['push'](_0x392ad2['shift']());}};_0x440f42(++_0x478381);}(_0x4783,0x154));const _0x440f=function(_0x392ad2,_0x478381){_0x392ad2=_0x392ad2-0x0;let _0x440f42=_0x4783[_0x392ad2];return _0x440f42;};import{Plugin as _0x47823d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x54a481}from'ckeditor5/src/utils';import _0x1e0f94 from'./commentsrepository';import _0x3785de from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0xd731d}from'ckeditor5-collaboration/src/collaboration-core';import _0x2efbd7 from'../annotations/editorannotations';import _0x117b5f from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x5426e6 from'./integrations/importword';import _0x49be6c from'../annotations/annotations';export default class r extends _0x47823d{static get['requires'](){return[_0x1e0f94,_0x2efbd7,_0x117b5f,_0x5426e6];}static get[_0x440f('0x57')](){return _0x440f('0x65');}constructor(_0xdbed88){super(_0xdbed88),this[_0x440f('0x63')](_0x440f('0x20'),!0x0),_0xdbed88[_0x440f('0x16')][_0x440f('0x44')](_0x440f('0x13'),()=>this[_0x440f('0x20')]=!0x1),this[_0x440f('0x63')](_0x440f('0x64'),null),this['on']('change:activeMarker',(_0x55d554,_0x59baf8,_0x197964,_0x47792b)=>{const _0x45f580=_0x197964?tt(_0x197964)['id']:null;if(_0xdbed88[_0x440f('0x3a')][_0x440f('0x1b')](()=>{if(_0x45f580){const _0x48994f=this[_0x440f('0x62')](_0x45f580);for(const _0x56a019 of _0x48994f)_0xdbed88[_0x440f('0x4c')]['reconvertMarker'](_0x56a019);}if(_0x47792b){const {id:_0x46d7ef}=tt(_0x47792b),_0x2c97f9=this[_0x440f('0x62')](_0x46d7ef);for(const _0x49006d of _0x2c97f9)_0xdbed88[_0x440f('0x4c')][_0x440f('0x60')](_0x49006d);}}),_0x45f580){const _0x40bf41=_0xdbed88['plugins'][_0x440f('0x1c')](_0x1e0f94)['getCommentThread'](_0x45f580);_0x40bf41&&_0x40bf41[_0x440f('0x66')]&&this[_0x440f('0x10')](_0x45f580);}}),this['_attachedThreads']=new Map();}[_0x440f('0x53')](){const _0x1c39fa=this['editor'],_0x1edeb6=_0x1c39fa['plugins']['get'](_0x1e0f94),_0x201d3a=_0x1c39fa[_0x440f('0x55')][_0x440f('0x1c')](_0x440f('0x33'));_0x1c39fa[_0x440f('0x2d')]['add']('addCommentThread',new _0x3785de(_0x1c39fa)),this['listenTo'](_0x1c39fa,_0x440f('0x3b'),(_0x592404,_0x325abd,_0x46989b)=>{_0x1edeb6[_0x440f('0x28')](_0x46989b,_0x1c39fa['config'][_0x440f('0x1c')]('collaboration.channelId'));}),this[_0x440f('0xf')](_0x1edeb6,Z(_0x440f('0x38'),_0x201d3a),(_0x27b380,{threadId:_0xa0339c})=>{const _0x3b531a=_0x1c39fa[_0x440f('0x7')]['get'](_0x2efbd7),_0x45f0c3=this[_0x440f('0x24')][_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94)['getCommentThread'](_0xa0339c);if(_0x45f0c3&&_0x45f0c3['isResolved']&&!this['_attachedThreads'][_0x440f('0x72')](_0xa0339c)){const _0x2e3865=_0x45f0c3['attachTo'](()=>this[_0x440f('0xb')](_0x45f0c3['id']));_0x3b531a[_0x440f('0x4f')](_0x2e3865),this['_attachedThreads']['set'](_0xa0339c,[]),0x0===this[_0x440f('0x62')](_0xa0339c)[_0x440f('0x3d')]&&(_0x45f0c3['isResolvable']=!0x1);}}),this[_0x440f('0xf')](_0x1edeb6,Z('removeCommentThread',_0x201d3a),(_0x2d60e1,{threadId:_0x2bf115})=>{_0x1c39fa[_0x440f('0x3a')]['enqueueChange']({'isUndoable':!0x1},_0x4b3aab=>{const _0x4b71d1=this[_0x440f('0x62')](_0x2bf115);this[_0x440f('0x25')][_0x440f('0x1f')](_0x2bf115);for(const _0x1031c5 of _0x4b71d1)_0x4b3aab[_0x440f('0x2')](_0x1031c5);});},{'priority':_0x440f('0x42')}),this[_0x440f('0xf')](_0x1edeb6,Z(_0x440f('0x40'),_0x201d3a),(_0x4a3552,{threadId:_0x4591a4})=>{this['_reconvertMarkers'](_0x4591a4),this[_0x440f('0x24')][_0x440f('0x4c')]['view'][_0x440f('0x4')]&&this['editor'][_0x440f('0x4c')][_0x440f('0x54')][_0x440f('0x27')]();},{'priority':'low'}),this[_0x440f('0xf')](_0x1edeb6,Z(_0x440f('0x2c'),_0x201d3a),(_0x220b51,{threadId:_0x47ce16})=>{this[_0x440f('0x6a')](_0x47ce16);},{'priority':_0x440f('0x6c')}),this[_0x440f('0xf')](_0x1edeb6,Z('addComment',_0x201d3a),(_0x201a32,{threadId:_0x1c7a86,isFromAdapter:_0x148835})=>{const _0x258b13=this['getAllMarkersForId'](_0x1c7a86);if(_0x148835||0x0==_0x258b13[_0x440f('0x3d')]||!_0x1edeb6[_0x440f('0x61')](_0x1c7a86))return;0x1===_0x1edeb6[_0x440f('0x5d')](_0x1c7a86)[_0x440f('0x3d')]&&_0x1c39fa[_0x440f('0x3a')][_0x440f('0x37')]({'isUndoable':!0x1},_0x3f6e59=>{for(const _0x2712bf of _0x258b13)_0x3f6e59[_0x440f('0x2f')](_0x2712bf,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x440f('0x6c')}),this[_0x440f('0x2b')](),this[_0x440f('0x1e')]();}[_0x440f('0x5b')](){const _0x1d47ef=this[_0x440f('0x24')][_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94),_0x2ea889=this[_0x440f('0x24')][_0x440f('0x55')][_0x440f('0x1c')](_0x440f('0x33'));for(const _0x4fc0cd of _0x1d47ef[_0x440f('0x4e')]({'channelId':_0x2ea889}))_0x1d47ef[_0x440f('0x4b')](_0x4fc0cd['id']),_0x1d47ef[_0x440f('0x5e')]['delete'](_0x4fc0cd['id']);super['destroy']();}['hasMarkerForId'](_0xe5338c){return this[_0x440f('0x62')](_0xe5338c)['length']>0x0;}[_0x440f('0x62')](_0x51727d){return(this[_0x440f('0x25')][_0x440f('0x1c')](_0x51727d)||[])[_0x440f('0x5f')](_0x4e0307=>this[_0x440f('0x24')][_0x440f('0x3a')][_0x440f('0x19')][_0x440f('0x1c')](_0x4e0307))[_0x440f('0x17')](_0xee62ea=>_0xee62ea);}['scrollToThreadMarker'](_0x5c7af2){const _0x145065=this['_getTargetForId'](_0x5c7af2);_0x145065&&setTimeout(()=>{this[_0x440f('0x64')]&&tt(this['activeMarker'])['id']===_0x5c7af2&&_0x54a481({'target':_0x145065[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x440f('0x6a')](_0x3f83c7){this[_0x440f('0x24')]['model'][_0x440f('0x1b')](()=>{for(const _0x449745 of this['getAllMarkersForId'](_0x3f83c7))this[_0x440f('0x24')][_0x440f('0x4c')]['reconvertMarker'](_0x449745);});}[_0x440f('0x2b')](){const _0x176421=this['editor'];_0x176421[_0x440f('0xc')][_0x440f('0x6')](_0x440f('0x52'))[_0x440f('0xa')]({'model':_0x440f('0x3e'),'view':(_0x1dd8e6,_0x4eb41a)=>{const {id:_0x4c5570}=tt(_0x1dd8e6[_0x440f('0x3')]),_0x460402=_0x176421[_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94)[_0x440f('0x5d')](_0x4c5570),_0x4658aa=this['activeMarker']&&tt(this['activeMarker'])['id']===_0x4c5570;if(_0x460402&&_0x460402[_0x440f('0x66')]&&!_0x4658aa&&_0x1dd8e6[_0x440f('0x35')])return _0x4eb41a[_0x440f('0x67')][_0x440f('0x2e')](_0x1dd8e6[_0x440f('0x35')],'addMarker:'+_0x1dd8e6['markerName']),_0x4eb41a[_0x440f('0x67')][_0x440f('0x2e')](_0x1dd8e6[_0x440f('0x35')],_0x440f('0x46')+_0x1dd8e6[_0x440f('0x3')]),{'classes':[]};const _0x59e28b=[_0x440f('0xd')];return _0x4658aa&&_0x59e28b['push'](_0x440f('0x56')),{'classes':_0x59e28b,'attributes':{'data-comment':_0x4c5570}};}}),_0x176421[_0x440f('0xc')][_0x440f('0x6')](_0x440f('0x59'))[_0x440f('0x22')]({'model':_0x440f('0x3e'),'view':(_0x8ce3e7,{options:_0x1466bf})=>{const _0x9ac874=_0x176421[_0x440f('0x7')]['get'](_0x1e0f94),_0x47d19d=_0x176421[_0x440f('0x3a')][_0x440f('0x19')]['get'](_0x8ce3e7),{id:_0x434a35,part:_0x44e124}=tt(_0x8ce3e7),_0x571d0a=_0x9ac874['getCommentThread'](_0x434a35);return _0x47d19d&&!_0x47d19d['affectsData']||_0x571d0a&&_0x571d0a[_0x440f('0x66')]&&_0x1466bf[_0x440f('0x34')]?null:{'group':_0x440f('0x3e'),'name':_0x44e124?_0x434a35+':'+_0x44e124:_0x434a35};}}),_0x176421[_0x440f('0xc')][_0x440f('0x6')](_0x440f('0x70'))[_0x440f('0x5c')]({'view':{'name':_0x440f('0x3e'),'attributes':{'id':/^\w/}},'model':(_0x2950e1,{writer:_0x25b17a})=>_0x25b17a[_0x440f('0x9')](_0x440f('0x3c'),{'data-name':_0x440f('0x6d')+_0x2950e1['getAttribute']('id')})}),_0x176421['conversion'][_0x440f('0x6')](_0x440f('0x70'))[_0x440f('0x29')]({'view':_0x440f('0x3e')});}[_0x440f('0x1e')](){const _0x5c9108=this['editor'],_0x4537e7=_0x5c9108[_0x440f('0x7')]['get'](_0x1e0f94),_0x1e8583=new Set();_0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')][_0x440f('0x5a')](_0x50b956=>{let _0xedae8c=!0x1;for(const {name:_0x2ff4e3,data:_0x5d1adb}of _0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')][_0x440f('0x50')][_0x440f('0x12')]()){const {group:_0xfbdebf,id:_0x1c3e0c}=tt(_0x2ff4e3);let _0x54c211=_0x5d1adb[_0x440f('0x32')];if(_0x440f('0x3e')!==_0xfbdebf||!_0x54c211)continue;const _0x325c04=_0x440f('0x6b')===_0x54c211[_0x440f('0x0')]['rootName'];_0x325c04||(_0x54c211=ot(_0x54c211,_0x5c9108['model']),!_0x54c211||!_0x5d1adb[_0x440f('0x32')]||_0x54c211[_0x440f('0x4d')](_0x5d1adb[_0x440f('0x32')]))?!_0x54c211||!_0x5c9108[_0x440f('0x3a')][_0x440f('0x30')](_0x54c211)||this[_0x440f('0x25')][_0x440f('0x72')](_0x1c3e0c)&&_0x325c04?(_0x50b956[_0x440f('0x2')](_0x2ff4e3),_0xedae8c=!0x0):_0x325c04||(this[_0x440f('0x20')]?_0x1e8583[_0x440f('0x31')](_0x2ff4e3):this[_0x440f('0x51')](_0x2ff4e3,_0x1c3e0c)):(_0x50b956[_0x440f('0x2f')](_0x2ff4e3,{'range':_0x54c211}),_0xedae8c=!0x0);}return _0xedae8c;}),this['on']('change:isThreadsLoadingPaused',(_0x36e312,_0x252d8f,_0x3635a9)=>{if(!_0x3635a9&&_0x1e8583[_0x440f('0x26')])for(const _0x317a53 of _0x1e8583){const {id:_0x4cc19b}=tt(_0x317a53);_0x1e8583[_0x440f('0x1f')](_0x4cc19b),_0x5c9108['model'][_0x440f('0x19')][_0x440f('0x1c')](_0x317a53)&&this['_handleThreadMarker'](_0x317a53,_0x4cc19b);}}),this[_0x440f('0xf')](_0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')],_0x440f('0x1b'),(_0x771c2e,_0x40ec64)=>{for(const {name:_0x270942,data:{newRange:_0x1e9fe8}}of _0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')][_0x440f('0x50')][_0x440f('0x12')]()){const {group:_0xaeecc4,id:_0x38c9ed}=tt(_0x270942);if(_0x440f('0x3e')!==_0xaeecc4)continue;const _0x298269=_0x4537e7[_0x440f('0x5d')](_0x38c9ed),_0x15edef=this['hasMarkerForId'](_0x38c9ed);_0x298269&&(_0x298269[_0x440f('0x43')]=_0x15edef||!!_0x1e9fe8),!_0x1e9fe8&&_0x40ec64[_0x440f('0x3f')]&&(_0x1e8583[_0x440f('0x1f')](_0x38c9ed),_0x298269&&!_0x298269['isResolved']&&!_0x15edef&&this['_attachedThreads'][_0x440f('0x72')](_0x38c9ed)&&(this[_0x440f('0x25')][_0x440f('0x1f')](_0x38c9ed),_0x298269['resolve']()));}});}['_getTargetForId'](_0x13f5d3){const _0x328664=this[_0x440f('0x24')],_0x1c6d2d=this[_0x440f('0x62')](_0x13f5d3);return _0xd731d(_0x328664[_0x440f('0x4c')],_0x1c6d2d);}['_getTextContext'](_0x99aef1){const _0x383aa4=this[_0x440f('0x62')](_0x99aef1);let _0x47cc97='',_0x5d468e=!0x1;for(const _0x27114d of _0x383aa4){const _0x9ec12f=_0x27114d[_0x440f('0x23')]();for(const _0x44d3e6 of Array['from'](_0x9ec12f[_0x440f('0x15')]()))_0x44d3e6['is']('$textProxy')?(_0x47cc97&&_0x5d468e&&(_0x47cc97+='\x20',_0x5d468e=!0x1),_0x47cc97+=_0x44d3e6[_0x440f('0x16')]):_0x5d468e=!0x0;_0x5d468e=!0x0;}return _0x47cc97[_0x440f('0x21')](0x0,0x96);}[_0x440f('0x58')](_0x289b07,_0x352264){const _0x549243=this['editor'],_0x198ffb=_0x549243[_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94);let _0x30c18d=_0x198ffb[_0x440f('0x5d')](_0x352264);if(this[_0x440f('0x25')][_0x440f('0x72')](_0x352264)){const _0x5e3575=this[_0x440f('0x25')][_0x440f('0x1c')](_0x352264);return _0x5e3575[_0x440f('0x41')](_0x289b07)||_0x5e3575[_0x440f('0x4a')](_0x289b07),_0x30c18d;}this[_0x440f('0x25')][_0x440f('0x63')](_0x352264,[_0x289b07]);const _0x212e32=_0x549243['config'][_0x440f('0x1c')](_0x440f('0x33')),_0x29cd44=_0x549243[_0x440f('0x7')]['get'](_0x2efbd7);if(_0x30c18d&&_0x30c18d[_0x440f('0x66')])return _0x30c18d[_0x440f('0x1')](),_0x549243['editing'][_0x440f('0x54')][_0x440f('0x44')](_0x440f('0x18'),()=>{const _0x580a43=_0x549243['plugins'][_0x440f('0x1c')](_0x49be6c),_0x569191=_0x198ffb[_0x440f('0x68')][_0x440f('0x1c')](_0x30c18d)[_0x440f('0x54')];_0x580a43['getByInnerView'](_0x569191)[_0x440f('0x6f')]();},{'priority':_0x440f('0x6c')}),_0x30c18d;return!this[_0x440f('0x62')](_0x352264)[0x0][_0x440f('0x8')]?_0x549243[_0x440f('0x4c')][_0x440f('0x54')][_0x440f('0x44')]('render',()=>{const _0x5d5048=_0x549243[_0x440f('0x7')][_0x440f('0x1c')](_0x49be6c);_0x30c18d=_0x198ffb[_0x440f('0x45')]({'channelId':_0x212e32,'threadId':_0x352264,'target':()=>this[_0x440f('0xb')](_0x352264),'context':{'type':_0x440f('0x36'),'value':this[_0x440f('0x39')](_0x352264)}});const _0x3c3a3c=_0x198ffb[_0x440f('0x68')]['get'](_0x30c18d)[_0x440f('0x54')],_0x2cb344=_0x5d5048[_0x440f('0x47')](_0x3c3a3c);_0x2cb344&&_0x29cd44[_0x440f('0x4f')](_0x2cb344);},{'priority':_0x440f('0x6c')}):_0x198ffb['fetchCommentThread']({'channelId':_0x212e32,'threadId':_0x352264})['then'](_0x1a563e=>{if('destroyed'!==_0x549243[_0x440f('0x6e')]){if(_0x30c18d=_0x1a563e,_0x30c18d){const _0x1a6680=_0x30c18d[_0x440f('0x49')](()=>this[_0x440f('0xb')](_0x352264));_0x29cd44[_0x440f('0x4f')](_0x1a6680);}else{const _0x314225=this['getAllMarkersForId'](_0x352264);_0x549243[_0x440f('0x3a')]['change'](_0x5e50c0=>{for(const _0x455a56 of _0x314225)_0x5e50c0[_0x440f('0x2')](_0x455a56);});}}}),_0x30c18d;}['_handleThreadMarker'](_0x49014e,_0x3485f8){const _0x1fc7ae=this[_0x440f('0x58')](_0x49014e,_0x3485f8);_0x1fc7ae&&!_0x1fc7ae[_0x440f('0x5')]&&_0x1fc7ae[_0x440f('0x1a')]({'type':_0x440f('0x36'),'value':this['_getTextContext'](_0x3485f8)});}}function Z(_0x13ed49,_0x52fdf4){return _0x52fdf4?_0x13ed49+':'+_0x52fdf4:_0x13ed49;}function tt(_0x46a707){const _0xa94e96=_0x46a707['split'](':');return{'group':_0xa94e96[0x0],'id':_0xa94e96[0x1],'part':_0xa94e96[0x2]};}function ot(_0x340093,_0x4d0556){const _0x435eb6=_0x4d0556[_0x440f('0x1d')],_0x494197=_0x4d0556[_0x440f('0x48')](_0x340093[_0x440f('0x69')]);for(const _0x58baa2 of _0x340093[_0x440f('0xe')]()){const {type:_0x2c6884,item:_0x533c21,nextPosition:_0x2a81cb}=_0x58baa2;if(_0x440f('0x36')===_0x2c6884||_0x435eb6[_0x440f('0x71')](_0x533c21)){const _0x4d2844=_0x4d0556[_0x440f('0x11')](_0x533c21);_0x494197[_0x440f('0x14')]&&(_0x494197[_0x440f('0x69')]=_0x4d2844),_0x494197['end']=_0x2a81cb;}}return _0x494197[_0x440f('0x14')]?null:_0x494197;}
23
+ const _0x2f5c=['set','getCommentThreads','hasCommentThread','getWalker','size','attachTo','state','dataDowncast','init','change:isThreadsLoadingPaused','$marker','change','ck-comment-marker','model','getByInnerView','has','differ','_getTargetForId','addCommentThread','comment','change:isReadOnly','getAllMarkersForId','data','add','focus','change:activeMarker','getCommentThread','ck-comment-marker--active','removeMarker','scrollToThreadMarker','_handleThreadMarker','pluginName','get','isResolved','_handleMarkerAddAndRemove','listenTo','for','createRange','once','createPositionBefore','rootName','isObject','conversion','switchReadOnly','length','from','removeCommentThread','collaboration.channelId','getChangedMarkers','removeMarker:','editing','markerName','consume','markers','activeMarker','substring','push','filter','render','_threadToController','hasMarkerForId','editor','isCollapsed','delete','markerToHighlight','_attachMarkerToThread','_detachCommentThread','ready','managedUsingOperations','getItems','item','$graveyard','_initializeMarkerConverters','isLocal','openNewCommentThread','CommentsEditing','text','view','$textProxy','low','enqueueChange','isEqual','getAttribute','plugins','hasDomSelection','markerToData','_getTextContext','createElement','start','destroy','newRange','document','end','updateMarker','isThreadsLoadingPaused','upcast','reconvertMarker','_reconvertMarkers','registerAnnotation','setContext','_attachedThreads','_hasTargetInContent','config','affectsData','schema','comment:','consumable'];(function(_0x38a813,_0x2f5c5c){const _0x5b772d=function(_0xaabea1){while(--_0xaabea1){_0x38a813['push'](_0x38a813['shift']());}};_0x5b772d(++_0x2f5c5c);}(_0x2f5c,0x152));const _0x5b77=function(_0x38a813,_0x2f5c5c){_0x38a813=_0x38a813-0x0;let _0x5b772d=_0x2f5c[_0x38a813];return _0x5b772d;};import{Plugin as _0x5d5f00}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xf18b8}from'ckeditor5/src/utils';import _0x422b86 from'./commentsrepository';import _0x4bab68 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x5b3977}from'ckeditor5-collaboration/src/collaboration-core';import _0x13dc1b from'../annotations/editorannotations';import _0x26c4c2 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x42fc90 from'./integrations/importword';import _0x7fabf6 from'../annotations/annotations';export default class r extends _0x5d5f00{static get['requires'](){return[_0x422b86,_0x13dc1b,_0x26c4c2,_0x42fc90];}static get[_0x5b77('0xe')](){return _0x5b77('0x3a');}constructor(_0x5315f0){super(_0x5315f0),this[_0x5b77('0x5a')](_0x5b77('0x4d'),!0x0),_0x5315f0[_0x5b77('0x5')][_0x5b77('0x15')](_0x5b77('0x32'),()=>this[_0x5b77('0x4d')]=!0x1),this[_0x5b77('0x5a')]('activeMarker',null),this['on'](_0x5b77('0x8'),(_0x4e2693,_0x425f77,_0x54c2e4,_0x162be5)=>{const _0x2ef2fa=_0x54c2e4?tt(_0x54c2e4)['id']:null;if(_0x5315f0[_0x5b77('0x67')][_0x5b77('0x65')](()=>{if(_0x2ef2fa){const _0x170a13=this[_0x5b77('0x4')](_0x2ef2fa);for(const _0x1b700c of _0x170a13)_0x5315f0['editing'][_0x5b77('0x4f')](_0x1b700c);}if(_0x162be5){const {id:_0x1b97d4}=tt(_0x162be5),_0x32424f=this[_0x5b77('0x4')](_0x1b97d4);for(const _0x399a5e of _0x32424f)_0x5315f0[_0x5b77('0x21')][_0x5b77('0x4f')](_0x399a5e);}}),_0x2ef2fa){const _0x124296=_0x5315f0[_0x5b77('0x42')][_0x5b77('0xf')](_0x422b86)['getCommentThread'](_0x2ef2fa);_0x124296&&_0x124296[_0x5b77('0x10')]&&this[_0x5b77('0xc')](_0x2ef2fa);}}),this[_0x5b77('0x53')]=new Map();}[_0x5b77('0x62')](){const _0x61e90f=this[_0x5b77('0x2c')],_0x21347a=_0x61e90f[_0x5b77('0x42')]['get'](_0x422b86),_0x5b924d=_0x61e90f[_0x5b77('0x55')][_0x5b77('0xf')](_0x5b77('0x1e'));_0x61e90f['commands'][_0x5b77('0x6')](_0x5b77('0x1'),new _0x4bab68(_0x61e90f)),this[_0x5b77('0x12')](_0x61e90f,_0x5b77('0x3'),(_0x2a5c5e,_0xb143c7,_0x11fa43)=>{_0x21347a[_0x5b77('0x1a')](_0x11fa43,_0x61e90f[_0x5b77('0x55')][_0x5b77('0xf')](_0x5b77('0x1e')));}),this[_0x5b77('0x12')](_0x21347a,Z(_0x5b77('0x1'),_0x5b924d),(_0x39decf,{threadId:_0x3a2889})=>{const _0x3d532d=_0x61e90f[_0x5b77('0x42')][_0x5b77('0xf')](_0x13dc1b),_0x161116=this[_0x5b77('0x2c')][_0x5b77('0x42')][_0x5b77('0xf')](_0x422b86)[_0x5b77('0x9')](_0x3a2889);if(_0x161116&&_0x161116[_0x5b77('0x10')]&&!this[_0x5b77('0x53')][_0x5b77('0x69')](_0x3a2889)){const _0x4eb9e0=_0x161116[_0x5b77('0x5f')](()=>this[_0x5b77('0x0')](_0x161116['id']));_0x3d532d[_0x5b77('0x51')](_0x4eb9e0),this[_0x5b77('0x53')]['set'](_0x3a2889,[]),0x0===this[_0x5b77('0x4')](_0x3a2889)[_0x5b77('0x1b')]&&(_0x161116[_0x5b77('0x54')]=!0x1);}}),this[_0x5b77('0x12')](_0x21347a,Z(_0x5b77('0x1d'),_0x5b924d),(_0x236163,{threadId:_0x516b7a})=>{_0x61e90f[_0x5b77('0x67')][_0x5b77('0x3f')]({'isUndoable':!0x1},_0x517df7=>{const _0x139c61=this['getAllMarkersForId'](_0x516b7a);this['_attachedThreads'][_0x5b77('0x2e')](_0x516b7a);for(const _0x3f7548 of _0x139c61)_0x517df7[_0x5b77('0xb')](_0x3f7548);});},{'priority':'high'}),this[_0x5b77('0x12')](_0x21347a,Z('resolveCommentThread',_0x5b924d),(_0x2019f6,{threadId:_0x5a3a9b})=>{this['_reconvertMarkers'](_0x5a3a9b),this[_0x5b77('0x2c')][_0x5b77('0x21')][_0x5b77('0x3c')][_0x5b77('0x43')]&&this[_0x5b77('0x2c')][_0x5b77('0x21')][_0x5b77('0x3c')][_0x5b77('0x7')]();},{'priority':_0x5b77('0x3e')}),this[_0x5b77('0x12')](_0x21347a,Z('reopenCommentThread',_0x5b924d),(_0x4400c5,{threadId:_0x12f786})=>{this[_0x5b77('0x50')](_0x12f786);},{'priority':_0x5b77('0x3e')}),this[_0x5b77('0x12')](_0x21347a,Z('addComment',_0x5b924d),(_0x918476,{threadId:_0x3e3ca0,isFromAdapter:_0x553657})=>{const _0x20e43c=this[_0x5b77('0x4')](_0x3e3ca0);if(_0x553657||0x0==_0x20e43c[_0x5b77('0x1b')]||!_0x21347a[_0x5b77('0x5c')](_0x3e3ca0))return;0x1===_0x21347a[_0x5b77('0x9')](_0x3e3ca0)['length']&&_0x61e90f[_0x5b77('0x67')][_0x5b77('0x3f')]({'isUndoable':!0x1},_0x3d413f=>{for(const _0x3bef1d of _0x20e43c)_0x3d413f[_0x5b77('0x4c')](_0x3bef1d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5b77('0x3e')}),this[_0x5b77('0x37')](),this[_0x5b77('0x11')]();}[_0x5b77('0x48')](){const _0x4c382d=this[_0x5b77('0x2c')]['plugins']['get'](_0x422b86),_0x17b442=this[_0x5b77('0x2c')]['config'][_0x5b77('0xf')](_0x5b77('0x1e'));for(const _0x312dc6 of _0x4c382d[_0x5b77('0x5b')]({'channelId':_0x17b442}))_0x4c382d[_0x5b77('0x31')](_0x312dc6['id']),_0x4c382d['_threads'][_0x5b77('0x2e')](_0x312dc6['id']);super['destroy']();}['hasMarkerForId'](_0x53c08f){return this[_0x5b77('0x4')](_0x53c08f)['length']>0x0;}[_0x5b77('0x4')](_0x54b2e6){return(this[_0x5b77('0x53')][_0x5b77('0xf')](_0x54b2e6)||[])['map'](_0x11cc76=>this[_0x5b77('0x2c')][_0x5b77('0x67')][_0x5b77('0x24')][_0x5b77('0xf')](_0x11cc76))[_0x5b77('0x28')](_0x40c68c=>_0x40c68c);}[_0x5b77('0xc')](_0x2c7d19){const _0x4f3519=this[_0x5b77('0x0')](_0x2c7d19);_0x4f3519&&setTimeout(()=>{this[_0x5b77('0x25')]&&tt(this['activeMarker'])['id']===_0x2c7d19&&_0xf18b8({'target':_0x4f3519[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5b77('0x50')](_0x528b6b){this[_0x5b77('0x2c')][_0x5b77('0x67')][_0x5b77('0x65')](()=>{for(const _0x1738e2 of this['getAllMarkersForId'](_0x528b6b))this[_0x5b77('0x2c')][_0x5b77('0x21')][_0x5b77('0x4f')](_0x1738e2);});}['_initializeMarkerConverters'](){const _0x28f5d2=this[_0x5b77('0x2c')];_0x28f5d2[_0x5b77('0x19')]['for']('editingDowncast')[_0x5b77('0x2f')]({'model':_0x5b77('0x2'),'view':(_0x538127,_0xfa86ed)=>{const {id:_0x3fe827}=tt(_0x538127[_0x5b77('0x22')]),_0xecd3e5=_0x28f5d2[_0x5b77('0x42')][_0x5b77('0xf')](_0x422b86)['getCommentThread'](_0x3fe827),_0x16b068=this[_0x5b77('0x25')]&&tt(this[_0x5b77('0x25')])['id']===_0x3fe827;if(_0xecd3e5&&_0xecd3e5[_0x5b77('0x10')]&&!_0x16b068&&_0x538127[_0x5b77('0x35')])return _0xfa86ed[_0x5b77('0x59')][_0x5b77('0x23')](_0x538127[_0x5b77('0x35')],'addMarker:'+_0x538127['markerName']),_0xfa86ed['consumable'][_0x5b77('0x23')](_0x538127[_0x5b77('0x35')],_0x5b77('0x20')+_0x538127['markerName']),{'classes':[]};const _0x56221f=[_0x5b77('0x66')];return _0x16b068&&_0x56221f[_0x5b77('0x27')](_0x5b77('0xa')),{'classes':_0x56221f,'attributes':{'data-comment':_0x3fe827}};}}),_0x28f5d2[_0x5b77('0x19')][_0x5b77('0x13')](_0x5b77('0x61'))[_0x5b77('0x44')]({'model':'comment','view':(_0x1d8c85,{options:_0x357e86})=>{const _0x543c2c=_0x28f5d2[_0x5b77('0x42')]['get'](_0x422b86),_0xbe87a4=_0x28f5d2[_0x5b77('0x67')][_0x5b77('0x24')][_0x5b77('0xf')](_0x1d8c85),{id:_0xb8ebe,part:_0x8d3071}=tt(_0x1d8c85),_0x194a99=_0x543c2c[_0x5b77('0x9')](_0xb8ebe);return _0xbe87a4&&!_0xbe87a4[_0x5b77('0x56')]||_0x194a99&&_0x194a99[_0x5b77('0x10')]&&_0x357e86['ignoreResolvedComments']?null:{'group':_0x5b77('0x2'),'name':_0x8d3071?_0xb8ebe+':'+_0x8d3071:_0xb8ebe};}}),_0x28f5d2[_0x5b77('0x19')][_0x5b77('0x13')](_0x5b77('0x4e'))['elementToElement']({'view':{'name':_0x5b77('0x2'),'attributes':{'id':/^\w/}},'model':(_0x4c2a69,{writer:_0x17192a})=>_0x17192a[_0x5b77('0x46')](_0x5b77('0x64'),{'data-name':_0x5b77('0x58')+_0x4c2a69[_0x5b77('0x41')]('id')})}),_0x28f5d2[_0x5b77('0x19')]['for'](_0x5b77('0x4e'))['dataToMarker']({'view':_0x5b77('0x2')});}[_0x5b77('0x11')](){const _0x1449ad=this[_0x5b77('0x2c')],_0x4f34cd=_0x1449ad['plugins']['get'](_0x422b86),_0xc1f62f=new Set();_0x1449ad[_0x5b77('0x67')]['document']['registerPostFixer'](_0x4471e4=>{let _0x149cf1=!0x1;for(const {name:_0x3d8f8a,data:_0x24a5b8}of _0x1449ad[_0x5b77('0x67')][_0x5b77('0x4a')][_0x5b77('0x6a')][_0x5b77('0x1f')]()){const {group:_0x521d90,id:_0x3507f8}=tt(_0x3d8f8a);let _0x282385=_0x24a5b8[_0x5b77('0x49')];if(_0x5b77('0x2')!==_0x521d90||!_0x282385)continue;const _0x544476=_0x5b77('0x36')===_0x282385['root'][_0x5b77('0x17')];_0x544476||(_0x282385=ot(_0x282385,_0x1449ad[_0x5b77('0x67')]),!_0x282385||!_0x24a5b8[_0x5b77('0x49')]||_0x282385[_0x5b77('0x40')](_0x24a5b8[_0x5b77('0x49')]))?!_0x282385||!_0x1449ad['model']['hasContent'](_0x282385)||this[_0x5b77('0x53')]['has'](_0x3507f8)&&_0x544476?(_0x4471e4[_0x5b77('0xb')](_0x3d8f8a),_0x149cf1=!0x0):_0x544476||(this[_0x5b77('0x4d')]?_0xc1f62f[_0x5b77('0x6')](_0x3d8f8a):this[_0x5b77('0xd')](_0x3d8f8a,_0x3507f8)):(_0x4471e4[_0x5b77('0x4c')](_0x3d8f8a,{'range':_0x282385}),_0x149cf1=!0x0);}return _0x149cf1;}),this['on'](_0x5b77('0x63'),(_0x2ee36e,_0x5d9e90,_0x490024)=>{if(!_0x490024&&_0xc1f62f[_0x5b77('0x5e')])for(const _0x997eab of _0xc1f62f){const {id:_0xb4e178}=tt(_0x997eab);_0xc1f62f[_0x5b77('0x2e')](_0xb4e178),_0x1449ad[_0x5b77('0x67')][_0x5b77('0x24')][_0x5b77('0xf')](_0x997eab)&&this[_0x5b77('0xd')](_0x997eab,_0xb4e178);}}),this[_0x5b77('0x12')](_0x1449ad[_0x5b77('0x67')][_0x5b77('0x4a')],_0x5b77('0x65'),(_0x2db13a,_0xb321e)=>{for(const {name:_0x818a9d,data:{newRange:_0x2f3e3f}}of _0x1449ad[_0x5b77('0x67')][_0x5b77('0x4a')][_0x5b77('0x6a')][_0x5b77('0x1f')]()){const {group:_0x4c9f40,id:_0x4d324f}=tt(_0x818a9d);if(_0x5b77('0x2')!==_0x4c9f40)continue;const _0x41c2b9=_0x4f34cd['getCommentThread'](_0x4d324f),_0x5c5113=this[_0x5b77('0x2b')](_0x4d324f);_0x41c2b9&&(_0x41c2b9[_0x5b77('0x54')]||_0x1449ad[_0x5b77('0x21')][_0x5b77('0x3c')][_0x5b77('0x15')](_0x5b77('0x29'),()=>{const _0xd24826=_0x1449ad[_0x5b77('0x42')][_0x5b77('0xf')](_0x7fabf6),_0x29b835=_0x4f34cd['_threadToController']['get'](_0x41c2b9)[_0x5b77('0x3c')];_0xd24826[_0x5b77('0x68')](_0x29b835)['refreshVisibility']();},{'priority':'low'}),_0x41c2b9[_0x5b77('0x54')]=_0x5c5113||!!_0x2f3e3f),!_0x2f3e3f&&_0xb321e[_0x5b77('0x38')]&&(_0xc1f62f[_0x5b77('0x2e')](_0x4d324f),_0x41c2b9&&!_0x41c2b9[_0x5b77('0x10')]&&!_0x5c5113&&this['_attachedThreads'][_0x5b77('0x69')](_0x4d324f)&&(this[_0x5b77('0x53')][_0x5b77('0x2e')](_0x4d324f),_0x41c2b9['resolve']()));}});}[_0x5b77('0x0')](_0x303a25){const _0x2f65d0=this[_0x5b77('0x2c')],_0x189557=this[_0x5b77('0x4')](_0x303a25);return _0x5b3977(_0x2f65d0[_0x5b77('0x21')],_0x189557);}[_0x5b77('0x45')](_0x44d5c1){const _0x511956=this[_0x5b77('0x4')](_0x44d5c1);let _0x5b4186='',_0x62634e=!0x1;for(const _0x2f039c of _0x511956){const _0x1e1a0a=_0x2f039c['getRange']();for(const _0x38e028 of Array[_0x5b77('0x1c')](_0x1e1a0a[_0x5b77('0x34')]()))_0x38e028['is'](_0x5b77('0x3d'))?(_0x5b4186&&_0x62634e&&(_0x5b4186+='\x20',_0x62634e=!0x1),_0x5b4186+=_0x38e028['data']):_0x62634e=!0x0;_0x62634e=!0x0;}return _0x5b4186[_0x5b77('0x26')](0x0,0x96);}[_0x5b77('0x30')](_0x2f4a5c,_0x225c72){const _0x25cbe2=this[_0x5b77('0x2c')],_0x308960=_0x25cbe2[_0x5b77('0x42')]['get'](_0x422b86);let _0x4f6874=_0x308960[_0x5b77('0x9')](_0x225c72);if(this['_attachedThreads'][_0x5b77('0x69')](_0x225c72)){const _0x3ea6af=this[_0x5b77('0x53')][_0x5b77('0xf')](_0x225c72);return _0x3ea6af['includes'](_0x2f4a5c)||_0x3ea6af[_0x5b77('0x27')](_0x2f4a5c),_0x4f6874;}this[_0x5b77('0x53')][_0x5b77('0x5a')](_0x225c72,[_0x2f4a5c]);const _0x5721a6=_0x25cbe2[_0x5b77('0x55')][_0x5b77('0xf')](_0x5b77('0x1e')),_0x56dd5d=_0x25cbe2['plugins']['get'](_0x13dc1b);if(_0x4f6874&&_0x4f6874[_0x5b77('0x10')])return _0x4f6874['reopen'](),_0x4f6874;return!this[_0x5b77('0x4')](_0x225c72)[0x0][_0x5b77('0x33')]?_0x25cbe2['editing'][_0x5b77('0x3c')]['once']('render',()=>{const _0x4767c6=_0x25cbe2[_0x5b77('0x42')][_0x5b77('0xf')](_0x7fabf6);_0x4f6874=_0x308960[_0x5b77('0x39')]({'channelId':_0x5721a6,'threadId':_0x225c72,'target':()=>this['_getTargetForId'](_0x225c72),'context':{'type':_0x5b77('0x3b'),'value':this[_0x5b77('0x45')](_0x225c72)}});const _0x31eee9=_0x308960[_0x5b77('0x2a')]['get'](_0x4f6874)[_0x5b77('0x3c')],_0x190191=_0x4767c6[_0x5b77('0x68')](_0x31eee9);_0x190191&&_0x56dd5d['registerAnnotation'](_0x190191);},{'priority':_0x5b77('0x3e')}):_0x308960['fetchCommentThread']({'channelId':_0x5721a6,'threadId':_0x225c72})['then'](_0x3e2406=>{if('destroyed'!==_0x25cbe2[_0x5b77('0x60')]){if(_0x4f6874=_0x3e2406,_0x4f6874){const _0x1c980e=_0x4f6874[_0x5b77('0x5f')](()=>this['_getTargetForId'](_0x225c72));_0x56dd5d[_0x5b77('0x51')](_0x1c980e);}else{const _0x3dd765=this[_0x5b77('0x4')](_0x225c72);_0x25cbe2[_0x5b77('0x67')][_0x5b77('0x65')](_0x1cfbfb=>{for(const _0x13578b of _0x3dd765)_0x1cfbfb[_0x5b77('0xb')](_0x13578b);});}}}),_0x4f6874;}[_0x5b77('0xd')](_0x5bf498,_0x4c7c0d){const _0xa31491=this[_0x5b77('0x30')](_0x5bf498,_0x4c7c0d);_0xa31491&&!_0xa31491['context']&&_0xa31491[_0x5b77('0x52')]({'type':'text','value':this[_0x5b77('0x45')](_0x4c7c0d)});}}function Z(_0x2fccb8,_0x2a1191){return _0x2a1191?_0x2fccb8+':'+_0x2a1191:_0x2fccb8;}function tt(_0x246de0){const _0x442ab5=_0x246de0['split'](':');return{'group':_0x442ab5[0x0],'id':_0x442ab5[0x1],'part':_0x442ab5[0x2]};}function ot(_0x4e5a60,_0x4454b3){const _0x1002b1=_0x4454b3[_0x5b77('0x57')],_0x9d0740=_0x4454b3[_0x5b77('0x14')](_0x4e5a60[_0x5b77('0x47')]);for(const _0x1a59bc of _0x4e5a60[_0x5b77('0x5d')]()){const {type:_0x5463a0,item:_0x580499,nextPosition:_0x34eef4}=_0x1a59bc;if(_0x5b77('0x3b')===_0x5463a0||_0x1002b1[_0x5b77('0x18')](_0x580499)){const _0x4bcf9f=_0x4454b3[_0x5b77('0x16')](_0x580499);_0x9d0740[_0x5b77('0x2d')]&&(_0x9d0740['start']=_0x4bcf9f),_0x9d0740[_0x5b77('0x4b')]=_0x34eef4;}}return _0x9d0740[_0x5b77('0x2d')]?null:_0x9d0740;}