@ckeditor/ckeditor5-comments 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230908.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 _0x21c4=['add','content','bindTemplate','clear','focusTracker','createCollection','destroy','_mutationObserver','targetRect','ck-annotation-wrapper--active','_updateHeight','div','Esc','clientHeight','setTemplate','keystrokes','listenTo','length','set','height','mainView','detach','element','attach','render','focus','type','isActive'];(function(_0x5bfb67,_0x21c490){const _0x5c389b=function(_0xd2db79){while(--_0xd2db79){_0x5bfb67['push'](_0x5bfb67['shift']());}};_0x5c389b(++_0x21c490);}(_0x21c4,0x1e6));const _0x5c38=function(_0x5bfb67,_0x21c490){_0x5bfb67=_0x5bfb67-0x0;let _0x5c389b=_0x21c4[_0x5bfb67];return _0x5c389b;};import{View as _0x424527}from'ckeditor5/src/ui';import{FocusTracker as _0x1e99a9,KeystrokeHandler as _0x481a81,uid as _0x43f5e2}from'ckeditor5/src/utils';import _0x525e41 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x424527{constructor(_0x5b0616,_0xccf490){super(_0x5b0616),this['id']=_0x43f5e2(),this[_0x5c38('0x16')]=new _0x1e99a9(),this[_0x5c38('0x5')]=new _0x481a81(),this[_0x5c38('0x5')][_0x5c38('0x8')](_0x5c38('0x2'),(_0x531272,_0x209152)=>this['fire'](_0x5c38('0x2'),_0x209152)),this['set'](_0x5c38('0x1a'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5c38('0x8')](_0x5c38('0x9'),0x0),this[_0x5c38('0x8')](_0x5c38('0x11'),!0x1),this['set']('isDirty',!0x1),this[_0x5c38('0x8')](_0x5c38('0x7'),0x0),this[_0x5c38('0x8')](_0x5c38('0x10'),''),this[_0x5c38('0x19')]=_0x525e41(()=>this[_0x5c38('0x0')]()),this[_0x5c38('0x13')]=this[_0x5c38('0x17')](),this[_0x5c38('0x13')][_0x5c38('0x12')](_0xccf490),this[_0x5c38('0xa')]=_0xccf490;const _0x24e360=this[_0x5c38('0x14')];this[_0x5c38('0x4')]({'tag':_0x5c38('0x1'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x24e360['if']('isActive',_0x5c38('0x1b'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x5c38('0xe')](),this[_0x5c38('0x16')][_0x5c38('0x12')](this['element']),this['keystrokes'][_0x5c38('0x6')](this[_0x5c38('0xc')]),this[_0x5c38('0x19')][_0x5c38('0xd')](this['element']);}[_0x5c38('0x18')](){this[_0x5c38('0x13')][_0x5c38('0x15')](),this['keystrokes'][_0x5c38('0x18')](),this[_0x5c38('0x16')][_0x5c38('0x18')](),this[_0x5c38('0x19')][_0x5c38('0xb')](),super[_0x5c38('0x18')]();}[_0x5c38('0xf')](){this['element'][_0x5c38('0xf')]();}['_updateHeight'](){const _0x1c0770=this['element'][_0x5c38('0x3')];_0x1c0770&&(this[_0x5c38('0x9')]=_0x1c0770);}}
@@ -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 _0x23ac=['attach','bind','ck-sidebar-item','clear','destroy','content','top','bottom','ck-sidebar-item--no-animation','_targetTop','createCollection','element','height','_mutationObserver','updateHeight','set','isAnimationDisabled','render'];(function(_0x29d174,_0x23ac6d){const _0x19fff4=function(_0xafa838){while(--_0xafa838){_0x29d174['push'](_0x29d174['shift']());}};_0x19fff4(++_0x23ac6d);}(_0x23ac,0x113));const _0x19ff=function(_0x29d174,_0x23ac6d){_0x29d174=_0x29d174-0x0;let _0x19fff4=_0x23ac[_0x29d174];return _0x19fff4;};import{View as _0x460fb3}from'ckeditor5/src/ui';import{toUnit as _0x4bdd82}from'ckeditor5/src/utils';import _0x46bfb3 from'../../utils/createmutationobserver';const At=_0x4bdd82('px');export default class C extends _0x460fb3{constructor(_0x33506e){super(_0x33506e),this['set']('top',0x0),this[_0x19ff('0xa')]('height',0x0),this[_0x19ff('0xe')](_0x19ff('0x2'))['to'](this,_0x19ff('0x1'),this,_0x19ff('0x7'),(_0x3372c7,_0x44659c)=>_0x3372c7+_0x44659c),this[_0x19ff('0xa')](_0x19ff('0xb'),!0x1),this[_0x19ff('0x8')]=_0x46bfb3(()=>this['updateHeight']()),this[_0x19ff('0x4')]=null,this[_0x19ff('0x0')]=this[_0x19ff('0x5')]();const _0x20d3e4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[_0x19ff('0xf'),_0x20d3e4['to'](_0x19ff('0xb'),_0x2ab8c0=>_0x2ab8c0?_0x19ff('0x3'):'')],'style':{'top':_0x20d3e4['to'](_0x19ff('0x1'),_0x251bda=>At(_0x251bda))}},'children':this[_0x19ff('0x0')]});}[_0x19ff('0xc')](){super[_0x19ff('0xc')](),this[_0x19ff('0x8')][_0x19ff('0xd')](this['element']);}[_0x19ff('0x9')](){const _0x4e807b=this[_0x19ff('0x6')]['clientHeight'];_0x4e807b&&(this['height']=_0x4e807b);}[_0x19ff('0x11')](){this[_0x19ff('0x0')][_0x19ff('0x10')](),this[_0x19ff('0x8')]['detach'](),super[_0x19ff('0x11')]();}}
@@ -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 _0x5d3e=['ck-reset','minHeight','div','ck-sidebar','setTemplate','bindTemplate','list','class','createCollection','set','number'];(function(_0x4e83c1,_0x5d3e5c){const _0x239968=function(_0x475684){while(--_0x475684){_0x4e83c1['push'](_0x4e83c1['shift']());}};_0x239968(++_0x5d3e5c);}(_0x5d3e,0x1ae));const _0x2399=function(_0x4e83c1,_0x5d3e5c){_0x4e83c1=_0x4e83c1-0x0;let _0x239968=_0x5d3e[_0x4e83c1];return _0x239968;};import{View as _0x3ef5a0}from'ckeditor5/src/ui';import{toUnit as _0x3df487}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3df487('px');export default class T extends _0x3ef5a0{constructor(_0x18275b){super(_0x18275b);const _0x5a8540=this[_0x2399('0x4')];this[_0x2399('0x8')](_0x2399('0x0'),0x0),this[_0x2399('0x8')](_0x2399('0x6'),''),this[_0x2399('0x5')]=this[_0x2399('0x7')](),this[_0x2399('0x3')]({'tag':_0x2399('0x1'),'attributes':{'class':['ck',_0x2399('0x2'),_0x2399('0xa'),_0x5a8540['to'](_0x2399('0x6'))],'style':{'minHeight':_0x5a8540['to'](_0x2399('0x0'),_0x4707a7=>_0x2399('0x9')==typeof _0x4707a7?At(_0x4707a7+0xa):null)}},'children':this[_0x2399('0x5')]});}}
@@ -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 _0x1472=['cancel','from','addAnnotation','add','plugins','refresh','detach','_integrateWithEditorAnnotations','ready','isAttached','context','uiUpdate','stop','setActiveAnnotation','register','listenTo','removeEventListener','_activeAnnotation','WideSidebar','container','getOrderedSelectedAnnotations','_detachFromContainer','_annotations','_editorAnnotations','activeAnnotation','change:container','wideSidebar','rearrange','destroy','hasDomSelection','get','attach','widesidebar-detach-not-attached','remove','ck-sidebar--wide','editors','_destroyEditorAnnotationsIntegration','off','addEventListener','refreshPositioning','_refreshPositioningDebounced','stopListening','high','annotations','resize','EditorAnnotations','updateTargetRect','_attachToContainer','requires','pluginName','blur'];(function(_0x89e8f3,_0x1472af){const _0x2498ce=function(_0x4e0872){while(--_0x4e0872){_0x89e8f3['push'](_0x89e8f3['shift']());}};_0x2498ce(++_0x1472af);}(_0x1472,0x88));const _0x2498=function(_0x89e8f3,_0x1472af){_0x89e8f3=_0x89e8f3-0x0;let _0x2498ce=_0x1472[_0x89e8f3];return _0x2498ce;};import{ContextPlugin as _0x27309d,Context as _0x3124eb}from'ckeditor5/src/core';import _0x5bddf5 from'./annotationsuis';import _0x49f64c from'./sidebar';import{CKEditorError as _0x2ea740,Collection as _0x210b23}from'ckeditor5/src/utils';import{debounce as _0x3a664d}from'lodash-es';import _0x526d90 from'./editorannotations';export default class i extends _0x27309d{static get[_0x2498('0xe')](){return[_0x49f64c,_0x5bddf5];}static get[_0x2498('0xf')](){return _0x2498('0x23');}constructor(_0x572839){super(_0x572839),this[_0x2498('0x1a')]=!0x1,this['set'](_0x2498('0x29'),null),this[_0x2498('0x9')]=null,this[_0x2498('0x28')]=new _0x210b23(),this['_refreshPositioningDebounced']=_0x3a664d(()=>{this[_0x2498('0x9')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16783a=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x5bddf5),_0xebb463=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x49f64c);_0x16783a[_0x2498('0x1f')]('wideSidebar',this),_0xebb463[_0x2498('0x24')]&&_0x16783a['switchTo'](_0x2498('0x2b'));}[_0x2498('0x1e')](_0x5ab44b){if(_0x5ab44b===this[_0x2498('0x29')])return;const _0x263dd1=this[_0x2498('0x1b')][_0x2498('0x15')]['get'](_0x49f64c);_0x263dd1[_0x2498('0x22')]=_0x5ab44b;const _0x2a1963=this[_0x2498('0x29')];this[_0x2498('0x29')]=_0x5ab44b,_0x263dd1['refresh']({'blurredAnnotation':_0x2a1963,'activatedAnnotation':this[_0x2498('0x29')]});}[_0x2498('0x30')](_0x40fafc){this[_0x2498('0x9')]=_0x40fafc;const _0x4cd29f=this['context']['plugins'][_0x2498('0x2f')](_0x49f64c);if(_0x4cd29f[_0x2498('0x27')]=_0x40fafc,this[_0x2498('0x1a')])throw new _0x2ea740('widesidebar-attach-already-attached',this);this[_0x2498('0x1a')]=!0x0,this[_0x2498('0x20')](_0x4cd29f,'set:container',()=>{this['detach'](),this[_0x2498('0x20')](_0x4cd29f,_0x2498('0x2a'),_0x5c7c9e=>{_0x5c7c9e[_0x2498('0x3')](),this[_0x2498('0x30')](_0x40fafc);});}),_0x4cd29f[_0x2498('0xd')]({'viewClass':_0x2498('0x0')});const _0x3c33f3=_0x567723=>{_0x567723[_0x2498('0xc')](),_0x4cd29f[_0x2498('0x13')](_0x567723);};for(const _0x1c5901 of _0x40fafc)_0x3c33f3(_0x1c5901);this[_0x2498('0x20')](_0x40fafc,'add',(_0x7df2cd,_0x1e72e1)=>{_0x3c33f3(_0x1e72e1);}),this[_0x2498('0x20')](_0x40fafc,_0x2498('0x32'),(_0x468f4c,_0x45d0d3,_0x1b3bbe)=>{_0x4cd29f[_0x2498('0x2c')]({'removedAnnotation':_0x45d0d3,'previousAnnotation':_0x40fafc['get'](_0x1b3bbe-0x1),'nextAnnotation':_0x40fafc[_0x2498('0x2f')](_0x1b3bbe+0x1)}),_0x45d0d3===this[_0x2498('0x29')]&&this[_0x2498('0x1e')](null);},{'priority':_0x2498('0x8')}),this[_0x2498('0x20')](_0x40fafc,'focus',(_0x413ae3,_0x8a7cb1)=>{this[_0x2498('0x1e')](_0x8a7cb1);}),this[_0x2498('0x20')](_0x40fafc,_0x2498('0x10'),()=>{this['setActiveAnnotation'](null);});const _0x3587dc=this[_0x2498('0x1b')]instanceof _0x3124eb?this[_0x2498('0x1b')][_0x2498('0x1')]:new _0x210b23([this['context']]);for(const _0xc09e5a of _0x3587dc)this[_0x2498('0x18')](_0xc09e5a);this['listenTo'](_0x3587dc,_0x2498('0x14'),(_0x42ea61,_0x558062)=>{this['listenTo'](_0x558062,_0x2498('0x19'),()=>{this[_0x2498('0x18')](_0x558062);});}),this[_0x2498('0x20')](_0x3587dc,_0x2498('0x32'),(_0x16e81e,_0x1460eb)=>{_0x1460eb['plugins']['has'](_0x2498('0xb'))&&this[_0x2498('0x2')](_0x1460eb[_0x2498('0x15')][_0x2498('0x2f')](_0x2498('0xb')));}),window[_0x2498('0x4')](_0x2498('0xa'),this[_0x2498('0x6')]),this[_0x2498('0x9')][_0x2498('0x5')]();}[_0x2498('0x17')](){if(!this['isAttached'])throw new _0x2ea740(_0x2498('0x31'),this);this[_0x2498('0x1e')](null);const _0x1ebeec=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x49f64c);_0x1ebeec[_0x2498('0x26')](this['annotations']),this['stopListening'](_0x1ebeec),this[_0x2498('0x7')](this[_0x2498('0x9')]),this[_0x2498('0x1b')]instanceof _0x3124eb&&this[_0x2498('0x7')](this[_0x2498('0x1b')]['editors']);for(const _0x3facd5 of Array[_0x2498('0x12')](this[_0x2498('0x28')]))this[_0x2498('0x2')](_0x3facd5);window[_0x2498('0x21')](_0x2498('0xa'),this[_0x2498('0x6')]),this['_refreshPositioningDebounced'][_0x2498('0x11')](),this[_0x2498('0x29')]=null,this[_0x2498('0x1a')]=!0x1,this[_0x2498('0x9')]=null;}[_0x2498('0x2d')](){this[_0x2498('0x1a')]&&this['detach']();}['_integrateWithEditorAnnotations'](_0xff1ab8){const _0x28ec7b=_0xff1ab8[_0x2498('0x15')][_0x2498('0x2f')](_0x526d90);if(!_0x28ec7b)return;const _0x24cd29=()=>{const _0x4a7578=_0x28ec7b[_0x2498('0x25')]({'annotations':this[_0x2498('0x9')],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4a7578[0x0]||null);};this[_0x2498('0x20')](_0x28ec7b,_0x2498('0x16'),_0x24cd29),this['listenTo'](_0x28ec7b,'blur',(_0x24918c,{isAnnotationTracked:_0x4adbb5})=>{this['activeAnnotation']&&_0x4adbb5(this[_0x2498('0x29')])&&this[_0x2498('0x1e')](null);}),this[_0x2498('0x20')](_0x28ec7b,_0x2498('0x1c'),()=>{this[_0x2498('0x6')]();}),this[_0x2498('0x20')](this[_0x2498('0x9')],_0x2498('0x10'),_0x1ffb67=>{_0x28ec7b[_0x2498('0x2e')]()&&(_0x24cd29(),_0x1ffb67[_0x2498('0x1d')]());},{'priority':_0x2498('0x8')}),this[_0x2498('0x28')][_0x2498('0x14')](_0x28ec7b);}['_destroyEditorAnnotationsIntegration'](_0x2de446){this[_0x2498('0x7')](_0x2de446),this[_0x2498('0x28')]['remove'](_0x2de446);}}
@@ -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 _0x1552=['_hasContent','backward','refresh','$textProxy','_itemIsContent','getLastMatchingPosition','item','document','model','editor','element','start','getItems','_trimToContent','execute','getRanges','createRange'];(function(_0x175dd5,_0x155200){const _0x168e75=function(_0x5f070e){while(--_0x5f070e){_0x175dd5['push'](_0x175dd5['shift']());}};_0x168e75(++_0x155200);}(_0x1552,0xc6));const _0x168e=function(_0x175dd5,_0x155200){_0x175dd5=_0x175dd5-0x0;let _0x168e75=_0x1552[_0x175dd5];return _0x168e75;};import{Command as _0xb90de}from'ckeditor5/src/core';import{uid as _0xc00781}from'ckeditor5/src/utils';export default class q extends _0xb90de{[_0x168e('0x8')](){const _0x318720=this[_0x168e('0xf')][_0x168e('0xe')][_0x168e('0xd')]['selection'];for(const _0x2b54a7 of _0x318720[_0x168e('0x4')]())if(this[_0x168e('0x6')](_0x2b54a7))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x168e('0x3')]({threadId:_0x3a9760=_0xc00781()}={}){const _0x30af6=this[_0x168e('0xf')][_0x168e('0xe')],_0x5e3ce3=[];for(const _0x10d488 of _0x30af6[_0x168e('0xd')]['selection']['getRanges']())this[_0x168e('0x6')](_0x10d488)&&_0x5e3ce3['push'](this[_0x168e('0x2')](_0x10d488));_0x30af6['change'](_0x15e8d1=>{for(const _0x3cce0d of _0x5e3ce3){const _0x102965=_0xc00781()['substr'](0x1,0x5),_0x51aed3='comment:'+_0x3a9760+':'+_0x102965;_0x15e8d1['addMarker'](_0x51aed3,{'range':_0x3cce0d,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x168e('0x6')](_0x4adb09){for(const _0x3cca92 of _0x4adb09[_0x168e('0x1')]())if(this[_0x168e('0xa')](_0x3cca92))return!0x0;return!0x1;}[_0x168e('0xa')](_0x1f09be){return _0x1f09be['is'](_0x168e('0x9'))||this[_0x168e('0xf')][_0x168e('0xe')]['schema']['isObject'](_0x1f09be)&&!_0x1f09be['is'](_0x168e('0x10'),'tableCell');}['_trimToContent'](_0x4a05c9){const _0x24c3b6=_0x28cd6e=>!this[_0x168e('0xa')](_0x28cd6e[_0x168e('0xc')]),_0x3326e3=_0x4a05c9[_0x168e('0x0')][_0x168e('0xb')](_0x24c3b6),_0x2448cd=_0x4a05c9['end'][_0x168e('0xb')](_0x24c3b6,{'direction':_0x168e('0x7')});return this[_0x168e('0xf')][_0x168e('0xe')][_0x168e('0x5')](_0x3326e3,_0x2448cd);}}
@@ -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 _0x4e38=['_calculatePosition','requires','reopenCommentThread','collection','listenTo','add','resolvedThreads','has','highest','CommentsArchive','pluginName','activate','length','get','removeCommentThread','addCommentThread','init','context','getCommentThread','remove','resolveCommentThread','findIndex'];(function(_0x29e68b,_0x4e384d){const _0x442fb1=function(_0x53c15b){while(--_0x53c15b){_0x29e68b['push'](_0x29e68b['shift']());}};_0x442fb1(++_0x4e384d);}(_0x4e38,0x114));const _0x442f=function(_0x29e68b,_0x4e384d){_0x29e68b=_0x29e68b-0x0;let _0x442fb1=_0x4e38[_0x29e68b];return _0x442fb1;};import{ContextPlugin as _0x1b43d1}from'ckeditor5/src/core';import{Collection as _0x4e0b4d}from'ckeditor5/src/utils';import _0x4ac6e0 from'./commentsrepository';import _0x1d93db from'../annotations/annotations';export default class p extends _0x1b43d1{static get[_0x442f('0x14')](){return _0x442f('0x13');}static get[_0x442f('0xb')](){return[_0x4ac6e0,_0x1d93db];}constructor(_0x366a05){super(_0x366a05),this[_0x442f('0x10')]=new _0x4e0b4d();}[_0x442f('0x4')](){const _0x4d3a44=this[_0x442f('0x5')],_0x111db9=_0x4d3a44['plugins'][_0x442f('0x1')](_0x4ac6e0),_0x5c2b0a=_0x4d3a44['plugins']['get'](_0x1d93db);this['listenTo'](_0x111db9,_0x442f('0x3'),(_0x20f748,{threadId:_0x597a9b,resolvedAt:_0x39454f,deletedAt:_0x1be7cd})=>{if(_0x39454f&&!_0x1be7cd){const _0x4d5340=_0x111db9[_0x442f('0x6')](_0x597a9b);this[_0x442f('0x10')][_0x442f('0xf')](_0x4d5340,this[_0x442f('0xa')](_0x39454f));}}),this[_0x442f('0xe')](_0x111db9,_0x442f('0x8'),(_0x815e11,{threadId:_0x3f2f4e,resolvedAt:_0x5ad455})=>{const _0x835ddd=_0x111db9['getCommentThread'](_0x3f2f4e);this[_0x442f('0x10')][_0x442f('0xf')](_0x835ddd,this[_0x442f('0xa')](_0x5ad455));},{'priority':_0x442f('0x12')}),this[_0x442f('0xe')](_0x111db9,_0x442f('0xc'),(_0x3fa83d,{threadId:_0x53dc31})=>{const _0x1acf3f=_0x111db9[_0x442f('0x6')](_0x53dc31);this[_0x442f('0x10')][_0x442f('0x11')](_0x1acf3f)&&this['resolvedThreads'][_0x442f('0x7')](_0x1acf3f);},{'priority':'highest'}),this[_0x442f('0xe')](_0x111db9,_0x442f('0x2'),(_0x454503,{threadId:_0x36e3ea})=>{const _0x3c7ce3=_0x111db9[_0x442f('0x6')](_0x36e3ea);this[_0x442f('0x10')][_0x442f('0x11')](_0x3c7ce3)&&this[_0x442f('0x10')][_0x442f('0x7')](_0x3c7ce3);},{'priority':_0x442f('0x12')}),this[_0x442f('0xe')](_0x5c2b0a[_0x442f('0xd')],'focus',(_0x549ef3,_0x42c155)=>{_0x42c155['isActive']=!0x0,_0x5c2b0a[_0x442f('0x15')](_0x42c155);});}['_calculatePosition'](_0x136f93){const _0x5be1a6=[...this[_0x442f('0x10')]][_0x442f('0x9')](_0x3e7417=>_0x3e7417['resolvedAt']<_0x136f93);return _0x5be1a6>-0x1?_0x5be1a6:this[_0x442f('0x10')][_0x442f('0x0')];}}
@@ -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 _0x33a6=['focusTracker','classList','children','_calculatePosition','collection','get','plugins','_threadToController','panelView','componentFactory','_pendingThreads','_createArchiveUIDropdown','channelId','stopListening','contains','config','add','commentsArchiveView','editor','push','commentsArchive','init','_visibleAnnotations','length','focusableElements','extendTemplate','innerView','resolvedAt','listenTo','findIndex','find','indexOf','set','mainView','position','isVisible','annotationViews','_handleAnnotationFocusableElements','locale','pluginName','ck-body','splice','requires','ck-comments-archive-dropdown','change:isOpen','COMMENTS_ARCHIVE','view','buttonView','collaboration.channelId','Annotations','remove','resolvedThreads','getByInnerView','filter'];(function(_0xe097c4,_0x33a60a){const _0xef9e8b=function(_0x2f25b6){while(--_0x2f25b6){_0xe097c4['push'](_0xe097c4['shift']());}};_0xef9e8b(++_0x33a60a);}(_0x33a6,0x9e));const _0xef9e=function(_0xe097c4,_0x33a60a){_0xe097c4=_0xe097c4-0x0;let _0xef9e8b=_0x33a6[_0xe097c4];return _0xef9e8b;};import'../../theme/commentsarchive.css';import{Plugin as _0x1a2a0f}from'ckeditor5/src/core';import{createDropdown as _0x3a2f2b,ViewCollection as _0x2851fc}from'ckeditor5/src/ui';import _0x18db92 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x1a79db}from'../utils/common-translations';import _0x4c8bbf from'./ui/view/commentsarchiveview';import _0xa40150 from'./commentsarchive';export default class a extends _0x1a2a0f{static get[_0xef9e('0x2b')](){return'CommentsArchiveUI';}static get[_0xef9e('0x2e')](){return[_0xa40150];}constructor(_0x5852e9){super(_0x5852e9),this['annotationViews']=new _0x2851fc(),this['_pendingThreads']=[];}[_0xef9e('0x19')](){this[_0xef9e('0x16')]['ui'][_0xef9e('0xd')][_0xef9e('0x14')](_0xef9e('0x18'),()=>this[_0xef9e('0xf')]());const _0x293111=this['editor'][_0xef9e('0xa')][_0xef9e('0x9')](_0xa40150),_0x126f95=this[_0xef9e('0x16')][_0xef9e('0xa')][_0xef9e('0x9')](_0xef9e('0x35')),_0x25d939=this[_0xef9e('0x16')]['plugins']['get']('CommentsRepository');this[_0xef9e('0x20')](_0x293111[_0xef9e('0x1')],'add',(_0x5dda5c,_0x28722f)=>{const _0xcba07c=this[_0xef9e('0x16')][_0xef9e('0x13')][_0xef9e('0x9')](_0xef9e('0x34'));if(!_0xcba07c||_0x28722f[_0xef9e('0x10')]===_0xcba07c){const _0x160b1c=this[_0xef9e('0x7')](_0x28722f[_0xef9e('0x1f')]),_0x45b003=_0x25d939[_0xef9e('0xb')][_0xef9e('0x9')](_0x28722f);if(!_0x45b003)return void this[_0xef9e('0xe')][_0xef9e('0x17')]({'thread':_0x28722f,'position':_0x160b1c});const _0x4a9e93=_0x126f95[_0xef9e('0x2')](_0x45b003[_0xef9e('0x32')]);_0x4a9e93[_0xef9e('0x27')]&&_0x126f95[_0xef9e('0x1a')][_0xef9e('0x0')](_0x4a9e93),this[_0xef9e('0x28')]['add'](_0x4a9e93[_0xef9e('0x32')],_0x160b1c);}}),this[_0xef9e('0x20')](_0x126f95[_0xef9e('0x8')],'add',(_0x3eaf14,_0x3fda8d)=>{const _0x557bdd=this['_pendingThreads'][_0xef9e('0x22')](({thread:_0xfc85e0})=>{const _0x2e5050=_0x25d939['_threadToController'][_0xef9e('0x9')](_0xfc85e0);return _0x2e5050&&_0x3fda8d[_0xef9e('0x1e')]===_0x2e5050[_0xef9e('0x32')];});_0x557bdd&&(this[_0xef9e('0x28')][_0xef9e('0x14')](_0x3fda8d[_0xef9e('0x32')],_0x557bdd[_0xef9e('0x26')]),this[_0xef9e('0xe')][_0xef9e('0x2d')](this[_0xef9e('0xe')][_0xef9e('0x23')](_0x557bdd),0x1));}),this[_0xef9e('0x20')](_0x293111[_0xef9e('0x1')],_0xef9e('0x0'),(_0x54e309,_0x12b921)=>{const _0x472163=this[_0xef9e('0x16')]['config'][_0xef9e('0x9')](_0xef9e('0x34'));if(!_0x472163||_0x12b921[_0xef9e('0x10')]===_0x472163){const _0x1d6eb6=_0x25d939[_0xef9e('0xb')][_0xef9e('0x9')](_0x12b921),_0x3fb7ba=_0x126f95['getByInnerView'](_0x1d6eb6[_0xef9e('0x32')]);this[_0xef9e('0x28')]['remove'](_0x3fb7ba[_0xef9e('0x32')]),this[_0xef9e('0x11')](_0x3fb7ba[_0xef9e('0x1c')]);}});}[_0xef9e('0x29')](_0x5284a5,_0x1e2606){for(const _0x25e5ad of _0x1e2606['focusableElements'])_0x25e5ad[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5['focusTracker'][_0xef9e('0x14')](_0x25e5ad);this[_0xef9e('0x20')](_0x1e2606['focusableElements'],'add',(_0x47f661,_0x564480)=>{_0x564480[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5[_0xef9e('0x4')][_0xef9e('0x14')](_0x564480);}),this[_0xef9e('0x20')](_0x1e2606['focusableElements'],_0xef9e('0x0'),(_0x50fd28,_0x204756)=>{_0x204756[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5[_0xef9e('0x4')]['remove'](_0x204756);});}[_0xef9e('0x7')](_0x156ace){const _0x39d651=this[_0xef9e('0x16')][_0xef9e('0x13')][_0xef9e('0x9')](_0xef9e('0x34')),_0x23ec37=[...this['editor'][_0xef9e('0xa')][_0xef9e('0x9')](_0xa40150)['resolvedThreads']][_0xef9e('0x3')](_0x5f58a5=>_0x5f58a5[_0xef9e('0x10')]!==_0x39d651)[_0xef9e('0x21')](_0x428c1e=>_0x428c1e[_0xef9e('0x1f')]<_0x156ace);return _0x23ec37>-0x1?_0x23ec37:this[_0xef9e('0x28')][_0xef9e('0x1b')];}['_createArchiveUIDropdown'](){const _0x9af950=this[_0xef9e('0x16')],_0x34a35f=this[_0xef9e('0x16')][_0xef9e('0xa')][_0xef9e('0x9')]('Annotations'),_0x1e0b76=_0x3a2f2b(_0x9af950[_0xef9e('0x2a')]);_0x1e0b76[_0xef9e('0x33')][_0xef9e('0x24')]({'icon':_0x18db92,'label':_0x1a79db(_0x9af950[_0xef9e('0x2a')],_0xef9e('0x31')),'tooltip':!0x0}),_0x1e0b76[_0xef9e('0xc')][_0xef9e('0x1d')]({'attributes':{'class':_0xef9e('0x2f')}}),_0x1e0b76['on'](_0xef9e('0x30'),(_0x4ba3d7,_0x3ba9b9,_0x1b5e6b)=>{this[_0xef9e('0x15')]||(this[_0xef9e('0x15')]=new _0x4c8bbf(_0x9af950[_0xef9e('0x2a')],this[_0xef9e('0x28')])),_0x1b5e6b?_0x1e0b76[_0xef9e('0xc')]['children']['add'](this['commentsArchiveView']):_0x1e0b76['panelView'][_0xef9e('0x6')]['remove'](this[_0xef9e('0x15')]);});for(const _0x123b7e of this[_0xef9e('0x28')]){const _0x4fe5e8=_0x34a35f[_0xef9e('0x2')](_0x123b7e[_0xef9e('0x25')]);this['_handleAnnotationFocusableElements'](_0x1e0b76,_0x4fe5e8);}return _0x1e0b76[_0xef9e('0x20')](this[_0xef9e('0x28')],_0xef9e('0x14'),(_0xccca1c,_0x447ba4)=>{const _0xb591ce=_0x34a35f[_0xef9e('0x2')](_0x447ba4[_0xef9e('0x25')]);this['_handleAnnotationFocusableElements'](_0x1e0b76,_0xb591ce);}),_0x1e0b76[_0xef9e('0x20')](this[_0xef9e('0x28')],_0xef9e('0x0'),(_0x18d656,_0x1bb09f)=>{const _0x29dc4e=_0x34a35f[_0xef9e('0x2')](_0x1bb09f[_0xef9e('0x25')]);for(const _0x8de185 of _0x29dc4e['focusableElements'])_0x8de185[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x1e0b76[_0xef9e('0x4')][_0xef9e('0x0')](_0x8de185);}),_0x1e0b76;}}
@@ -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 _0x1896=['change','end','rootName','conversion','CommentsEditing','resolveCommentThread','switchReadOnly','delete','_detachCommentThread','context','editing','$graveyard','focus','split','comment','change:isThreadsLoadingPaused','editor','_getTargetForId','hasMarkerForId','destroyed','filter','upcast','plugins','set','hasContent','consume','markerToHighlight','hasDomSelection','_removedThread','createRange','root','_attachedThreads','registerPostFixer','removeCommentThread','dataToMarker','enqueueChange','_hasTargetInContent','$marker','differ','push','from','init','getCommentThreads','clear','size','activeMarker','markers','_threadToController','_getTextContext','ignoreResolvedComments','destroy','consumable','_initializeMarkerConverters','getWalker','getChangedMarkers','isThreadsLoadingPaused','low','setContext','isResolved','length','openNewCommentThread','createPositionBefore','has','once','change:activeMarker','_reconvertMarkers','document','comment:','getAllMarkersForId','collaboration.channelId','text','config','getCommentThread','requires','_handleThreadMarker','isCollapsed','removeMarker','isLocal','addComment','resolve','schema','_attachResolvedThread','ck-comment-marker','getItems','change:isReadOnly','map','createElement','attachTo','managedUsingOperations','hasCommentThread','get','item','scrollToThreadMarker','for','then','markerName','high','render','isObject','data','reopen','reconvertMarker','_autoResolvedThreads','editingDowncast','affectsData','view','listenTo','newRange','_threads','addCommentThread','substring','start','refreshVisibility','pluginName','commands','getByInnerView','add','model','_handleMarkerAddAndRemove','isEqual'];(function(_0xec41df,_0x189655){const _0x466aa6=function(_0x93e2e3){while(--_0x93e2e3){_0xec41df['push'](_0xec41df['shift']());}};_0x466aa6(++_0x189655);}(_0x1896,0xa2));const _0x466a=function(_0xec41df,_0x189655){_0xec41df=_0xec41df-0x0;let _0x466aa6=_0x1896[_0xec41df];return _0x466aa6;};import{Plugin as _0xa3ed26}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x550370}from'ckeditor5/src/utils';import _0x3cddb1 from'./commentsrepository';import _0x58c69f from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x34713b}from'ckeditor5-collaboration/src/collaboration-core';import _0x44f802 from'../annotations/editorannotations';import _0x4ef1cf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x144c38 from'./integrations/importword';import _0x97cd7a from'../annotations/annotations';export default class r extends _0xa3ed26{static get[_0x466a('0x1f')](){return[_0x3cddb1,_0x44f802,_0x4ef1cf,_0x144c38];}static get[_0x466a('0x47')](){return _0x466a('0x52');}constructor(_0x21debd){super(_0x21debd),this[_0x466a('0x6a')]=null,this[_0x466a('0x3c')]=new Set(),this[_0x466a('0x65')](_0x466a('0xd'),!0x0),_0x21debd[_0x466a('0x39')][_0x466a('0x15')]('ready',()=>this[_0x466a('0xd')]=!0x1),this[_0x466a('0x65')]('activeMarker',null),this['on'](_0x466a('0x16'),(_0x4c37df,_0xf8fcbb,_0x2ddbb4,_0x3e671f)=>{const _0x233c32=_0x2ddbb4?tt(_0x2ddbb4)['id']:null;if(_0x21debd[_0x466a('0x4b')][_0x466a('0x4e')](()=>{if(_0x233c32){const _0x49459d=this[_0x466a('0x1a')](_0x233c32);for(const _0x4d5e3a of _0x49459d)_0x21debd[_0x466a('0x58')][_0x466a('0x3b')](_0x4d5e3a);}if(_0x3e671f){const {id:_0x38a8b6}=tt(_0x3e671f),_0x1c4869=this['getAllMarkersForId'](_0x38a8b6);for(const _0x41b687 of _0x1c4869)_0x21debd[_0x466a('0x58')]['reconvertMarker'](_0x41b687);}}),_0x233c32){const _0x53e669=_0x21debd[_0x466a('0x64')]['get'](_0x3cddb1)[_0x466a('0x1e')](_0x233c32);_0x53e669&&_0x53e669[_0x466a('0x10')]&&this[_0x466a('0x32')](_0x233c32);}}),this['_attachedThreads']=new Map();}[_0x466a('0x77')](){const _0x44f0c9=this[_0x466a('0x5e')],_0x4783ec=_0x44f0c9[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1),_0x4536af=_0x44f0c9['config'][_0x466a('0x30')](_0x466a('0x1b'));_0x44f0c9[_0x466a('0x48')][_0x466a('0x4a')](_0x466a('0x43'),new _0x58c69f(_0x44f0c9)),this['listenTo'](_0x44f0c9,_0x466a('0x2a'),(_0x2e8199,_0x134318,_0x4630e9)=>{_0x4783ec[_0x466a('0x54')](_0x4630e9,_0x44f0c9['config']['get'](_0x466a('0x1b')));}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x43'),_0x4536af),(_0x475b42,{threadId:_0x3bf41d})=>{const _0x41653e=this[_0x466a('0x5e')]['plugins'][_0x466a('0x30')](_0x3cddb1)[_0x466a('0x1e')](_0x3bf41d);_0x41653e&&_0x41653e[_0x466a('0x10')]&&this[_0x466a('0x27')](_0x3bf41d);}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x6f'),_0x4536af),(_0x208703,{threadId:_0x2239ff})=>{_0x44f0c9[_0x466a('0x4b')][_0x466a('0x71')]({'isUndoable':!0x1},_0x1e883d=>{const _0x23eeae=this[_0x466a('0x1a')](_0x2239ff);this[_0x466a('0x6d')]['delete'](_0x2239ff),this[_0x466a('0x6a')]=_0x2239ff;for(const _0x25b24a of _0x23eeae)_0x1e883d[_0x466a('0x22')](_0x25b24a);}),this[_0x466a('0x6a')]=null;},{'priority':_0x466a('0x36')}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x53'),_0x4536af),(_0x4c84c4,{threadId:_0x43a6ea})=>{this[_0x466a('0x27')](_0x43a6ea),this[_0x466a('0x17')](_0x43a6ea),this[_0x466a('0x5e')][_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x69')]&&this[_0x466a('0x5e')][_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x5a')]();},{'priority':_0x466a('0xe')}),this[_0x466a('0x40')](_0x4783ec,Z('reopenCommentThread',_0x4536af),(_0x4fa2f5,{threadId:_0x3f859f})=>{this[_0x466a('0x17')](_0x3f859f);},{'priority':_0x466a('0xe')}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x24'),_0x4536af),(_0x95eb5a,{threadId:_0x285be2,isFromAdapter:_0x2a1019})=>{const _0x248e7b=this[_0x466a('0x1a')](_0x285be2);if(_0x2a1019||0x0==_0x248e7b[_0x466a('0x11')]||!_0x4783ec[_0x466a('0x2f')](_0x285be2))return;0x1===_0x4783ec['getCommentThread'](_0x285be2)[_0x466a('0x11')]&&_0x44f0c9[_0x466a('0x4b')]['enqueueChange']({'isUndoable':!0x1},_0x102318=>{for(const _0x22a101 of _0x248e7b)_0x102318['updateMarker'](_0x22a101,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x466a('0xe')}),this[_0x466a('0xa')](),this[_0x466a('0x4c')]();}['destroy'](){const _0x5b87e8=this[_0x466a('0x5e')]['plugins']['get'](_0x3cddb1),_0x38fa44=this[_0x466a('0x5e')][_0x466a('0x1d')][_0x466a('0x30')]('collaboration.channelId');for(const _0x12c259 of _0x5b87e8[_0x466a('0x0')]({'channelId':_0x38fa44}))_0x5b87e8[_0x466a('0x56')](_0x12c259['id']),_0x5b87e8[_0x466a('0x42')][_0x466a('0x55')](_0x12c259['id']);super[_0x466a('0x8')]();}[_0x466a('0x60')](_0x50abc4){return this[_0x466a('0x1a')](_0x50abc4)[_0x466a('0x11')]>0x0;}[_0x466a('0x1a')](_0x18feaa){return Array[_0x466a('0x76')](this[_0x466a('0x6d')]['get'](_0x18feaa)||[])[_0x466a('0x2b')](_0xdd7e15=>this[_0x466a('0x5e')][_0x466a('0x4b')]['markers'][_0x466a('0x30')](_0xdd7e15))[_0x466a('0x62')](_0x330b78=>_0x330b78);}['scrollToThreadMarker'](_0x9a9387){const _0x2b9ff8=this[_0x466a('0x5f')](_0x9a9387);_0x2b9ff8&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x466a('0x3')])['id']===_0x9a9387&&_0x550370({'target':_0x2b9ff8[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x466a('0x17')](_0x57ac90){this['editor'][_0x466a('0x4b')]['change'](()=>{for(const _0x9a0904 of this[_0x466a('0x1a')](_0x57ac90))this[_0x466a('0x5e')]['editing'][_0x466a('0x3b')](_0x9a0904);});}[_0x466a('0x27')](_0x4af0c6){const _0x97d6e2=this['editor']['plugins'][_0x466a('0x30')](_0x3cddb1),_0x4244e5=this['editor'][_0x466a('0x64')][_0x466a('0x30')](_0x44f802),_0x376346=_0x97d6e2[_0x466a('0x1e')](_0x4af0c6);if(!this['_attachedThreads'][_0x466a('0x14')](_0x4af0c6)){const _0x2069a2=_0x376346['attachTo'](()=>this[_0x466a('0x5f')](_0x376346['id']));_0x4244e5['registerAnnotation'](_0x2069a2),this[_0x466a('0x6d')][_0x466a('0x65')](_0x4af0c6,new Set()),_0x376346[_0x466a('0x72')]=!0x1;}}[_0x466a('0xa')](){const _0x175c06=this[_0x466a('0x5e')];_0x175c06[_0x466a('0x51')][_0x466a('0x33')](_0x466a('0x3d'))[_0x466a('0x68')]({'model':_0x466a('0x5c'),'view':(_0x46d1b0,_0x85c9f8)=>{const {id:_0x27970c}=tt(_0x46d1b0['markerName']),_0x490f22=_0x175c06[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1)[_0x466a('0x1e')](_0x27970c),_0x2397f7=this[_0x466a('0x3')]&&tt(this[_0x466a('0x3')])['id']===_0x27970c;if(_0x490f22&&_0x490f22['isResolved']&&!_0x2397f7&&_0x46d1b0[_0x466a('0x31')])return _0x85c9f8[_0x466a('0x9')]['consume'](_0x46d1b0[_0x466a('0x31')],'addMarker:'+_0x46d1b0[_0x466a('0x35')]),_0x85c9f8[_0x466a('0x9')][_0x466a('0x67')](_0x46d1b0[_0x466a('0x31')],'removeMarker:'+_0x46d1b0[_0x466a('0x35')]),{'classes':[]};const _0x3461ff=[_0x466a('0x28')];return _0x2397f7&&_0x3461ff[_0x466a('0x75')]('ck-comment-marker--active'),{'classes':_0x3461ff,'attributes':{'data-comment':_0x27970c}};}}),_0x175c06['conversion']['for']('dataDowncast')['markerToData']({'model':_0x466a('0x5c'),'view':(_0x3de60d,{options:_0x4ff71c})=>{const _0x4fcc06=_0x175c06[_0x466a('0x64')]['get'](_0x3cddb1),_0x195daa=_0x175c06['model'][_0x466a('0x4')][_0x466a('0x30')](_0x3de60d),{id:_0x53c03f,part:_0x558862}=tt(_0x3de60d);if(_0x195daa&&!_0x195daa[_0x466a('0x3e')])return null;if(_0x4ff71c[_0x466a('0x7')]){const _0x1fe536=_0x4fcc06[_0x466a('0x1e')](_0x53c03f);if(_0x1fe536&&_0x1fe536[_0x466a('0x10')])return null;}return{'group':_0x466a('0x5c'),'name':_0x558862?_0x53c03f+':'+_0x558862:_0x53c03f};}}),_0x175c06['conversion'][_0x466a('0x33')](_0x466a('0x63'))['elementToElement']({'view':{'name':_0x466a('0x5c'),'attributes':{'id':/^\w/}},'model':(_0x1750f3,{writer:_0x43c4f1})=>_0x43c4f1[_0x466a('0x2c')](_0x466a('0x73'),{'data-name':_0x466a('0x19')+_0x1750f3['getAttribute']('id')})}),_0x175c06[_0x466a('0x51')][_0x466a('0x33')](_0x466a('0x63'))[_0x466a('0x70')]({'view':_0x466a('0x5c')});}[_0x466a('0x4c')](){const _0x369c5c=this[_0x466a('0x5e')],_0x1e7ebb=_0x369c5c[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1),_0x501b55=new Set(),_0x806029=new Set();_0x369c5c['model'][_0x466a('0x18')][_0x466a('0x6e')](_0x319927=>{let _0x6a4e3=!0x1;for(const {name:_0x447ebc,data:_0x9c3ee2}of _0x369c5c[_0x466a('0x4b')]['document']['differ']['getChangedMarkers']()){const {group:_0x3d9816,id:_0x5573a3}=tt(_0x447ebc);let _0x25c5bc=_0x9c3ee2[_0x466a('0x41')];if(_0x466a('0x5c')!==_0x3d9816||!_0x25c5bc)continue;const _0x4c0f77=_0x466a('0x59')===_0x25c5bc[_0x466a('0x6c')][_0x466a('0x50')];_0x4c0f77||(_0x25c5bc=ot(_0x25c5bc,_0x369c5c[_0x466a('0x4b')]),!_0x25c5bc||_0x25c5bc['isCollapsed']||!_0x9c3ee2[_0x466a('0x41')]||_0x25c5bc[_0x466a('0x4d')](_0x9c3ee2[_0x466a('0x41')]))?_0x369c5c[_0x466a('0x4b')][_0x466a('0x66')](_0x25c5bc)&&!_0x4c0f77?this[_0x466a('0xd')]?_0x501b55[_0x466a('0x4a')](_0x447ebc):this[_0x466a('0x20')](_0x447ebc,_0x5573a3):(_0x806029[_0x466a('0x4a')](_0x447ebc),_0x501b55[_0x466a('0x55')](_0x447ebc),_0x319927[_0x466a('0x22')](_0x447ebc),_0x6a4e3=!0x0):(_0x319927['updateMarker'](_0x447ebc,{'range':_0x25c5bc}),_0x6a4e3=!0x0);}return _0x6a4e3;}),this['on'](_0x466a('0x5d'),(_0x59000e,_0x21f26a,_0x48d859)=>{if(!_0x48d859&&_0x501b55[_0x466a('0x2')])for(const _0x9020d7 of _0x501b55){const {id:_0x46d6e5}=tt(_0x9020d7);_0x501b55[_0x466a('0x55')](_0x9020d7),_0x369c5c[_0x466a('0x4b')]['markers'][_0x466a('0x30')](_0x9020d7)&&this['_handleThreadMarker'](_0x9020d7,_0x46d6e5);}}),this[_0x466a('0x40')](_0x369c5c[_0x466a('0x4b')][_0x466a('0x18')],_0x466a('0x4e'),(_0x46cbd9,_0x56848c)=>{for(const {name:_0x4eff83,data:{newRange:_0x561e67}}of _0x369c5c[_0x466a('0x4b')][_0x466a('0x18')][_0x466a('0x74')][_0x466a('0xc')]()){const {group:_0x2fa31c,id:_0x3d81fd}=tt(_0x4eff83);if(_0x466a('0x5c')!==_0x2fa31c)continue;const _0x24a6f3=_0x1e7ebb['getCommentThread'](_0x3d81fd),_0x39183c=this[_0x466a('0x60')](_0x3d81fd);_0x24a6f3&&(_0x24a6f3[_0x466a('0x72')]||_0x369c5c[_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x15')](_0x466a('0x37'),()=>{const _0x3e0509=_0x369c5c[_0x466a('0x64')]['get'](_0x97cd7a),_0x22415b=_0x1e7ebb[_0x466a('0x5')][_0x466a('0x30')](_0x24a6f3)[_0x466a('0x3f')];_0x3e0509[_0x466a('0x49')](_0x22415b)[_0x466a('0x46')]();},{'priority':'low'}),_0x24a6f3['_hasTargetInContent']=_0x39183c||!!_0x561e67),_0x561e67||(_0x806029[_0x466a('0x4a')](_0x4eff83),_0x501b55['delete'](_0x4eff83),this[_0x466a('0x6d')][_0x466a('0x14')](_0x3d81fd)&&this[_0x466a('0x6d')][_0x466a('0x30')](_0x3d81fd)[_0x466a('0x55')](_0x4eff83));}if(_0x56848c[_0x466a('0x23')])for(const _0x29badd of _0x806029){const {id:_0x30a9c9}=tt(_0x29badd),_0x288cce=_0x1e7ebb['getCommentThread'](_0x30a9c9),_0x56d384=this[_0x466a('0x60')](_0x30a9c9);_0x501b55['delete'](_0x29badd),!_0x288cce||_0x56d384||_0x288cce['isResolved']||this['_removedThread']===_0x30a9c9||(this[_0x466a('0x3c')][_0x466a('0x4a')](_0x288cce),_0x288cce[_0x466a('0x25')]());}_0x806029[_0x466a('0x1')]();});}['_getTargetForId'](_0x192eb9){const _0x2c2688=this[_0x466a('0x5e')],_0x14f41f=this[_0x466a('0x1a')](_0x192eb9);return _0x34713b(_0x2c2688['editing'],_0x14f41f);}['_getTextContext'](_0x22f47a){const _0x46f46c=this['getAllMarkersForId'](_0x22f47a);let _0x4e2fb='',_0x408968=!0x1;for(const _0x21aa59 of _0x46f46c){const _0x50ce60=_0x21aa59['getRange']();for(const _0x117f86 of Array[_0x466a('0x76')](_0x50ce60[_0x466a('0x29')]()))_0x117f86['is']('$textProxy')?(_0x4e2fb&&_0x408968&&(_0x4e2fb+='\x20',_0x408968=!0x1),_0x4e2fb+=_0x117f86[_0x466a('0x39')]):_0x408968=!0x0;_0x408968=!0x0;}return _0x4e2fb[_0x466a('0x44')](0x0,0x96);}['_attachMarkerToThread'](_0x2cd1e9,_0x4c5cdc){const _0x219d3c=this[_0x466a('0x5e')],_0x2274c3=_0x219d3c[_0x466a('0x64')]['get'](_0x3cddb1);let _0xb808b2=_0x2274c3[_0x466a('0x1e')](_0x4c5cdc);if(this[_0x466a('0x6d')][_0x466a('0x14')](_0x4c5cdc)){const _0x106e32=this[_0x466a('0x6d')][_0x466a('0x30')](_0x4c5cdc);_0x106e32[_0x466a('0x14')](_0x2cd1e9)||_0x106e32['add'](_0x2cd1e9);}const _0x2dcd9a=_0x219d3c['config'][_0x466a('0x30')]('collaboration.channelId'),_0x9becba=_0x219d3c[_0x466a('0x64')][_0x466a('0x30')](_0x44f802);if(_0xb808b2&&_0xb808b2[_0x466a('0x10')]&&this[_0x466a('0x3c')][_0x466a('0x14')](_0xb808b2)&&(this[_0x466a('0x3c')][_0x466a('0x55')](_0xb808b2),_0xb808b2[_0x466a('0x3a')]()),this[_0x466a('0x6d')][_0x466a('0x14')](_0x4c5cdc))return _0xb808b2;return this['_attachedThreads'][_0x466a('0x65')](_0x4c5cdc,new Set([_0x2cd1e9])),(!this[_0x466a('0x1a')](_0x4c5cdc)[0x0][_0x466a('0x2e')]?_0x219d3c[_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x15')](_0x466a('0x37'),()=>{const _0x19cf9a=_0x219d3c[_0x466a('0x64')][_0x466a('0x30')](_0x97cd7a);_0xb808b2=_0x2274c3[_0x466a('0x12')]({'channelId':_0x2dcd9a,'threadId':_0x4c5cdc,'target':()=>this[_0x466a('0x5f')](_0x4c5cdc),'context':{'type':_0x466a('0x1c'),'value':this[_0x466a('0x6')](_0x4c5cdc)}});const _0x12697b=_0x2274c3[_0x466a('0x5')][_0x466a('0x30')](_0xb808b2)['view'],_0x34894e=_0x19cf9a[_0x466a('0x49')](_0x12697b);_0x34894e&&_0x9becba['registerAnnotation'](_0x34894e);},{'priority':_0x466a('0xe')}):_0x2274c3['fetchCommentThread']({'channelId':_0x2dcd9a,'threadId':_0x4c5cdc})[_0x466a('0x34')](_0x2d1ecd=>{if(_0x466a('0x61')!==_0x219d3c['state']){if(_0xb808b2=_0x2d1ecd,_0xb808b2){const _0x2f1177=_0xb808b2[_0x466a('0x2d')](()=>this['_getTargetForId'](_0x4c5cdc));_0x9becba['registerAnnotation'](_0x2f1177),_0xb808b2[_0x466a('0x10')]&&this['_reconvertMarkers'](_0x4c5cdc);}else{const _0x40ddc3=this[_0x466a('0x1a')](_0x4c5cdc);_0x219d3c[_0x466a('0x4b')]['change'](_0x5cad0d=>{for(const _0x1b4bca of _0x40ddc3)_0x5cad0d[_0x466a('0x22')](_0x1b4bca);});}}}),_0xb808b2);}[_0x466a('0x20')](_0x488c3c,_0x5218c0){const _0x3cd567=this['_attachMarkerToThread'](_0x488c3c,_0x5218c0);_0x3cd567&&!_0x3cd567[_0x466a('0x57')]&&_0x3cd567[_0x466a('0xf')]({'type':_0x466a('0x1c'),'value':this[_0x466a('0x6')](_0x5218c0)});}}function Z(_0x3ea28e,_0x162ac9){return _0x162ac9?_0x3ea28e+':'+_0x162ac9:_0x3ea28e;}function tt(_0x1d4ef7){const _0x561a59=_0x1d4ef7[_0x466a('0x5b')](':');return{'group':_0x561a59[0x0],'id':_0x561a59[0x1],'part':_0x561a59[0x2]};}function ot(_0x2b90c5,_0x5f5b69){const _0x129476=_0x5f5b69[_0x466a('0x26')],_0x38323d=_0x5f5b69[_0x466a('0x6b')](_0x2b90c5[_0x466a('0x45')]);for(const _0x56085c of _0x2b90c5[_0x466a('0xb')]()){const {type:_0x1e9096,item:_0x5a8ebe,nextPosition:_0x59b3a1}=_0x56085c;if(_0x466a('0x1c')===_0x1e9096||_0x129476[_0x466a('0x38')](_0x5a8ebe)){const _0x20c9ef=_0x5f5b69[_0x466a('0x13')](_0x5a8ebe);_0x38323d[_0x466a('0x21')]&&(_0x38323d[_0x466a('0x45')]=_0x20c9ef),_0x38323d[_0x466a('0x4f')]=_0x59b3a1;}}return _0x38323d;}