@ckeditor/ckeditor5-comments 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f17=['render','div','listenTo','mainView','set','Esc','height','length','ck-rounded-corners','isActive','keystrokes','ck-annotation-wrapper','createCollection','_mutationObserver','destroy','add','element','type','clear','_updateHeight','setTemplate','focusTracker','focus','targetRect'];(function(_0xa9af8e,_0x3f1701){const _0x1f7233=function(_0x581a99){while(--_0x581a99){_0xa9af8e['push'](_0xa9af8e['shift']());}};_0x1f7233(++_0x3f1701);}(_0x3f17,0x90));const _0x1f72=function(_0xa9af8e,_0x3f1701){_0xa9af8e=_0xa9af8e-0x0;let _0x1f7233=_0x3f17[_0xa9af8e];return _0x1f7233;};import{View as _0x34f492}from'ckeditor5/src/ui.js';import{FocusTracker as _0xcb3194,KeystrokeHandler as _0x5ec1dd,uid as _0x5d835c}from'ckeditor5/src/utils.js';import _0x5072ef from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x34f492{constructor(_0x36d868,_0x224551){super(_0x36d868),this['id']=_0x5d835c(),this['focusTracker']=new _0xcb3194(),this[_0x1f72('0xa')]=new _0x5ec1dd(),this[_0x1f72('0xa')][_0x1f72('0x4')](_0x1f72('0x5'),(_0x1005e2,_0x1f0f1c)=>this['fire'](_0x1f72('0x5'),_0x1f0f1c)),this[_0x1f72('0x4')](_0x1f72('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1f72('0x4')](_0x1f72('0x6'),0x0),this['set'](_0x1f72('0x9'),!0x1),this[_0x1f72('0x4')]('isDirty',!0x1),this[_0x1f72('0x4')](_0x1f72('0x7'),0x0),this['set'](_0x1f72('0x11'),''),this[_0x1f72('0xd')]=_0x5072ef(()=>this[_0x1f72('0x13')]()),this['content']=this[_0x1f72('0xc')](),this['content']['add'](_0x224551),this[_0x1f72('0x3')]=_0x224551;const _0x57a3db=this['bindTemplate'];this[_0x1f72('0x14')]({'tag':_0x1f72('0x1'),'attributes':{'class':['ck',_0x1f72('0xb'),_0x1f72('0x8'),_0x57a3db['if'](_0x1f72('0x9'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x1f72('0x0')](){super[_0x1f72('0x0')](),this['focusTracker'][_0x1f72('0xf')](this['element']),this[_0x1f72('0xa')][_0x1f72('0x2')](this[_0x1f72('0x10')]),this[_0x1f72('0xd')]['attach'](this[_0x1f72('0x10')]);}[_0x1f72('0xe')](){this['content'][_0x1f72('0x12')](),this[_0x1f72('0xa')][_0x1f72('0xe')](),this[_0x1f72('0x15')]['destroy'](),this[_0x1f72('0xd')]['detach'](),super[_0x1f72('0xe')]();}[_0x1f72('0x16')](){this[_0x1f72('0x10')][_0x1f72('0x16')]();}[_0x1f72('0x13')](){const _0x15149a=this['element']['clientHeight'];_0x15149a&&(this[_0x1f72('0x6')]=_0x15149a);}}
23
+ const _0x3f97=['setTemplate','type','length','focusTracker','isActive','Esc','detach','ck-rounded-corners','focus','keystrokes','targetRect','set','element','render','_mutationObserver','content','ck-annotation-wrapper','ck-annotation-wrapper--active','_updateHeight','clear','mainView','createCollection','height','bindTemplate','destroy','add','fire','isDirty'];(function(_0x3da5be,_0x3f972c){const _0x5e975c=function(_0x54079b){while(--_0x54079b){_0x3da5be['push'](_0x3da5be['shift']());}};_0x5e975c(++_0x3f972c);}(_0x3f97,0x167));const _0x5e97=function(_0x3da5be,_0x3f972c){_0x3da5be=_0x3da5be-0x0;let _0x5e975c=_0x3f97[_0x3da5be];return _0x5e975c;};import{View as _0x25fc03}from'ckeditor5/src/ui.js';import{FocusTracker as _0x296fad,KeystrokeHandler as _0x59a5ba,uid as _0x9317c6}from'ckeditor5/src/utils.js';import _0x1a6a52 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x25fc03{constructor(_0x45cb00,_0xd8dc32){super(_0x45cb00),this['id']=_0x9317c6(),this[_0x5e97('0x8')]=new _0x296fad(),this['keystrokes']=new _0x59a5ba(),this[_0x5e97('0xe')][_0x5e97('0x10')](_0x5e97('0xa'),(_0x4f5345,_0x53cd9d)=>this[_0x5e97('0x3')](_0x5e97('0xa'),_0x53cd9d)),this[_0x5e97('0x10')](_0x5e97('0xf'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5e97('0x10')](_0x5e97('0x1b'),0x0),this['set'](_0x5e97('0x9'),!0x1),this[_0x5e97('0x10')](_0x5e97('0x4'),!0x1),this[_0x5e97('0x10')](_0x5e97('0x7'),0x0),this[_0x5e97('0x10')](_0x5e97('0x6'),''),this[_0x5e97('0x13')]=_0x1a6a52(()=>this[_0x5e97('0x17')]()),this[_0x5e97('0x14')]=this[_0x5e97('0x1a')](),this[_0x5e97('0x14')]['add'](_0xd8dc32),this[_0x5e97('0x19')]=_0xd8dc32;const _0x42a94d=this[_0x5e97('0x0')];this[_0x5e97('0x5')]({'tag':'div','attributes':{'class':['ck',_0x5e97('0x15'),_0x5e97('0xc'),_0x42a94d['if']('isActive',_0x5e97('0x16'))],'tabindex':-0x1},'children':this[_0x5e97('0x14')]});}[_0x5e97('0x12')](){super[_0x5e97('0x12')](),this[_0x5e97('0x8')][_0x5e97('0x2')](this[_0x5e97('0x11')]),this[_0x5e97('0xe')]['listenTo'](this[_0x5e97('0x11')]),this[_0x5e97('0x13')]['attach'](this['element']);}[_0x5e97('0x1')](){this[_0x5e97('0x14')][_0x5e97('0x18')](),this[_0x5e97('0xe')]['destroy'](),this[_0x5e97('0x8')]['destroy'](),this[_0x5e97('0x13')][_0x5e97('0xb')](),super[_0x5e97('0x1')]();}[_0x5e97('0xd')](){this[_0x5e97('0x11')][_0x5e97('0xd')]();}[_0x5e97('0x17')](){const _0x5d62c6=this[_0x5e97('0x11')]['clientHeight'];_0x5d62c6&&(this[_0x5e97('0x1b')]=_0x5d62c6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3501=['bindTemplate','height','attach','element','content','_mutationObserver','bottom','isAnimationDisabled','top','set','ck-sidebar-item--no-animation','_targetTop','render','div','clientHeight','destroy','updateHeight','setTemplate'];(function(_0x389df3,_0x350167){const _0x4072f6=function(_0x882b95){while(--_0x882b95){_0x389df3['push'](_0x389df3['shift']());}};_0x4072f6(++_0x350167);}(_0x3501,0x152));const _0x4072=function(_0x389df3,_0x350167){_0x389df3=_0x389df3-0x0;let _0x4072f6=_0x3501[_0x389df3];return _0x4072f6;};import{View as _0x3d3803}from'ckeditor5/src/ui.js';import{toUnit as _0x86fea5}from'ckeditor5/src/utils.js';import _0x450e96 from'../../utils/createmutationobserver.js';const Ht=_0x86fea5('px');export default class C extends _0x3d3803{constructor(_0x5d104e){super(_0x5d104e),this['set'](_0x4072('0xc'),0x0),this[_0x4072('0xd')](_0x4072('0x5'),0x0),this['bind'](_0x4072('0xa'))['to'](this,_0x4072('0xc'),this,_0x4072('0x5'),(_0x13873f,_0x2c2e09)=>_0x13873f+_0x2c2e09),this['set'](_0x4072('0xb'),!0x1),this['_mutationObserver']=_0x450e96(()=>this[_0x4072('0x2')]()),this[_0x4072('0xf')]=null,this[_0x4072('0x8')]=this['createCollection']();const _0x5d556c=this[_0x4072('0x4')];this[_0x4072('0x3')]({'tag':_0x4072('0x11'),'attributes':{'class':['ck-sidebar-item',_0x5d556c['to']('isAnimationDisabled',_0x11522a=>_0x11522a?_0x4072('0xe'):'')],'style':{'top':_0x5d556c['to'](_0x4072('0xc'),_0x44b705=>Ht(_0x44b705))}},'children':this[_0x4072('0x8')]});}[_0x4072('0x10')](){super[_0x4072('0x10')](),this['_mutationObserver'][_0x4072('0x6')](this[_0x4072('0x7')]);}['updateHeight'](){const _0x35db5a=this[_0x4072('0x7')][_0x4072('0x0')];_0x35db5a&&(this[_0x4072('0x5')]=_0x35db5a);}[_0x4072('0x1')](){this[_0x4072('0x8')]['clear'](),this[_0x4072('0x9')]['detach'](),super[_0x4072('0x1')]();}}
23
+ const _0x2c78=['set','height','isAnimationDisabled','_mutationObserver','render','setTemplate','ck-sidebar-item','div','clientHeight','_targetTop','ck-sidebar-item--no-animation','element','bind','clear','updateHeight','top','destroy','attach','content','bottom','createCollection','bindTemplate'];(function(_0x1114aa,_0x2c78e9){const _0x2a3943=function(_0x32f98b){while(--_0x32f98b){_0x1114aa['push'](_0x1114aa['shift']());}};_0x2a3943(++_0x2c78e9);}(_0x2c78,0x68));const _0x2a39=function(_0x1114aa,_0x2c78e9){_0x1114aa=_0x1114aa-0x0;let _0x2a3943=_0x2c78[_0x1114aa];return _0x2a3943;};import{View as _0x1d92c4}from'ckeditor5/src/ui.js';import{toUnit as _0x59ddb1}from'ckeditor5/src/utils.js';import _0x241f8d from'../../utils/createmutationobserver.js';const Ht=_0x59ddb1('px');export default class C extends _0x1d92c4{constructor(_0x180022){super(_0x180022),this['set'](_0x2a39('0x15'),0x0),this['set'](_0x2a39('0x7'),0x0),this[_0x2a39('0x12')](_0x2a39('0x3'))['to'](this,_0x2a39('0x15'),this,_0x2a39('0x7'),(_0x195293,_0x4573cc)=>_0x195293+_0x4573cc),this[_0x2a39('0x6')](_0x2a39('0x8'),!0x1),this[_0x2a39('0x9')]=_0x241f8d(()=>this[_0x2a39('0x14')]()),this[_0x2a39('0xf')]=null,this['content']=this[_0x2a39('0x4')]();const _0x7be2eb=this[_0x2a39('0x5')];this[_0x2a39('0xb')]({'tag':_0x2a39('0xd'),'attributes':{'class':[_0x2a39('0xc'),_0x7be2eb['to']('isAnimationDisabled',_0x2c012a=>_0x2c012a?_0x2a39('0x10'):'')],'style':{'top':_0x7be2eb['to'](_0x2a39('0x15'),_0x170fcf=>Ht(_0x170fcf))}},'children':this[_0x2a39('0x2')]});}[_0x2a39('0xa')](){super[_0x2a39('0xa')](),this[_0x2a39('0x9')][_0x2a39('0x1')](this[_0x2a39('0x11')]);}[_0x2a39('0x14')](){const _0x2dc1ff=this[_0x2a39('0x11')][_0x2a39('0xe')];_0x2dc1ff&&(this[_0x2a39('0x7')]=_0x2dc1ff);}[_0x2a39('0x0')](){this[_0x2a39('0x2')][_0x2a39('0x13')](),this[_0x2a39('0x9')]['detach'](),super[_0x2a39('0x0')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34f3=['div','set','bindTemplate','list','class','minHeight','createCollection','number'];(function(_0x55a763,_0x34f30e){const _0x410286=function(_0x399a0e){while(--_0x399a0e){_0x55a763['push'](_0x55a763['shift']());}};_0x410286(++_0x34f30e);}(_0x34f3,0x1cc));const _0x4102=function(_0x55a763,_0x34f30e){_0x55a763=_0x55a763-0x0;let _0x410286=_0x34f3[_0x55a763];return _0x410286;};import{View as _0x238134}from'ckeditor5/src/ui.js';import{toUnit as _0x25a429}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x25a429('px');export default class T extends _0x238134{constructor(_0x285780){super(_0x285780);const _0x366552=this[_0x4102('0x6')];this[_0x4102('0x5')](_0x4102('0x1'),0x0),this[_0x4102('0x5')](_0x4102('0x0'),''),this[_0x4102('0x7')]=this[_0x4102('0x2')](),this['setTemplate']({'tag':_0x4102('0x4'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x366552['to'](_0x4102('0x0'))],'style':{'minHeight':_0x366552['to']('minHeight',_0x18f416=>_0x4102('0x3')==typeof _0x18f416?Ht(_0x18f416+0xa):null)}},'children':this['list']});}}
23
+ const _0x3677=['minHeight','ck-reset','list','ck-sidebar','class','set','div'];(function(_0x1a4564,_0x3677f4){const _0x594ee6=function(_0x5fca83){while(--_0x5fca83){_0x1a4564['push'](_0x1a4564['shift']());}};_0x594ee6(++_0x3677f4);}(_0x3677,0xd2));const _0x594e=function(_0x1a4564,_0x3677f4){_0x1a4564=_0x1a4564-0x0;let _0x594ee6=_0x3677[_0x1a4564];return _0x594ee6;};import{View as _0x39c134}from'ckeditor5/src/ui.js';import{toUnit as _0x27f211}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x27f211('px');export default class T extends _0x39c134{constructor(_0x3707ae){super(_0x3707ae);const _0xb48145=this['bindTemplate'];this[_0x594e('0x5')](_0x594e('0x0'),0x0),this[_0x594e('0x5')](_0x594e('0x4'),''),this[_0x594e('0x2')]=this['createCollection'](),this['setTemplate']({'tag':_0x594e('0x6'),'attributes':{'class':['ck',_0x594e('0x3'),_0x594e('0x1'),_0xb48145['to'](_0x594e('0x4'))],'style':{'minHeight':_0xb48145['to'](_0x594e('0x0'),_0x509429=>'number'==typeof _0x509429?Ht(_0x509429+0xa):null)}},'children':this[_0x594e('0x2')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b55=['has','set','widesidebar-attach-already-attached','detach','addEventListener','isAttached','uiUpdate','refresh','refreshPositioning','ready','hasDomSelection','register','ck-sidebar--wide','set:container','_editorAnnotations','EditorAnnotations','blur','destroy','change:container','attach','container','_detachFromContainer','wideSidebar','cancel','_destroyEditorAnnotationsIntegration','widesidebar-detach-not-attached','_refreshPositioningDebounced','init','addAnnotation','listenTo','annotations','requires','setActiveAnnotation','high','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','context','_attachToContainer','activeAnnotation','stopListening','resize','pluginName','plugins','get','WideSidebar','_annotations','remove'];(function(_0x13ce28,_0x3b5506){const _0x15a96a=function(_0x262590){while(--_0x262590){_0x13ce28['push'](_0x13ce28['shift']());}};_0x15a96a(++_0x3b5506);}(_0x3b55,0xb7));const _0x15a9=function(_0x13ce28,_0x3b5506){_0x13ce28=_0x13ce28-0x0;let _0x15a96a=_0x3b55[_0x13ce28];return _0x15a96a;};import{ContextPlugin as _0x2ed942,Context as _0x179aab}from'ckeditor5/src/core.js';import _0x1efdac from'./annotationsuis.js';import _0x288b69 from'./sidebar.js';import{CKEditorError as _0x22082c,Collection as _0x4d5d84}from'ckeditor5/src/utils.js';import{debounce as _0x268472}from'lodash-es';import _0x2faf5e from'./editorannotations.js';export default class n extends _0x2ed942{static get[_0x15a9('0x24')](){return[_0x288b69,_0x1efdac];}static get[_0x15a9('0x2e')](){return _0x15a9('0x2');}constructor(_0x16048e){super(_0x16048e),this[_0x15a9('0xa')]=!0x1,this[_0x15a9('0x6')]('activeAnnotation',null),this[_0x15a9('0x23')]=null,this[_0x15a9('0x13')]=new _0x4d5d84(),this['_refreshPositioningDebounced']=_0x268472(()=>{this[_0x15a9('0x23')][_0x15a9('0xd')]();},0xfa,{'leading':!0x1});}[_0x15a9('0x20')](){const _0x40194e=this[_0x15a9('0x29')]['plugins']['get'](_0x1efdac),_0x39a238=this[_0x15a9('0x29')]['plugins'][_0x15a9('0x1')](_0x288b69);_0x40194e[_0x15a9('0x10')](_0x15a9('0x1b'),this),_0x39a238[_0x15a9('0x19')]&&_0x40194e['switchTo'](_0x15a9('0x1b'));}[_0x15a9('0x25')](_0x561b87){if(_0x561b87===this[_0x15a9('0x2b')])return;const _0x516b10=this[_0x15a9('0x29')]['plugins'][_0x15a9('0x1')](_0x288b69);_0x516b10['_activeAnnotation']=_0x561b87;const _0x2d596c=this[_0x15a9('0x2b')];this[_0x15a9('0x2b')]=_0x561b87,_0x516b10[_0x15a9('0xc')]({'blurredAnnotation':_0x2d596c,'activatedAnnotation':this[_0x15a9('0x2b')]});}[_0x15a9('0x18')](_0x111a5a){this['annotations']=_0x111a5a;const _0x535a6a=this[_0x15a9('0x29')][_0x15a9('0x0')][_0x15a9('0x1')](_0x288b69);if(_0x535a6a[_0x15a9('0x3')]=_0x111a5a,this['isAttached'])throw new _0x22082c(_0x15a9('0x7'),this);this['isAttached']=!0x0,this[_0x15a9('0x22')](_0x535a6a,_0x15a9('0x12'),()=>{this['detach'](),this[_0x15a9('0x22')](_0x535a6a,_0x15a9('0x17'),_0x5036dd=>{_0x5036dd['off'](),this[_0x15a9('0x18')](_0x111a5a);});}),_0x535a6a[_0x15a9('0x2a')]({'viewClass':_0x15a9('0x11')});const _0xdb90b3=_0x5e4a2d=>{_0x5e4a2d['updateTargetRect'](),_0x535a6a[_0x15a9('0x21')](_0x5e4a2d);};for(const _0x57cfe3 of _0x111a5a)_0xdb90b3(_0x57cfe3);this[_0x15a9('0x22')](_0x111a5a,'add',(_0x139ecd,_0x316ef3)=>{_0xdb90b3(_0x316ef3);}),this[_0x15a9('0x22')](_0x111a5a,'remove',(_0x52aaa2,_0x8143d9,_0x143157)=>{_0x535a6a['rearrange']({'removedAnnotation':_0x8143d9,'previousAnnotation':_0x111a5a[_0x15a9('0x1')](_0x143157-0x1),'nextAnnotation':_0x111a5a[_0x15a9('0x1')](_0x143157+0x1)}),_0x8143d9===this[_0x15a9('0x2b')]&&this['setActiveAnnotation'](null);},{'priority':_0x15a9('0x26')}),this['listenTo'](_0x111a5a,'focus',(_0x53a52c,_0x348370)=>{this[_0x15a9('0x25')](_0x348370);}),this[_0x15a9('0x22')](_0x111a5a,_0x15a9('0x15'),()=>{this[_0x15a9('0x25')](null);});const _0x5e023f=this[_0x15a9('0x29')]instanceof _0x179aab?this[_0x15a9('0x29')]['editors']:new _0x4d5d84([this[_0x15a9('0x29')]]);for(const _0x392e22 of _0x5e023f)this[_0x15a9('0x28')](_0x392e22);this['listenTo'](_0x5e023f,'add',(_0x38dcb1,_0x2210c6)=>{this['listenTo'](_0x2210c6,_0x15a9('0xe'),()=>{this[_0x15a9('0x28')](_0x2210c6);});}),this['listenTo'](_0x5e023f,_0x15a9('0x4'),(_0x4b48f3,_0x2ef3e3)=>{_0x2ef3e3['plugins'][_0x15a9('0x5')](_0x15a9('0x14'))&&this[_0x15a9('0x1d')](_0x2ef3e3[_0x15a9('0x0')][_0x15a9('0x1')](_0x15a9('0x14')));}),window[_0x15a9('0x9')](_0x15a9('0x2d'),this[_0x15a9('0x1f')]),this[_0x15a9('0x23')][_0x15a9('0xd')]();}[_0x15a9('0x8')](){if(!this['isAttached'])throw new _0x22082c(_0x15a9('0x1e'),this);this[_0x15a9('0x25')](null);const _0x5ebd5e=this[_0x15a9('0x29')][_0x15a9('0x0')]['get'](_0x288b69);_0x5ebd5e[_0x15a9('0x1a')](this['annotations']),this[_0x15a9('0x2c')](_0x5ebd5e),this['stopListening'](this['annotations']),this['context']instanceof _0x179aab&&this[_0x15a9('0x2c')](this[_0x15a9('0x29')]['editors']);for(const _0x151d4a of Array['from'](this[_0x15a9('0x13')]))this['_destroyEditorAnnotationsIntegration'](_0x151d4a);window['removeEventListener'](_0x15a9('0x2d'),this['_refreshPositioningDebounced']),this[_0x15a9('0x1f')][_0x15a9('0x1c')](),this[_0x15a9('0x2b')]=null,this[_0x15a9('0xa')]=!0x1,this['annotations']=null;}[_0x15a9('0x16')](){this[_0x15a9('0xa')]&&this['detach']();}[_0x15a9('0x28')](_0x4496de){const _0x46fd5f=_0x4496de[_0x15a9('0x0')][_0x15a9('0x1')](_0x2faf5e);if(!_0x46fd5f)return;const _0x4efb28=()=>{const _0x29c047=_0x46fd5f[_0x15a9('0x27')]({'annotations':this[_0x15a9('0x23')],'activeAnnotation':this[_0x15a9('0x2b')]});this[_0x15a9('0x25')](_0x29c047[0x0]||null);};this[_0x15a9('0x22')](_0x46fd5f,_0x15a9('0xc'),_0x4efb28),this[_0x15a9('0x22')](_0x46fd5f,'blur',(_0x34498a,{isAnnotationTracked:_0x3a0afe})=>{this[_0x15a9('0x2b')]&&_0x3a0afe(this[_0x15a9('0x2b')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x46fd5f,_0x15a9('0xb'),()=>{this[_0x15a9('0x1f')]();}),this[_0x15a9('0x22')](this['annotations'],_0x15a9('0x15'),_0x766a18=>{_0x46fd5f[_0x15a9('0xf')]()&&(_0x4efb28(),_0x766a18['stop']());},{'priority':_0x15a9('0x26')}),this[_0x15a9('0x13')]['add'](_0x46fd5f);}['_destroyEditorAnnotationsIntegration'](_0x3f17c4){this[_0x15a9('0x2c')](_0x3f17c4),this[_0x15a9('0x13')][_0x15a9('0x4')](_0x3f17c4);}}
23
+ const _0x2fea=['_annotations','pluginName','container','remove','hasDomSelection','_integrateWithEditorAnnotations','widesidebar-detach-not-attached','wideSidebar','detach','listenTo','activeAnnotation','_destroyEditorAnnotationsIntegration','stopListening','refresh','_detachFromContainer','getOrderedSelectedAnnotations','requires','_activeAnnotation','widesidebar-attach-already-attached','_refreshPositioningDebounced','add','EditorAnnotations','rearrange','isAttached','destroy','stop','blur','addAnnotation','ready','switchTo','addEventListener','uiUpdate','high','get','attach','focus','updateTargetRect','resize','annotations','refreshPositioning','has','setActiveAnnotation','plugins','editors','_editorAnnotations','ck-sidebar--wide','register','context'];(function(_0x347132,_0x2fea73){const _0xa2bd16=function(_0x4af704){while(--_0x4af704){_0x347132['push'](_0x347132['shift']());}};_0xa2bd16(++_0x2fea73);}(_0x2fea,0x140));const _0xa2bd=function(_0x347132,_0x2fea73){_0x347132=_0x347132-0x0;let _0xa2bd16=_0x2fea[_0x347132];return _0xa2bd16;};import{ContextPlugin as _0x1b00b3,Context as _0x42c722}from'ckeditor5/src/core.js';import _0x938931 from'./annotationsuis.js';import _0x5a9ba6 from'./sidebar.js';import{CKEditorError as _0x45ccca,Collection as _0x32772f}from'ckeditor5/src/utils.js';import{debounce as _0x267528}from'lodash-es';import _0x378d82 from'./editorannotations.js';export default class n extends _0x1b00b3{static get[_0xa2bd('0x20')](){return[_0x5a9ba6,_0x938931];}static get[_0xa2bd('0x11')](){return'WideSidebar';}constructor(_0x4737e9){super(_0x4737e9),this['isAttached']=!0x1,this['set'](_0xa2bd('0x1a'),null),this[_0xa2bd('0x6')]=null,this[_0xa2bd('0xc')]=new _0x32772f(),this['_refreshPositioningDebounced']=_0x267528(()=>{this[_0xa2bd('0x6')][_0xa2bd('0x7')]();},0xfa,{'leading':!0x1});}['init'](){const _0x1703f2=this[_0xa2bd('0xf')][_0xa2bd('0xa')][_0xa2bd('0x1')](_0x938931),_0x7fb3a1=this[_0xa2bd('0xf')][_0xa2bd('0xa')][_0xa2bd('0x1')](_0x5a9ba6);_0x1703f2[_0xa2bd('0xe')](_0xa2bd('0x17'),this),_0x7fb3a1[_0xa2bd('0x12')]&&_0x1703f2[_0xa2bd('0x2d')](_0xa2bd('0x17'));}[_0xa2bd('0x9')](_0xef8b63){if(_0xef8b63===this[_0xa2bd('0x1a')])return;const _0x133b97=this[_0xa2bd('0xf')]['plugins'][_0xa2bd('0x1')](_0x5a9ba6);_0x133b97[_0xa2bd('0x21')]=_0xef8b63;const _0x1f1aa6=this[_0xa2bd('0x1a')];this[_0xa2bd('0x1a')]=_0xef8b63,_0x133b97[_0xa2bd('0x1d')]({'blurredAnnotation':_0x1f1aa6,'activatedAnnotation':this[_0xa2bd('0x1a')]});}['attach'](_0x518ee7){this[_0xa2bd('0x6')]=_0x518ee7;const _0x37a6ef=this['context'][_0xa2bd('0xa')]['get'](_0x5a9ba6);if(_0x37a6ef[_0xa2bd('0x10')]=_0x518ee7,this['isAttached'])throw new _0x45ccca(_0xa2bd('0x22'),this);this[_0xa2bd('0x27')]=!0x0,this[_0xa2bd('0x19')](_0x37a6ef,'set:container',()=>{this[_0xa2bd('0x18')](),this['listenTo'](_0x37a6ef,'change:container',_0x2cdfc8=>{_0x2cdfc8['off'](),this[_0xa2bd('0x2')](_0x518ee7);});}),_0x37a6ef['_attachToContainer']({'viewClass':_0xa2bd('0xd')});const _0x450f0e=_0x55655f=>{_0x55655f[_0xa2bd('0x4')](),_0x37a6ef[_0xa2bd('0x2b')](_0x55655f);};for(const _0x5975b8 of _0x518ee7)_0x450f0e(_0x5975b8);this[_0xa2bd('0x19')](_0x518ee7,_0xa2bd('0x24'),(_0x56b6c9,_0x48dec5)=>{_0x450f0e(_0x48dec5);}),this[_0xa2bd('0x19')](_0x518ee7,_0xa2bd('0x13'),(_0x493c54,_0x3d6fb7,_0x3d471d)=>{_0x37a6ef[_0xa2bd('0x26')]({'removedAnnotation':_0x3d6fb7,'previousAnnotation':_0x518ee7[_0xa2bd('0x1')](_0x3d471d-0x1),'nextAnnotation':_0x518ee7['get'](_0x3d471d+0x1)}),_0x3d6fb7===this[_0xa2bd('0x1a')]&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0xa2bd('0x19')](_0x518ee7,_0xa2bd('0x3'),(_0x435cee,_0x3a7601)=>{this[_0xa2bd('0x9')](_0x3a7601);}),this[_0xa2bd('0x19')](_0x518ee7,_0xa2bd('0x2a'),()=>{this[_0xa2bd('0x9')](null);});const _0x14fee8=this[_0xa2bd('0xf')]instanceof _0x42c722?this[_0xa2bd('0xf')][_0xa2bd('0xb')]:new _0x32772f([this[_0xa2bd('0xf')]]);for(const _0x23b0ee of _0x14fee8)this[_0xa2bd('0x15')](_0x23b0ee);this[_0xa2bd('0x19')](_0x14fee8,'add',(_0x3a7b02,_0x332749)=>{this[_0xa2bd('0x19')](_0x332749,_0xa2bd('0x2c'),()=>{this['_integrateWithEditorAnnotations'](_0x332749);});}),this[_0xa2bd('0x19')](_0x14fee8,_0xa2bd('0x13'),(_0x2e763e,_0x1562bb)=>{_0x1562bb[_0xa2bd('0xa')][_0xa2bd('0x8')](_0xa2bd('0x25'))&&this[_0xa2bd('0x1b')](_0x1562bb['plugins'][_0xa2bd('0x1')](_0xa2bd('0x25')));}),window[_0xa2bd('0x2e')](_0xa2bd('0x5'),this['_refreshPositioningDebounced']),this[_0xa2bd('0x6')][_0xa2bd('0x7')]();}[_0xa2bd('0x18')](){if(!this[_0xa2bd('0x27')])throw new _0x45ccca(_0xa2bd('0x16'),this);this[_0xa2bd('0x9')](null);const _0x5298f7=this[_0xa2bd('0xf')][_0xa2bd('0xa')][_0xa2bd('0x1')](_0x5a9ba6);_0x5298f7[_0xa2bd('0x1e')](this['annotations']),this[_0xa2bd('0x1c')](_0x5298f7),this[_0xa2bd('0x1c')](this[_0xa2bd('0x6')]),this[_0xa2bd('0xf')]instanceof _0x42c722&&this[_0xa2bd('0x1c')](this[_0xa2bd('0xf')][_0xa2bd('0xb')]);for(const _0x34a036 of Array['from'](this['_editorAnnotations']))this[_0xa2bd('0x1b')](_0x34a036);window['removeEventListener'](_0xa2bd('0x5'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this[_0xa2bd('0x27')]=!0x1,this[_0xa2bd('0x6')]=null;}[_0xa2bd('0x28')](){this['isAttached']&&this[_0xa2bd('0x18')]();}[_0xa2bd('0x15')](_0x2efa1b){const _0x255718=_0x2efa1b['plugins'][_0xa2bd('0x1')](_0x378d82);if(!_0x255718)return;const _0xb7810f=()=>{const _0x3f60b0=_0x255718[_0xa2bd('0x1f')]({'annotations':this[_0xa2bd('0x6')],'activeAnnotation':this[_0xa2bd('0x1a')]});this[_0xa2bd('0x9')](_0x3f60b0[0x0]||null);};this[_0xa2bd('0x19')](_0x255718,'refresh',_0xb7810f),this[_0xa2bd('0x19')](_0x255718,_0xa2bd('0x2a'),(_0x569632,{isAnnotationTracked:_0x37d2b2})=>{this[_0xa2bd('0x1a')]&&_0x37d2b2(this[_0xa2bd('0x1a')])&&this[_0xa2bd('0x9')](null);}),this[_0xa2bd('0x19')](_0x255718,_0xa2bd('0x2f'),()=>{this[_0xa2bd('0x23')]();}),this['listenTo'](this['annotations'],'blur',_0xe31ea9=>{_0x255718[_0xa2bd('0x14')]()&&(_0xb7810f(),_0xe31ea9[_0xa2bd('0x29')]());},{'priority':_0xa2bd('0x0')}),this[_0xa2bd('0xc')]['add'](_0x255718);}[_0xa2bd('0x1b')](_0x2b571d){this['stopListening'](_0x2b571d),this[_0xa2bd('0xc')][_0xa2bd('0x13')](_0x2b571d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x324c=['execute','model','start','change','_hasContent','_trimToContent','editor','isEnabled','_itemIsContent','schema','getRanges','substr','comment:','refresh','backward','getLastMatchingPosition','element','selection','document','getItems'];(function(_0x12da97,_0x324ceb){const _0x4e8f4b=function(_0x1d1cae){while(--_0x1d1cae){_0x12da97['push'](_0x12da97['shift']());}};_0x4e8f4b(++_0x324ceb);}(_0x324c,0xb3));const _0x4e8f=function(_0x12da97,_0x324ceb){_0x12da97=_0x12da97-0x0;let _0x4e8f4b=_0x324c[_0x12da97];return _0x4e8f4b;};import{Command as _0x250d31}from'ckeditor5/src/core.js';import{uid as _0x3afe98}from'ckeditor5/src/utils.js';export default class G extends _0x250d31{[_0x4e8f('0xe')](){const _0x36a236=this['editor'][_0x4e8f('0x2')][_0x4e8f('0x13')][_0x4e8f('0x12')];for(const _0x34fd19 of _0x36a236[_0x4e8f('0xb')]())if(this[_0x4e8f('0x5')](_0x34fd19))return void(this[_0x4e8f('0x8')]=!0x0);this['isEnabled']=!0x1;}[_0x4e8f('0x1')]({threadId:_0x1f62fb=_0x3afe98()}={}){const _0x5349af=this[_0x4e8f('0x7')]['model'],_0x500608=[];for(const _0x231f5d of _0x5349af[_0x4e8f('0x13')][_0x4e8f('0x12')]['getRanges']())this['_hasContent'](_0x231f5d)&&_0x500608['push'](this[_0x4e8f('0x6')](_0x231f5d));_0x5349af[_0x4e8f('0x4')](_0x4f598e=>{for(const _0x4e2c77 of _0x500608){const _0x127d0a=_0x3afe98()[_0x4e8f('0xc')](0x1,0x5),_0x55a2bd=_0x4e8f('0xd')+_0x1f62fb+':'+_0x127d0a;_0x4f598e['addMarker'](_0x55a2bd,{'range':_0x4e2c77,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4e8f('0x5')](_0x5231de){for(const _0xa0b992 of _0x5231de[_0x4e8f('0x0')]())if(this[_0x4e8f('0x9')](_0xa0b992))return!0x0;return!0x1;}[_0x4e8f('0x9')](_0x133b04){return _0x133b04['is']('$textProxy')||this[_0x4e8f('0x7')][_0x4e8f('0x2')][_0x4e8f('0xa')]['isObject'](_0x133b04)&&!_0x133b04['is'](_0x4e8f('0x11'),'tableCell');}['_trimToContent'](_0x551676){const _0x2ea60b=_0x3ac352=>!this[_0x4e8f('0x9')](_0x3ac352['item']),_0x2053b6=_0x551676[_0x4e8f('0x3')][_0x4e8f('0x10')](_0x2ea60b),_0x49dc1c=_0x551676['end'][_0x4e8f('0x10')](_0x2ea60b,{'direction':_0x4e8f('0xf')});return this[_0x4e8f('0x7')][_0x4e8f('0x2')]['createRange'](_0x2053b6,_0x49dc1c);}}
23
+ const _0x59c1=['substr','model','start','selection','addMarker','change','backward','end','editor','isEnabled','schema','isObject','comment:','push','_hasContent','_itemIsContent','getItems','item','getLastMatchingPosition','tableCell','element','_trimToContent','execute','document','createRange'];(function(_0x40b76d,_0x59c16b){const _0x3dbc7d=function(_0x3ecb76){while(--_0x3ecb76){_0x40b76d['push'](_0x40b76d['shift']());}};_0x3dbc7d(++_0x59c16b);}(_0x59c1,0x74));const _0x3dbc=function(_0x40b76d,_0x59c16b){_0x40b76d=_0x40b76d-0x0;let _0x3dbc7d=_0x59c1[_0x40b76d];return _0x3dbc7d;};import{Command as _0x3a177e}from'ckeditor5/src/core.js';import{uid as _0x450321}from'ckeditor5/src/utils.js';export default class G extends _0x3a177e{['refresh'](){const _0x594518=this[_0x3dbc('0x11')][_0x3dbc('0xa')][_0x3dbc('0x7')][_0x3dbc('0xc')];for(const _0x30858d of _0x594518['getRanges']())if(this[_0x3dbc('0x17')](_0x30858d))return void(this[_0x3dbc('0x12')]=!0x0);this['isEnabled']=!0x1;}[_0x3dbc('0x6')]({threadId:_0x454899=_0x450321()}={}){const _0x584995=this['editor'][_0x3dbc('0xa')],_0xd39866=[];for(const _0x122f56 of _0x584995['document']['selection']['getRanges']())this['_hasContent'](_0x122f56)&&_0xd39866[_0x3dbc('0x16')](this[_0x3dbc('0x5')](_0x122f56));_0x584995[_0x3dbc('0xe')](_0x1c2671=>{for(const _0x1048e4 of _0xd39866){const _0x7b3546=_0x450321()[_0x3dbc('0x9')](0x1,0x5),_0x30d126=_0x3dbc('0x15')+_0x454899+':'+_0x7b3546;_0x1c2671[_0x3dbc('0xd')](_0x30d126,{'range':_0x1048e4,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3dbc('0x17')](_0x44313a){for(const _0x4bd30d of _0x44313a[_0x3dbc('0x0')]())if(this['_itemIsContent'](_0x4bd30d))return!0x0;return!0x1;}[_0x3dbc('0x18')](_0x517026){return _0x517026['is']('$textProxy')||this[_0x3dbc('0x11')]['model'][_0x3dbc('0x13')][_0x3dbc('0x14')](_0x517026)&&!_0x517026['is'](_0x3dbc('0x4'),_0x3dbc('0x3'));}[_0x3dbc('0x5')](_0x4f41e5){const _0x4fd8d4=_0x3d0de7=>!this['_itemIsContent'](_0x3d0de7[_0x3dbc('0x1')]),_0x2aaa18=_0x4f41e5[_0x3dbc('0xb')][_0x3dbc('0x2')](_0x4fd8d4),_0x3cafac=_0x4f41e5[_0x3dbc('0x10')][_0x3dbc('0x2')](_0x4fd8d4,{'direction':_0x3dbc('0xf')});return this[_0x3dbc('0x11')][_0x3dbc('0xa')][_0x3dbc('0x8')](_0x2aaa18,_0x3cafac);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d4f=['context','CommentsArchive','length','isActive','requires','plugins','removeCommentThread','archivedThreads','getCommentThread','activate','_calculatePosition','stopListening','has','highest','init','archivedAt','focus','addCommentThread','findIndex','listenTo','get'];(function(_0x5059f0,_0x4d4fe4){const _0x56d7d2=function(_0x59b32e){while(--_0x59b32e){_0x5059f0['push'](_0x5059f0['shift']());}};_0x56d7d2(++_0x4d4fe4);}(_0x4d4f,0x1b5));const _0x56d7=function(_0x5059f0,_0x4d4fe4){_0x5059f0=_0x5059f0-0x0;let _0x56d7d2=_0x4d4f[_0x5059f0];return _0x56d7d2;};import{ContextPlugin as _0x153963}from'ckeditor5/src/core.js';import{Collection as _0x1c0af2}from'ckeditor5/src/utils.js';import _0x1b1488 from'./commentsrepository.js';import _0x521430 from'../annotations/annotations.js';export default class p extends _0x153963{static get['pluginName'](){return _0x56d7('0x5');}static get[_0x56d7('0x8')](){return[_0x1b1488,_0x521430];}constructor(_0x17bf2e){super(_0x17bf2e),this[_0x56d7('0xb')]=new _0x1c0af2();}[_0x56d7('0x12')](){const _0x4e30a2=this[_0x56d7('0x4')],_0x4aa794=_0x4e30a2[_0x56d7('0x9')][_0x56d7('0x3')](_0x1b1488),_0x47d13d=_0x4e30a2[_0x56d7('0x9')][_0x56d7('0x3')](_0x521430);this[_0x56d7('0x2')](_0x4aa794,_0x56d7('0x0'),(_0x20b70f,{threadId:_0x10cd39})=>{const _0x45d6e1=_0x4aa794[_0x56d7('0xc')](_0x10cd39);_0x45d6e1[_0x56d7('0x13')]&&this[_0x56d7('0xb')]['add'](_0x45d6e1,this['_calculatePosition'](_0x45d6e1[_0x56d7('0x13')])),this[_0x56d7('0x2')](_0x45d6e1,'change:archivedAt',(_0x46a65b,_0x4ec1c2,_0x19b314)=>{_0x19b314?this['archivedThreads'][_0x56d7('0x10')](_0x45d6e1)||this[_0x56d7('0xb')]['add'](_0x45d6e1,this[_0x56d7('0xe')](_0x45d6e1['archivedAt'])):this['archivedThreads'][_0x56d7('0x10')](_0x45d6e1)&&this['archivedThreads']['remove'](_0x45d6e1);});}),this[_0x56d7('0x2')](_0x4aa794,_0x56d7('0xa'),(_0x47e968,{threadId:_0x1cc970})=>{const _0x3dd798=_0x4aa794['getCommentThread'](_0x1cc970);this[_0x56d7('0xf')](_0x3dd798),this[_0x56d7('0xb')][_0x56d7('0x10')](_0x3dd798)&&this[_0x56d7('0xb')]['remove'](_0x3dd798);},{'priority':_0x56d7('0x11')}),this[_0x56d7('0x2')](_0x47d13d['collection'],_0x56d7('0x14'),(_0x5300d6,_0xac4390)=>{_0xac4390[_0x56d7('0x7')]=!0x0,_0x47d13d[_0x56d7('0xd')](_0xac4390);});}['_calculatePosition'](_0x156ea0){const _0x49ad34=[...this[_0x56d7('0xb')]][_0x56d7('0x1')](_0x377765=>_0x377765['archivedAt']<_0x156ea0);return _0x49ad34>-0x1?_0x49ad34:this[_0x56d7('0xb')][_0x56d7('0x6')];}}
23
+ const _0x3b59=['findIndex','has','stopListening','remove','listenTo','pluginName','isActive','focus','addCommentThread','archivedAt','highest','plugins','init','archivedThreads','requires','context','change:archivedAt','_calculatePosition','add','length','get','getCommentThread','removeCommentThread'];(function(_0x9ebe51,_0x3b59aa){const _0x46e8aa=function(_0x174a6e){while(--_0x174a6e){_0x9ebe51['push'](_0x9ebe51['shift']());}};_0x46e8aa(++_0x3b59aa);}(_0x3b59,0x8d));const _0x46e8=function(_0x9ebe51,_0x3b59aa){_0x9ebe51=_0x9ebe51-0x0;let _0x46e8aa=_0x3b59[_0x9ebe51];return _0x46e8aa;};import{ContextPlugin as _0x409828}from'ckeditor5/src/core.js';import{Collection as _0x12bfdf}from'ckeditor5/src/utils.js';import _0xef1863 from'./commentsrepository.js';import _0x53c3a0 from'../annotations/annotations.js';export default class p extends _0x409828{static get[_0x46e8('0x2')](){return'CommentsArchive';}static get[_0x46e8('0xb')](){return[_0xef1863,_0x53c3a0];}constructor(_0x3f2f7b){super(_0x3f2f7b),this['archivedThreads']=new _0x12bfdf();}[_0x46e8('0x9')](){const _0x3c6e4e=this[_0x46e8('0xc')],_0x145e4=_0x3c6e4e[_0x46e8('0x8')][_0x46e8('0x11')](_0xef1863),_0x20155f=_0x3c6e4e[_0x46e8('0x8')][_0x46e8('0x11')](_0x53c3a0);this['listenTo'](_0x145e4,_0x46e8('0x5'),(_0x19ca60,{threadId:_0x1ac8d7})=>{const _0xca2617=_0x145e4[_0x46e8('0x12')](_0x1ac8d7);_0xca2617[_0x46e8('0x6')]&&this['archivedThreads'][_0x46e8('0xf')](_0xca2617,this[_0x46e8('0xe')](_0xca2617[_0x46e8('0x6')])),this['listenTo'](_0xca2617,_0x46e8('0xd'),(_0x4d53f2,_0x58fcb4,_0x7ee1dd)=>{_0x7ee1dd?this[_0x46e8('0xa')][_0x46e8('0x15')](_0xca2617)||this['archivedThreads']['add'](_0xca2617,this[_0x46e8('0xe')](_0xca2617[_0x46e8('0x6')])):this[_0x46e8('0xa')][_0x46e8('0x15')](_0xca2617)&&this[_0x46e8('0xa')][_0x46e8('0x0')](_0xca2617);});}),this[_0x46e8('0x1')](_0x145e4,_0x46e8('0x13'),(_0x1552d1,{threadId:_0x376da9})=>{const _0x4a244b=_0x145e4[_0x46e8('0x12')](_0x376da9);this[_0x46e8('0x16')](_0x4a244b),this[_0x46e8('0xa')]['has'](_0x4a244b)&&this[_0x46e8('0xa')]['remove'](_0x4a244b);},{'priority':_0x46e8('0x7')}),this[_0x46e8('0x1')](_0x20155f['collection'],_0x46e8('0x4'),(_0x111d43,_0x15ca7b)=>{_0x15ca7b[_0x46e8('0x3')]=!0x0,_0x20155f['activate'](_0x15ca7b);});}[_0x46e8('0xe')](_0x308450){const _0xffb473=[...this[_0x46e8('0xa')]][_0x46e8('0x14')](_0x546be7=>_0x546be7[_0x46e8('0x6')]<_0x308450);return _0xffb473>-0x1?_0xffb473:this[_0x46e8('0xa')][_0x46e8('0x10')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3158=['archivedAt','COMMENTS_ARCHIVE','position','focusableElements','get','plugins','innerView','_calculatePosition','classList','isVisible','indexOf','panelView','init','view','locale','contains','listenTo','mainView','config','splice','archivedThreads','CommentsRepository','ck-body','remove','children','annotationViews','CommentsArchiveUI','focusTracker','extendTemplate','commentsArchiveView','ck-comments-archive-dropdown','set','_handleAnnotationFocusableElements','commentsArchive','buttonView','findIndex','add','getByInnerView','_pendingThreads','filter','_threadToController','Annotations','collaboration.channelId','_visibleAnnotations','editor','_createArchiveUIDropdown','channelId','change:isOpen','collection','requires'];(function(_0x165192,_0x315847){const _0x350a75=function(_0x5bad9a){while(--_0x5bad9a){_0x165192['push'](_0x165192['shift']());}};_0x350a75(++_0x315847);}(_0x3158,0xc1));const _0x350a=function(_0x165192,_0x315847){_0x165192=_0x165192-0x0;let _0x350a75=_0x3158[_0x165192];return _0x350a75;};import'../../theme/commentsarchive.css';import{Plugin as _0x39623b}from'ckeditor5/src/core.js';import{createDropdown as _0x58197e,ViewCollection as _0x32774a}from'ckeditor5/src/ui.js';import _0x30021b from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2f2aa8}from'../utils/common-translations.js';import _0x5341fb from'./ui/view/commentsarchiveview.js';import _0x1f19b3 from'./commentsarchive.js';export default class a extends _0x39623b{static get['pluginName'](){return _0x350a('0x21');}static get[_0x350a('0x6')](){return[_0x1f19b3];}constructor(_0x12f7ec){super(_0x12f7ec),this['annotationViews']=new _0x32774a(),this[_0x350a('0x2d')]=[];}[_0x350a('0x13')](){this[_0x350a('0x1')]['ui']['componentFactory'][_0x350a('0x2b')](_0x350a('0x28'),()=>this[_0x350a('0x2')]());const _0x1e725a=this[_0x350a('0x1')][_0x350a('0xc')][_0x350a('0xb')](_0x1f19b3),_0x44c834=this[_0x350a('0x1')][_0x350a('0xc')][_0x350a('0xb')](_0x350a('0x30')),_0x3e2c0e=this[_0x350a('0x1')][_0x350a('0xc')][_0x350a('0xb')](_0x350a('0x1c'));this[_0x350a('0x17')](_0x1e725a[_0x350a('0x1b')],_0x350a('0x2b'),(_0x5c5f8f,_0x54d2db)=>{const _0x12600a=this[_0x350a('0x1')][_0x350a('0x19')][_0x350a('0xb')]('collaboration.channelId');if(!_0x12600a||_0x54d2db[_0x350a('0x3')]===_0x12600a){const _0x4ef54e=this['_calculatePosition'](_0x54d2db[_0x350a('0x7')]),_0x37381f=_0x3e2c0e[_0x350a('0x2f')][_0x350a('0xb')](_0x54d2db);if(!_0x37381f)return void this['_pendingThreads']['push']({'thread':_0x54d2db,'position':_0x4ef54e});const _0x376cf9=_0x44c834[_0x350a('0x2c')](_0x37381f[_0x350a('0x14')]);_0x376cf9[_0x350a('0x10')]&&_0x44c834[_0x350a('0x0')][_0x350a('0x1e')](_0x376cf9),this[_0x350a('0x20')][_0x350a('0x2b')](_0x376cf9[_0x350a('0x14')],_0x4ef54e);}}),this[_0x350a('0x17')](_0x44c834[_0x350a('0x5')],_0x350a('0x2b'),(_0x47a0ec,_0x309373)=>{const _0x2b92b2=this[_0x350a('0x2d')]['find'](({thread:_0x28e42f})=>{const _0x550353=_0x3e2c0e['_threadToController'][_0x350a('0xb')](_0x28e42f);return _0x550353&&_0x309373[_0x350a('0xd')]===_0x550353[_0x350a('0x14')];});_0x2b92b2&&(this[_0x350a('0x20')][_0x350a('0x2b')](_0x309373[_0x350a('0x14')],_0x2b92b2[_0x350a('0x9')]),this[_0x350a('0x2d')][_0x350a('0x1a')](this['_pendingThreads'][_0x350a('0x11')](_0x2b92b2),0x1));}),this[_0x350a('0x17')](_0x1e725a[_0x350a('0x1b')],_0x350a('0x1e'),(_0x5edcea,_0x38d3bb)=>{const _0x1672e5=this['editor'][_0x350a('0x19')]['get'](_0x350a('0x31'));if(!_0x1672e5||_0x38d3bb[_0x350a('0x3')]===_0x1672e5){const _0x4fafd4=_0x3e2c0e['_threadToController'][_0x350a('0xb')](_0x38d3bb),_0x47528a=_0x44c834[_0x350a('0x2c')](_0x4fafd4['view']);this[_0x350a('0x20')][_0x350a('0x1e')](_0x47528a[_0x350a('0x14')]),this['stopListening'](_0x47528a[_0x350a('0xa')]);}});}[_0x350a('0x27')](_0x1848f3,_0x423666){for(const _0x25a7ef of _0x423666[_0x350a('0xa')])_0x25a7ef[_0x350a('0xf')]['contains'](_0x350a('0x1d'))&&_0x1848f3['focusTracker'][_0x350a('0x2b')](_0x25a7ef);this['listenTo'](_0x423666[_0x350a('0xa')],_0x350a('0x2b'),(_0x317438,_0x1f754f)=>{_0x1f754f['classList'][_0x350a('0x16')](_0x350a('0x1d'))&&_0x1848f3['focusTracker'][_0x350a('0x2b')](_0x1f754f);}),this['listenTo'](_0x423666['focusableElements'],_0x350a('0x1e'),(_0xc52a8b,_0x34d2f3)=>{_0x34d2f3[_0x350a('0xf')][_0x350a('0x16')](_0x350a('0x1d'))&&_0x1848f3[_0x350a('0x22')]['remove'](_0x34d2f3);});}[_0x350a('0xe')](_0x3bc941){const _0xeed16e=this[_0x350a('0x1')][_0x350a('0x19')][_0x350a('0xb')](_0x350a('0x31')),_0x16692c=[...this[_0x350a('0x1')][_0x350a('0xc')]['get'](_0x1f19b3)[_0x350a('0x1b')]][_0x350a('0x2e')](_0x46d0f6=>_0x46d0f6[_0x350a('0x3')]===_0xeed16e)[_0x350a('0x2a')](_0x3ab7f9=>_0x3ab7f9['archivedAt']<_0x3bc941);return _0x16692c>-0x1?_0x16692c-0x1:this[_0x350a('0x20')]['length'];}[_0x350a('0x2')](){const _0x8b16af=this[_0x350a('0x1')],_0x510afa=this['editor'][_0x350a('0xc')]['get']('Annotations'),_0x422903=_0x58197e(_0x8b16af['locale']);_0x422903[_0x350a('0x29')][_0x350a('0x26')]({'icon':_0x30021b,'label':_0x2f2aa8(_0x8b16af[_0x350a('0x15')],_0x350a('0x8')),'tooltip':!0x0}),_0x422903[_0x350a('0x12')][_0x350a('0x23')]({'attributes':{'class':_0x350a('0x25')}}),_0x422903['on'](_0x350a('0x4'),(_0x35fd50,_0x52c6bb,_0x91802b)=>{this['commentsArchiveView']||(this[_0x350a('0x24')]=new _0x5341fb(_0x8b16af[_0x350a('0x15')],this[_0x350a('0x20')])),_0x91802b?_0x422903[_0x350a('0x12')][_0x350a('0x1f')][_0x350a('0x2b')](this[_0x350a('0x24')]):_0x422903[_0x350a('0x12')][_0x350a('0x1f')]['remove'](this[_0x350a('0x24')]);});for(const _0x10b506 of this[_0x350a('0x20')]){const _0xdd6c59=_0x510afa[_0x350a('0x2c')](_0x10b506[_0x350a('0x18')]);this['_handleAnnotationFocusableElements'](_0x422903,_0xdd6c59);}return _0x422903[_0x350a('0x17')](this[_0x350a('0x20')],'add',(_0x533406,_0x38b351)=>{const _0x5d2ce5=_0x510afa[_0x350a('0x2c')](_0x38b351[_0x350a('0x18')]);this[_0x350a('0x27')](_0x422903,_0x5d2ce5);}),_0x422903[_0x350a('0x17')](this[_0x350a('0x20')],'remove',(_0x91d778,_0x2a97f5)=>{const _0x1dd5b7=_0x510afa['getByInnerView'](_0x2a97f5[_0x350a('0x18')]);for(const _0x370cd2 of _0x1dd5b7[_0x350a('0xa')])_0x370cd2[_0x350a('0xf')][_0x350a('0x16')](_0x350a('0x1d'))&&_0x422903[_0x350a('0x22')][_0x350a('0x1e')](_0x370cd2);}),_0x422903;}}
23
+ const _0x34e8=['change:isOpen','_calculatePosition','buttonView','config','innerView','view','componentFactory','init','archivedThreads','ck-comments-archive-dropdown','stopListening','indexOf','listenTo','collection','_threadToController','mainView','get','add','remove','_handleAnnotationFocusableElements','CommentsArchiveUI','locale','COMMENTS_ARCHIVE','pluginName','set','commentsArchiveView','filter','Annotations','children','_createArchiveUIDropdown','focusableElements','find','annotationViews','CommentsRepository','plugins','findIndex','editor','getByInnerView','panelView','position','length','push','commentsArchive','splice','ck-body','archivedAt','classList','extendTemplate','_pendingThreads','collaboration.channelId','contains','focusTracker','channelId'];(function(_0x189572,_0x34e889){const _0x44f754=function(_0x2aa4c0){while(--_0x2aa4c0){_0x189572['push'](_0x189572['shift']());}};_0x44f754(++_0x34e889);}(_0x34e8,0xcb));const _0x44f7=function(_0x189572,_0x34e889){_0x189572=_0x189572-0x0;let _0x44f754=_0x34e8[_0x189572];return _0x44f754;};import'../../theme/commentsarchive.css';import{Plugin as _0x2094e1}from'ckeditor5/src/core.js';import{createDropdown as _0xf72b08,ViewCollection as _0x3d2d60}from'ckeditor5/src/ui.js';import _0x30f8f0 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5d833}from'../utils/common-translations.js';import _0x36fe5e from'./ui/view/commentsarchiveview.js';import _0x92e28f from'./commentsarchive.js';export default class a extends _0x2094e1{static get[_0x44f7('0x20')](){return _0x44f7('0x1d');}static get['requires'](){return[_0x92e28f];}constructor(_0x151140){super(_0x151140),this[_0x44f7('0x29')]=new _0x3d2d60(),this[_0x44f7('0x4')]=[];}[_0x44f7('0x10')](){this['editor']['ui'][_0x44f7('0xf')][_0x44f7('0x1a')](_0x44f7('0x33'),()=>this[_0x44f7('0x26')]());const _0x20afd2=this[_0x44f7('0x2d')][_0x44f7('0x2b')]['get'](_0x92e28f),_0x41ab95=this[_0x44f7('0x2d')][_0x44f7('0x2b')][_0x44f7('0x19')]('Annotations'),_0x16c540=this[_0x44f7('0x2d')][_0x44f7('0x2b')][_0x44f7('0x19')](_0x44f7('0x2a'));this[_0x44f7('0x15')](_0x20afd2[_0x44f7('0x11')],_0x44f7('0x1a'),(_0x51e158,_0xf804d7)=>{const _0x51c2d3=this[_0x44f7('0x2d')][_0x44f7('0xc')][_0x44f7('0x19')]('collaboration.channelId');if(!_0x51c2d3||_0xf804d7['channelId']===_0x51c2d3){const _0x4fafbb=this['_calculatePosition'](_0xf804d7[_0x44f7('0x1')]),_0x50e541=_0x16c540[_0x44f7('0x17')][_0x44f7('0x19')](_0xf804d7);if(!_0x50e541)return void this[_0x44f7('0x4')][_0x44f7('0x32')]({'thread':_0xf804d7,'position':_0x4fafbb});const _0x370dc9=_0x41ab95[_0x44f7('0x2e')](_0x50e541[_0x44f7('0xe')]);_0x370dc9['isVisible']&&_0x41ab95['_visibleAnnotations'][_0x44f7('0x1b')](_0x370dc9),this[_0x44f7('0x29')][_0x44f7('0x1a')](_0x370dc9[_0x44f7('0xe')],_0x4fafbb);}}),this[_0x44f7('0x15')](_0x41ab95[_0x44f7('0x16')],_0x44f7('0x1a'),(_0x1c516a,_0x3ac4ba)=>{const _0x3eb7f9=this[_0x44f7('0x4')][_0x44f7('0x28')](({thread:_0x55f202})=>{const _0x5b8fbf=_0x16c540[_0x44f7('0x17')]['get'](_0x55f202);return _0x5b8fbf&&_0x3ac4ba[_0x44f7('0xd')]===_0x5b8fbf[_0x44f7('0xe')];});_0x3eb7f9&&(this['annotationViews'][_0x44f7('0x1a')](_0x3ac4ba['view'],_0x3eb7f9[_0x44f7('0x30')]),this['_pendingThreads'][_0x44f7('0x34')](this[_0x44f7('0x4')][_0x44f7('0x14')](_0x3eb7f9),0x1));}),this[_0x44f7('0x15')](_0x20afd2[_0x44f7('0x11')],_0x44f7('0x1b'),(_0x12b527,_0x433370)=>{const _0x9a2b3f=this[_0x44f7('0x2d')][_0x44f7('0xc')][_0x44f7('0x19')]('collaboration.channelId');if(!_0x9a2b3f||_0x433370['channelId']===_0x9a2b3f){const _0x59e6e4=_0x16c540[_0x44f7('0x17')][_0x44f7('0x19')](_0x433370),_0x546153=_0x41ab95['getByInnerView'](_0x59e6e4[_0x44f7('0xe')]);this[_0x44f7('0x29')][_0x44f7('0x1b')](_0x546153[_0x44f7('0xe')]),this[_0x44f7('0x13')](_0x546153[_0x44f7('0x27')]);}});}[_0x44f7('0x1c')](_0x54ec74,_0x263c8f){for(const _0xb34cc5 of _0x263c8f[_0x44f7('0x27')])_0xb34cc5[_0x44f7('0x2')][_0x44f7('0x6')](_0x44f7('0x0'))&&_0x54ec74[_0x44f7('0x7')][_0x44f7('0x1a')](_0xb34cc5);this['listenTo'](_0x263c8f[_0x44f7('0x27')],_0x44f7('0x1a'),(_0x4b2500,_0x1c9792)=>{_0x1c9792[_0x44f7('0x2')][_0x44f7('0x6')](_0x44f7('0x0'))&&_0x54ec74[_0x44f7('0x7')][_0x44f7('0x1a')](_0x1c9792);}),this[_0x44f7('0x15')](_0x263c8f[_0x44f7('0x27')],_0x44f7('0x1b'),(_0x72c1d1,_0x2d107b)=>{_0x2d107b[_0x44f7('0x2')][_0x44f7('0x6')](_0x44f7('0x0'))&&_0x54ec74['focusTracker'][_0x44f7('0x1b')](_0x2d107b);});}[_0x44f7('0xa')](_0x5e10de){const _0x4d1502=this[_0x44f7('0x2d')][_0x44f7('0xc')]['get'](_0x44f7('0x5')),_0x1f80b4=[...this[_0x44f7('0x2d')]['plugins']['get'](_0x92e28f)[_0x44f7('0x11')]][_0x44f7('0x23')](_0x3f8970=>_0x3f8970[_0x44f7('0x8')]===_0x4d1502)[_0x44f7('0x2c')](_0x18061b=>_0x18061b[_0x44f7('0x1')]<_0x5e10de);return _0x1f80b4>-0x1?_0x1f80b4-0x1:this['annotationViews'][_0x44f7('0x31')];}[_0x44f7('0x26')](){const _0x121bdd=this[_0x44f7('0x2d')],_0x42c780=this[_0x44f7('0x2d')][_0x44f7('0x2b')][_0x44f7('0x19')](_0x44f7('0x24')),_0x2de563=_0xf72b08(_0x121bdd['locale']);_0x2de563[_0x44f7('0xb')][_0x44f7('0x21')]({'icon':_0x30f8f0,'label':_0x5d833(_0x121bdd[_0x44f7('0x1e')],_0x44f7('0x1f')),'tooltip':!0x0}),_0x2de563[_0x44f7('0x2f')][_0x44f7('0x3')]({'attributes':{'class':_0x44f7('0x12')}}),_0x2de563['on'](_0x44f7('0x9'),(_0x2b298e,_0x10a44d,_0x1ecec9)=>{this[_0x44f7('0x22')]||(this['commentsArchiveView']=new _0x36fe5e(_0x121bdd[_0x44f7('0x1e')],this[_0x44f7('0x29')])),_0x1ecec9?_0x2de563[_0x44f7('0x2f')][_0x44f7('0x25')][_0x44f7('0x1a')](this[_0x44f7('0x22')]):_0x2de563[_0x44f7('0x2f')][_0x44f7('0x25')]['remove'](this[_0x44f7('0x22')]);});for(const _0x7c0a99 of this[_0x44f7('0x29')]){const _0x52014c=_0x42c780[_0x44f7('0x2e')](_0x7c0a99[_0x44f7('0x18')]);this['_handleAnnotationFocusableElements'](_0x2de563,_0x52014c);}return _0x2de563['listenTo'](this[_0x44f7('0x29')],_0x44f7('0x1a'),(_0x5e414f,_0x269c55)=>{const _0x5bcd00=_0x42c780['getByInnerView'](_0x269c55[_0x44f7('0x18')]);this['_handleAnnotationFocusableElements'](_0x2de563,_0x5bcd00);}),_0x2de563[_0x44f7('0x15')](this[_0x44f7('0x29')],_0x44f7('0x1b'),(_0xecd9a5,_0x33e3cb)=>{const _0x1d3f81=_0x42c780[_0x44f7('0x2e')](_0x33e3cb[_0x44f7('0x18')]);for(const _0x3e4262 of _0x1d3f81['focusableElements'])_0x3e4262[_0x44f7('0x2')][_0x44f7('0x6')](_0x44f7('0x0'))&&_0x2de563[_0x44f7('0x7')]['remove'](_0x3e4262);}),_0x2de563;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x564f=['attachTo','_threadToController','destroy','addMarker:','upcast','end','_initAriaMarkerChangeAnnouncements','plugins','unlinkedAt','setContext','_handleMarkerAddAndRemove','markerToHighlight','text','root','comment','view','hasContent','listenTo','render','hasDomSelection','registerAnnotation','isResolved','getCommentThread','isThreadsLoadingPaused','_attachArchivedThread','then','editingDowncast','rootName','substring','editing','dataDowncast','registerPostFixer','ck-comment-marker','addCommentThread','scrollToThreadMarker','join','newRange','addComment','low','reconvertMarker','state','switchReadOnly','ariaLiveAnnouncer','createRange','differ','_getTextContext','markerName','once','isObject','fetchCommentThread','data','isEqual','markers','editor','model','config','startsWith','collaboration.channelId','start','commands','comment:','dataToMarker','locale','_handleThreadMarker','enqueueChange','getByInnerView','removeMarker:','markerToData','set','pluginName','$marker','add','_reconvertMarkers','managedUsingOperations','_initializeMarkerConverters','isLocal','_attachMarkerToThread','init','$textProxy','openNewCommentThread','for','change','elementToElement','get','getWalker','getChangedMarkers','updateMarker','createElement','push','schema','removeCommentThread','delete','item','context','hasCommentThread','consume','group','consumable','announce','name','isAttached','removeMarker','length','requires','_getTargetForId','hasMarkerForId','size','_hasTargetInContent','_detachCommentThread','setUnlinkedAt','document','$graveyard','change:isThreadsLoadingPaused','clear','activeMarker','ignoreResolvedComments','focus','ready','destroyed','conversion','isCollapsed','getAllMarkersForId'];(function(_0x481fb7,_0x564fad){const _0x2fa4e8=function(_0x241078){while(--_0x241078){_0x481fb7['push'](_0x481fb7['shift']());}};_0x2fa4e8(++_0x564fad);}(_0x564f,0x193));const _0x2fa4=function(_0x481fb7,_0x564fad){_0x481fb7=_0x481fb7-0x0;let _0x2fa4e8=_0x564f[_0x481fb7];return _0x2fa4e8;};import{Plugin as _0x546b8d}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1ee620}from'ckeditor5/src/utils.js';import _0x1a746e from'./commentsrepository.js';import _0x58c901 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x30e7bc,getAllMarkersDomElementsSorted as _0x5db9aa}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x404d71 from'../annotations/editorannotations.js';import _0x1b743f from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x46ce01 from'./integrations/importword.js';import _0x55752e from'../annotations/annotations.js';import{getTranslation as _0x2a377d}from'../utils/common-translations.js';export default class r extends _0x546b8d{static get[_0x2fa4('0x42')](){return[_0x1a746e,_0x404d71,_0x1b743f,_0x46ce01];}static get[_0x2fa4('0x20')](){return'CommentsEditing';}constructor(_0x5a15e7){super(_0x5a15e7),this[_0x2fa4('0x1f')](_0x2fa4('0x6c'),!0x0),_0x5a15e7[_0x2fa4('0xd')][_0x2fa4('0xa')](_0x2fa4('0x50'),()=>this[_0x2fa4('0x6c')]=!0x1),this[_0x2fa4('0x1f')](_0x2fa4('0x4d'),null),this['on']('change:activeMarker',(_0x5dfccd,_0x176d6e,_0x2d0f12,_0x282389)=>{const _0x58c14e=_0x2d0f12?ot(_0x2d0f12)['id']:null;if(_0x5a15e7[_0x2fa4('0x11')]['change'](()=>{if(_0x58c14e){const _0x138a66=this[_0x2fa4('0x54')](_0x58c14e);for(const _0x3aeaf6 of _0x138a66)_0x5a15e7[_0x2fa4('0x72')][_0x2fa4('0x2')](_0x3aeaf6);}if(_0x282389){const {id:_0x64bd7d}=ot(_0x282389),_0xd328b1=this[_0x2fa4('0x54')](_0x64bd7d);for(const _0x35a644 of _0xd328b1)_0x5a15e7[_0x2fa4('0x72')][_0x2fa4('0x2')](_0x35a644);}}),_0x58c14e){const _0x1e0990=_0x5a15e7[_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e)['getCommentThread'](_0x58c14e);_0x1e0990&&_0x1e0990[_0x2fa4('0x6a')]&&this[_0x2fa4('0x77')](_0x58c14e);}}),this[_0x2fa4('0x5b')]();}[_0x2fa4('0x28')](){const _0x1cd1e8=this[_0x2fa4('0x10')],_0x552722=_0x1cd1e8[_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e),_0x265f72=_0x1cd1e8[_0x2fa4('0x12')][_0x2fa4('0x2e')](_0x2fa4('0x14'));_0x1cd1e8[_0x2fa4('0x16')][_0x2fa4('0x22')](_0x2fa4('0x76'),new _0x58c901(_0x1cd1e8)),this[_0x2fa4('0x66')](_0x1cd1e8,'change:isReadOnly',(_0x24e320,_0x341b06,_0x572594)=>{_0x552722[_0x2fa4('0x4')](_0x572594,_0x1cd1e8[_0x2fa4('0x12')][_0x2fa4('0x2e')]('collaboration.channelId'));}),this[_0x2fa4('0x66')](_0x552722,tt(_0x2fa4('0x76'),_0x265f72),(_0x41ca1b,{threadId:_0x588efc})=>{const _0x592afd=this[_0x2fa4('0x10')][_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e)[_0x2fa4('0x6b')](_0x588efc);_0x592afd&&_0x592afd[_0x2fa4('0x5d')]&&this[_0x2fa4('0x6d')](_0x588efc);}),this[_0x2fa4('0x66')](_0x552722,tt(_0x2fa4('0x35'),_0x265f72),(_0x2d34e9,{threadId:_0x4ff394})=>{_0x1cd1e8[_0x2fa4('0x11')][_0x2fa4('0x1b')]({'isUndoable':!0x1},_0x3a4dd9=>{const _0x3bf860=this[_0x2fa4('0x54')](_0x4ff394);for(const _0x2b7e7c of _0x3bf860)_0x3a4dd9['removeMarker'](_0x2b7e7c);});}),this[_0x2fa4('0x66')](_0x552722,tt('resolveCommentThread',_0x265f72),(_0x17ede8,{threadId:_0x2686c6})=>{(this[_0x2fa4('0x23')](_0x2686c6),this[_0x2fa4('0x10')][_0x2fa4('0x72')][_0x2fa4('0x64')][_0x2fa4('0x68')])&&(this[_0x2fa4('0x10')][_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e)[_0x2fa4('0x6b')](_0x2686c6)[_0x2fa4('0x5d')]||this[_0x2fa4('0x10')]['editing']['view'][_0x2fa4('0x4f')]());},{'priority':_0x2fa4('0x1')}),this[_0x2fa4('0x66')](_0x552722,tt('reopenCommentThread',_0x265f72),(_0xa17706,{threadId:_0x193cfb})=>{this[_0x2fa4('0x23')](_0x193cfb);},{'priority':_0x2fa4('0x1')}),this[_0x2fa4('0x66')](_0x552722,tt(_0x2fa4('0x0'),_0x265f72),(_0x8a9f80,{threadId:_0x3739d0,isFromAdapter:_0x3db800})=>{const _0x33378b=this[_0x2fa4('0x54')](_0x3739d0);if(_0x3db800||0x0==_0x33378b['length']||!_0x552722[_0x2fa4('0x39')](_0x3739d0))return;0x1===_0x552722[_0x2fa4('0x6b')](_0x3739d0)[_0x2fa4('0x41')]&&_0x1cd1e8[_0x2fa4('0x11')][_0x2fa4('0x1b')]({'isUndoable':!0x1},_0x496a73=>{for(const _0x8d57fe of _0x33378b)_0x496a73['updateMarker'](_0x8d57fe,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x2fa4('0x25')](),this[_0x2fa4('0x5f')]();}[_0x2fa4('0x57')](){const _0x3baac5=this[_0x2fa4('0x10')][_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e),_0x50931a=this[_0x2fa4('0x10')][_0x2fa4('0x12')][_0x2fa4('0x2e')](_0x2fa4('0x14'));for(const _0x126246 of _0x3baac5['getCommentThreads']({'channelId':_0x50931a}))_0x3baac5[_0x2fa4('0x47')](_0x126246['id']),_0x3baac5['_threads']['delete'](_0x126246['id']);super[_0x2fa4('0x57')]();}[_0x2fa4('0x44')](_0x1af8fe){return this[_0x2fa4('0x54')](_0x1af8fe)[_0x2fa4('0x41')]>0x0;}[_0x2fa4('0x54')](_0x460e84){const _0x58ef75=[];for(const _0x2ff38f of this['editor']['model']['markers'])_0x2ff38f[_0x2fa4('0x3e')][_0x2fa4('0x13')](_0x2fa4('0x17')+_0x460e84)&&_0x58ef75[_0x2fa4('0x33')](_0x2ff38f);return _0x58ef75;}[_0x2fa4('0x77')](_0x24f597){const _0x56d9e3=this[_0x2fa4('0x43')](_0x24f597);_0x56d9e3&&setTimeout(()=>{this[_0x2fa4('0x4d')]&&ot(this[_0x2fa4('0x4d')])['id']===_0x24f597&&_0x1ee620({'target':_0x56d9e3[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2fa4('0x23')](_0xc2b21d){this[_0x2fa4('0x10')][_0x2fa4('0x11')][_0x2fa4('0x2c')](()=>{for(const _0x557c11 of this[_0x2fa4('0x54')](_0xc2b21d))this[_0x2fa4('0x10')][_0x2fa4('0x72')][_0x2fa4('0x2')](_0x557c11);});}[_0x2fa4('0x6d')](_0x1a8a61){const _0x225348=this[_0x2fa4('0x10')][_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e),_0x516065=this[_0x2fa4('0x10')][_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x404d71),_0x18219f=_0x225348['getCommentThread'](_0x1a8a61);if(!_0x18219f[_0x2fa4('0x3f')]){const _0x43aac0=_0x18219f[_0x2fa4('0x55')](()=>this[_0x2fa4('0x43')](_0x18219f['id']));_0x516065[_0x2fa4('0x69')](_0x43aac0),_0x18219f[_0x2fa4('0x46')]=!0x1;}}[_0x2fa4('0x25')](){const _0x42ca42=this[_0x2fa4('0x10')];_0x42ca42['conversion'][_0x2fa4('0x2b')](_0x2fa4('0x6f'))[_0x2fa4('0x60')]({'model':_0x2fa4('0x63'),'view':(_0x41738d,_0x2a839f)=>{const {id:_0x14dc8d}=ot(_0x41738d[_0x2fa4('0x9')]),_0x19dd0c=_0x42ca42[_0x2fa4('0x5c')]['get'](_0x1a746e)['getCommentThread'](_0x14dc8d),_0x7f0c8b=this['activeMarker']&&ot(this[_0x2fa4('0x4d')])['id']===_0x14dc8d;if(_0x19dd0c&&_0x19dd0c[_0x2fa4('0x6a')]&&!_0x7f0c8b&&_0x41738d[_0x2fa4('0x37')])return _0x2a839f[_0x2fa4('0x3c')][_0x2fa4('0x3a')](_0x41738d[_0x2fa4('0x37')],_0x2fa4('0x58')+_0x41738d[_0x2fa4('0x9')]),_0x2a839f[_0x2fa4('0x3c')][_0x2fa4('0x3a')](_0x41738d[_0x2fa4('0x37')],_0x2fa4('0x1d')+_0x41738d[_0x2fa4('0x9')]),null;const _0xde2e82=[_0x2fa4('0x75')];return _0x7f0c8b&&_0xde2e82[_0x2fa4('0x33')]('ck-comment-marker--active'),{'classes':_0xde2e82,'attributes':{'data-comment':_0x14dc8d}};}}),_0x42ca42[_0x2fa4('0x52')]['for'](_0x2fa4('0x73'))[_0x2fa4('0x1e')]({'model':_0x2fa4('0x63'),'view':(_0x8369a2,{options:_0x1bef7a})=>{const _0x21f9c7=_0x42ca42[_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e),_0x3c1ba9=_0x42ca42[_0x2fa4('0x11')][_0x2fa4('0xf')][_0x2fa4('0x2e')](_0x8369a2),{id:_0x4bcb18,part:_0x253ab5}=ot(_0x8369a2);if(_0x3c1ba9&&!_0x3c1ba9['affectsData'])return null;if(_0x1bef7a[_0x2fa4('0x4e')]){const _0x58537e=_0x21f9c7[_0x2fa4('0x6b')](_0x4bcb18);if(_0x58537e&&_0x58537e[_0x2fa4('0x6a')])return null;}return{'group':_0x2fa4('0x63'),'name':_0x253ab5?_0x4bcb18+':'+_0x253ab5:_0x4bcb18};}}),_0x42ca42['conversion'][_0x2fa4('0x2b')](_0x2fa4('0x59'))[_0x2fa4('0x2d')]({'view':{'name':_0x2fa4('0x63'),'attributes':{'id':/^\w/}},'model':(_0x2ff6db,{writer:_0x1875e9})=>_0x1875e9[_0x2fa4('0x32')](_0x2fa4('0x21'),{'data-name':_0x2fa4('0x17')+_0x2ff6db['getAttribute']('id')})}),_0x42ca42[_0x2fa4('0x52')][_0x2fa4('0x2b')](_0x2fa4('0x59'))[_0x2fa4('0x18')]({'view':_0x2fa4('0x63')});}[_0x2fa4('0x5f')](){const _0x4da3ea=this[_0x2fa4('0x10')],_0x37a780=_0x4da3ea[_0x2fa4('0x5c')]['get'](_0x1a746e),_0x1f1442=new Set(),_0x2f8a4a=new Set();_0x4da3ea[_0x2fa4('0x11')][_0x2fa4('0x49')][_0x2fa4('0x74')](_0x1eaf3c=>{let _0x175977=!0x1;for(const {name:_0x4ac352,data:_0x5b0fcd}of _0x4da3ea[_0x2fa4('0x11')][_0x2fa4('0x49')][_0x2fa4('0x7')][_0x2fa4('0x30')]()){const {group:_0x4a914e,id:_0x100547}=ot(_0x4ac352);let _0x373c17=_0x5b0fcd[_0x2fa4('0x79')];if(_0x2fa4('0x63')!==_0x4a914e||!_0x373c17)continue;const _0x227ada=_0x2fa4('0x4a')===_0x373c17[_0x2fa4('0x62')][_0x2fa4('0x70')];_0x227ada||(_0x373c17=et(_0x373c17,_0x4da3ea['model']),!_0x373c17||_0x373c17[_0x2fa4('0x53')]||!_0x5b0fcd['newRange']||_0x373c17[_0x2fa4('0xe')](_0x5b0fcd['newRange']))?_0x4da3ea['model'][_0x2fa4('0x65')](_0x373c17)&&!_0x227ada?this[_0x2fa4('0x6c')]?_0x1f1442[_0x2fa4('0x22')](_0x4ac352):this['_handleThreadMarker'](_0x4ac352,_0x100547):(_0x2f8a4a['add'](_0x4ac352),_0x1f1442['delete'](_0x4ac352),_0x1eaf3c[_0x2fa4('0x40')](_0x4ac352),_0x175977=!0x0):(_0x1eaf3c[_0x2fa4('0x31')](_0x4ac352,{'range':_0x373c17}),_0x175977=!0x0);}return _0x175977;}),this['on'](_0x2fa4('0x4b'),(_0x3b4f66,_0xf67727,_0x4575ee)=>{if(!_0x4575ee&&_0x1f1442[_0x2fa4('0x45')])for(const _0x3cd002 of _0x1f1442){const {id:_0x399e94}=ot(_0x3cd002);_0x1f1442[_0x2fa4('0x36')](_0x3cd002),_0x4da3ea[_0x2fa4('0x11')]['markers'][_0x2fa4('0x2e')](_0x3cd002)&&this[_0x2fa4('0x1a')](_0x3cd002,_0x399e94);}}),this[_0x2fa4('0x66')](_0x4da3ea[_0x2fa4('0x11')][_0x2fa4('0x49')],_0x2fa4('0x2c'),(_0x452367,_0x501d08)=>{for(const {name:_0x296617,data:{newRange:_0x9b910f}}of _0x4da3ea[_0x2fa4('0x11')][_0x2fa4('0x49')][_0x2fa4('0x7')]['getChangedMarkers']()){const {group:_0x31ed96,id:_0x200ded}=ot(_0x296617);if(_0x2fa4('0x63')!==_0x31ed96)continue;const _0x29f1b6=_0x37a780[_0x2fa4('0x6b')](_0x200ded),_0x2f94a7=this['hasMarkerForId'](_0x200ded);_0x29f1b6&&(_0x29f1b6[_0x2fa4('0x46')]||_0x4da3ea[_0x2fa4('0x72')][_0x2fa4('0x64')][_0x2fa4('0xa')](_0x2fa4('0x67'),()=>{const _0x2cead0=_0x4da3ea[_0x2fa4('0x5c')]['get'](_0x55752e),_0x464453=_0x37a780[_0x2fa4('0x56')]['get'](_0x29f1b6)[_0x2fa4('0x64')];_0x2cead0['getByInnerView'](_0x464453)['refreshVisibility']();},{'priority':_0x2fa4('0x1')}),_0x29f1b6[_0x2fa4('0x46')]=_0x2f94a7||!!_0x9b910f),_0x9b910f||(_0x2f8a4a[_0x2fa4('0x22')](_0x296617),_0x1f1442[_0x2fa4('0x36')](_0x296617));}if(_0x501d08[_0x2fa4('0x26')])for(const _0x461036 of _0x2f8a4a){const {id:_0xf3707}=ot(_0x461036),_0x5cba2b=_0x37a780[_0x2fa4('0x6b')](_0xf3707),_0x249dc6=this[_0x2fa4('0x44')](_0xf3707);_0x1f1442[_0x2fa4('0x36')](_0x461036),!_0x5cba2b||_0x249dc6||_0x5cba2b[_0x2fa4('0x5d')]||_0x5cba2b[_0x2fa4('0x48')](new Date());}_0x2f8a4a[_0x2fa4('0x4c')]();});}['_getTargetForId'](_0x425214){const _0x6b2355=this[_0x2fa4('0x10')],_0x29cdcd=this[_0x2fa4('0x54')](_0x425214);return _0x5db9aa(_0x6b2355['editing'],_0x29cdcd);}[_0x2fa4('0x8')](_0x5aa465){const _0x4ef0cb=this[_0x2fa4('0x54')](_0x5aa465);let _0x1266b1='',_0x30d267=!0x1;for(const _0x5119ba of _0x4ef0cb){const _0x1607c2=_0x5119ba['getRange']();for(const _0x3d9c4b of Array['from'](_0x1607c2['getItems']()))_0x3d9c4b['is'](_0x2fa4('0x29'))?(_0x1266b1&&_0x30d267&&(_0x1266b1+='\x20',_0x30d267=!0x1),_0x1266b1+=_0x3d9c4b[_0x2fa4('0xd')]):_0x30d267=!0x0;_0x30d267=!0x0;}return _0x1266b1[_0x2fa4('0x71')](0x0,0x96);}[_0x2fa4('0x27')](_0x31be30,_0x504530){const _0x129ace=this[_0x2fa4('0x10')],_0x57d6c1=_0x129ace[_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x1a746e);let _0x13e4dc=_0x57d6c1[_0x2fa4('0x6b')](_0x504530);const _0x42c734=_0x129ace[_0x2fa4('0x12')][_0x2fa4('0x2e')](_0x2fa4('0x14')),_0x306987=_0x129ace[_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x404d71);if(_0x13e4dc&&(_0x13e4dc[_0x2fa4('0x5d')]&&_0x13e4dc['setUnlinkedAt'](null),_0x13e4dc[_0x2fa4('0x3f')]))return _0x13e4dc;return!this[_0x2fa4('0x54')](_0x504530)[0x0][_0x2fa4('0x24')]?_0x129ace[_0x2fa4('0x72')][_0x2fa4('0x64')]['once'](_0x2fa4('0x67'),()=>{if(_0x57d6c1['getCommentThread'](_0x504530))return;const _0x9047b9=_0x129ace[_0x2fa4('0x5c')][_0x2fa4('0x2e')](_0x55752e);_0x13e4dc=_0x57d6c1[_0x2fa4('0x2a')]({'channelId':_0x42c734,'threadId':_0x504530,'target':()=>this['_getTargetForId'](_0x504530),'context':{'type':_0x2fa4('0x61'),'value':this[_0x2fa4('0x8')](_0x504530)}});const _0x3a0a02=_0x57d6c1[_0x2fa4('0x56')][_0x2fa4('0x2e')](_0x13e4dc)[_0x2fa4('0x64')],_0x367673=_0x9047b9[_0x2fa4('0x1c')](_0x3a0a02);_0x367673&&_0x306987[_0x2fa4('0x69')](_0x367673);},{'priority':_0x2fa4('0x1')}):_0x57d6c1[_0x2fa4('0xc')]({'channelId':_0x42c734,'threadId':_0x504530})[_0x2fa4('0x6e')](_0x44deaf=>{if(_0x2fa4('0x51')!==_0x129ace[_0x2fa4('0x3')]){if(_0x13e4dc=_0x44deaf,_0x13e4dc&&!_0x13e4dc[_0x2fa4('0x3f')]){const _0x534d6=_0x13e4dc[_0x2fa4('0x55')](()=>this[_0x2fa4('0x43')](_0x504530));_0x306987[_0x2fa4('0x69')](_0x534d6),_0x13e4dc[_0x2fa4('0x6a')]&&this['_reconvertMarkers'](_0x504530);}else{if(!_0x13e4dc){const _0x12cc96=this[_0x2fa4('0x54')](_0x504530);_0x129ace[_0x2fa4('0x11')][_0x2fa4('0x2c')](_0x17e98e=>{for(const _0x17e27d of _0x12cc96)_0x17e98e['removeMarker'](_0x17e27d);});}}}}),_0x13e4dc;}[_0x2fa4('0x1a')](_0x23b836,_0x12c653){const _0x14c869=this['_attachMarkerToThread'](_0x23b836,_0x12c653);_0x14c869&&!_0x14c869[_0x2fa4('0x38')]&&_0x14c869[_0x2fa4('0x5e')]({'type':'text','value':this[_0x2fa4('0x8')](_0x12c653)});}[_0x2fa4('0x5b')](){const _0x3eda7f=this[_0x2fa4('0x10')];_0x30e7bc(_0x3eda7f['model'],({left:_0x1b2dd6,entered:_0x1259ad})=>{const _0x552df6=[];for(const _0x3eb220 of _0x1b2dd6)if(rt(_0x3eb220)){_0x552df6['push'](_0x2a377d(_0x3eda7f[_0x2fa4('0x19')],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3f5164 of _0x1259ad)if(rt(_0x3f5164)){_0x552df6[_0x2fa4('0x33')](_0x2a377d(_0x3eda7f[_0x2fa4('0x19')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x552df6[_0x2fa4('0x41')]&&_0x3eda7f['ui'][_0x2fa4('0x5')][_0x2fa4('0x3d')]('comments',_0x552df6[_0x2fa4('0x78')]('\x20'));});}}function tt(_0x1f0661,_0xb23df8){return _0xb23df8?_0x1f0661+':'+_0xb23df8:_0x1f0661;}function ot(_0x214bdc){const _0x75caba=_0x214bdc['split'](':');return{'group':_0x75caba[0x0],'id':_0x75caba[0x1],'part':_0x75caba[0x2]};}function et(_0x26a6ce,_0x40d08f){const _0x428802=_0x40d08f[_0x2fa4('0x34')],_0x597aa4=_0x40d08f[_0x2fa4('0x6')](_0x26a6ce[_0x2fa4('0x15')]);for(const _0x5f2b1a of _0x26a6ce[_0x2fa4('0x2f')]()){const {type:_0x366806,item:_0x53538f,nextPosition:_0x2714ba}=_0x5f2b1a;if(_0x2fa4('0x61')===_0x366806||_0x428802[_0x2fa4('0xb')](_0x53538f)){const _0xa49a63=_0x40d08f['createPositionBefore'](_0x53538f);_0x597aa4[_0x2fa4('0x53')]&&(_0x597aa4['start']=_0xa49a63),_0x597aa4[_0x2fa4('0x5a')]=_0x2714ba;}}return _0x597aa4;}function rt(_0x2bbbcd){return _0x2fa4('0x63')===ot(_0x2bbbcd[_0x2fa4('0x3e')])[_0x2fa4('0x3b')];}
23
+ const _0x3108=['once','openNewCommentThread','consumable','plugins','group','refreshVisibility','text','_attachMarkerToThread','_getTextContext','change','ck-comment-marker--active','$marker','then','removeMarker','getItems','ignoreResolvedComments','model','rootName','add','editingDowncast','getCommentThreads','item','setContext','length','get','join','ariaLiveAnnouncer','_hasTargetInContent','hasContent','getCommentThread','consume','getByInnerView','managedUsingOperations','addCommentThread','_threads','editor','focus','hasMarkerForId','isObject','createRange','$textProxy','comment','_attachArchivedThread','_initializeMarkerConverters','locale','isAttached','change:isReadOnly','commands','end','collaboration.channelId','_handleThreadMarker','start','markerToHighlight','for','scrollToThreadMarker','LEAVE_COMMENT_ANNOUNCEMENT','reconvertMarker','size','_threadToController','listenTo','ENTER_COMMENT_ANNOUNCEMENT','push','destroy','markerToData','isEqual','data','markerName','context','_initAriaMarkerChangeAnnouncements','change:isThreadsLoadingPaused','reopenCommentThread','conversion','getWalker','$graveyard','_handleMarkerAddAndRemove','view','fetchCommentThread','config','root','startsWith','set','editing','low','isResolved','getAllMarkersForId','isThreadsLoadingPaused','clear','isCollapsed','_detachCommentThread','announce','hasDomSelection','delete','init','differ','registerAnnotation','attachTo','schema','name','document','split','setUnlinkedAt','resolveCommentThread','destroyed','render','activeMarker','change:activeMarker','enqueueChange','dataDowncast','markers','newRange','unlinkedAt','getRange','from','ready','switchReadOnly','_getTargetForId','getChangedMarkers','_reconvertMarkers','getAttribute'];(function(_0x4a57a8,_0x3108cc){const _0x6b5fd6=function(_0x27393c){while(--_0x27393c){_0x4a57a8['push'](_0x4a57a8['shift']());}};_0x6b5fd6(++_0x3108cc);}(_0x3108,0x19c));const _0x6b5f=function(_0x4a57a8,_0x3108cc){_0x4a57a8=_0x4a57a8-0x0;let _0x6b5fd6=_0x3108[_0x4a57a8];return _0x6b5fd6;};import{Plugin as _0x232538}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x327b36}from'ckeditor5/src/utils.js';import _0x4ebeae from'./commentsrepository.js';import _0x1c355f from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x58e867,getAllMarkersDomElementsSorted as _0x27f8b9}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x22a31c from'../annotations/editorannotations.js';import _0x4934e0 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x534a2f from'./integrations/importword.js';import _0x1ddad3 from'../annotations/annotations.js';import{getTranslation as _0x16743c}from'../utils/common-translations.js';export default class r extends _0x232538{static get['requires'](){return[_0x4ebeae,_0x22a31c,_0x4934e0,_0x534a2f];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x445fe4){super(_0x445fe4),this['set'](_0x6b5f('0x1e'),!0x0),_0x445fe4[_0x6b5f('0xa')]['once'](_0x6b5f('0x3a'),()=>this[_0x6b5f('0x1e')]=!0x1),this[_0x6b5f('0x19')]('activeMarker',null),this['on'](_0x6b5f('0x32'),(_0x42c240,_0x3e883b,_0xc5fd66,_0x56e11b)=>{const _0x4176ab=_0xc5fd66?ot(_0xc5fd66)['id']:null;if(_0x445fe4['model'][_0x6b5f('0x49')](()=>{if(_0x4176ab){const _0x5cd024=this[_0x6b5f('0x1d')](_0x4176ab);for(const _0x681a85 of _0x5cd024)_0x445fe4['editing'][_0x6b5f('0x1')](_0x681a85);}if(_0x56e11b){const {id:_0x3956bf}=ot(_0x56e11b),_0x3ca13a=this[_0x6b5f('0x1d')](_0x3956bf);for(const _0x225ad4 of _0x3ca13a)_0x445fe4[_0x6b5f('0x1a')][_0x6b5f('0x1')](_0x225ad4);}}),_0x4176ab){const _0x16753f=_0x445fe4[_0x6b5f('0x43')][_0x6b5f('0x58')](_0x4ebeae)[_0x6b5f('0x5d')](_0x4176ab);_0x16753f&&_0x16753f[_0x6b5f('0x1c')]&&this[_0x6b5f('0x76')](_0x4176ab);}}),this[_0x6b5f('0xd')]();}[_0x6b5f('0x25')](){const _0x2d9d64=this[_0x6b5f('0x63')],_0x4710d4=_0x2d9d64['plugins'][_0x6b5f('0x58')](_0x4ebeae),_0x4a404c=_0x2d9d64[_0x6b5f('0x16')][_0x6b5f('0x58')](_0x6b5f('0x71'));_0x2d9d64[_0x6b5f('0x6f')][_0x6b5f('0x52')](_0x6b5f('0x61'),new _0x1c355f(_0x2d9d64)),this['listenTo'](_0x2d9d64,_0x6b5f('0x6e'),(_0x4c4450,_0x59248e,_0x523a14)=>{_0x4710d4[_0x6b5f('0x3b')](_0x523a14,_0x2d9d64['config']['get'](_0x6b5f('0x71')));}),this[_0x6b5f('0x4')](_0x4710d4,tt(_0x6b5f('0x61'),_0x4a404c),(_0x37eb10,{threadId:_0x35b39f})=>{const _0x41bf53=this[_0x6b5f('0x63')]['plugins'][_0x6b5f('0x58')](_0x4ebeae)[_0x6b5f('0x5d')](_0x35b39f);_0x41bf53&&_0x41bf53[_0x6b5f('0x37')]&&this[_0x6b5f('0x6a')](_0x35b39f);}),this['listenTo'](_0x4710d4,tt('removeCommentThread',_0x4a404c),(_0x72ef1d,{threadId:_0x437c15})=>{_0x2d9d64[_0x6b5f('0x50')][_0x6b5f('0x33')]({'isUndoable':!0x1},_0x1ef905=>{const _0x315ff4=this['getAllMarkersForId'](_0x437c15);for(const _0xf9d96e of _0x315ff4)_0x1ef905[_0x6b5f('0x4d')](_0xf9d96e);});}),this[_0x6b5f('0x4')](_0x4710d4,tt(_0x6b5f('0x2e'),_0x4a404c),(_0x5720eb,{threadId:_0x514d98})=>{(this['_reconvertMarkers'](_0x514d98),this[_0x6b5f('0x63')][_0x6b5f('0x1a')][_0x6b5f('0x14')][_0x6b5f('0x23')])&&(this[_0x6b5f('0x63')][_0x6b5f('0x43')][_0x6b5f('0x58')](_0x4ebeae)[_0x6b5f('0x5d')](_0x514d98)[_0x6b5f('0x37')]||this[_0x6b5f('0x63')]['editing'][_0x6b5f('0x14')][_0x6b5f('0x64')]());},{'priority':'low'}),this[_0x6b5f('0x4')](_0x4710d4,tt(_0x6b5f('0xf'),_0x4a404c),(_0x3d08d5,{threadId:_0x5b6e5c})=>{this[_0x6b5f('0x3e')](_0x5b6e5c);},{'priority':_0x6b5f('0x1b')}),this[_0x6b5f('0x4')](_0x4710d4,tt('addComment',_0x4a404c),(_0xa1f5a2,{threadId:_0x5f11ea,isFromAdapter:_0x1eec42})=>{const _0x482bc9=this[_0x6b5f('0x1d')](_0x5f11ea);if(_0x1eec42||0x0==_0x482bc9[_0x6b5f('0x57')]||!_0x4710d4['hasCommentThread'](_0x5f11ea))return;0x1===_0x4710d4[_0x6b5f('0x5d')](_0x5f11ea)[_0x6b5f('0x57')]&&_0x2d9d64[_0x6b5f('0x50')][_0x6b5f('0x33')]({'isUndoable':!0x1},_0x47ace7=>{for(const _0x3dd724 of _0x482bc9)_0x47ace7['updateMarker'](_0x3dd724,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x6b5f('0x1b')}),this['_initializeMarkerConverters'](),this[_0x6b5f('0x13')]();}[_0x6b5f('0x7')](){const _0x37fb44=this['editor'][_0x6b5f('0x43')][_0x6b5f('0x58')](_0x4ebeae),_0x26b33b=this['editor'][_0x6b5f('0x16')][_0x6b5f('0x58')](_0x6b5f('0x71'));for(const _0x1d17c1 of _0x37fb44[_0x6b5f('0x54')]({'channelId':_0x26b33b}))_0x37fb44[_0x6b5f('0x21')](_0x1d17c1['id']),_0x37fb44[_0x6b5f('0x62')]['delete'](_0x1d17c1['id']);super[_0x6b5f('0x7')]();}[_0x6b5f('0x65')](_0xbf7e62){return this[_0x6b5f('0x1d')](_0xbf7e62)[_0x6b5f('0x57')]>0x0;}[_0x6b5f('0x1d')](_0x4f691a){const _0x118f32=[];for(const _0x512488 of this[_0x6b5f('0x63')]['model'][_0x6b5f('0x35')])_0x512488[_0x6b5f('0x2a')][_0x6b5f('0x18')]('comment:'+_0x4f691a)&&_0x118f32['push'](_0x512488);return _0x118f32;}[_0x6b5f('0x76')](_0x305b91){const _0x5a9770=this[_0x6b5f('0x3c')](_0x305b91);_0x5a9770&&setTimeout(()=>{this[_0x6b5f('0x31')]&&ot(this[_0x6b5f('0x31')])['id']===_0x305b91&&_0x327b36({'target':_0x5a9770[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x6b5f('0x3e')](_0x29269d){this[_0x6b5f('0x63')][_0x6b5f('0x50')][_0x6b5f('0x49')](()=>{for(const _0x5e5f84 of this[_0x6b5f('0x1d')](_0x29269d))this[_0x6b5f('0x63')]['editing'][_0x6b5f('0x1')](_0x5e5f84);});}[_0x6b5f('0x6a')](_0x39b2ef){const _0x2b01b5=this['editor'][_0x6b5f('0x43')][_0x6b5f('0x58')](_0x4ebeae),_0x32c306=this['editor']['plugins'][_0x6b5f('0x58')](_0x22a31c),_0x3eb886=_0x2b01b5[_0x6b5f('0x5d')](_0x39b2ef);if(!_0x3eb886[_0x6b5f('0x6d')]){const _0x5d0fef=_0x3eb886[_0x6b5f('0x28')](()=>this[_0x6b5f('0x3c')](_0x3eb886['id']));_0x32c306[_0x6b5f('0x27')](_0x5d0fef),_0x3eb886[_0x6b5f('0x5b')]=!0x1;}}[_0x6b5f('0x6b')](){const _0x3a88ea=this[_0x6b5f('0x63')];_0x3a88ea[_0x6b5f('0x10')]['for'](_0x6b5f('0x53'))[_0x6b5f('0x74')]({'model':'comment','view':(_0x3da053,_0xbc1a9b)=>{const {id:_0x10f0cf}=ot(_0x3da053[_0x6b5f('0xb')]),_0x1d1883=_0x3a88ea['plugins'][_0x6b5f('0x58')](_0x4ebeae)[_0x6b5f('0x5d')](_0x10f0cf),_0x511b9c=this[_0x6b5f('0x31')]&&ot(this[_0x6b5f('0x31')])['id']===_0x10f0cf;if(_0x1d1883&&_0x1d1883[_0x6b5f('0x1c')]&&!_0x511b9c&&_0x3da053[_0x6b5f('0x55')])return _0xbc1a9b[_0x6b5f('0x42')][_0x6b5f('0x5e')](_0x3da053[_0x6b5f('0x55')],'addMarker:'+_0x3da053[_0x6b5f('0xb')]),_0xbc1a9b[_0x6b5f('0x42')][_0x6b5f('0x5e')](_0x3da053[_0x6b5f('0x55')],'removeMarker:'+_0x3da053['markerName']),null;const _0xef93c4=['ck-comment-marker'];return _0x511b9c&&_0xef93c4['push'](_0x6b5f('0x4a')),{'classes':_0xef93c4,'attributes':{'data-comment':_0x10f0cf}};}}),_0x3a88ea[_0x6b5f('0x10')][_0x6b5f('0x75')](_0x6b5f('0x34'))[_0x6b5f('0x8')]({'model':_0x6b5f('0x69'),'view':(_0x5926e4,{options:_0x5705be})=>{const _0xbd861a=_0x3a88ea[_0x6b5f('0x43')][_0x6b5f('0x58')](_0x4ebeae),_0xce6ad1=_0x3a88ea['model'][_0x6b5f('0x35')]['get'](_0x5926e4),{id:_0x50bf66,part:_0xd5be5e}=ot(_0x5926e4);if(_0xce6ad1&&!_0xce6ad1['affectsData'])return null;if(_0x5705be[_0x6b5f('0x4f')]){const _0x3438ec=_0xbd861a[_0x6b5f('0x5d')](_0x50bf66);if(_0x3438ec&&_0x3438ec['isResolved'])return null;}return{'group':_0x6b5f('0x69'),'name':_0xd5be5e?_0x50bf66+':'+_0xd5be5e:_0x50bf66};}}),_0x3a88ea[_0x6b5f('0x10')][_0x6b5f('0x75')]('upcast')['elementToElement']({'view':{'name':_0x6b5f('0x69'),'attributes':{'id':/^\w/}},'model':(_0x3f045c,{writer:_0x3b67b5})=>_0x3b67b5['createElement'](_0x6b5f('0x4b'),{'data-name':'comment:'+_0x3f045c[_0x6b5f('0x3f')]('id')})}),_0x3a88ea['conversion'][_0x6b5f('0x75')]('upcast')['dataToMarker']({'view':_0x6b5f('0x69')});}['_handleMarkerAddAndRemove'](){const _0x3d3160=this[_0x6b5f('0x63')],_0x2a8350=_0x3d3160[_0x6b5f('0x43')][_0x6b5f('0x58')](_0x4ebeae),_0x3e656a=new Set(),_0x2a31fd=new Set();_0x3d3160['model'][_0x6b5f('0x2b')]['registerPostFixer'](_0x3d302d=>{let _0x10c39f=!0x1;for(const {name:_0x588e49,data:_0x5af049}of _0x3d3160[_0x6b5f('0x50')][_0x6b5f('0x2b')][_0x6b5f('0x26')][_0x6b5f('0x3d')]()){const {group:_0x188dfd,id:_0x46d7cc}=ot(_0x588e49);let _0x293923=_0x5af049['newRange'];if(_0x6b5f('0x69')!==_0x188dfd||!_0x293923)continue;const _0x3803e0=_0x6b5f('0x12')===_0x293923[_0x6b5f('0x17')][_0x6b5f('0x51')];_0x3803e0||(_0x293923=et(_0x293923,_0x3d3160[_0x6b5f('0x50')]),!_0x293923||_0x293923[_0x6b5f('0x20')]||!_0x5af049[_0x6b5f('0x36')]||_0x293923[_0x6b5f('0x9')](_0x5af049[_0x6b5f('0x36')]))?_0x3d3160['model'][_0x6b5f('0x5c')](_0x293923)&&!_0x3803e0?this[_0x6b5f('0x1e')]?_0x3e656a[_0x6b5f('0x52')](_0x588e49):this[_0x6b5f('0x72')](_0x588e49,_0x46d7cc):(_0x2a31fd[_0x6b5f('0x52')](_0x588e49),_0x3e656a[_0x6b5f('0x24')](_0x588e49),_0x3d302d[_0x6b5f('0x4d')](_0x588e49),_0x10c39f=!0x0):(_0x3d302d['updateMarker'](_0x588e49,{'range':_0x293923}),_0x10c39f=!0x0);}return _0x10c39f;}),this['on'](_0x6b5f('0xe'),(_0x75eb99,_0x11e43f,_0x4e8d9b)=>{if(!_0x4e8d9b&&_0x3e656a[_0x6b5f('0x2')])for(const _0x1389bc of _0x3e656a){const {id:_0xe09eb3}=ot(_0x1389bc);_0x3e656a[_0x6b5f('0x24')](_0x1389bc),_0x3d3160[_0x6b5f('0x50')][_0x6b5f('0x35')][_0x6b5f('0x58')](_0x1389bc)&&this[_0x6b5f('0x72')](_0x1389bc,_0xe09eb3);}}),this[_0x6b5f('0x4')](_0x3d3160[_0x6b5f('0x50')][_0x6b5f('0x2b')],'change',(_0x61b7df,_0x4500b4)=>{for(const {name:_0x425881,data:{newRange:_0x57d707}}of _0x3d3160[_0x6b5f('0x50')][_0x6b5f('0x2b')]['differ'][_0x6b5f('0x3d')]()){const {group:_0x2cf40d,id:_0x4e799c}=ot(_0x425881);if('comment'!==_0x2cf40d)continue;const _0x13b16f=_0x2a8350['getCommentThread'](_0x4e799c),_0x37f8b7=this[_0x6b5f('0x65')](_0x4e799c);_0x13b16f&&(_0x13b16f[_0x6b5f('0x5b')]||_0x3d3160[_0x6b5f('0x1a')][_0x6b5f('0x14')][_0x6b5f('0x40')]('render',()=>{const _0x267e02=_0x3d3160[_0x6b5f('0x43')][_0x6b5f('0x58')](_0x1ddad3),_0xe14531=_0x2a8350['_threadToController']['get'](_0x13b16f)[_0x6b5f('0x14')];_0x267e02['getByInnerView'](_0xe14531)[_0x6b5f('0x45')]();},{'priority':_0x6b5f('0x1b')}),_0x13b16f[_0x6b5f('0x5b')]=_0x37f8b7||!!_0x57d707),_0x57d707||(_0x2a31fd['add'](_0x425881),_0x3e656a['delete'](_0x425881));}if(_0x4500b4['isLocal'])for(const _0x99ffea of _0x2a31fd){const {id:_0xe2fa56}=ot(_0x99ffea),_0x5b9062=_0x2a8350[_0x6b5f('0x5d')](_0xe2fa56),_0x5c614d=this[_0x6b5f('0x65')](_0xe2fa56);_0x3e656a[_0x6b5f('0x24')](_0x99ffea),!_0x5b9062||_0x5c614d||_0x5b9062[_0x6b5f('0x37')]||_0x5b9062[_0x6b5f('0x2d')](new Date());}_0x2a31fd[_0x6b5f('0x1f')]();});}[_0x6b5f('0x3c')](_0x4dfc01){const _0x25fec6=this['editor'],_0x26101a=this[_0x6b5f('0x1d')](_0x4dfc01);return _0x27f8b9(_0x25fec6['editing'],_0x26101a);}['_getTextContext'](_0x333b93){const _0x167918=this[_0x6b5f('0x1d')](_0x333b93);let _0x39d94f='',_0x94f763=!0x1;for(const _0x5d1ccd of _0x167918){const _0x429c4b=_0x5d1ccd[_0x6b5f('0x38')]();for(const _0x446d53 of Array[_0x6b5f('0x39')](_0x429c4b[_0x6b5f('0x4e')]()))_0x446d53['is'](_0x6b5f('0x68'))?(_0x39d94f&&_0x94f763&&(_0x39d94f+='\x20',_0x94f763=!0x1),_0x39d94f+=_0x446d53[_0x6b5f('0xa')]):_0x94f763=!0x0;_0x94f763=!0x0;}return _0x39d94f['substring'](0x0,0x96);}[_0x6b5f('0x47')](_0x5e9fe4,_0x961696){const _0x34c150=this[_0x6b5f('0x63')],_0x39f94a=_0x34c150[_0x6b5f('0x43')]['get'](_0x4ebeae);let _0x495a06=_0x39f94a['getCommentThread'](_0x961696);const _0x101c8d=_0x34c150[_0x6b5f('0x16')][_0x6b5f('0x58')]('collaboration.channelId'),_0x29b6c8=_0x34c150[_0x6b5f('0x43')][_0x6b5f('0x58')](_0x22a31c);if(_0x495a06&&(_0x495a06[_0x6b5f('0x37')]&&_0x495a06[_0x6b5f('0x2d')](null),_0x495a06[_0x6b5f('0x6d')]))return _0x495a06;return!this['getAllMarkersForId'](_0x961696)[0x0][_0x6b5f('0x60')]?_0x34c150[_0x6b5f('0x1a')][_0x6b5f('0x14')][_0x6b5f('0x40')](_0x6b5f('0x30'),()=>{if(_0x39f94a[_0x6b5f('0x5d')](_0x961696))return;const _0x2c45c4=_0x34c150[_0x6b5f('0x43')]['get'](_0x1ddad3);_0x495a06=_0x39f94a[_0x6b5f('0x41')]({'channelId':_0x101c8d,'threadId':_0x961696,'target':()=>this[_0x6b5f('0x3c')](_0x961696),'context':{'type':_0x6b5f('0x46'),'value':this['_getTextContext'](_0x961696)}});const _0x37cb0f=_0x39f94a[_0x6b5f('0x3')][_0x6b5f('0x58')](_0x495a06)[_0x6b5f('0x14')],_0x2b014d=_0x2c45c4[_0x6b5f('0x5f')](_0x37cb0f);_0x2b014d&&_0x29b6c8[_0x6b5f('0x27')](_0x2b014d);},{'priority':_0x6b5f('0x1b')}):_0x39f94a[_0x6b5f('0x15')]({'channelId':_0x101c8d,'threadId':_0x961696})[_0x6b5f('0x4c')](_0x3d0ebe=>{if(_0x6b5f('0x2f')!==_0x34c150['state']){if(_0x495a06=_0x3d0ebe,_0x495a06&&!_0x495a06[_0x6b5f('0x6d')]){const _0x14ba11=_0x495a06[_0x6b5f('0x28')](()=>this['_getTargetForId'](_0x961696));_0x29b6c8[_0x6b5f('0x27')](_0x14ba11),_0x495a06[_0x6b5f('0x1c')]&&this['_reconvertMarkers'](_0x961696);}else{if(!_0x495a06){const _0x11bdae=this['getAllMarkersForId'](_0x961696);_0x34c150[_0x6b5f('0x50')][_0x6b5f('0x49')](_0x49ff85=>{for(const _0x2be496 of _0x11bdae)_0x49ff85[_0x6b5f('0x4d')](_0x2be496);});}}}}),_0x495a06;}[_0x6b5f('0x72')](_0x5f0843,_0x181a17){const _0x54f727=this['_attachMarkerToThread'](_0x5f0843,_0x181a17);_0x54f727&&!_0x54f727[_0x6b5f('0xc')]&&_0x54f727[_0x6b5f('0x56')]({'type':_0x6b5f('0x46'),'value':this[_0x6b5f('0x48')](_0x181a17)});}[_0x6b5f('0xd')](){const _0x32cd50=this[_0x6b5f('0x63')];_0x58e867(_0x32cd50[_0x6b5f('0x50')],({left:_0x2966e9,entered:_0xd9967b})=>{const _0xe11670=[];for(const _0xb0e68a of _0x2966e9)if(rt(_0xb0e68a)){_0xe11670['push'](_0x16743c(_0x32cd50[_0x6b5f('0x6c')],_0x6b5f('0x0')));break;}for(const _0x1edb93 of _0xd9967b)if(rt(_0x1edb93)){_0xe11670[_0x6b5f('0x6')](_0x16743c(_0x32cd50[_0x6b5f('0x6c')],_0x6b5f('0x5')));break;}_0xe11670[_0x6b5f('0x57')]&&_0x32cd50['ui'][_0x6b5f('0x5a')][_0x6b5f('0x22')]('comments',_0xe11670[_0x6b5f('0x59')]('\x20'));});}}function tt(_0x229adb,_0x49e84c){return _0x49e84c?_0x229adb+':'+_0x49e84c:_0x229adb;}function ot(_0x5dba05){const _0x557d47=_0x5dba05[_0x6b5f('0x2c')](':');return{'group':_0x557d47[0x0],'id':_0x557d47[0x1],'part':_0x557d47[0x2]};}function et(_0x179519,_0x3f609f){const _0x561f1c=_0x3f609f[_0x6b5f('0x29')],_0xd0622e=_0x3f609f[_0x6b5f('0x67')](_0x179519[_0x6b5f('0x73')]);for(const _0x3711d9 of _0x179519[_0x6b5f('0x11')]()){const {type:_0x3510ed,item:_0x28fe94,nextPosition:_0x129270}=_0x3711d9;if(_0x6b5f('0x46')===_0x3510ed||_0x561f1c[_0x6b5f('0x66')](_0x28fe94)){const _0x3078f3=_0x3f609f['createPositionBefore'](_0x28fe94);_0xd0622e[_0x6b5f('0x20')]&&(_0xd0622e[_0x6b5f('0x73')]=_0x3078f3),_0xd0622e[_0x6b5f('0x70')]=_0x129270;}}return _0xd0622e;}function rt(_0x1800a7){return _0x6b5f('0x69')===ot(_0x1800a7['name'])[_0x6b5f('0x44')];}