@ckeditor/ckeditor5-comments 0.0.0-nightly-20230905.0 → 0.0.0-nightly-20230907.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 (43) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55f5=['targetRect','detach','add','render','ck-annotation-wrapper--active','set','focus','Esc','mainView','length','listenTo','height','destroy','isActive','setTemplate','keystrokes','clientHeight','element','_mutationObserver','attach','clear','ck-rounded-corners','createCollection','_updateHeight','focusTracker','content','ck-annotation-wrapper'];(function(_0x77a28c,_0x55f574){const _0x5180f2=function(_0x3bbcfc){while(--_0x3bbcfc){_0x77a28c['push'](_0x77a28c['shift']());}};_0x5180f2(++_0x55f574);}(_0x55f5,0x83));const _0x5180=function(_0x77a28c,_0x55f574){_0x77a28c=_0x77a28c-0x0;let _0x5180f2=_0x55f5[_0x77a28c];return _0x5180f2;};import{View as _0x8abcf9}from'ckeditor5/src/ui';import{FocusTracker as _0x3f83e5,KeystrokeHandler as _0x1a67e4,uid as _0x4b2b62}from'ckeditor5/src/utils';import _0xa63acf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x8abcf9{constructor(_0x62f04a,_0x42893c){super(_0x62f04a),this['id']=_0x4b2b62(),this[_0x5180('0x1')]=new _0x3f83e5(),this['keystrokes']=new _0x1a67e4(),this[_0x5180('0x13')][_0x5180('0x9')](_0x5180('0xb'),(_0x481d98,_0x95703e)=>this['fire'](_0x5180('0xb'),_0x95703e)),this[_0x5180('0x9')](_0x5180('0x4'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5180('0x9')](_0x5180('0xf'),0x0),this[_0x5180('0x9')](_0x5180('0x11'),!0x1),this[_0x5180('0x9')]('isDirty',!0x1),this[_0x5180('0x9')](_0x5180('0xd'),0x0),this[_0x5180('0x9')]('type',''),this['_mutationObserver']=_0xa63acf(()=>this['_updateHeight']()),this['content']=this[_0x5180('0x1a')](),this[_0x5180('0x2')][_0x5180('0x6')](_0x42893c),this[_0x5180('0xc')]=_0x42893c;const _0x31f35a=this['bindTemplate'];this[_0x5180('0x12')]({'tag':'div','attributes':{'class':['ck',_0x5180('0x3'),_0x5180('0x19'),_0x31f35a['if'](_0x5180('0x11'),_0x5180('0x8'))],'tabindex':-0x1},'children':this[_0x5180('0x2')]});}[_0x5180('0x7')](){super['render'](),this[_0x5180('0x1')][_0x5180('0x6')](this['element']),this[_0x5180('0x13')][_0x5180('0xe')](this['element']),this[_0x5180('0x16')][_0x5180('0x17')](this[_0x5180('0x15')]);}[_0x5180('0x10')](){this[_0x5180('0x2')][_0x5180('0x18')](),this['keystrokes'][_0x5180('0x10')](),this['focusTracker'][_0x5180('0x10')](),this[_0x5180('0x16')][_0x5180('0x5')](),super[_0x5180('0x10')]();}[_0x5180('0xa')](){this[_0x5180('0x15')]['focus']();}[_0x5180('0x0')](){const _0x595dee=this[_0x5180('0x15')][_0x5180('0x14')];_0x595dee&&(this[_0x5180('0xf')]=_0x595dee);}}
23
+ const _0x3c2e=['focusTracker','set','add','targetRect','_mutationObserver','destroy','height','ck-annotation-wrapper--active','render','_updateHeight','div','type','createCollection','isDirty','clear','mainView','ck-annotation-wrapper','clientHeight','content','element','ck-rounded-corners','detach','Esc','isActive','keystrokes','length','listenTo'];(function(_0x3e3c2c,_0x3c2e8d){const _0x40c394=function(_0x7a7cfc){while(--_0x7a7cfc){_0x3e3c2c['push'](_0x3e3c2c['shift']());}};_0x40c394(++_0x3c2e8d);}(_0x3c2e,0x169));const _0x40c3=function(_0x3e3c2c,_0x3c2e8d){_0x3e3c2c=_0x3e3c2c-0x0;let _0x40c394=_0x3c2e[_0x3e3c2c];return _0x40c394;};import{View as _0x2fd83a}from'ckeditor5/src/ui';import{FocusTracker as _0x5f4f5a,KeystrokeHandler as _0x4088e5,uid as _0x1c12d2}from'ckeditor5/src/utils';import _0x54b06c from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2fd83a{constructor(_0x32ff1a,_0x1fed75){super(_0x32ff1a),this['id']=_0x1c12d2(),this[_0x40c3('0x11')]=new _0x5f4f5a(),this[_0x40c3('0xe')]=new _0x4088e5(),this[_0x40c3('0xe')]['set'](_0x40c3('0xc'),(_0xa28eb6,_0xa4df3d)=>this['fire'](_0x40c3('0xc'),_0xa4df3d)),this[_0x40c3('0x12')](_0x40c3('0x14'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x40c3('0x12')]('height',0x0),this['set']('isActive',!0x1),this['set'](_0x40c3('0x3'),!0x1),this[_0x40c3('0x12')](_0x40c3('0xf'),0x0),this[_0x40c3('0x12')](_0x40c3('0x1'),''),this[_0x40c3('0x15')]=_0x54b06c(()=>this[_0x40c3('0x1a')]()),this[_0x40c3('0x8')]=this[_0x40c3('0x2')](),this[_0x40c3('0x8')][_0x40c3('0x13')](_0x1fed75),this[_0x40c3('0x5')]=_0x1fed75;const _0x1cadb8=this['bindTemplate'];this['setTemplate']({'tag':_0x40c3('0x0'),'attributes':{'class':['ck',_0x40c3('0x6'),_0x40c3('0xa'),_0x1cadb8['if'](_0x40c3('0xd'),_0x40c3('0x18'))],'tabindex':-0x1},'children':this[_0x40c3('0x8')]});}[_0x40c3('0x19')](){super['render'](),this['focusTracker'][_0x40c3('0x13')](this[_0x40c3('0x9')]),this[_0x40c3('0xe')][_0x40c3('0x10')](this['element']),this['_mutationObserver']['attach'](this[_0x40c3('0x9')]);}[_0x40c3('0x16')](){this[_0x40c3('0x8')][_0x40c3('0x4')](),this[_0x40c3('0xe')][_0x40c3('0x16')](),this[_0x40c3('0x11')]['destroy'](),this['_mutationObserver'][_0x40c3('0xb')](),super[_0x40c3('0x16')]();}['focus'](){this[_0x40c3('0x9')]['focus']();}[_0x40c3('0x1a')](){const _0x29f330=this[_0x40c3('0x9')][_0x40c3('0x7')];_0x29f330&&(this[_0x40c3('0x17')]=_0x29f330);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2db0=['bindTemplate','height','isAnimationDisabled','top','ck-sidebar-item--no-animation','destroy','ck-sidebar-item','attach','_mutationObserver','element','set','render','content','updateHeight','detach','clientHeight'];(function(_0x17f886,_0x2db0d9){const _0x5d41e9=function(_0x214967){while(--_0x214967){_0x17f886['push'](_0x17f886['shift']());}};_0x5d41e9(++_0x2db0d9);}(_0x2db0,0xc8));const _0x5d41=function(_0x17f886,_0x2db0d9){_0x17f886=_0x17f886-0x0;let _0x5d41e9=_0x2db0[_0x17f886];return _0x5d41e9;};import{View as _0x155886}from'ckeditor5/src/ui';import{toUnit as _0x4d8fcc}from'ckeditor5/src/utils';import _0x3ee58b from'../../utils/createmutationobserver';const At=_0x4d8fcc('px');export default class C extends _0x155886{constructor(_0x33c286){super(_0x33c286),this[_0x5d41('0x2')]('top',0x0),this[_0x5d41('0x2')](_0x5d41('0x9'),0x0),this['bind']('bottom')['to'](this,_0x5d41('0xb'),this,_0x5d41('0x9'),(_0x258f87,_0x3eca58)=>_0x258f87+_0x3eca58),this['set'](_0x5d41('0xa'),!0x1),this[_0x5d41('0x0')]=_0x3ee58b(()=>this[_0x5d41('0x5')]()),this['_targetTop']=null,this[_0x5d41('0x4')]=this['createCollection']();const _0x52d30a=this[_0x5d41('0x8')];this['setTemplate']({'tag':'div','attributes':{'class':[_0x5d41('0xe'),_0x52d30a['to'](_0x5d41('0xa'),_0x48bf43=>_0x48bf43?_0x5d41('0xc'):'')],'style':{'top':_0x52d30a['to'](_0x5d41('0xb'),_0xe3a85c=>At(_0xe3a85c))}},'children':this[_0x5d41('0x4')]});}['render'](){super[_0x5d41('0x3')](),this[_0x5d41('0x0')][_0x5d41('0xf')](this[_0x5d41('0x1')]);}['updateHeight'](){const _0x5c6b51=this[_0x5d41('0x1')][_0x5d41('0x7')];_0x5c6b51&&(this['height']=_0x5c6b51);}[_0x5d41('0xd')](){this[_0x5d41('0x4')]['clear'](),this['_mutationObserver'][_0x5d41('0x6')](),super[_0x5d41('0xd')]();}}
23
+ const _0x452b=['top','ck-sidebar-item','set','ck-sidebar-item--no-animation','height','createCollection','render','destroy','div','updateHeight','detach','_mutationObserver','element','clientHeight','attach','isAnimationDisabled','clear','bindTemplate','content','_targetTop','setTemplate'];(function(_0x537a61,_0x452bfb){const _0x3d35f6=function(_0x2a4976){while(--_0x2a4976){_0x537a61['push'](_0x537a61['shift']());}};_0x3d35f6(++_0x452bfb);}(_0x452b,0x1c3));const _0x3d35=function(_0x537a61,_0x452bfb){_0x537a61=_0x537a61-0x0;let _0x3d35f6=_0x452b[_0x537a61];return _0x3d35f6;};import{View as _0x1f4aee}from'ckeditor5/src/ui';import{toUnit as _0x59e865}from'ckeditor5/src/utils';import _0x5a9877 from'../../utils/createmutationobserver';const At=_0x59e865('px');export default class C extends _0x1f4aee{constructor(_0x54875c){super(_0x54875c),this[_0x3d35('0xd')]('top',0x0),this[_0x3d35('0xd')](_0x3d35('0xf'),0x0),this['bind']('bottom')['to'](this,_0x3d35('0xb'),this,_0x3d35('0xf'),(_0x4ce7eb,_0x1d8c10)=>_0x4ce7eb+_0x1d8c10),this[_0x3d35('0xd')](_0x3d35('0x5'),!0x1),this[_0x3d35('0x1')]=_0x5a9877(()=>this[_0x3d35('0x14')]()),this[_0x3d35('0x9')]=null,this['content']=this[_0x3d35('0x10')]();const _0x15b61e=this[_0x3d35('0x7')];this[_0x3d35('0xa')]({'tag':_0x3d35('0x13'),'attributes':{'class':[_0x3d35('0xc'),_0x15b61e['to'](_0x3d35('0x5'),_0x1b8cb0=>_0x1b8cb0?_0x3d35('0xe'):'')],'style':{'top':_0x15b61e['to'](_0x3d35('0xb'),_0x37ad18=>At(_0x37ad18))}},'children':this['content']});}[_0x3d35('0x11')](){super['render'](),this[_0x3d35('0x1')][_0x3d35('0x4')](this[_0x3d35('0x2')]);}['updateHeight'](){const _0x24d727=this[_0x3d35('0x2')][_0x3d35('0x3')];_0x24d727&&(this[_0x3d35('0xf')]=_0x24d727);}[_0x3d35('0x12')](){this[_0x3d35('0x8')][_0x3d35('0x6')](),this[_0x3d35('0x1')][_0x3d35('0x0')](),super[_0x3d35('0x12')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x590f=['ck-sidebar','minHeight','class','createCollection','number','setTemplate','ck-reset','set','div','list'];(function(_0x23389d,_0x590f8f){const _0x428435=function(_0xf466e2){while(--_0xf466e2){_0x23389d['push'](_0x23389d['shift']());}};_0x428435(++_0x590f8f);}(_0x590f,0xf8));const _0x4284=function(_0x23389d,_0x590f8f){_0x23389d=_0x23389d-0x0;let _0x428435=_0x590f[_0x23389d];return _0x428435;};import{View as _0x2178b9}from'ckeditor5/src/ui';import{toUnit as _0x139b46}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x139b46('px');export default class T extends _0x2178b9{constructor(_0x44d6c7){super(_0x44d6c7);const _0x28b3eb=this['bindTemplate'];this[_0x4284('0x9')](_0x4284('0x3'),0x0),this[_0x4284('0x9')](_0x4284('0x4'),''),this[_0x4284('0x1')]=this[_0x4284('0x5')](),this[_0x4284('0x7')]({'tag':_0x4284('0x0'),'attributes':{'class':['ck',_0x4284('0x2'),_0x4284('0x8'),_0x28b3eb['to'](_0x4284('0x4'))],'style':{'minHeight':_0x28b3eb['to']('minHeight',_0x296c0f=>_0x4284('0x6')==typeof _0x296c0f?At(_0x296c0f+0xa):null)}},'children':this[_0x4284('0x1')]});}}
23
+ const _0x1142=['minHeight','class','set','number','list','setTemplate','ck-sidebar','createCollection'];(function(_0x11be7a,_0x11422d){const _0x46867a=function(_0xea8f13){while(--_0xea8f13){_0x11be7a['push'](_0x11be7a['shift']());}};_0x46867a(++_0x11422d);}(_0x1142,0xae));const _0x4686=function(_0x11be7a,_0x11422d){_0x11be7a=_0x11be7a-0x0;let _0x46867a=_0x1142[_0x11be7a];return _0x46867a;};import{View as _0xedaf01}from'ckeditor5/src/ui';import{toUnit as _0x40908d}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x40908d('px');export default class T extends _0xedaf01{constructor(_0x36599d){super(_0x36599d);const _0x243e3c=this['bindTemplate'];this[_0x4686('0x4')](_0x4686('0x2'),0x0),this[_0x4686('0x4')](_0x4686('0x3'),''),this[_0x4686('0x6')]=this[_0x4686('0x1')](),this[_0x4686('0x7')]({'tag':'div','attributes':{'class':['ck',_0x4686('0x0'),'ck-reset',_0x243e3c['to'](_0x4686('0x3'))],'style':{'minHeight':_0x243e3c['to'](_0x4686('0x2'),_0x2537f9=>_0x4686('0x5')==typeof _0x2537f9?At(_0x2537f9+0xa):null)}},'children':this[_0x4686('0x6')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8978=['has','remove','from','_refreshPositioningDebounced','attach','ready','_editorAnnotations','requires','blur','stopListening','WideSidebar','isAttached','ck-sidebar--wide','wideSidebar','_detachFromContainer','hasDomSelection','detach','getOrderedSelectedAnnotations','removeEventListener','listenTo','rearrange','activeAnnotation','set:container','addEventListener','widesidebar-detach-not-attached','plugins','focus','addAnnotation','annotations','_integrateWithEditorAnnotations','_attachToContainer','refresh','container','_annotations','destroy','context','get','uiUpdate','resize','widesidebar-attach-already-attached','setActiveAnnotation','_destroyEditorAnnotationsIntegration','stop','high','set','off','add','EditorAnnotations','editors'];(function(_0x23afa1,_0x8978b1){const _0x3a728c=function(_0x2091c5){while(--_0x2091c5){_0x23afa1['push'](_0x23afa1['shift']());}};_0x3a728c(++_0x8978b1);}(_0x8978,0xfa));const _0x3a72=function(_0x23afa1,_0x8978b1){_0x23afa1=_0x23afa1-0x0;let _0x3a728c=_0x8978[_0x23afa1];return _0x3a728c;};import{ContextPlugin as _0x5e5bc8,Context as _0x2e2521}from'ckeditor5/src/core';import _0x2abb44 from'./annotationsuis';import _0x36289c from'./sidebar';import{CKEditorError as _0x38e7f9,Collection as _0x4b254d}from'ckeditor5/src/utils';import{debounce as _0x387b95}from'lodash-es';import _0x11ef9b from'./editorannotations';export default class i extends _0x5e5bc8{static get[_0x3a72('0x2')](){return[_0x36289c,_0x2abb44];}static get['pluginName'](){return _0x3a72('0x5');}constructor(_0x3db9a0){super(_0x3db9a0),this[_0x3a72('0x6')]=!0x1,this[_0x3a72('0x27')](_0x3a72('0x10'),null),this['annotations']=null,this['_editorAnnotations']=new _0x4b254d(),this[_0x3a72('0x2f')]=_0x387b95(()=>{this[_0x3a72('0x17')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x225706=this[_0x3a72('0x1e')][_0x3a72('0x14')][_0x3a72('0x1f')](_0x2abb44),_0x321f8e=this[_0x3a72('0x1e')][_0x3a72('0x14')]['get'](_0x36289c);_0x225706['register'](_0x3a72('0x8'),this),_0x321f8e[_0x3a72('0x1b')]&&_0x225706['switchTo'](_0x3a72('0x8'));}[_0x3a72('0x23')](_0x5a651c){if(_0x5a651c===this[_0x3a72('0x10')])return;const _0x5fe95a=this[_0x3a72('0x1e')][_0x3a72('0x14')]['get'](_0x36289c);_0x5fe95a['_activeAnnotation']=_0x5a651c;const _0x150aab=this['activeAnnotation'];this['activeAnnotation']=_0x5a651c,_0x5fe95a[_0x3a72('0x1a')]({'blurredAnnotation':_0x150aab,'activatedAnnotation':this[_0x3a72('0x10')]});}[_0x3a72('0x30')](_0x478a5a){this[_0x3a72('0x17')]=_0x478a5a;const _0x47f799=this['context'][_0x3a72('0x14')][_0x3a72('0x1f')](_0x36289c);if(_0x47f799[_0x3a72('0x1c')]=_0x478a5a,this[_0x3a72('0x6')])throw new _0x38e7f9(_0x3a72('0x22'),this);this['isAttached']=!0x0,this[_0x3a72('0xe')](_0x47f799,_0x3a72('0x11'),()=>{this[_0x3a72('0xb')](),this[_0x3a72('0xe')](_0x47f799,'change:container',_0x535280=>{_0x535280[_0x3a72('0x28')](),this[_0x3a72('0x30')](_0x478a5a);});}),_0x47f799[_0x3a72('0x19')]({'viewClass':_0x3a72('0x7')});const _0x48f5a6=_0x2005cf=>{_0x2005cf['updateTargetRect'](),_0x47f799[_0x3a72('0x16')](_0x2005cf);};for(const _0x13412f of _0x478a5a)_0x48f5a6(_0x13412f);this['listenTo'](_0x478a5a,_0x3a72('0x29'),(_0x2fa3de,_0x4fc64a)=>{_0x48f5a6(_0x4fc64a);}),this[_0x3a72('0xe')](_0x478a5a,_0x3a72('0x2d'),(_0x2ae7ef,_0x531bf6,_0x1dd021)=>{_0x47f799[_0x3a72('0xf')]({'removedAnnotation':_0x531bf6,'previousAnnotation':_0x478a5a[_0x3a72('0x1f')](_0x1dd021-0x1),'nextAnnotation':_0x478a5a[_0x3a72('0x1f')](_0x1dd021+0x1)}),_0x531bf6===this['activeAnnotation']&&this[_0x3a72('0x23')](null);},{'priority':_0x3a72('0x26')}),this[_0x3a72('0xe')](_0x478a5a,_0x3a72('0x15'),(_0x2007ff,_0x350f4b)=>{this['setActiveAnnotation'](_0x350f4b);}),this[_0x3a72('0xe')](_0x478a5a,_0x3a72('0x3'),()=>{this[_0x3a72('0x23')](null);});const _0x42ccae=this[_0x3a72('0x1e')]instanceof _0x2e2521?this[_0x3a72('0x1e')][_0x3a72('0x2b')]:new _0x4b254d([this['context']]);for(const _0x2078d9 of _0x42ccae)this['_integrateWithEditorAnnotations'](_0x2078d9);this[_0x3a72('0xe')](_0x42ccae,_0x3a72('0x29'),(_0x3e53a1,_0x409ab8)=>{this[_0x3a72('0xe')](_0x409ab8,_0x3a72('0x0'),()=>{this[_0x3a72('0x18')](_0x409ab8);});}),this['listenTo'](_0x42ccae,_0x3a72('0x2d'),(_0x260729,_0xbda2d9)=>{_0xbda2d9[_0x3a72('0x14')][_0x3a72('0x2c')](_0x3a72('0x2a'))&&this['_destroyEditorAnnotationsIntegration'](_0xbda2d9[_0x3a72('0x14')]['get'](_0x3a72('0x2a')));}),window[_0x3a72('0x12')](_0x3a72('0x21'),this[_0x3a72('0x2f')]),this[_0x3a72('0x17')]['refreshPositioning']();}[_0x3a72('0xb')](){if(!this[_0x3a72('0x6')])throw new _0x38e7f9(_0x3a72('0x13'),this);this[_0x3a72('0x23')](null);const _0x3ddab5=this[_0x3a72('0x1e')][_0x3a72('0x14')][_0x3a72('0x1f')](_0x36289c);_0x3ddab5[_0x3a72('0x9')](this['annotations']),this[_0x3a72('0x4')](_0x3ddab5),this[_0x3a72('0x4')](this['annotations']),this[_0x3a72('0x1e')]instanceof _0x2e2521&&this[_0x3a72('0x4')](this[_0x3a72('0x1e')][_0x3a72('0x2b')]);for(const _0x1cce0d of Array[_0x3a72('0x2e')](this[_0x3a72('0x1')]))this[_0x3a72('0x24')](_0x1cce0d);window[_0x3a72('0xd')](_0x3a72('0x21'),this['_refreshPositioningDebounced']),this[_0x3a72('0x2f')]['cancel'](),this[_0x3a72('0x10')]=null,this[_0x3a72('0x6')]=!0x1,this[_0x3a72('0x17')]=null;}[_0x3a72('0x1d')](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x7472bb){const _0x19384d=_0x7472bb[_0x3a72('0x14')]['get'](_0x11ef9b);if(!_0x19384d)return;const _0x422f0f=()=>{const _0x2c6bfc=_0x19384d[_0x3a72('0xc')]({'annotations':this['annotations'],'activeAnnotation':this[_0x3a72('0x10')]});this[_0x3a72('0x23')](_0x2c6bfc[0x0]||null);};this[_0x3a72('0xe')](_0x19384d,_0x3a72('0x1a'),_0x422f0f),this[_0x3a72('0xe')](_0x19384d,_0x3a72('0x3'),(_0x2ae9cb,{isAnnotationTracked:_0x32d82b})=>{this[_0x3a72('0x10')]&&_0x32d82b(this[_0x3a72('0x10')])&&this[_0x3a72('0x23')](null);}),this[_0x3a72('0xe')](_0x19384d,_0x3a72('0x20'),()=>{this[_0x3a72('0x2f')]();}),this[_0x3a72('0xe')](this[_0x3a72('0x17')],'blur',_0x2e4a32=>{_0x19384d[_0x3a72('0xa')]()&&(_0x422f0f(),_0x2e4a32[_0x3a72('0x25')]());},{'priority':_0x3a72('0x26')}),this['_editorAnnotations'][_0x3a72('0x29')](_0x19384d);}['_destroyEditorAnnotationsIntegration'](_0x1f7380){this[_0x3a72('0x4')](_0x1f7380),this[_0x3a72('0x1')][_0x3a72('0x2d')](_0x1f7380);}}
23
+ const _0x5b11=['editors','remove','plugins','_integrateWithEditorAnnotations','destroy','listenTo','focus','get','_activeAnnotation','_destroyEditorAnnotationsIntegration','switchTo','off','_attachToContainer','setActiveAnnotation','from','WideSidebar','detach','ck-sidebar--wide','add','addAnnotation','activeAnnotation','widesidebar-attach-already-attached','_refreshPositioningDebounced','register','removeEventListener','container','set:container','wideSidebar','annotations','_annotations','requires','_detachFromContainer','EditorAnnotations','refreshPositioning','refresh','context','ready','hasDomSelection','isAttached','blur','_editorAnnotations','addEventListener','getOrderedSelectedAnnotations','high','stopListening','init','stop','resize','updateTargetRect'];(function(_0x535bce,_0x5b1133){const _0x8e379e=function(_0x36ed45){while(--_0x36ed45){_0x535bce['push'](_0x535bce['shift']());}};_0x8e379e(++_0x5b1133);}(_0x5b11,0x1c2));const _0x8e37=function(_0x535bce,_0x5b1133){_0x535bce=_0x535bce-0x0;let _0x8e379e=_0x5b11[_0x535bce];return _0x8e379e;};import{ContextPlugin as _0x2d4d70,Context as _0x31fbf8}from'ckeditor5/src/core';import _0x4e0438 from'./annotationsuis';import _0x169af9 from'./sidebar';import{CKEditorError as _0x1822ad,Collection as _0x22507d}from'ckeditor5/src/utils';import{debounce as _0x4f962e}from'lodash-es';import _0x5aff15 from'./editorannotations';export default class i extends _0x2d4d70{static get[_0x8e37('0x15')](){return[_0x169af9,_0x4e0438];}static get['pluginName'](){return _0x8e37('0x6');}constructor(_0x217da8){super(_0x217da8),this[_0x8e37('0x1d')]=!0x1,this['set'](_0x8e37('0xb'),null),this[_0x8e37('0x13')]=null,this[_0x8e37('0x1f')]=new _0x22507d(),this[_0x8e37('0xd')]=_0x4f962e(()=>{this[_0x8e37('0x13')][_0x8e37('0x18')]();},0xfa,{'leading':!0x1});}[_0x8e37('0x24')](){const _0x412a21=this[_0x8e37('0x1a')]['plugins'][_0x8e37('0x2f')](_0x4e0438),_0x4d9845=this[_0x8e37('0x1a')][_0x8e37('0x2a')][_0x8e37('0x2f')](_0x169af9);_0x412a21[_0x8e37('0xe')](_0x8e37('0x12'),this),_0x4d9845[_0x8e37('0x10')]&&_0x412a21[_0x8e37('0x1')](_0x8e37('0x12'));}[_0x8e37('0x4')](_0xdc483f){if(_0xdc483f===this['activeAnnotation'])return;const _0x63e3=this[_0x8e37('0x1a')][_0x8e37('0x2a')][_0x8e37('0x2f')](_0x169af9);_0x63e3[_0x8e37('0x30')]=_0xdc483f;const _0x2c1989=this[_0x8e37('0xb')];this[_0x8e37('0xb')]=_0xdc483f,_0x63e3[_0x8e37('0x19')]({'blurredAnnotation':_0x2c1989,'activatedAnnotation':this[_0x8e37('0xb')]});}['attach'](_0x57a120){this[_0x8e37('0x13')]=_0x57a120;const _0x1b04f9=this[_0x8e37('0x1a')][_0x8e37('0x2a')][_0x8e37('0x2f')](_0x169af9);if(_0x1b04f9[_0x8e37('0x14')]=_0x57a120,this[_0x8e37('0x1d')])throw new _0x1822ad(_0x8e37('0xc'),this);this[_0x8e37('0x1d')]=!0x0,this[_0x8e37('0x2d')](_0x1b04f9,_0x8e37('0x11'),()=>{this[_0x8e37('0x7')](),this[_0x8e37('0x2d')](_0x1b04f9,'change:container',_0xf2c98f=>{_0xf2c98f[_0x8e37('0x2')](),this['attach'](_0x57a120);});}),_0x1b04f9[_0x8e37('0x3')]({'viewClass':_0x8e37('0x8')});const _0xd376e0=_0x1e4c95=>{_0x1e4c95[_0x8e37('0x27')](),_0x1b04f9[_0x8e37('0xa')](_0x1e4c95);};for(const _0x2c5da6 of _0x57a120)_0xd376e0(_0x2c5da6);this[_0x8e37('0x2d')](_0x57a120,_0x8e37('0x9'),(_0x42c2a2,_0xce27bd)=>{_0xd376e0(_0xce27bd);}),this['listenTo'](_0x57a120,_0x8e37('0x29'),(_0x18aeff,_0x567f0c,_0x231e63)=>{_0x1b04f9['rearrange']({'removedAnnotation':_0x567f0c,'previousAnnotation':_0x57a120[_0x8e37('0x2f')](_0x231e63-0x1),'nextAnnotation':_0x57a120[_0x8e37('0x2f')](_0x231e63+0x1)}),_0x567f0c===this[_0x8e37('0xb')]&&this['setActiveAnnotation'](null);},{'priority':_0x8e37('0x22')}),this[_0x8e37('0x2d')](_0x57a120,_0x8e37('0x2e'),(_0xfd4fd5,_0x1b26b2)=>{this['setActiveAnnotation'](_0x1b26b2);}),this[_0x8e37('0x2d')](_0x57a120,'blur',()=>{this[_0x8e37('0x4')](null);});const _0x42ce14=this['context']instanceof _0x31fbf8?this['context']['editors']:new _0x22507d([this['context']]);for(const _0x56adea of _0x42ce14)this[_0x8e37('0x2b')](_0x56adea);this[_0x8e37('0x2d')](_0x42ce14,_0x8e37('0x9'),(_0x229ba9,_0x565a51)=>{this[_0x8e37('0x2d')](_0x565a51,_0x8e37('0x1b'),()=>{this[_0x8e37('0x2b')](_0x565a51);});}),this[_0x8e37('0x2d')](_0x42ce14,_0x8e37('0x29'),(_0xf0b37f,_0x131e01)=>{_0x131e01[_0x8e37('0x2a')]['has'](_0x8e37('0x17'))&&this[_0x8e37('0x0')](_0x131e01['plugins'][_0x8e37('0x2f')](_0x8e37('0x17')));}),window[_0x8e37('0x20')](_0x8e37('0x26'),this[_0x8e37('0xd')]),this[_0x8e37('0x13')][_0x8e37('0x18')]();}[_0x8e37('0x7')](){if(!this[_0x8e37('0x1d')])throw new _0x1822ad('widesidebar-detach-not-attached',this);this[_0x8e37('0x4')](null);const _0x52fb0c=this['context'][_0x8e37('0x2a')][_0x8e37('0x2f')](_0x169af9);_0x52fb0c[_0x8e37('0x16')](this[_0x8e37('0x13')]),this['stopListening'](_0x52fb0c),this[_0x8e37('0x23')](this[_0x8e37('0x13')]),this[_0x8e37('0x1a')]instanceof _0x31fbf8&&this[_0x8e37('0x23')](this[_0x8e37('0x1a')][_0x8e37('0x28')]);for(const _0x56023a of Array[_0x8e37('0x5')](this[_0x8e37('0x1f')]))this['_destroyEditorAnnotationsIntegration'](_0x56023a);window[_0x8e37('0xf')](_0x8e37('0x26'),this['_refreshPositioningDebounced']),this[_0x8e37('0xd')]['cancel'](),this['activeAnnotation']=null,this[_0x8e37('0x1d')]=!0x1,this['annotations']=null;}[_0x8e37('0x2c')](){this[_0x8e37('0x1d')]&&this[_0x8e37('0x7')]();}[_0x8e37('0x2b')](_0x5dde50){const _0x54383e=_0x5dde50[_0x8e37('0x2a')][_0x8e37('0x2f')](_0x5aff15);if(!_0x54383e)return;const _0x45bbf1=()=>{const _0x27ceb3=_0x54383e[_0x8e37('0x21')]({'annotations':this[_0x8e37('0x13')],'activeAnnotation':this[_0x8e37('0xb')]});this[_0x8e37('0x4')](_0x27ceb3[0x0]||null);};this[_0x8e37('0x2d')](_0x54383e,'refresh',_0x45bbf1),this[_0x8e37('0x2d')](_0x54383e,'blur',(_0x366797,{isAnnotationTracked:_0x5096b7})=>{this[_0x8e37('0xb')]&&_0x5096b7(this[_0x8e37('0xb')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x54383e,'uiUpdate',()=>{this[_0x8e37('0xd')]();}),this['listenTo'](this['annotations'],_0x8e37('0x1e'),_0x1ed0ea=>{_0x54383e[_0x8e37('0x1c')]()&&(_0x45bbf1(),_0x1ed0ea[_0x8e37('0x25')]());},{'priority':_0x8e37('0x22')}),this[_0x8e37('0x1f')][_0x8e37('0x9')](_0x54383e);}[_0x8e37('0x0')](_0x27277a){this['stopListening'](_0x27277a),this[_0x8e37('0x1f')][_0x8e37('0x29')](_0x27277a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4412=['model','refresh','tableCell','_hasContent','item','backward','_itemIsContent','push','createRange','isEnabled','end','$textProxy','getRanges','element','editor','substr','start','getLastMatchingPosition','schema','execute','getItems','_trimToContent','isObject'];(function(_0x3aae25,_0x4412a4){const _0x237eb2=function(_0x2d0821){while(--_0x2d0821){_0x3aae25['push'](_0x3aae25['shift']());}};_0x237eb2(++_0x4412a4);}(_0x4412,0x15a));const _0x237e=function(_0x3aae25,_0x4412a4){_0x3aae25=_0x3aae25-0x0;let _0x237eb2=_0x4412[_0x3aae25];return _0x237eb2;};import{Command as _0x57dc6c}from'ckeditor5/src/core';import{uid as _0x5a34a8}from'ckeditor5/src/utils';export default class q extends _0x57dc6c{[_0x237e('0x0')](){const _0x78062f=this['editor']['model']['document']['selection'];for(const _0x560b67 of _0x78062f['getRanges']())if(this['_hasContent'](_0x560b67))return void(this[_0x237e('0x8')]=!0x0);this['isEnabled']=!0x1;}[_0x237e('0x12')]({threadId:_0x1295a2=_0x5a34a8()}={}){const _0x366477=this[_0x237e('0xd')][_0x237e('0x16')],_0x1476e4=[];for(const _0x30e660 of _0x366477['document']['selection'][_0x237e('0xb')]())this['_hasContent'](_0x30e660)&&_0x1476e4[_0x237e('0x6')](this[_0x237e('0x14')](_0x30e660));_0x366477['change'](_0x21d010=>{for(const _0x550ab9 of _0x1476e4){const _0x102255=_0x5a34a8()[_0x237e('0xe')](0x1,0x5),_0x3d8086='comment:'+_0x1295a2+':'+_0x102255;_0x21d010['addMarker'](_0x3d8086,{'range':_0x550ab9,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x237e('0x2')](_0x4ac372){for(const _0x4fd307 of _0x4ac372[_0x237e('0x13')]())if(this[_0x237e('0x5')](_0x4fd307))return!0x0;return!0x1;}['_itemIsContent'](_0x3641e5){return _0x3641e5['is'](_0x237e('0xa'))||this['editor']['model'][_0x237e('0x11')][_0x237e('0x15')](_0x3641e5)&&!_0x3641e5['is'](_0x237e('0xc'),_0x237e('0x1'));}['_trimToContent'](_0x2e3d90){const _0x29f77b=_0xc497f0=>!this['_itemIsContent'](_0xc497f0[_0x237e('0x3')]),_0x41389d=_0x2e3d90[_0x237e('0xf')][_0x237e('0x10')](_0x29f77b),_0x48fd1b=_0x2e3d90[_0x237e('0x9')][_0x237e('0x10')](_0x29f77b,{'direction':_0x237e('0x4')});return this[_0x237e('0xd')][_0x237e('0x16')][_0x237e('0x7')](_0x41389d,_0x48fd1b);}}
23
+ const _0x41b4=['schema','getItems','document','backward','model','addMarker','_itemIsContent','createRange','tableCell','element','start','selection','_trimToContent','substr','getRanges','_hasContent','isEnabled','editor','isObject','push'];(function(_0x4647bb,_0x41b44c){const _0x5a8552=function(_0x42dd07){while(--_0x42dd07){_0x4647bb['push'](_0x4647bb['shift']());}};_0x5a8552(++_0x41b44c);}(_0x41b4,0x76));const _0x5a85=function(_0x4647bb,_0x41b44c){_0x4647bb=_0x4647bb-0x0;let _0x5a8552=_0x41b4[_0x4647bb];return _0x5a8552;};import{Command as _0x1b098a}from'ckeditor5/src/core';import{uid as _0x27eee6}from'ckeditor5/src/utils';export default class q extends _0x1b098a{['refresh'](){const _0x158823=this['editor'][_0x5a85('0x6')]['document'][_0x5a85('0xd')];for(const _0x45f8ce of _0x158823[_0x5a85('0x10')]())if(this[_0x5a85('0x11')](_0x45f8ce))return void(this[_0x5a85('0x12')]=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x155e78=_0x27eee6()}={}){const _0x388279=this[_0x5a85('0x13')][_0x5a85('0x6')],_0x53a047=[];for(const _0x42795b of _0x388279[_0x5a85('0x4')]['selection'][_0x5a85('0x10')]())this[_0x5a85('0x11')](_0x42795b)&&_0x53a047[_0x5a85('0x1')](this[_0x5a85('0xe')](_0x42795b));_0x388279['change'](_0xabfba4=>{for(const _0x376b13 of _0x53a047){const _0x1641f4=_0x27eee6()[_0x5a85('0xf')](0x1,0x5),_0xdf18b='comment:'+_0x155e78+':'+_0x1641f4;_0xabfba4[_0x5a85('0x7')](_0xdf18b,{'range':_0x376b13,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x5a85('0x11')](_0x2c902c){for(const _0x363189 of _0x2c902c[_0x5a85('0x3')]())if(this[_0x5a85('0x8')](_0x363189))return!0x0;return!0x1;}[_0x5a85('0x8')](_0x44a9c4){return _0x44a9c4['is']('$textProxy')||this['editor'][_0x5a85('0x6')][_0x5a85('0x2')][_0x5a85('0x0')](_0x44a9c4)&&!_0x44a9c4['is'](_0x5a85('0xb'),_0x5a85('0xa'));}[_0x5a85('0xe')](_0xeffd75){const _0x3bbf2b=_0x34b383=>!this[_0x5a85('0x8')](_0x34b383['item']),_0x5e1d28=_0xeffd75[_0x5a85('0xc')]['getLastMatchingPosition'](_0x3bbf2b),_0x21c510=_0xeffd75['end']['getLastMatchingPosition'](_0x3bbf2b,{'direction':_0x5a85('0x5')});return this[_0x5a85('0x13')][_0x5a85('0x6')][_0x5a85('0x9')](_0x5e1d28,_0x21c510);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2eb6=['init','remove','addCommentThread','add','getCommentThread','highest','findIndex','pluginName','listenTo','collection','resolvedThreads','CommentsArchive','context','_calculatePosition','removeCommentThread','plugins','activate','resolveCommentThread'];(function(_0x4f59b9,_0x2eb658){const _0x2d0878=function(_0x343da3){while(--_0x343da3){_0x4f59b9['push'](_0x4f59b9['shift']());}};_0x2d0878(++_0x2eb658);}(_0x2eb6,0x78));const _0x2d08=function(_0x4f59b9,_0x2eb658){_0x4f59b9=_0x4f59b9-0x0;let _0x2d0878=_0x2eb6[_0x4f59b9];return _0x2d0878;};import{ContextPlugin as _0x3c30c3}from'ckeditor5/src/core';import{Collection as _0xf69749}from'ckeditor5/src/utils';import _0x1e90ee from'./commentsrepository';import _0xf39ed4 from'../annotations/annotations';export default class p extends _0x3c30c3{static get[_0x2d08('0xd')](){return _0x2d08('0x11');}static get['requires'](){return[_0x1e90ee,_0xf39ed4];}constructor(_0x200769){super(_0x200769),this[_0x2d08('0x10')]=new _0xf69749();}[_0x2d08('0x6')](){const _0x5df63a=this[_0x2d08('0x0')],_0x5d04ab=_0x5df63a[_0x2d08('0x3')]['get'](_0x1e90ee),_0x19656f=_0x5df63a[_0x2d08('0x3')]['get'](_0xf39ed4);this[_0x2d08('0xe')](_0x5d04ab,_0x2d08('0x8'),(_0x119b41,{threadId:_0x1ef32c,resolvedAt:_0x5359c2,deletedAt:_0x3e9516})=>{if(_0x5359c2&&!_0x3e9516){const _0x34e05a=_0x5d04ab[_0x2d08('0xa')](_0x1ef32c);this[_0x2d08('0x10')][_0x2d08('0x9')](_0x34e05a,this[_0x2d08('0x1')](_0x5359c2));}}),this[_0x2d08('0xe')](_0x5d04ab,_0x2d08('0x5'),(_0x5ffc53,{threadId:_0x4fb68f,resolvedAt:_0x358dda})=>{const _0x2c8b1c=_0x5d04ab['getCommentThread'](_0x4fb68f);this[_0x2d08('0x10')][_0x2d08('0x9')](_0x2c8b1c,this[_0x2d08('0x1')](_0x358dda));},{'priority':_0x2d08('0xb')}),this[_0x2d08('0xe')](_0x5d04ab,'reopenCommentThread',(_0x3da538,{threadId:_0x2fa879})=>{const _0x2a823e=_0x5d04ab[_0x2d08('0xa')](_0x2fa879);this[_0x2d08('0x10')]['has'](_0x2a823e)&&this[_0x2d08('0x10')][_0x2d08('0x7')](_0x2a823e);},{'priority':_0x2d08('0xb')}),this[_0x2d08('0xe')](_0x5d04ab,_0x2d08('0x2'),(_0x458b9e,{threadId:_0x5a5552})=>{const _0x59eec3=_0x5d04ab[_0x2d08('0xa')](_0x5a5552);this['resolvedThreads']['has'](_0x59eec3)&&this[_0x2d08('0x10')][_0x2d08('0x7')](_0x59eec3);},{'priority':'highest'}),this[_0x2d08('0xe')](_0x19656f[_0x2d08('0xf')],'focus',(_0x4d771b,_0x2b3ac0)=>{_0x2b3ac0['isActive']=!0x0,_0x19656f[_0x2d08('0x4')](_0x2b3ac0);});}[_0x2d08('0x1')](_0x14e920){const _0x2e0c61=[...this[_0x2d08('0x10')]][_0x2d08('0xc')](_0x42b4bf=>_0x42b4bf['resolvedAt']<_0x14e920);return _0x2e0c61>-0x1?_0x2e0c61:this[_0x2d08('0x10')]['length'];}}
23
+ const _0x2fef=['plugins','resolvedThreads','add','has','focus','_calculatePosition','CommentsArchive','resolvedAt','init','getCommentThread','collection','pluginName','get','resolveCommentThread','remove','listenTo','activate','length','highest','requires','isActive'];(function(_0x23e6ca,_0x2fef9d){const _0x2f9870=function(_0x3b469b){while(--_0x3b469b){_0x23e6ca['push'](_0x23e6ca['shift']());}};_0x2f9870(++_0x2fef9d);}(_0x2fef,0xfa));const _0x2f98=function(_0x23e6ca,_0x2fef9d){_0x23e6ca=_0x23e6ca-0x0;let _0x2f9870=_0x2fef[_0x23e6ca];return _0x2f9870;};import{ContextPlugin as _0x5df302}from'ckeditor5/src/core';import{Collection as _0x3f064d}from'ckeditor5/src/utils';import _0x5bc5c7 from'./commentsrepository';import _0x2a7479 from'../annotations/annotations';export default class p extends _0x5df302{static get[_0x2f98('0xd')](){return _0x2f98('0x8');}static get[_0x2f98('0x0')](){return[_0x5bc5c7,_0x2a7479];}constructor(_0x53cff4){super(_0x53cff4),this[_0x2f98('0x3')]=new _0x3f064d();}[_0x2f98('0xa')](){const _0x395089=this['context'],_0x30f80b=_0x395089[_0x2f98('0x2')][_0x2f98('0xe')](_0x5bc5c7),_0x2ae209=_0x395089[_0x2f98('0x2')]['get'](_0x2a7479);this[_0x2f98('0x11')](_0x30f80b,'addCommentThread',(_0x1fa939,{threadId:_0x37ff08,resolvedAt:_0xe2476b,deletedAt:_0x4ae4b5})=>{if(_0xe2476b&&!_0x4ae4b5){const _0x2d24dc=_0x30f80b[_0x2f98('0xb')](_0x37ff08);this[_0x2f98('0x3')][_0x2f98('0x4')](_0x2d24dc,this[_0x2f98('0x7')](_0xe2476b));}}),this[_0x2f98('0x11')](_0x30f80b,_0x2f98('0xf'),(_0x15d02c,{threadId:_0x283786,resolvedAt:_0x313357})=>{const _0x1e9ca0=_0x30f80b[_0x2f98('0xb')](_0x283786);this['resolvedThreads'][_0x2f98('0x4')](_0x1e9ca0,this[_0x2f98('0x7')](_0x313357));},{'priority':_0x2f98('0x14')}),this[_0x2f98('0x11')](_0x30f80b,'reopenCommentThread',(_0x4d5b6c,{threadId:_0x4d180a})=>{const _0x4b11f6=_0x30f80b[_0x2f98('0xb')](_0x4d180a);this['resolvedThreads'][_0x2f98('0x5')](_0x4b11f6)&&this['resolvedThreads']['remove'](_0x4b11f6);},{'priority':_0x2f98('0x14')}),this[_0x2f98('0x11')](_0x30f80b,'removeCommentThread',(_0x7e39,{threadId:_0x5f11f5})=>{const _0x3fc5d5=_0x30f80b[_0x2f98('0xb')](_0x5f11f5);this[_0x2f98('0x3')][_0x2f98('0x5')](_0x3fc5d5)&&this[_0x2f98('0x3')][_0x2f98('0x10')](_0x3fc5d5);},{'priority':'highest'}),this['listenTo'](_0x2ae209[_0x2f98('0xc')],_0x2f98('0x6'),(_0x1c23f4,_0x2d2c69)=>{_0x2d2c69[_0x2f98('0x1')]=!0x0,_0x2ae209[_0x2f98('0x12')](_0x2d2c69);});}[_0x2f98('0x7')](_0x39cd81){const _0x3a9a89=[...this[_0x2f98('0x3')]]['findIndex'](_0x330200=>_0x330200[_0x2f98('0x9')]<_0x39cd81);return _0x3a9a89>-0x1?_0x3a9a89:this['resolvedThreads'][_0x2f98('0x13')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17d3=['config','_calculatePosition','_handleAnnotationFocusableElements','_threadToController','commentsArchive','Annotations','commentsArchiveView','focusableElements','innerView','panelView','children','annotationViews','change:isOpen','componentFactory','contains','length','collaboration.channelId','find','listenTo','getByInnerView','locale','splice','_createArchiveUIDropdown','isVisible','plugins','stopListening','classList','focusTracker','editor','add','findIndex','filter','get','ck-body','view','indexOf','CommentsRepository','pluginName','_pendingThreads','buttonView','resolvedThreads','collection','mainView','set','channelId','requires','resolvedAt','remove','CommentsArchiveUI'];(function(_0x1e2abd,_0x17d38c){const _0x1fdcf2=function(_0x52a234){while(--_0x52a234){_0x1e2abd['push'](_0x1e2abd['shift']());}};_0x1fdcf2(++_0x17d38c);}(_0x17d3,0xe2));const _0x1fdc=function(_0x1e2abd,_0x17d38c){_0x1e2abd=_0x1e2abd-0x0;let _0x1fdcf2=_0x17d3[_0x1e2abd];return _0x1fdcf2;};import'../../theme/commentsarchive.css';import{Plugin as _0x36f537}from'ckeditor5/src/core';import{createDropdown as _0xbf7ab3,ViewCollection as _0x34889a}from'ckeditor5/src/ui';import _0x595223 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x16eeb8}from'../utils/common-translations';import _0x1852dc from'./ui/view/commentsarchiveview';import _0x12f021 from'./commentsarchive';export default class a extends _0x36f537{static get[_0x1fdc('0x7')](){return _0x1fdc('0x12');}static get[_0x1fdc('0xf')](){return[_0x12f021];}constructor(_0x2bcb93){super(_0x2bcb93),this['annotationViews']=new _0x34889a(),this[_0x1fdc('0x8')]=[];}['init'](){this['editor']['ui'][_0x1fdc('0x20')]['add'](_0x1fdc('0x17'),()=>this[_0x1fdc('0x29')]());const _0x4adf17=this[_0x1fdc('0x2f')][_0x1fdc('0x2b')]['get'](_0x12f021),_0x28b8de=this['editor'][_0x1fdc('0x2b')]['get'](_0x1fdc('0x18')),_0x3e4319=this[_0x1fdc('0x2f')]['plugins'][_0x1fdc('0x2')](_0x1fdc('0x6'));this[_0x1fdc('0x25')](_0x4adf17[_0x1fdc('0xa')],_0x1fdc('0x30'),(_0x41e502,_0x22810c)=>{const _0x2cb88e=this[_0x1fdc('0x2f')][_0x1fdc('0x13')][_0x1fdc('0x2')]('collaboration.channelId');if(!_0x2cb88e||_0x22810c[_0x1fdc('0xe')]===_0x2cb88e){const _0x8bee5f=this[_0x1fdc('0x14')](_0x22810c[_0x1fdc('0x10')]),_0x27d96f=_0x3e4319[_0x1fdc('0x16')]['get'](_0x22810c);if(!_0x27d96f)return void this[_0x1fdc('0x8')]['push']({'thread':_0x22810c,'position':_0x8bee5f});const _0x5f387c=_0x28b8de[_0x1fdc('0x26')](_0x27d96f['view']);_0x5f387c[_0x1fdc('0x2a')]&&_0x28b8de['_visibleAnnotations'][_0x1fdc('0x11')](_0x5f387c),this[_0x1fdc('0x1e')]['add'](_0x5f387c[_0x1fdc('0x4')],_0x8bee5f);}}),this[_0x1fdc('0x25')](_0x28b8de[_0x1fdc('0xb')],_0x1fdc('0x30'),(_0x5d6874,_0x5de493)=>{const _0x40cb1c=this['_pendingThreads'][_0x1fdc('0x24')](({thread:_0x3ba538})=>{const _0x5d945=_0x3e4319[_0x1fdc('0x16')][_0x1fdc('0x2')](_0x3ba538);return _0x5d945&&_0x5de493[_0x1fdc('0x1b')]===_0x5d945[_0x1fdc('0x4')];});_0x40cb1c&&(this[_0x1fdc('0x1e')]['add'](_0x5de493['view'],_0x40cb1c['position']),this['_pendingThreads'][_0x1fdc('0x28')](this[_0x1fdc('0x8')][_0x1fdc('0x5')](_0x40cb1c),0x1));}),this[_0x1fdc('0x25')](_0x4adf17[_0x1fdc('0xa')],'remove',(_0x1796e7,_0x3dc99a)=>{const _0x1fa306=this[_0x1fdc('0x2f')][_0x1fdc('0x13')][_0x1fdc('0x2')](_0x1fdc('0x23'));if(!_0x1fa306||_0x3dc99a[_0x1fdc('0xe')]===_0x1fa306){const _0x17fec8=_0x3e4319[_0x1fdc('0x16')][_0x1fdc('0x2')](_0x3dc99a),_0x82a9f9=_0x28b8de[_0x1fdc('0x26')](_0x17fec8[_0x1fdc('0x4')]);this[_0x1fdc('0x1e')][_0x1fdc('0x11')](_0x82a9f9[_0x1fdc('0x4')]),this[_0x1fdc('0x2c')](_0x82a9f9[_0x1fdc('0x1a')]);}});}[_0x1fdc('0x15')](_0xf5b88a,_0x12dd76){for(const _0x2ae9f9 of _0x12dd76['focusableElements'])_0x2ae9f9[_0x1fdc('0x2d')]['contains'](_0x1fdc('0x3'))&&_0xf5b88a['focusTracker'][_0x1fdc('0x30')](_0x2ae9f9);this['listenTo'](_0x12dd76[_0x1fdc('0x1a')],'add',(_0x329b7c,_0x2f120e)=>{_0x2f120e['classList'][_0x1fdc('0x21')](_0x1fdc('0x3'))&&_0xf5b88a[_0x1fdc('0x2e')]['add'](_0x2f120e);}),this[_0x1fdc('0x25')](_0x12dd76[_0x1fdc('0x1a')],_0x1fdc('0x11'),(_0x7d6eb,_0x515aca)=>{_0x515aca[_0x1fdc('0x2d')][_0x1fdc('0x21')](_0x1fdc('0x3'))&&_0xf5b88a[_0x1fdc('0x2e')][_0x1fdc('0x11')](_0x515aca);});}[_0x1fdc('0x14')](_0x2828a2){const _0x9cf881=this[_0x1fdc('0x2f')][_0x1fdc('0x13')][_0x1fdc('0x2')](_0x1fdc('0x23')),_0x4f11a2=[...this[_0x1fdc('0x2f')][_0x1fdc('0x2b')][_0x1fdc('0x2')](_0x12f021)[_0x1fdc('0xa')]][_0x1fdc('0x1')](_0x2f2a91=>_0x2f2a91['channelId']!==_0x9cf881)[_0x1fdc('0x0')](_0x30d6bb=>_0x30d6bb[_0x1fdc('0x10')]<_0x2828a2);return _0x4f11a2>-0x1?_0x4f11a2:this[_0x1fdc('0x1e')][_0x1fdc('0x22')];}['_createArchiveUIDropdown'](){const _0x2c7e57=this['editor'],_0xa61e7e=this[_0x1fdc('0x2f')]['plugins'][_0x1fdc('0x2')](_0x1fdc('0x18')),_0x75c6bf=_0xbf7ab3(_0x2c7e57[_0x1fdc('0x27')]);_0x75c6bf[_0x1fdc('0x9')][_0x1fdc('0xd')]({'icon':_0x595223,'label':_0x16eeb8(_0x2c7e57['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x75c6bf['panelView']['extendTemplate']({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x75c6bf['on'](_0x1fdc('0x1f'),(_0x28a953,_0x1a89e0,_0x21fc2f)=>{this[_0x1fdc('0x19')]||(this[_0x1fdc('0x19')]=new _0x1852dc(_0x2c7e57[_0x1fdc('0x27')],this['annotationViews'])),_0x21fc2f?_0x75c6bf[_0x1fdc('0x1c')][_0x1fdc('0x1d')][_0x1fdc('0x30')](this[_0x1fdc('0x19')]):_0x75c6bf[_0x1fdc('0x1c')][_0x1fdc('0x1d')][_0x1fdc('0x11')](this[_0x1fdc('0x19')]);});for(const _0x337432 of this[_0x1fdc('0x1e')]){const _0x45c384=_0xa61e7e[_0x1fdc('0x26')](_0x337432[_0x1fdc('0xc')]);this[_0x1fdc('0x15')](_0x75c6bf,_0x45c384);}return _0x75c6bf['listenTo'](this[_0x1fdc('0x1e')],_0x1fdc('0x30'),(_0x3f65e4,_0x5a1304)=>{const _0xd68b33=_0xa61e7e[_0x1fdc('0x26')](_0x5a1304[_0x1fdc('0xc')]);this[_0x1fdc('0x15')](_0x75c6bf,_0xd68b33);}),_0x75c6bf[_0x1fdc('0x25')](this[_0x1fdc('0x1e')],_0x1fdc('0x11'),(_0x22b75d,_0x1d6f17)=>{const _0x577e9=_0xa61e7e['getByInnerView'](_0x1d6f17[_0x1fdc('0xc')]);for(const _0x101ca0 of _0x577e9[_0x1fdc('0x1a')])_0x101ca0['classList'][_0x1fdc('0x21')]('ck-body')&&_0x75c6bf[_0x1fdc('0x2e')][_0x1fdc('0x11')](_0x101ca0);}),_0x75c6bf;}}
23
+ const _0x2fe7=['commentsArchiveView','remove','annotationViews','children','_handleAnnotationFocusableElements','get','stopListening','panelView','classList','_createArchiveUIDropdown','view','listenTo','push','isVisible','collaboration.channelId','_pendingThreads','channelId','config','focusTracker','focusableElements','init','position','_calculatePosition','findIndex','commentsArchive','Annotations','splice','CommentsArchiveUI','getByInnerView','add','innerView','resolvedAt','componentFactory','editor','set','_threadToController','CommentsRepository','requires','mainView','resolvedThreads','buttonView','ck-body','change:isOpen','contains','plugins','collection','extendTemplate','pluginName','locale'];(function(_0x7ed629,_0x2fe7cc){const _0x248ee7=function(_0x390124){while(--_0x390124){_0x7ed629['push'](_0x7ed629['shift']());}};_0x248ee7(++_0x2fe7cc);}(_0x2fe7,0x85));const _0x248e=function(_0x7ed629,_0x2fe7cc){_0x7ed629=_0x7ed629-0x0;let _0x248ee7=_0x2fe7[_0x7ed629];return _0x248ee7;};import'../../theme/commentsarchive.css';import{Plugin as _0x300e91}from'ckeditor5/src/core';import{createDropdown as _0x5afe13,ViewCollection as _0x12112d}from'ckeditor5/src/ui';import _0x400600 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x479c24}from'../utils/common-translations';import _0x4472f4 from'./ui/view/commentsarchiveview';import _0x3304c6 from'./commentsarchive';export default class a extends _0x300e91{static get[_0x248e('0xc')](){return _0x248e('0x29');}static get[_0x248e('0x2')](){return[_0x3304c6];}constructor(_0x45628f){super(_0x45628f),this['annotationViews']=new _0x12112d(),this['_pendingThreads']=[];}[_0x248e('0x22')](){this[_0x248e('0x2f')]['ui'][_0x248e('0x2e')][_0x248e('0x2b')](_0x248e('0x26'),()=>this[_0x248e('0x17')]());const _0x59aab9=this[_0x248e('0x2f')][_0x248e('0x9')][_0x248e('0x13')](_0x3304c6),_0xc08638=this[_0x248e('0x2f')][_0x248e('0x9')][_0x248e('0x13')](_0x248e('0x27')),_0x56f30a=this[_0x248e('0x2f')][_0x248e('0x9')][_0x248e('0x13')](_0x248e('0x1'));this[_0x248e('0x19')](_0x59aab9[_0x248e('0x4')],'add',(_0x5412e4,_0x9646f7)=>{const _0x73fc1a=this['editor'][_0x248e('0x1f')]['get'](_0x248e('0x1c'));if(!_0x73fc1a||_0x9646f7['channelId']===_0x73fc1a){const _0x2db932=this['_calculatePosition'](_0x9646f7[_0x248e('0x2d')]),_0x58ae6c=_0x56f30a[_0x248e('0x0')][_0x248e('0x13')](_0x9646f7);if(!_0x58ae6c)return void this[_0x248e('0x1d')][_0x248e('0x1a')]({'thread':_0x9646f7,'position':_0x2db932});const _0x1ad55d=_0xc08638[_0x248e('0x2a')](_0x58ae6c['view']);_0x1ad55d[_0x248e('0x1b')]&&_0xc08638['_visibleAnnotations']['remove'](_0x1ad55d),this[_0x248e('0x10')]['add'](_0x1ad55d[_0x248e('0x18')],_0x2db932);}}),this[_0x248e('0x19')](_0xc08638[_0x248e('0xa')],_0x248e('0x2b'),(_0x1300dc,_0x148811)=>{const _0x3660b4=this[_0x248e('0x1d')]['find'](({thread:_0x1e5277})=>{const _0x2a8ebd=_0x56f30a[_0x248e('0x0')][_0x248e('0x13')](_0x1e5277);return _0x2a8ebd&&_0x148811[_0x248e('0x2c')]===_0x2a8ebd[_0x248e('0x18')];});_0x3660b4&&(this['annotationViews'][_0x248e('0x2b')](_0x148811[_0x248e('0x18')],_0x3660b4[_0x248e('0x23')]),this['_pendingThreads'][_0x248e('0x28')](this[_0x248e('0x1d')]['indexOf'](_0x3660b4),0x1));}),this[_0x248e('0x19')](_0x59aab9['resolvedThreads'],_0x248e('0xf'),(_0x2db771,_0x65237c)=>{const _0x4f85a1=this[_0x248e('0x2f')][_0x248e('0x1f')][_0x248e('0x13')](_0x248e('0x1c'));if(!_0x4f85a1||_0x65237c['channelId']===_0x4f85a1){const _0x3c2e1c=_0x56f30a[_0x248e('0x0')][_0x248e('0x13')](_0x65237c),_0x473056=_0xc08638[_0x248e('0x2a')](_0x3c2e1c['view']);this['annotationViews'][_0x248e('0xf')](_0x473056['view']),this[_0x248e('0x14')](_0x473056[_0x248e('0x21')]);}});}['_handleAnnotationFocusableElements'](_0x48b392,_0xad2c58){for(const _0x2c18a6 of _0xad2c58[_0x248e('0x21')])_0x2c18a6['classList'][_0x248e('0x8')](_0x248e('0x6'))&&_0x48b392[_0x248e('0x20')][_0x248e('0x2b')](_0x2c18a6);this[_0x248e('0x19')](_0xad2c58[_0x248e('0x21')],_0x248e('0x2b'),(_0x2590d0,_0x4ca18d)=>{_0x4ca18d[_0x248e('0x16')][_0x248e('0x8')](_0x248e('0x6'))&&_0x48b392[_0x248e('0x20')][_0x248e('0x2b')](_0x4ca18d);}),this[_0x248e('0x19')](_0xad2c58[_0x248e('0x21')],'remove',(_0x3ecc94,_0x3902f4)=>{_0x3902f4[_0x248e('0x16')][_0x248e('0x8')](_0x248e('0x6'))&&_0x48b392[_0x248e('0x20')][_0x248e('0xf')](_0x3902f4);});}[_0x248e('0x24')](_0x25cbe5){const _0x594f58=this['editor'][_0x248e('0x1f')][_0x248e('0x13')](_0x248e('0x1c')),_0x397a3a=[...this['editor'][_0x248e('0x9')][_0x248e('0x13')](_0x3304c6)[_0x248e('0x4')]]['filter'](_0x22d413=>_0x22d413[_0x248e('0x1e')]!==_0x594f58)[_0x248e('0x25')](_0x22c026=>_0x22c026[_0x248e('0x2d')]<_0x25cbe5);return _0x397a3a>-0x1?_0x397a3a:this[_0x248e('0x10')]['length'];}[_0x248e('0x17')](){const _0x2980e8=this[_0x248e('0x2f')],_0x21932d=this[_0x248e('0x2f')][_0x248e('0x9')][_0x248e('0x13')](_0x248e('0x27')),_0xe4a86b=_0x5afe13(_0x2980e8[_0x248e('0xd')]);_0xe4a86b[_0x248e('0x5')][_0x248e('0x30')]({'icon':_0x400600,'label':_0x479c24(_0x2980e8[_0x248e('0xd')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0xe4a86b[_0x248e('0x15')][_0x248e('0xb')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0xe4a86b['on'](_0x248e('0x7'),(_0x12501d,_0x366a5b,_0x154f83)=>{this[_0x248e('0xe')]||(this[_0x248e('0xe')]=new _0x4472f4(_0x2980e8['locale'],this[_0x248e('0x10')])),_0x154f83?_0xe4a86b['panelView'][_0x248e('0x11')][_0x248e('0x2b')](this[_0x248e('0xe')]):_0xe4a86b[_0x248e('0x15')][_0x248e('0x11')][_0x248e('0xf')](this[_0x248e('0xe')]);});for(const _0x47ef9c of this['annotationViews']){const _0x5eca9d=_0x21932d[_0x248e('0x2a')](_0x47ef9c[_0x248e('0x3')]);this['_handleAnnotationFocusableElements'](_0xe4a86b,_0x5eca9d);}return _0xe4a86b[_0x248e('0x19')](this[_0x248e('0x10')],_0x248e('0x2b'),(_0x58dee0,_0x29e461)=>{const _0x300849=_0x21932d[_0x248e('0x2a')](_0x29e461[_0x248e('0x3')]);this[_0x248e('0x12')](_0xe4a86b,_0x300849);}),_0xe4a86b[_0x248e('0x19')](this[_0x248e('0x10')],'remove',(_0x4f8c6b,_0x34638a)=>{const _0x469b8a=_0x21932d['getByInnerView'](_0x34638a[_0x248e('0x3')]);for(const _0x30a547 of _0x469b8a[_0x248e('0x21')])_0x30a547[_0x248e('0x16')][_0x248e('0x8')](_0x248e('0x6'))&&_0xe4a86b[_0x248e('0x20')][_0x248e('0xf')](_0x30a547);}),_0xe4a86b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dc2=['document','high','differ','_reconvertMarkers','clear','ignoreResolvedComments','$marker','editor','getCommentThreads','low','getAllMarkersForId','isCollapsed','commands','addComment','then','activeMarker','map','set','reopen','change','isThreadsLoadingPaused','resolve','affectsData','has','comment','dataDowncast','end','hasContent','init','reopenCommentThread','CommentsEditing','_threads','focus','destroy','getAttribute','_attachMarkerToThread','getCommentThread','_attachedThreads','render','createElement','view','dataToMarker','ready','isLocal','_handleThreadMarker','_getTargetForId','listenTo','_initializeMarkerConverters','removeMarker','data','elementToElement','isObject','model','removeMarker:','addCommentThread','editing','push','plugins','addMarker:','enqueueChange','createPositionBefore','_hasTargetInContent','editingDowncast','schema','collaboration.channelId','registerPostFixer','removeCommentThread','markers','conversion','_detachCommentThread','attachTo','add','consumable','change:isThreadsLoadingPaused','requires','delete','split','length','root','$graveyard','item','createRange','upcast','isResolved','getByInnerView','scrollToThreadMarker','markerToHighlight','get','updateMarker','pluginName','getRange','hasDomSelection','once','config','text','_threadToController','getWalker','switchReadOnly','for','registerAnnotation','_getTextContext','state','hasMarkerForId','_handleMarkerAddAndRemove','refreshVisibility','comment:','reconvertMarker','substring','markerName','consume','managedUsingOperations','_removedThread','newRange','resolveCommentThread','getItems','from','start','change:isReadOnly','_autoResolvedThreads'];(function(_0x3d0706,_0x4dc275){const _0x1af45e=function(_0x5a89a2){while(--_0x5a89a2){_0x3d0706['push'](_0x3d0706['shift']());}};_0x1af45e(++_0x4dc275);}(_0x4dc2,0x164));const _0x1af4=function(_0x3d0706,_0x4dc275){_0x3d0706=_0x3d0706-0x0;let _0x1af45e=_0x4dc2[_0x3d0706];return _0x1af45e;};import{Plugin as _0x4ed1e8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3451a2}from'ckeditor5/src/utils';import _0x41e7ea from'./commentsrepository';import _0x1d3f5b from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x44e96e}from'ckeditor5-collaboration/src/collaboration-core';import _0x1d0ee2 from'../annotations/editorannotations';import _0x5d148d from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x39dd02 from'./integrations/importword';import _0x269cf7 from'../annotations/annotations';export default class r extends _0x4ed1e8{static get[_0x1af4('0x4b')](){return[_0x41e7ea,_0x1d0ee2,_0x5d148d,_0x39dd02];}static get[_0x1af4('0x5a')](){return _0x1af4('0x1f');}constructor(_0x5bbedb){super(_0x5bbedb),this['_removedThread']=null,this[_0x1af4('0x0')]=new Set(),this[_0x1af4('0x12')](_0x1af4('0x15'),!0x0),_0x5bbedb[_0x1af4('0x32')][_0x1af4('0x5d')](_0x1af4('0x2b'),()=>this[_0x1af4('0x15')]=!0x1),this['set'](_0x1af4('0x10'),null),this['on']('change:activeMarker',(_0x1a4018,_0x34d01f,_0x5166d2,_0x569d0e)=>{const _0xd95051=_0x5166d2?tt(_0x5166d2)['id']:null;if(_0x5bbedb['model']['change'](()=>{if(_0xd95051){const _0x5075d7=this[_0x1af4('0xb')](_0xd95051);for(const _0x3e44f3 of _0x5075d7)_0x5bbedb['editing']['reconvertMarker'](_0x3e44f3);}if(_0x569d0e){const {id:_0x482515}=tt(_0x569d0e),_0x1e7070=this[_0x1af4('0xb')](_0x482515);for(const _0x4cea58 of _0x1e7070)_0x5bbedb['editing'][_0x1af4('0x6b')](_0x4cea58);}}),_0xd95051){const _0x446271=_0x5bbedb[_0x1af4('0x3a')]['get'](_0x41e7ea)[_0x1af4('0x25')](_0xd95051);_0x446271&&_0x446271['isResolved']&&this[_0x1af4('0x56')](_0xd95051);}}),this['_attachedThreads']=new Map();}[_0x1af4('0x1d')](){const _0x78c6f0=this['editor'],_0x39bad5=_0x78c6f0['plugins'][_0x1af4('0x58')](_0x41e7ea),_0x105e24=_0x78c6f0['config'][_0x1af4('0x58')](_0x1af4('0x41'));_0x78c6f0[_0x1af4('0xd')][_0x1af4('0x48')](_0x1af4('0x37'),new _0x1d3f5b(_0x78c6f0)),this[_0x1af4('0x2f')](_0x78c6f0,_0x1af4('0x76'),(_0x2ae1f8,_0x39c151,_0x53138e)=>{_0x39bad5[_0x1af4('0x62')](_0x53138e,_0x78c6f0[_0x1af4('0x5e')][_0x1af4('0x58')]('collaboration.channelId'));}),this['listenTo'](_0x39bad5,Z(_0x1af4('0x37'),_0x105e24),(_0x3f9162,{threadId:_0x2ec27d})=>{const _0x2398a9=this[_0x1af4('0x8')][_0x1af4('0x3a')][_0x1af4('0x58')](_0x41e7ea)[_0x1af4('0x25')](_0x2ec27d);_0x2398a9&&_0x2398a9[_0x1af4('0x54')]&&this['_attachResolvedThread'](_0x2ec27d);}),this[_0x1af4('0x2f')](_0x39bad5,Z(_0x1af4('0x43'),_0x105e24),(_0x1354d9,{threadId:_0x1b1cb3})=>{_0x78c6f0[_0x1af4('0x35')][_0x1af4('0x3c')]({'isUndoable':!0x1},_0x26add9=>{const _0x10166f=this[_0x1af4('0xb')](_0x1b1cb3);this[_0x1af4('0x26')]['delete'](_0x1b1cb3),this['_removedThread']=_0x1b1cb3;for(const _0x57a9b8 of _0x10166f)_0x26add9['removeMarker'](_0x57a9b8);}),this[_0x1af4('0x70')]=null;},{'priority':_0x1af4('0x2')}),this[_0x1af4('0x2f')](_0x39bad5,Z(_0x1af4('0x72'),_0x105e24),(_0x2beebb,{threadId:_0x2f354e})=>{this['_attachResolvedThread'](_0x2f354e),this[_0x1af4('0x4')](_0x2f354e),this[_0x1af4('0x8')][_0x1af4('0x38')][_0x1af4('0x29')][_0x1af4('0x5c')]&&this[_0x1af4('0x8')][_0x1af4('0x38')][_0x1af4('0x29')][_0x1af4('0x21')]();},{'priority':_0x1af4('0xa')}),this[_0x1af4('0x2f')](_0x39bad5,Z(_0x1af4('0x1e'),_0x105e24),(_0x447ba6,{threadId:_0x5c8337})=>{this[_0x1af4('0x4')](_0x5c8337);},{'priority':_0x1af4('0xa')}),this[_0x1af4('0x2f')](_0x39bad5,Z(_0x1af4('0xe'),_0x105e24),(_0x46e372,{threadId:_0x4b57b4,isFromAdapter:_0x5e0e0e})=>{const _0x1d26aa=this[_0x1af4('0xb')](_0x4b57b4);if(_0x5e0e0e||0x0==_0x1d26aa[_0x1af4('0x4e')]||!_0x39bad5['hasCommentThread'](_0x4b57b4))return;0x1===_0x39bad5[_0x1af4('0x25')](_0x4b57b4)[_0x1af4('0x4e')]&&_0x78c6f0[_0x1af4('0x35')][_0x1af4('0x3c')]({'isUndoable':!0x1},_0x310a93=>{for(const _0x55f2c7 of _0x1d26aa)_0x310a93[_0x1af4('0x59')](_0x55f2c7,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1af4('0xa')}),this[_0x1af4('0x30')](),this[_0x1af4('0x68')]();}['destroy'](){const _0x9e6f5=this['editor'][_0x1af4('0x3a')][_0x1af4('0x58')](_0x41e7ea),_0xf50ae1=this[_0x1af4('0x8')][_0x1af4('0x5e')][_0x1af4('0x58')](_0x1af4('0x41'));for(const _0x339e3d of _0x9e6f5[_0x1af4('0x9')]({'channelId':_0xf50ae1}))_0x9e6f5[_0x1af4('0x46')](_0x339e3d['id']),_0x9e6f5[_0x1af4('0x20')][_0x1af4('0x4c')](_0x339e3d['id']);super[_0x1af4('0x22')]();}[_0x1af4('0x67')](_0x2086d9){return this['getAllMarkersForId'](_0x2086d9)[_0x1af4('0x4e')]>0x0;}[_0x1af4('0xb')](_0x45ee4a){return Array[_0x1af4('0x74')](this[_0x1af4('0x26')][_0x1af4('0x58')](_0x45ee4a)||[])[_0x1af4('0x11')](_0x535328=>this[_0x1af4('0x8')][_0x1af4('0x35')][_0x1af4('0x44')][_0x1af4('0x58')](_0x535328))['filter'](_0x3c8d42=>_0x3c8d42);}[_0x1af4('0x56')](_0x746c89){const _0x18821d=this[_0x1af4('0x2e')](_0x746c89);_0x18821d&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x1af4('0x10')])['id']===_0x746c89&&_0x3451a2({'target':_0x18821d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1af4('0x4')](_0x276c9a){this[_0x1af4('0x8')][_0x1af4('0x35')]['change'](()=>{for(const _0x35576e of this['getAllMarkersForId'](_0x276c9a))this[_0x1af4('0x8')]['editing'][_0x1af4('0x6b')](_0x35576e);});}['_attachResolvedThread'](_0x9d73c6){const _0x1d98fe=this[_0x1af4('0x8')][_0x1af4('0x3a')][_0x1af4('0x58')](_0x41e7ea),_0x1e0c52=this[_0x1af4('0x8')][_0x1af4('0x3a')]['get'](_0x1d0ee2),_0x22f585=_0x1d98fe[_0x1af4('0x25')](_0x9d73c6);if(!this['_attachedThreads'][_0x1af4('0x18')](_0x9d73c6)){const _0x1ade40=_0x22f585['attachTo'](()=>this[_0x1af4('0x2e')](_0x22f585['id']));_0x1e0c52[_0x1af4('0x64')](_0x1ade40),this[_0x1af4('0x26')][_0x1af4('0x12')](_0x9d73c6,new Set()),_0x22f585[_0x1af4('0x3e')]=!0x1;}}['_initializeMarkerConverters'](){const _0x1f47c2=this[_0x1af4('0x8')];_0x1f47c2[_0x1af4('0x45')][_0x1af4('0x63')](_0x1af4('0x3f'))[_0x1af4('0x57')]({'model':_0x1af4('0x19'),'view':(_0x3c2dca,_0x3c29ae)=>{const {id:_0x3cae8b}=tt(_0x3c2dca[_0x1af4('0x6d')]),_0x42ff81=_0x1f47c2['plugins'][_0x1af4('0x58')](_0x41e7ea)[_0x1af4('0x25')](_0x3cae8b),_0x1b124d=this[_0x1af4('0x10')]&&tt(this[_0x1af4('0x10')])['id']===_0x3cae8b;if(_0x42ff81&&_0x42ff81[_0x1af4('0x54')]&&!_0x1b124d&&_0x3c2dca[_0x1af4('0x51')])return _0x3c29ae[_0x1af4('0x49')]['consume'](_0x3c2dca[_0x1af4('0x51')],_0x1af4('0x3b')+_0x3c2dca['markerName']),_0x3c29ae[_0x1af4('0x49')][_0x1af4('0x6e')](_0x3c2dca[_0x1af4('0x51')],_0x1af4('0x36')+_0x3c2dca[_0x1af4('0x6d')]),{'classes':[]};const _0x5468e0=['ck-comment-marker'];return _0x1b124d&&_0x5468e0[_0x1af4('0x39')]('ck-comment-marker--active'),{'classes':_0x5468e0,'attributes':{'data-comment':_0x3cae8b}};}}),_0x1f47c2[_0x1af4('0x45')]['for'](_0x1af4('0x1a'))['markerToData']({'model':_0x1af4('0x19'),'view':(_0x189641,{options:_0x33f949})=>{const _0x28e8de=_0x1f47c2[_0x1af4('0x3a')]['get'](_0x41e7ea),_0xaf0a79=_0x1f47c2['model']['markers'][_0x1af4('0x58')](_0x189641),{id:_0x49e37e,part:_0x3788a6}=tt(_0x189641);if(_0xaf0a79&&!_0xaf0a79[_0x1af4('0x17')])return null;if(_0x33f949[_0x1af4('0x6')]){const _0x1113a2=_0x28e8de[_0x1af4('0x25')](_0x49e37e);if(_0x1113a2&&_0x1113a2[_0x1af4('0x54')])return null;}return{'group':_0x1af4('0x19'),'name':_0x3788a6?_0x49e37e+':'+_0x3788a6:_0x49e37e};}}),_0x1f47c2[_0x1af4('0x45')][_0x1af4('0x63')]('upcast')[_0x1af4('0x33')]({'view':{'name':_0x1af4('0x19'),'attributes':{'id':/^\w/}},'model':(_0xec3420,{writer:_0x869ba})=>_0x869ba[_0x1af4('0x28')](_0x1af4('0x7'),{'data-name':_0x1af4('0x6a')+_0xec3420[_0x1af4('0x23')]('id')})}),_0x1f47c2['conversion'][_0x1af4('0x63')](_0x1af4('0x53'))[_0x1af4('0x2a')]({'view':_0x1af4('0x19')});}[_0x1af4('0x68')](){const _0x267eb4=this[_0x1af4('0x8')],_0x35222d=_0x267eb4[_0x1af4('0x3a')][_0x1af4('0x58')](_0x41e7ea),_0x3a5ea0=new Set(),_0x2bb667=new Set();_0x267eb4['model']['document'][_0x1af4('0x42')](_0x4ac7a3=>{let _0x53b0d9=!0x1;for(const {name:_0x5792fc,data:_0x5c1dd3}of _0x267eb4[_0x1af4('0x35')][_0x1af4('0x1')][_0x1af4('0x3')]['getChangedMarkers']()){const {group:_0x1e97c4,id:_0x49a910}=tt(_0x5792fc);let _0x39ddfb=_0x5c1dd3['newRange'];if(_0x1af4('0x19')!==_0x1e97c4||!_0x39ddfb)continue;const _0x24ef5f=_0x1af4('0x50')===_0x39ddfb[_0x1af4('0x4f')]['rootName'];_0x24ef5f||(_0x39ddfb=ot(_0x39ddfb,_0x267eb4[_0x1af4('0x35')]),!_0x39ddfb||_0x39ddfb[_0x1af4('0xc')]||!_0x5c1dd3['newRange']||_0x39ddfb['isEqual'](_0x5c1dd3[_0x1af4('0x71')]))?_0x267eb4[_0x1af4('0x35')][_0x1af4('0x1c')](_0x39ddfb)&&!_0x24ef5f?this[_0x1af4('0x15')]?_0x3a5ea0['add'](_0x5792fc):this[_0x1af4('0x2d')](_0x5792fc,_0x49a910):(_0x2bb667[_0x1af4('0x48')](_0x5792fc),_0x3a5ea0['delete'](_0x5792fc),_0x4ac7a3[_0x1af4('0x31')](_0x5792fc),_0x53b0d9=!0x0):(_0x4ac7a3[_0x1af4('0x59')](_0x5792fc,{'range':_0x39ddfb}),_0x53b0d9=!0x0);}return _0x53b0d9;}),this['on'](_0x1af4('0x4a'),(_0x1ce1d8,_0x4a6090,_0x15c2bb)=>{if(!_0x15c2bb&&_0x3a5ea0['size'])for(const _0x2fd3bd of _0x3a5ea0){const {id:_0x1a3395}=tt(_0x2fd3bd);_0x3a5ea0[_0x1af4('0x4c')](_0x2fd3bd),_0x267eb4[_0x1af4('0x35')]['markers']['get'](_0x2fd3bd)&&this[_0x1af4('0x2d')](_0x2fd3bd,_0x1a3395);}}),this['listenTo'](_0x267eb4['model'][_0x1af4('0x1')],_0x1af4('0x14'),(_0x1396ec,_0x5b9712)=>{for(const {name:_0x7240b0,data:{newRange:_0x4a5184}}of _0x267eb4[_0x1af4('0x35')][_0x1af4('0x1')][_0x1af4('0x3')]['getChangedMarkers']()){const {group:_0x418953,id:_0xac653e}=tt(_0x7240b0);if(_0x1af4('0x19')!==_0x418953)continue;const _0x4a4d9=_0x35222d[_0x1af4('0x25')](_0xac653e),_0x4b3b1f=this[_0x1af4('0x67')](_0xac653e);_0x4a4d9&&(_0x4a4d9[_0x1af4('0x3e')]||_0x267eb4['editing'][_0x1af4('0x29')]['once']('render',()=>{const _0x5613dd=_0x267eb4[_0x1af4('0x3a')][_0x1af4('0x58')](_0x269cf7),_0x25f0bd=_0x35222d[_0x1af4('0x60')][_0x1af4('0x58')](_0x4a4d9)['view'];_0x5613dd[_0x1af4('0x55')](_0x25f0bd)[_0x1af4('0x69')]();},{'priority':'low'}),_0x4a4d9[_0x1af4('0x3e')]=_0x4b3b1f||!!_0x4a5184),_0x4a5184||(_0x2bb667[_0x1af4('0x48')](_0x7240b0),_0x3a5ea0[_0x1af4('0x4c')](_0x7240b0),this[_0x1af4('0x26')][_0x1af4('0x18')](_0xac653e)&&this[_0x1af4('0x26')][_0x1af4('0x58')](_0xac653e)[_0x1af4('0x4c')](_0x7240b0));}if(_0x5b9712[_0x1af4('0x2c')])for(const _0x466a9e of _0x2bb667){const {id:_0x3f21dd}=tt(_0x466a9e),_0x34ae16=_0x35222d[_0x1af4('0x25')](_0x3f21dd),_0x26e6b3=this[_0x1af4('0x67')](_0x3f21dd);_0x3a5ea0['delete'](_0x466a9e),!_0x34ae16||_0x26e6b3||_0x34ae16[_0x1af4('0x54')]||this[_0x1af4('0x70')]===_0x3f21dd||(this[_0x1af4('0x0')]['add'](_0x34ae16),_0x34ae16[_0x1af4('0x16')]());}_0x2bb667[_0x1af4('0x5')]();});}[_0x1af4('0x2e')](_0x70a25b){const _0x41e713=this[_0x1af4('0x8')],_0x50f58e=this[_0x1af4('0xb')](_0x70a25b);return _0x44e96e(_0x41e713[_0x1af4('0x38')],_0x50f58e);}[_0x1af4('0x65')](_0x1a28fb){const _0x24fc6c=this[_0x1af4('0xb')](_0x1a28fb);let _0x51f3b8='',_0x5302ff=!0x1;for(const _0x463a33 of _0x24fc6c){const _0x2662fc=_0x463a33[_0x1af4('0x5b')]();for(const _0x449ae8 of Array['from'](_0x2662fc[_0x1af4('0x73')]()))_0x449ae8['is']('$textProxy')?(_0x51f3b8&&_0x5302ff&&(_0x51f3b8+='\x20',_0x5302ff=!0x1),_0x51f3b8+=_0x449ae8[_0x1af4('0x32')]):_0x5302ff=!0x0;_0x5302ff=!0x0;}return _0x51f3b8[_0x1af4('0x6c')](0x0,0x96);}[_0x1af4('0x24')](_0x15c2df,_0x56fc60){const _0x4d35d5=this[_0x1af4('0x8')],_0xe011cc=_0x4d35d5['plugins'][_0x1af4('0x58')](_0x41e7ea);let _0x362512=_0xe011cc[_0x1af4('0x25')](_0x56fc60);if(this[_0x1af4('0x26')]['has'](_0x56fc60)){const _0x59968d=this[_0x1af4('0x26')][_0x1af4('0x58')](_0x56fc60);_0x59968d[_0x1af4('0x18')](_0x15c2df)||_0x59968d[_0x1af4('0x48')](_0x15c2df);}const _0xff8219=_0x4d35d5[_0x1af4('0x5e')]['get'](_0x1af4('0x41')),_0x10369c=_0x4d35d5[_0x1af4('0x3a')]['get'](_0x1d0ee2);if(_0x362512&&_0x362512['isResolved']&&this[_0x1af4('0x0')]['has'](_0x362512)&&(this[_0x1af4('0x0')][_0x1af4('0x4c')](_0x362512),_0x362512[_0x1af4('0x13')]()),this[_0x1af4('0x26')][_0x1af4('0x18')](_0x56fc60))return _0x362512;return this[_0x1af4('0x26')][_0x1af4('0x12')](_0x56fc60,new Set([_0x15c2df])),(!this[_0x1af4('0xb')](_0x56fc60)[0x0][_0x1af4('0x6f')]?_0x4d35d5[_0x1af4('0x38')][_0x1af4('0x29')][_0x1af4('0x5d')](_0x1af4('0x27'),()=>{const _0x3a5140=_0x4d35d5[_0x1af4('0x3a')][_0x1af4('0x58')](_0x269cf7);_0x362512=_0xe011cc['openNewCommentThread']({'channelId':_0xff8219,'threadId':_0x56fc60,'target':()=>this[_0x1af4('0x2e')](_0x56fc60),'context':{'type':_0x1af4('0x5f'),'value':this['_getTextContext'](_0x56fc60)}});const _0x12d407=_0xe011cc[_0x1af4('0x60')][_0x1af4('0x58')](_0x362512)[_0x1af4('0x29')],_0x551a56=_0x3a5140[_0x1af4('0x55')](_0x12d407);_0x551a56&&_0x10369c['registerAnnotation'](_0x551a56);},{'priority':_0x1af4('0xa')}):_0xe011cc['fetchCommentThread']({'channelId':_0xff8219,'threadId':_0x56fc60})[_0x1af4('0xf')](_0x2e8bc8=>{if('destroyed'!==_0x4d35d5[_0x1af4('0x66')]){if(_0x362512=_0x2e8bc8,_0x362512){const _0x44d968=_0x362512[_0x1af4('0x47')](()=>this[_0x1af4('0x2e')](_0x56fc60));_0x10369c[_0x1af4('0x64')](_0x44d968),_0x362512[_0x1af4('0x54')]&&this[_0x1af4('0x4')](_0x56fc60);}else{const _0x53985c=this[_0x1af4('0xb')](_0x56fc60);_0x4d35d5[_0x1af4('0x35')][_0x1af4('0x14')](_0x1a5853=>{for(const _0x282b61 of _0x53985c)_0x1a5853[_0x1af4('0x31')](_0x282b61);});}}}),_0x362512);}[_0x1af4('0x2d')](_0x3bb642,_0x53ff25){const _0x45f3dc=this[_0x1af4('0x24')](_0x3bb642,_0x53ff25);_0x45f3dc&&!_0x45f3dc['context']&&_0x45f3dc['setContext']({'type':_0x1af4('0x5f'),'value':this[_0x1af4('0x65')](_0x53ff25)});}}function Z(_0x5884cb,_0x4d18cb){return _0x4d18cb?_0x5884cb+':'+_0x4d18cb:_0x5884cb;}function tt(_0x2ac56f){const _0x1a17b7=_0x2ac56f[_0x1af4('0x4d')](':');return{'group':_0x1a17b7[0x0],'id':_0x1a17b7[0x1],'part':_0x1a17b7[0x2]};}function ot(_0x18641e,_0x2d74d7){const _0x2a0776=_0x2d74d7[_0x1af4('0x40')],_0x37da78=_0x2d74d7[_0x1af4('0x52')](_0x18641e[_0x1af4('0x75')]);for(const _0x1082ad of _0x18641e[_0x1af4('0x61')]()){const {type:_0x17c806,item:_0x57b792,nextPosition:_0x289b46}=_0x1082ad;if('text'===_0x17c806||_0x2a0776[_0x1af4('0x34')](_0x57b792)){const _0x5d45d0=_0x2d74d7[_0x1af4('0x3d')](_0x57b792);_0x37da78['isCollapsed']&&(_0x37da78[_0x1af4('0x75')]=_0x5d45d0),_0x37da78[_0x1af4('0x1b')]=_0x289b46;}}return _0x37da78;}
23
+ const _0x2d0a=['data','hasContent','registerAnnotation','addCommentThread','_attachResolvedThread','createRange','split','comment:','_getTargetForId','addComment','isObject','filter','init','end','_getTextContext','resolveCommentThread','conversion','editor','registerPostFixer','ready','markerToHighlight','text','high','get','reopen','then','root','render','removeCommentThread','item','reconvertMarker','_handleThreadMarker','collaboration.channelId','isLocal','_attachMarkerToThread','model','differ','focus','pluginName','isResolved','managedUsingOperations','editingDowncast','removeMarker','affectsData','markerName','comment','consume','view','change:activeMarker','rootName','createPositionBefore','enqueueChange','state','size','low','context','change:isReadOnly','getByInnerView','plugins','change:isThreadsLoadingPaused','ck-comment-marker--active','_threadToController','markers','_handleMarkerAddAndRemove','CommentsEditing','once','activeMarker','_threads','_autoResolvedThreads','document','dataToMarker','start','setContext','$graveyard','map','_reconvertMarkers','getCommentThreads','_hasTargetInContent','$marker','hasDomSelection','getChangedMarkers','switchReadOnly','elementToElement','add','openNewCommentThread','set','consumable','for','updateMarker','scrollToThreadMarker','from','config','has','clear','destroy','getAttribute','listenTo','hasMarkerForId','getCommentThread','schema','resolve','getAllMarkersForId','editing','delete','dataDowncast','_removedThread','isCollapsed','upcast','length','destroyed','_detachCommentThread','ck-comment-marker','markerToData','_attachedThreads','removeMarker:','commands','isThreadsLoadingPaused','change','newRange','getItems','isEqual'];(function(_0x160498,_0x2d0ab5){const _0x410e21=function(_0xa8a40f){while(--_0xa8a40f){_0x160498['push'](_0x160498['shift']());}};_0x410e21(++_0x2d0ab5);}(_0x2d0a,0xc0));const _0x410e=function(_0x160498,_0x2d0ab5){_0x160498=_0x160498-0x0;let _0x410e21=_0x2d0a[_0x160498];return _0x410e21;};import{Plugin as _0x4cfb5c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x34e470}from'ckeditor5/src/utils';import _0x1bf62 from'./commentsrepository';import _0x3cc61a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4ae96b}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d04e6 from'../annotations/editorannotations';import _0x137232 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x3336c7 from'./integrations/importword';import _0xc1ca11 from'../annotations/annotations';export default class r extends _0x4cfb5c{static get['requires'](){return[_0x1bf62,_0x2d04e6,_0x137232,_0x3336c7];}static get[_0x410e('0x58')](){return _0x410e('0x72');}constructor(_0x2b72b8){super(_0x2b72b8),this[_0x410e('0x22')]=null,this[_0x410e('0x76')]=new Set(),this['set']('isThreadsLoadingPaused',!0x0),_0x2b72b8[_0x410e('0x32')]['once'](_0x410e('0x45'),()=>this[_0x410e('0x2d')]=!0x1),this['set'](_0x410e('0x74'),null),this['on'](_0x410e('0x62'),(_0x2c4763,_0x1f8771,_0x564d2a,_0x449e61)=>{const _0xb32b8=_0x564d2a?tt(_0x564d2a)['id']:null;if(_0x2b72b8[_0x410e('0x55')]['change'](()=>{if(_0xb32b8){const _0x14f7c5=this[_0x410e('0x1e')](_0xb32b8);for(const _0x189a03 of _0x14f7c5)_0x2b72b8[_0x410e('0x1f')][_0x410e('0x50')](_0x189a03);}if(_0x449e61){const {id:_0x2d0666}=tt(_0x449e61),_0x335419=this[_0x410e('0x1e')](_0x2d0666);for(const _0x3ee823 of _0x335419)_0x2b72b8['editing'][_0x410e('0x50')](_0x3ee823);}}),_0xb32b8){const _0x277d1c=_0x2b72b8[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)['getCommentThread'](_0xb32b8);_0x277d1c&&_0x277d1c[_0x410e('0x59')]&&this['scrollToThreadMarker'](_0xb32b8);}}),this['_attachedThreads']=new Map();}[_0x410e('0x3e')](){const _0x593214=this[_0x410e('0x43')],_0x46441d=_0x593214['plugins'][_0x410e('0x49')](_0x1bf62),_0x75ad6d=_0x593214[_0x410e('0x14')]['get'](_0x410e('0x52'));_0x593214[_0x410e('0x2c')][_0x410e('0xc')]('addCommentThread',new _0x3cc61a(_0x593214)),this[_0x410e('0x19')](_0x593214,_0x410e('0x6a'),(_0x27c763,_0x57e152,_0x52706c)=>{_0x46441d[_0x410e('0xa')](_0x52706c,_0x593214[_0x410e('0x14')]['get'](_0x410e('0x52')));}),this['listenTo'](_0x46441d,Z(_0x410e('0x35'),_0x75ad6d),(_0xe841ad,{threadId:_0x32c35})=>{const _0x22a8e3=this['editor'][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)[_0x410e('0x1b')](_0x32c35);_0x22a8e3&&_0x22a8e3[_0x410e('0x59')]&&this[_0x410e('0x36')](_0x32c35);}),this[_0x410e('0x19')](_0x46441d,Z(_0x410e('0x4e'),_0x75ad6d),(_0xed4734,{threadId:_0x4d9bdc})=>{_0x593214[_0x410e('0x55')]['enqueueChange']({'isUndoable':!0x1},_0x3429cf=>{const _0x29fcb0=this[_0x410e('0x1e')](_0x4d9bdc);this[_0x410e('0x2a')]['delete'](_0x4d9bdc),this['_removedThread']=_0x4d9bdc;for(const _0x36fad1 of _0x29fcb0)_0x3429cf[_0x410e('0x5c')](_0x36fad1);}),this['_removedThread']=null;},{'priority':_0x410e('0x48')}),this['listenTo'](_0x46441d,Z(_0x410e('0x41'),_0x75ad6d),(_0x26dc53,{threadId:_0x1a4e7e})=>{this[_0x410e('0x36')](_0x1a4e7e),this[_0x410e('0x4')](_0x1a4e7e),this[_0x410e('0x43')][_0x410e('0x1f')]['view'][_0x410e('0x8')]&&this['editor'][_0x410e('0x1f')][_0x410e('0x61')][_0x410e('0x57')]();},{'priority':_0x410e('0x68')}),this['listenTo'](_0x46441d,Z('reopenCommentThread',_0x75ad6d),(_0x4b7109,{threadId:_0x2420b4})=>{this[_0x410e('0x4')](_0x2420b4);},{'priority':_0x410e('0x68')}),this[_0x410e('0x19')](_0x46441d,Z(_0x410e('0x3b'),_0x75ad6d),(_0x3dcdef,{threadId:_0x5d6490,isFromAdapter:_0xe3e089})=>{const _0x3af269=this[_0x410e('0x1e')](_0x5d6490);if(_0xe3e089||0x0==_0x3af269[_0x410e('0x25')]||!_0x46441d['hasCommentThread'](_0x5d6490))return;0x1===_0x46441d[_0x410e('0x1b')](_0x5d6490)[_0x410e('0x25')]&&_0x593214['model'][_0x410e('0x65')]({'isUndoable':!0x1},_0x30d3ae=>{for(const _0x3f4f27 of _0x3af269)_0x30d3ae['updateMarker'](_0x3f4f27,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x5ec5b9=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x9c955d=this[_0x410e('0x43')][_0x410e('0x14')][_0x410e('0x49')]('collaboration.channelId');for(const _0x39869 of _0x5ec5b9[_0x410e('0x5')]({'channelId':_0x9c955d}))_0x5ec5b9[_0x410e('0x27')](_0x39869['id']),_0x5ec5b9[_0x410e('0x75')]['delete'](_0x39869['id']);super[_0x410e('0x17')]();}[_0x410e('0x1a')](_0x6024af){return this['getAllMarkersForId'](_0x6024af)['length']>0x0;}[_0x410e('0x1e')](_0xb04bf3){return Array[_0x410e('0x13')](this[_0x410e('0x2a')][_0x410e('0x49')](_0xb04bf3)||[])[_0x410e('0x3')](_0x7d2cf4=>this[_0x410e('0x43')][_0x410e('0x55')][_0x410e('0x70')]['get'](_0x7d2cf4))[_0x410e('0x3d')](_0x295bd7=>_0x295bd7);}[_0x410e('0x12')](_0x130685){const _0x596cfa=this[_0x410e('0x3a')](_0x130685);_0x596cfa&&setTimeout(()=>{this[_0x410e('0x74')]&&tt(this[_0x410e('0x74')])['id']===_0x130685&&_0x34e470({'target':_0x596cfa[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x410e('0x4')](_0x3260ef){this[_0x410e('0x43')][_0x410e('0x55')][_0x410e('0x2e')](()=>{for(const _0x24bfa8 of this[_0x410e('0x1e')](_0x3260ef))this[_0x410e('0x43')]['editing'][_0x410e('0x50')](_0x24bfa8);});}['_attachResolvedThread'](_0x2a72d2){const _0x4b7961=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x3c2ce5=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x2d04e6),_0xb7dad4=_0x4b7961[_0x410e('0x1b')](_0x2a72d2);if(!this[_0x410e('0x2a')][_0x410e('0x15')](_0x2a72d2)){const _0x19ec80=_0xb7dad4['attachTo'](()=>this[_0x410e('0x3a')](_0xb7dad4['id']));_0x3c2ce5['registerAnnotation'](_0x19ec80),this['_attachedThreads'][_0x410e('0xe')](_0x2a72d2,new Set()),_0xb7dad4[_0x410e('0x6')]=!0x1;}}['_initializeMarkerConverters'](){const _0x8f94a2=this['editor'];_0x8f94a2[_0x410e('0x42')][_0x410e('0x10')](_0x410e('0x5b'))[_0x410e('0x46')]({'model':_0x410e('0x5f'),'view':(_0x361a46,_0x255c66)=>{const {id:_0x4223c5}=tt(_0x361a46[_0x410e('0x5e')]),_0x6d88b9=_0x8f94a2[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)[_0x410e('0x1b')](_0x4223c5),_0x512ae9=this[_0x410e('0x74')]&&tt(this['activeMarker'])['id']===_0x4223c5;if(_0x6d88b9&&_0x6d88b9['isResolved']&&!_0x512ae9&&_0x361a46[_0x410e('0x4f')])return _0x255c66[_0x410e('0xf')][_0x410e('0x60')](_0x361a46[_0x410e('0x4f')],'addMarker:'+_0x361a46[_0x410e('0x5e')]),_0x255c66['consumable'][_0x410e('0x60')](_0x361a46[_0x410e('0x4f')],_0x410e('0x2b')+_0x361a46[_0x410e('0x5e')]),{'classes':[]};const _0x4269d9=[_0x410e('0x28')];return _0x512ae9&&_0x4269d9['push'](_0x410e('0x6e')),{'classes':_0x4269d9,'attributes':{'data-comment':_0x4223c5}};}}),_0x8f94a2[_0x410e('0x42')][_0x410e('0x10')](_0x410e('0x21'))[_0x410e('0x29')]({'model':_0x410e('0x5f'),'view':(_0x19f6d1,{options:_0x6056e0})=>{const _0x4569ce=_0x8f94a2[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x3584d3=_0x8f94a2[_0x410e('0x55')][_0x410e('0x70')]['get'](_0x19f6d1),{id:_0x50d244,part:_0x8bbaa1}=tt(_0x19f6d1);if(_0x3584d3&&!_0x3584d3[_0x410e('0x5d')])return null;if(_0x6056e0['ignoreResolvedComments']){const _0x306172=_0x4569ce[_0x410e('0x1b')](_0x50d244);if(_0x306172&&_0x306172[_0x410e('0x59')])return null;}return{'group':'comment','name':_0x8bbaa1?_0x50d244+':'+_0x8bbaa1:_0x50d244};}}),_0x8f94a2[_0x410e('0x42')]['for'](_0x410e('0x24'))[_0x410e('0xb')]({'view':{'name':_0x410e('0x5f'),'attributes':{'id':/^\w/}},'model':(_0x3d9c42,{writer:_0x26ebb9})=>_0x26ebb9['createElement'](_0x410e('0x7'),{'data-name':_0x410e('0x39')+_0x3d9c42[_0x410e('0x18')]('id')})}),_0x8f94a2[_0x410e('0x42')]['for'](_0x410e('0x24'))[_0x410e('0x78')]({'view':'comment'});}[_0x410e('0x71')](){const _0x3b96=this[_0x410e('0x43')],_0x2f06bf=_0x3b96[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x46b400=new Set(),_0x3d4ac3=new Set();_0x3b96[_0x410e('0x55')]['document'][_0x410e('0x44')](_0x12e660=>{let _0x453fd4=!0x1;for(const {name:_0xd14dd9,data:_0x56a772}of _0x3b96['model']['document'][_0x410e('0x56')][_0x410e('0x9')]()){const {group:_0x530ca3,id:_0x162b54}=tt(_0xd14dd9);let _0x3a7113=_0x56a772[_0x410e('0x2f')];if(_0x410e('0x5f')!==_0x530ca3||!_0x3a7113)continue;const _0x198779=_0x410e('0x2')===_0x3a7113[_0x410e('0x4c')][_0x410e('0x63')];_0x198779||(_0x3a7113=ot(_0x3a7113,_0x3b96[_0x410e('0x55')]),!_0x3a7113||_0x3a7113[_0x410e('0x23')]||!_0x56a772['newRange']||_0x3a7113[_0x410e('0x31')](_0x56a772[_0x410e('0x2f')]))?_0x3b96[_0x410e('0x55')][_0x410e('0x33')](_0x3a7113)&&!_0x198779?this['isThreadsLoadingPaused']?_0x46b400[_0x410e('0xc')](_0xd14dd9):this['_handleThreadMarker'](_0xd14dd9,_0x162b54):(_0x3d4ac3[_0x410e('0xc')](_0xd14dd9),_0x46b400['delete'](_0xd14dd9),_0x12e660[_0x410e('0x5c')](_0xd14dd9),_0x453fd4=!0x0):(_0x12e660[_0x410e('0x11')](_0xd14dd9,{'range':_0x3a7113}),_0x453fd4=!0x0);}return _0x453fd4;}),this['on'](_0x410e('0x6d'),(_0x9558c7,_0xf1f6c1,_0x3d57c7)=>{if(!_0x3d57c7&&_0x46b400[_0x410e('0x67')])for(const _0x5a47e2 of _0x46b400){const {id:_0x3de01f}=tt(_0x5a47e2);_0x46b400[_0x410e('0x20')](_0x5a47e2),_0x3b96[_0x410e('0x55')]['markers']['get'](_0x5a47e2)&&this[_0x410e('0x51')](_0x5a47e2,_0x3de01f);}}),this['listenTo'](_0x3b96['model'][_0x410e('0x77')],_0x410e('0x2e'),(_0x430261,_0x509080)=>{for(const {name:_0x5d1450,data:{newRange:_0x33e05d}}of _0x3b96['model'][_0x410e('0x77')][_0x410e('0x56')][_0x410e('0x9')]()){const {group:_0x12b811,id:_0x47ad00}=tt(_0x5d1450);if(_0x410e('0x5f')!==_0x12b811)continue;const _0x1d0377=_0x2f06bf[_0x410e('0x1b')](_0x47ad00),_0x495308=this[_0x410e('0x1a')](_0x47ad00);_0x1d0377&&(_0x1d0377[_0x410e('0x6')]||_0x3b96['editing'][_0x410e('0x61')][_0x410e('0x73')](_0x410e('0x4d'),()=>{const _0x1023ce=_0x3b96[_0x410e('0x6c')][_0x410e('0x49')](_0xc1ca11),_0x272edf=_0x2f06bf[_0x410e('0x6f')][_0x410e('0x49')](_0x1d0377)[_0x410e('0x61')];_0x1023ce[_0x410e('0x6b')](_0x272edf)['refreshVisibility']();},{'priority':_0x410e('0x68')}),_0x1d0377[_0x410e('0x6')]=_0x495308||!!_0x33e05d),_0x33e05d||(_0x3d4ac3['add'](_0x5d1450),_0x46b400[_0x410e('0x20')](_0x5d1450),this[_0x410e('0x2a')][_0x410e('0x15')](_0x47ad00)&&this['_attachedThreads']['get'](_0x47ad00)[_0x410e('0x20')](_0x5d1450));}if(_0x509080[_0x410e('0x53')])for(const _0xa35671 of _0x3d4ac3){const {id:_0x3f7948}=tt(_0xa35671),_0x3d9954=_0x2f06bf['getCommentThread'](_0x3f7948),_0x167926=this[_0x410e('0x1a')](_0x3f7948);_0x46b400['delete'](_0xa35671),!_0x3d9954||_0x167926||_0x3d9954[_0x410e('0x59')]||this[_0x410e('0x22')]===_0x3f7948||(this[_0x410e('0x76')]['add'](_0x3d9954),_0x3d9954[_0x410e('0x1d')]());}_0x3d4ac3[_0x410e('0x16')]();});}[_0x410e('0x3a')](_0x40c864){const _0x36f7f3=this[_0x410e('0x43')],_0x33e0ab=this[_0x410e('0x1e')](_0x40c864);return _0x4ae96b(_0x36f7f3[_0x410e('0x1f')],_0x33e0ab);}[_0x410e('0x40')](_0xc71e67){const _0x1462c4=this['getAllMarkersForId'](_0xc71e67);let _0x38a7dc='',_0x5749d7=!0x1;for(const _0x197670 of _0x1462c4){const _0x195092=_0x197670['getRange']();for(const _0x5821c4 of Array[_0x410e('0x13')](_0x195092[_0x410e('0x30')]()))_0x5821c4['is']('$textProxy')?(_0x38a7dc&&_0x5749d7&&(_0x38a7dc+='\x20',_0x5749d7=!0x1),_0x38a7dc+=_0x5821c4[_0x410e('0x32')]):_0x5749d7=!0x0;_0x5749d7=!0x0;}return _0x38a7dc['substring'](0x0,0x96);}[_0x410e('0x54')](_0x11e9ef,_0xad0317){const _0x1cfd88=this[_0x410e('0x43')],_0x15c3e0=_0x1cfd88[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62);let _0x224210=_0x15c3e0['getCommentThread'](_0xad0317);if(this[_0x410e('0x2a')][_0x410e('0x15')](_0xad0317)){const _0x2a398d=this[_0x410e('0x2a')][_0x410e('0x49')](_0xad0317);_0x2a398d[_0x410e('0x15')](_0x11e9ef)||_0x2a398d[_0x410e('0xc')](_0x11e9ef);}const _0x6725b5=_0x1cfd88[_0x410e('0x14')][_0x410e('0x49')](_0x410e('0x52')),_0x2a71c3=_0x1cfd88[_0x410e('0x6c')][_0x410e('0x49')](_0x2d04e6);if(_0x224210&&_0x224210['isResolved']&&this[_0x410e('0x76')]['has'](_0x224210)&&(this['_autoResolvedThreads'][_0x410e('0x20')](_0x224210),_0x224210[_0x410e('0x4a')]()),this[_0x410e('0x2a')][_0x410e('0x15')](_0xad0317))return _0x224210;return this[_0x410e('0x2a')][_0x410e('0xe')](_0xad0317,new Set([_0x11e9ef])),(!this[_0x410e('0x1e')](_0xad0317)[0x0][_0x410e('0x5a')]?_0x1cfd88['editing']['view']['once'](_0x410e('0x4d'),()=>{const _0x8387e7=_0x1cfd88[_0x410e('0x6c')]['get'](_0xc1ca11);_0x224210=_0x15c3e0[_0x410e('0xd')]({'channelId':_0x6725b5,'threadId':_0xad0317,'target':()=>this[_0x410e('0x3a')](_0xad0317),'context':{'type':_0x410e('0x47'),'value':this[_0x410e('0x40')](_0xad0317)}});const _0x5277c8=_0x15c3e0['_threadToController']['get'](_0x224210)[_0x410e('0x61')],_0x49a8da=_0x8387e7['getByInnerView'](_0x5277c8);_0x49a8da&&_0x2a71c3[_0x410e('0x34')](_0x49a8da);},{'priority':_0x410e('0x68')}):_0x15c3e0['fetchCommentThread']({'channelId':_0x6725b5,'threadId':_0xad0317})[_0x410e('0x4b')](_0x11ea21=>{if(_0x410e('0x26')!==_0x1cfd88[_0x410e('0x66')]){if(_0x224210=_0x11ea21,_0x224210){const _0x2a4a67=_0x224210['attachTo'](()=>this[_0x410e('0x3a')](_0xad0317));_0x2a71c3[_0x410e('0x34')](_0x2a4a67),_0x224210['isResolved']&&this[_0x410e('0x4')](_0xad0317);}else{const _0x5ac16c=this[_0x410e('0x1e')](_0xad0317);_0x1cfd88[_0x410e('0x55')][_0x410e('0x2e')](_0x316150=>{for(const _0x4f32a9 of _0x5ac16c)_0x316150[_0x410e('0x5c')](_0x4f32a9);});}}}),_0x224210);}['_handleThreadMarker'](_0x4433f5,_0x865fa1){const _0x2ed189=this[_0x410e('0x54')](_0x4433f5,_0x865fa1);_0x2ed189&&!_0x2ed189[_0x410e('0x69')]&&_0x2ed189[_0x410e('0x1')]({'type':_0x410e('0x47'),'value':this['_getTextContext'](_0x865fa1)});}}function Z(_0x180df6,_0x4ebb42){return _0x4ebb42?_0x180df6+':'+_0x4ebb42:_0x180df6;}function tt(_0x35bf5e){const _0xcba58c=_0x35bf5e[_0x410e('0x38')](':');return{'group':_0xcba58c[0x0],'id':_0xcba58c[0x1],'part':_0xcba58c[0x2]};}function ot(_0x397303,_0x1ed332){const _0x48db34=_0x1ed332[_0x410e('0x1c')],_0x15d71e=_0x1ed332[_0x410e('0x37')](_0x397303[_0x410e('0x0')]);for(const _0x5b5b93 of _0x397303['getWalker']()){const {type:_0x2ab65d,item:_0x2cd1b9,nextPosition:_0x3279d0}=_0x5b5b93;if('text'===_0x2ab65d||_0x48db34[_0x410e('0x3c')](_0x2cd1b9)){const _0x3e3a57=_0x1ed332[_0x410e('0x64')](_0x2cd1b9);_0x15d71e['isCollapsed']&&(_0x15d71e['start']=_0x3e3a57),_0x15d71e[_0x410e('0x3f')]=_0x3279d0;}}return _0x15d71e;}