@ckeditor/ckeditor5-comments 0.0.0-nightly-20231222.0 → 0.0.0-nightly-20231223.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 _0x15f0=['ck-annotation-wrapper--active','_updateHeight','height','destroy','set','listenTo','content','createCollection','fire','targetRect','type','add','element','setTemplate','isActive','length','div','isDirty','render','ck-rounded-corners','focusTracker','clear','_mutationObserver','clientHeight','focus','keystrokes'];(function(_0x5e17cf,_0x15f0b8){const _0x59c276=function(_0x52b43c){while(--_0x52b43c){_0x5e17cf['push'](_0x5e17cf['shift']());}};_0x59c276(++_0x15f0b8);}(_0x15f0,0x1ef));const _0x59c2=function(_0x5e17cf,_0x15f0b8){_0x5e17cf=_0x5e17cf-0x0;let _0x59c276=_0x15f0[_0x5e17cf];return _0x59c276;};import{View as _0x49ae0f}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3efed1,KeystrokeHandler as _0x2ac4f5,uid as _0x19714d}from'ckeditor5/src/utils.js';import _0x21cb37 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x49ae0f{constructor(_0x37e59f,_0x24107d){super(_0x37e59f),this['id']=_0x19714d(),this[_0x59c2('0x13')]=new _0x3efed1(),this[_0x59c2('0x18')]=new _0x2ac4f5(),this[_0x59c2('0x18')]['set']('Esc',(_0x43081c,_0x50a63a)=>this[_0x59c2('0x7')]('Esc',_0x50a63a)),this[_0x59c2('0x3')](_0x59c2('0x8'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this[_0x59c2('0x3')](_0x59c2('0xd'),!0x1),this['set'](_0x59c2('0x10'),!0x1),this['set'](_0x59c2('0xe'),0x0),this[_0x59c2('0x3')](_0x59c2('0x9'),''),this[_0x59c2('0x15')]=_0x21cb37(()=>this[_0x59c2('0x0')]()),this['content']=this[_0x59c2('0x6')](),this[_0x59c2('0x5')]['add'](_0x24107d),this['mainView']=_0x24107d;const _0x63e753=this['bindTemplate'];this[_0x59c2('0xc')]({'tag':_0x59c2('0xf'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x59c2('0x12'),_0x63e753['if']('isActive',_0x59c2('0x19'))],'tabindex':-0x1},'children':this[_0x59c2('0x5')]});}[_0x59c2('0x11')](){super['render'](),this[_0x59c2('0x13')][_0x59c2('0xa')](this['element']),this[_0x59c2('0x18')][_0x59c2('0x4')](this[_0x59c2('0xb')]),this['_mutationObserver']['attach'](this[_0x59c2('0xb')]);}[_0x59c2('0x2')](){this[_0x59c2('0x5')][_0x59c2('0x14')](),this[_0x59c2('0x18')][_0x59c2('0x2')](),this[_0x59c2('0x13')]['destroy'](),this[_0x59c2('0x15')]['detach'](),super['destroy']();}[_0x59c2('0x17')](){this['element'][_0x59c2('0x17')]();}[_0x59c2('0x0')](){const _0x31da22=this[_0x59c2('0xb')][_0x59c2('0x16')];_0x31da22&&(this[_0x59c2('0x1')]=_0x31da22);}}
23
+ const _0x4b72=['element','length','ck-annotation-wrapper--active','type','isActive','setTemplate','fire','bindTemplate','add','destroy','div','content','focus','ck-rounded-corners','clear','targetRect','ck-annotation-wrapper','createCollection','listenTo','render','keystrokes','focusTracker','_mutationObserver','Esc','height','set','_updateHeight'];(function(_0x6669ce,_0x4b72a2){const _0x46a0cf=function(_0x47eb60){while(--_0x47eb60){_0x6669ce['push'](_0x6669ce['shift']());}};_0x46a0cf(++_0x4b72a2);}(_0x4b72,0x7e));const _0x46a0=function(_0x6669ce,_0x4b72a2){_0x6669ce=_0x6669ce-0x0;let _0x46a0cf=_0x4b72[_0x6669ce];return _0x46a0cf;};import{View as _0x3b617d}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2f3a4c,KeystrokeHandler as _0x890cc3,uid as _0x5ed7a1}from'ckeditor5/src/utils.js';import _0x28ad17 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x3b617d{constructor(_0x4b37dc,_0x5a07d1){super(_0x4b37dc),this['id']=_0x5ed7a1(),this[_0x46a0('0x3')]=new _0x2f3a4c(),this[_0x46a0('0x2')]=new _0x890cc3(),this[_0x46a0('0x2')][_0x46a0('0x7')](_0x46a0('0x5'),(_0x2111a0,_0x127fee)=>this[_0x46a0('0xf')](_0x46a0('0x5'),_0x127fee)),this['set'](_0x46a0('0x18'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x46a0('0x7')](_0x46a0('0x6'),0x0),this[_0x46a0('0x7')](_0x46a0('0xd'),!0x1),this[_0x46a0('0x7')]('isDirty',!0x1),this[_0x46a0('0x7')](_0x46a0('0xa'),0x0),this['set'](_0x46a0('0xc'),''),this[_0x46a0('0x4')]=_0x28ad17(()=>this[_0x46a0('0x8')]()),this['content']=this[_0x46a0('0x1a')](),this[_0x46a0('0x14')][_0x46a0('0x11')](_0x5a07d1),this['mainView']=_0x5a07d1;const _0x46b31f=this[_0x46a0('0x10')];this[_0x46a0('0xe')]({'tag':_0x46a0('0x13'),'attributes':{'class':['ck',_0x46a0('0x19'),_0x46a0('0x16'),_0x46b31f['if']('isActive',_0x46a0('0xb'))],'tabindex':-0x1},'children':this['content']});}[_0x46a0('0x1')](){super[_0x46a0('0x1')](),this['focusTracker']['add'](this[_0x46a0('0x9')]),this[_0x46a0('0x2')][_0x46a0('0x0')](this[_0x46a0('0x9')]),this[_0x46a0('0x4')]['attach'](this[_0x46a0('0x9')]);}['destroy'](){this['content'][_0x46a0('0x17')](),this[_0x46a0('0x2')][_0x46a0('0x12')](),this[_0x46a0('0x3')][_0x46a0('0x12')](),this[_0x46a0('0x4')]['detach'](),super[_0x46a0('0x12')]();}[_0x46a0('0x15')](){this[_0x46a0('0x9')][_0x46a0('0x15')]();}[_0x46a0('0x8')](){const _0x5d51ec=this[_0x46a0('0x9')]['clientHeight'];_0x5d51ec&&(this[_0x46a0('0x6')]=_0x5d51ec);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25f7=['detach','clear','destroy','content','bottom','top','updateHeight','attach','isAnimationDisabled','set','bind','height','div','createCollection','element','render','ck-sidebar-item--no-animation'];(function(_0x97ea67,_0x25f747){const _0x2f3cb8=function(_0x54c5bb){while(--_0x54c5bb){_0x97ea67['push'](_0x97ea67['shift']());}};_0x2f3cb8(++_0x25f747);}(_0x25f7,0x8b));const _0x2f3c=function(_0x97ea67,_0x25f747){_0x97ea67=_0x97ea67-0x0;let _0x2f3cb8=_0x25f7[_0x97ea67];return _0x2f3cb8;};import{View as _0x24e165}from'ckeditor5/src/ui.js';import{toUnit as _0x4bf7e0}from'ckeditor5/src/utils.js';import _0x4f9f52 from'../../utils/createmutationobserver.js';const Ht=_0x4bf7e0('px');export default class C extends _0x24e165{constructor(_0x43f111){super(_0x43f111),this[_0x2f3c('0x6')]('top',0x0),this[_0x2f3c('0x6')](_0x2f3c('0x8'),0x0),this[_0x2f3c('0x7')](_0x2f3c('0x1'))['to'](this,_0x2f3c('0x2'),this,_0x2f3c('0x8'),(_0x19289c,_0x230648)=>_0x19289c+_0x230648),this['set'](_0x2f3c('0x5'),!0x1),this['_mutationObserver']=_0x4f9f52(()=>this[_0x2f3c('0x3')]()),this['_targetTop']=null,this['content']=this[_0x2f3c('0xa')]();const _0x3ef51b=this['bindTemplate'];this['setTemplate']({'tag':_0x2f3c('0x9'),'attributes':{'class':['ck-sidebar-item',_0x3ef51b['to'](_0x2f3c('0x5'),_0x2302d2=>_0x2302d2?_0x2f3c('0xd'):'')],'style':{'top':_0x3ef51b['to'](_0x2f3c('0x2'),_0x1e9266=>Ht(_0x1e9266))}},'children':this[_0x2f3c('0x0')]});}[_0x2f3c('0xc')](){super[_0x2f3c('0xc')](),this['_mutationObserver'][_0x2f3c('0x4')](this['element']);}[_0x2f3c('0x3')](){const _0x5cc6e8=this[_0x2f3c('0xb')]['clientHeight'];_0x5cc6e8&&(this['height']=_0x5cc6e8);}['destroy'](){this[_0x2f3c('0x0')][_0x2f3c('0xf')](),this['_mutationObserver'][_0x2f3c('0xe')](),super[_0x2f3c('0x10')]();}}
23
+ const _0x5a84=['updateHeight','height','div','ck-sidebar-item','bind','top','ck-sidebar-item--no-animation','setTemplate','set','_targetTop','element','_mutationObserver','clear','destroy','content','render','detach','clientHeight'];(function(_0xe8f3fa,_0x5a8464){const _0x2a9433=function(_0x1b9f06){while(--_0x1b9f06){_0xe8f3fa['push'](_0xe8f3fa['shift']());}};_0x2a9433(++_0x5a8464);}(_0x5a84,0xa1));const _0x2a94=function(_0xe8f3fa,_0x5a8464){_0xe8f3fa=_0xe8f3fa-0x0;let _0x2a9433=_0x5a84[_0xe8f3fa];return _0x2a9433;};import{View as _0x1234b9}from'ckeditor5/src/ui.js';import{toUnit as _0x287a96}from'ckeditor5/src/utils.js';import _0x1c4594 from'../../utils/createmutationobserver.js';const Ht=_0x287a96('px');export default class C extends _0x1234b9{constructor(_0xa29995){super(_0xa29995),this[_0x2a94('0x9')](_0x2a94('0x6'),0x0),this[_0x2a94('0x9')]('height',0x0),this[_0x2a94('0x5')]('bottom')['to'](this,'top',this,_0x2a94('0x2'),(_0x6b0ecd,_0x46186d)=>_0x6b0ecd+_0x46186d),this[_0x2a94('0x9')]('isAnimationDisabled',!0x1),this[_0x2a94('0xc')]=_0x1c4594(()=>this[_0x2a94('0x1')]()),this[_0x2a94('0xa')]=null,this[_0x2a94('0xf')]=this['createCollection']();const _0x38657b=this['bindTemplate'];this[_0x2a94('0x8')]({'tag':_0x2a94('0x3'),'attributes':{'class':[_0x2a94('0x4'),_0x38657b['to']('isAnimationDisabled',_0xabd2d3=>_0xabd2d3?_0x2a94('0x7'):'')],'style':{'top':_0x38657b['to'](_0x2a94('0x6'),_0x194504=>Ht(_0x194504))}},'children':this[_0x2a94('0xf')]});}[_0x2a94('0x10')](){super[_0x2a94('0x10')](),this[_0x2a94('0xc')]['attach'](this[_0x2a94('0xb')]);}['updateHeight'](){const _0x40a2f7=this['element'][_0x2a94('0x0')];_0x40a2f7&&(this[_0x2a94('0x2')]=_0x40a2f7);}[_0x2a94('0xe')](){this[_0x2a94('0xf')][_0x2a94('0xd')](),this['_mutationObserver'][_0x2a94('0x11')](),super[_0x2a94('0xe')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fba=['setTemplate','minHeight','createCollection','ck-reset','set','number','bindTemplate','class','list'];(function(_0x150f04,_0x4fba5f){const _0x1e545e=function(_0x5c8876){while(--_0x5c8876){_0x150f04['push'](_0x150f04['shift']());}};_0x1e545e(++_0x4fba5f);}(_0x4fba,0xbc));const _0x1e54=function(_0x150f04,_0x4fba5f){_0x150f04=_0x150f04-0x0;let _0x1e545e=_0x4fba[_0x150f04];return _0x1e545e;};import{View as _0x430a79}from'ckeditor5/src/ui.js';import{toUnit as _0x2a9b9a}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x2a9b9a('px');export default class T extends _0x430a79{constructor(_0x214eeb){super(_0x214eeb);const _0x2ce7a0=this[_0x1e54('0x7')];this['set'](_0x1e54('0x2'),0x0),this[_0x1e54('0x5')]('class',''),this['list']=this[_0x1e54('0x3')](),this[_0x1e54('0x1')]({'tag':'div','attributes':{'class':['ck','ck-sidebar',_0x1e54('0x4'),_0x2ce7a0['to'](_0x1e54('0x8'))],'style':{'minHeight':_0x2ce7a0['to'](_0x1e54('0x2'),_0x1a3a3f=>_0x1e54('0x6')==typeof _0x1a3a3f?Ht(_0x1a3a3f+0xa):null)}},'children':this[_0x1e54('0x0')]});}}
23
+ const _0x3562=['ck-sidebar','list','class','set','number','minHeight','div','setTemplate'];(function(_0xa8bd3d,_0x3562d8){const _0xb97511=function(_0x14f9d7){while(--_0x14f9d7){_0xa8bd3d['push'](_0xa8bd3d['shift']());}};_0xb97511(++_0x3562d8);}(_0x3562,0x90));const _0xb975=function(_0xa8bd3d,_0x3562d8){_0xa8bd3d=_0xa8bd3d-0x0;let _0xb97511=_0x3562[_0xa8bd3d];return _0xb97511;};import{View as _0x1958cf}from'ckeditor5/src/ui.js';import{toUnit as _0xa939c0}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0xa939c0('px');export default class T extends _0x1958cf{constructor(_0x3252d7){super(_0x3252d7);const _0x137d1c=this['bindTemplate'];this[_0xb975('0x3')](_0xb975('0x5'),0x0),this[_0xb975('0x3')](_0xb975('0x2'),''),this[_0xb975('0x1')]=this['createCollection'](),this[_0xb975('0x7')]({'tag':_0xb975('0x6'),'attributes':{'class':['ck',_0xb975('0x0'),'ck-reset',_0x137d1c['to'](_0xb975('0x2'))],'style':{'minHeight':_0x137d1c['to'](_0xb975('0x5'),_0x14e5ad=>_0xb975('0x4')==typeof _0x14e5ad?Ht(_0x14e5ad+0xa):null)}},'children':this[_0xb975('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43b5=['wideSidebar','get','_editorAnnotations','focus','EditorAnnotations','_integrateWithEditorAnnotations','annotations','change:container','blur','plugins','activeAnnotation','_destroyEditorAnnotationsIntegration','_refreshPositioningDebounced','_annotations','add','_activeAnnotation','has','stop','listenTo','isAttached','_attachToContainer','resize','switchTo','destroy','context','attach','refreshPositioning','off','pluginName','container','remove','widesidebar-detach-not-attached','removeEventListener','setActiveAnnotation','detach','updateTargetRect','getOrderedSelectedAnnotations','rearrange','set','addAnnotation','init','_detachFromContainer','refresh','editors','hasDomSelection','set:container','cancel','register','from','stopListening'];(function(_0xde8b74,_0x43b589){const _0xfb77d5=function(_0x43dad7){while(--_0x43dad7){_0xde8b74['push'](_0xde8b74['shift']());}};_0xfb77d5(++_0x43b589);}(_0x43b5,0x9e));const _0xfb77=function(_0xde8b74,_0x43b589){_0xde8b74=_0xde8b74-0x0;let _0xfb77d5=_0x43b5[_0xde8b74];return _0xfb77d5;};import{ContextPlugin as _0x2eae45,Context as _0xb7f1aa}from'ckeditor5/src/core.js';import _0x442f04 from'./annotationsuis.js';import _0x2df381 from'./sidebar.js';import{CKEditorError as _0x1558e3,Collection as _0x485f17}from'ckeditor5/src/utils.js';import{debounce as _0x24eb42}from'lodash-es';import _0x5dd352 from'./editorannotations.js';export default class n extends _0x2eae45{static get['requires'](){return[_0x2df381,_0x442f04];}static get[_0xfb77('0x14')](){return'WideSidebar';}constructor(_0x1a0ade){super(_0x1a0ade),this[_0xfb77('0xb')]=!0x1,this[_0xfb77('0x1e')](_0xfb77('0x2'),null),this[_0xfb77('0x30')]=null,this[_0xfb77('0x2c')]=new _0x485f17(),this[_0xfb77('0x4')]=_0x24eb42(()=>{this['annotations'][_0xfb77('0x12')]();},0xfa,{'leading':!0x1});}[_0xfb77('0x20')](){const _0x3cf33e=this[_0xfb77('0x10')]['plugins'][_0xfb77('0x2b')](_0x442f04),_0x142ecf=this[_0xfb77('0x10')]['plugins'][_0xfb77('0x2b')](_0x2df381);_0x3cf33e[_0xfb77('0x27')](_0xfb77('0x2a'),this),_0x142ecf[_0xfb77('0x15')]&&_0x3cf33e[_0xfb77('0xe')](_0xfb77('0x2a'));}['setActiveAnnotation'](_0x88a57){if(_0x88a57===this[_0xfb77('0x2')])return;const _0x7e507=this[_0xfb77('0x10')]['plugins']['get'](_0x2df381);_0x7e507[_0xfb77('0x7')]=_0x88a57;const _0x538557=this[_0xfb77('0x2')];this['activeAnnotation']=_0x88a57,_0x7e507['refresh']({'blurredAnnotation':_0x538557,'activatedAnnotation':this[_0xfb77('0x2')]});}[_0xfb77('0x11')](_0x778dad){this['annotations']=_0x778dad;const _0x190050=this[_0xfb77('0x10')][_0xfb77('0x1')][_0xfb77('0x2b')](_0x2df381);if(_0x190050[_0xfb77('0x5')]=_0x778dad,this['isAttached'])throw new _0x1558e3('widesidebar-attach-already-attached',this);this[_0xfb77('0xb')]=!0x0,this['listenTo'](_0x190050,_0xfb77('0x25'),()=>{this['detach'](),this[_0xfb77('0xa')](_0x190050,_0xfb77('0x31'),_0x50cebe=>{_0x50cebe[_0xfb77('0x13')](),this[_0xfb77('0x11')](_0x778dad);});}),_0x190050[_0xfb77('0xc')]({'viewClass':'ck-sidebar--wide'});const _0x2e28a5=_0x12403e=>{_0x12403e[_0xfb77('0x1b')](),_0x190050[_0xfb77('0x1f')](_0x12403e);};for(const _0x265104 of _0x778dad)_0x2e28a5(_0x265104);this['listenTo'](_0x778dad,_0xfb77('0x6'),(_0x4e1190,_0x1a9a15)=>{_0x2e28a5(_0x1a9a15);}),this['listenTo'](_0x778dad,_0xfb77('0x16'),(_0x447554,_0x49e3c6,_0x590ecf)=>{_0x190050[_0xfb77('0x1d')]({'removedAnnotation':_0x49e3c6,'previousAnnotation':_0x778dad[_0xfb77('0x2b')](_0x590ecf-0x1),'nextAnnotation':_0x778dad[_0xfb77('0x2b')](_0x590ecf+0x1)}),_0x49e3c6===this[_0xfb77('0x2')]&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0xfb77('0xa')](_0x778dad,_0xfb77('0x2d'),(_0x516d14,_0x9a0717)=>{this[_0xfb77('0x19')](_0x9a0717);}),this[_0xfb77('0xa')](_0x778dad,_0xfb77('0x0'),()=>{this[_0xfb77('0x19')](null);});const _0x5cae4d=this[_0xfb77('0x10')]instanceof _0xb7f1aa?this['context'][_0xfb77('0x23')]:new _0x485f17([this[_0xfb77('0x10')]]);for(const _0x5176ff of _0x5cae4d)this[_0xfb77('0x2f')](_0x5176ff);this[_0xfb77('0xa')](_0x5cae4d,'add',(_0x3aed21,_0x3a8118)=>{this['listenTo'](_0x3a8118,'ready',()=>{this[_0xfb77('0x2f')](_0x3a8118);});}),this[_0xfb77('0xa')](_0x5cae4d,_0xfb77('0x16'),(_0x21f609,_0x24d7c0)=>{_0x24d7c0[_0xfb77('0x1')][_0xfb77('0x8')](_0xfb77('0x2e'))&&this[_0xfb77('0x3')](_0x24d7c0[_0xfb77('0x1')][_0xfb77('0x2b')](_0xfb77('0x2e')));}),window['addEventListener'](_0xfb77('0xd'),this[_0xfb77('0x4')]),this[_0xfb77('0x30')][_0xfb77('0x12')]();}[_0xfb77('0x1a')](){if(!this[_0xfb77('0xb')])throw new _0x1558e3(_0xfb77('0x17'),this);this[_0xfb77('0x19')](null);const _0x390be1=this[_0xfb77('0x10')][_0xfb77('0x1')][_0xfb77('0x2b')](_0x2df381);_0x390be1[_0xfb77('0x21')](this[_0xfb77('0x30')]),this[_0xfb77('0x29')](_0x390be1),this[_0xfb77('0x29')](this[_0xfb77('0x30')]),this[_0xfb77('0x10')]instanceof _0xb7f1aa&&this[_0xfb77('0x29')](this[_0xfb77('0x10')][_0xfb77('0x23')]);for(const _0x314623 of Array[_0xfb77('0x28')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x314623);window[_0xfb77('0x18')]('resize',this[_0xfb77('0x4')]),this[_0xfb77('0x4')][_0xfb77('0x26')](),this[_0xfb77('0x2')]=null,this[_0xfb77('0xb')]=!0x1,this['annotations']=null;}[_0xfb77('0xf')](){this[_0xfb77('0xb')]&&this[_0xfb77('0x1a')]();}[_0xfb77('0x2f')](_0x1c7d52){const _0x2e0f32=_0x1c7d52[_0xfb77('0x1')][_0xfb77('0x2b')](_0x5dd352);if(!_0x2e0f32)return;const _0x3dcc83=()=>{const _0x1e31f8=_0x2e0f32[_0xfb77('0x1c')]({'annotations':this[_0xfb77('0x30')],'activeAnnotation':this[_0xfb77('0x2')]});this['setActiveAnnotation'](_0x1e31f8[0x0]||null);};this[_0xfb77('0xa')](_0x2e0f32,_0xfb77('0x22'),_0x3dcc83),this['listenTo'](_0x2e0f32,_0xfb77('0x0'),(_0x769fca,{isAnnotationTracked:_0x336212})=>{this[_0xfb77('0x2')]&&_0x336212(this['activeAnnotation'])&&this[_0xfb77('0x19')](null);}),this[_0xfb77('0xa')](_0x2e0f32,'uiUpdate',()=>{this[_0xfb77('0x4')]();}),this[_0xfb77('0xa')](this[_0xfb77('0x30')],_0xfb77('0x0'),_0xc50600=>{_0x2e0f32[_0xfb77('0x24')]()&&(_0x3dcc83(),_0xc50600[_0xfb77('0x9')]());},{'priority':'high'}),this[_0xfb77('0x2c')][_0xfb77('0x6')](_0x2e0f32);}['_destroyEditorAnnotationsIntegration'](_0x4770bd){this[_0xfb77('0x29')](_0x4770bd),this[_0xfb77('0x2c')][_0xfb77('0x16')](_0x4770bd);}}
23
+ const _0x5e39=['WideSidebar','ready','get','setActiveAnnotation','updateTargetRect','context','off','_activeAnnotation','cancel','widesidebar-attach-already-attached','detach','set:container','add','hasDomSelection','_refreshPositioningDebounced','widesidebar-detach-not-attached','blur','_attachToContainer','isAttached','addAnnotation','destroy','from','init','wideSidebar','_destroyEditorAnnotationsIntegration','_annotations','_integrateWithEditorAnnotations','EditorAnnotations','focus','resize','ck-sidebar--wide','addEventListener','getOrderedSelectedAnnotations','listenTo','_editorAnnotations','stopListening','requires','set','removeEventListener','refresh','refreshPositioning','high','plugins','remove','change:container','attach','activeAnnotation','editors','stop','_detachFromContainer','annotations'];(function(_0x5a5fbe,_0x5e3900){const _0x31dd5a=function(_0x55c3d0){while(--_0x55c3d0){_0x5a5fbe['push'](_0x5a5fbe['shift']());}};_0x31dd5a(++_0x5e3900);}(_0x5e39,0x1e0));const _0x31dd=function(_0x5a5fbe,_0x5e3900){_0x5a5fbe=_0x5a5fbe-0x0;let _0x31dd5a=_0x5e39[_0x5a5fbe];return _0x31dd5a;};import{ContextPlugin as _0x511ae3,Context as _0x2cf38f}from'ckeditor5/src/core.js';import _0x49eb11 from'./annotationsuis.js';import _0x552d12 from'./sidebar.js';import{CKEditorError as _0x189ff0,Collection as _0x407f3d}from'ckeditor5/src/utils.js';import{debounce as _0x4e789c}from'lodash-es';import _0xff51b3 from'./editorannotations.js';export default class n extends _0x511ae3{static get[_0x31dd('0xf')](){return[_0x552d12,_0x49eb11];}static get['pluginName'](){return _0x31dd('0x1e');}constructor(_0x1f3578){super(_0x1f3578),this[_0x31dd('0x30')]=!0x1,this[_0x31dd('0x10')]('activeAnnotation',null),this[_0x31dd('0x1d')]=null,this[_0x31dd('0xd')]=new _0x407f3d(),this[_0x31dd('0x2c')]=_0x4e789c(()=>{this[_0x31dd('0x1d')][_0x31dd('0x13')]();},0xfa,{'leading':!0x1});}[_0x31dd('0x1')](){const _0x419786=this[_0x31dd('0x23')][_0x31dd('0x15')][_0x31dd('0x20')](_0x49eb11),_0x5b15df=this['context'][_0x31dd('0x15')][_0x31dd('0x20')](_0x552d12);_0x419786['register']('wideSidebar',this),_0x5b15df['container']&&_0x419786['switchTo'](_0x31dd('0x2'));}[_0x31dd('0x21')](_0x38b8ab){if(_0x38b8ab===this['activeAnnotation'])return;const _0x37c570=this['context'][_0x31dd('0x15')][_0x31dd('0x20')](_0x552d12);_0x37c570[_0x31dd('0x25')]=_0x38b8ab;const _0x5a09be=this[_0x31dd('0x19')];this[_0x31dd('0x19')]=_0x38b8ab,_0x37c570[_0x31dd('0x12')]({'blurredAnnotation':_0x5a09be,'activatedAnnotation':this['activeAnnotation']});}[_0x31dd('0x18')](_0x2efcf2){this['annotations']=_0x2efcf2;const _0x46c947=this[_0x31dd('0x23')][_0x31dd('0x15')][_0x31dd('0x20')](_0x552d12);if(_0x46c947[_0x31dd('0x4')]=_0x2efcf2,this['isAttached'])throw new _0x189ff0(_0x31dd('0x27'),this);this[_0x31dd('0x30')]=!0x0,this[_0x31dd('0xc')](_0x46c947,_0x31dd('0x29'),()=>{this[_0x31dd('0x28')](),this['listenTo'](_0x46c947,_0x31dd('0x17'),_0x36aa21=>{_0x36aa21[_0x31dd('0x24')](),this['attach'](_0x2efcf2);});}),_0x46c947[_0x31dd('0x2f')]({'viewClass':_0x31dd('0x9')});const _0x2734a6=_0x133fc6=>{_0x133fc6[_0x31dd('0x22')](),_0x46c947[_0x31dd('0x31')](_0x133fc6);};for(const _0x5dc824 of _0x2efcf2)_0x2734a6(_0x5dc824);this[_0x31dd('0xc')](_0x2efcf2,'add',(_0x5316b5,_0x58af63)=>{_0x2734a6(_0x58af63);}),this[_0x31dd('0xc')](_0x2efcf2,_0x31dd('0x16'),(_0x1438b9,_0xae0675,_0x38b063)=>{_0x46c947['rearrange']({'removedAnnotation':_0xae0675,'previousAnnotation':_0x2efcf2['get'](_0x38b063-0x1),'nextAnnotation':_0x2efcf2['get'](_0x38b063+0x1)}),_0xae0675===this[_0x31dd('0x19')]&&this['setActiveAnnotation'](null);},{'priority':_0x31dd('0x14')}),this[_0x31dd('0xc')](_0x2efcf2,_0x31dd('0x7'),(_0x596279,_0x3370da)=>{this['setActiveAnnotation'](_0x3370da);}),this['listenTo'](_0x2efcf2,_0x31dd('0x2e'),()=>{this[_0x31dd('0x21')](null);});const _0x439e4f=this[_0x31dd('0x23')]instanceof _0x2cf38f?this[_0x31dd('0x23')][_0x31dd('0x1a')]:new _0x407f3d([this[_0x31dd('0x23')]]);for(const _0x46f2e6 of _0x439e4f)this['_integrateWithEditorAnnotations'](_0x46f2e6);this[_0x31dd('0xc')](_0x439e4f,_0x31dd('0x2a'),(_0x3de6ef,_0x13f2f3)=>{this['listenTo'](_0x13f2f3,_0x31dd('0x1f'),()=>{this[_0x31dd('0x5')](_0x13f2f3);});}),this[_0x31dd('0xc')](_0x439e4f,'remove',(_0x26c8fb,_0x3b053d)=>{_0x3b053d['plugins']['has'](_0x31dd('0x6'))&&this[_0x31dd('0x3')](_0x3b053d['plugins'][_0x31dd('0x20')](_0x31dd('0x6')));}),window[_0x31dd('0xa')](_0x31dd('0x8'),this[_0x31dd('0x2c')]),this[_0x31dd('0x1d')]['refreshPositioning']();}[_0x31dd('0x28')](){if(!this[_0x31dd('0x30')])throw new _0x189ff0(_0x31dd('0x2d'),this);this[_0x31dd('0x21')](null);const _0x47fca1=this['context'][_0x31dd('0x15')][_0x31dd('0x20')](_0x552d12);_0x47fca1[_0x31dd('0x1c')](this[_0x31dd('0x1d')]),this['stopListening'](_0x47fca1),this['stopListening'](this['annotations']),this[_0x31dd('0x23')]instanceof _0x2cf38f&&this[_0x31dd('0xe')](this[_0x31dd('0x23')][_0x31dd('0x1a')]);for(const _0x492de1 of Array[_0x31dd('0x0')](this[_0x31dd('0xd')]))this['_destroyEditorAnnotationsIntegration'](_0x492de1);window[_0x31dd('0x11')](_0x31dd('0x8'),this['_refreshPositioningDebounced']),this[_0x31dd('0x2c')][_0x31dd('0x26')](),this[_0x31dd('0x19')]=null,this[_0x31dd('0x30')]=!0x1,this['annotations']=null;}[_0x31dd('0x32')](){this[_0x31dd('0x30')]&&this['detach']();}[_0x31dd('0x5')](_0x39696b){const _0x4c997e=_0x39696b['plugins'][_0x31dd('0x20')](_0xff51b3);if(!_0x4c997e)return;const _0x576f46=()=>{const _0x2b8c4a=_0x4c997e[_0x31dd('0xb')]({'annotations':this[_0x31dd('0x1d')],'activeAnnotation':this['activeAnnotation']});this[_0x31dd('0x21')](_0x2b8c4a[0x0]||null);};this[_0x31dd('0xc')](_0x4c997e,_0x31dd('0x12'),_0x576f46),this[_0x31dd('0xc')](_0x4c997e,_0x31dd('0x2e'),(_0x1d11b9,{isAnnotationTracked:_0xd37a4d})=>{this['activeAnnotation']&&_0xd37a4d(this['activeAnnotation'])&&this[_0x31dd('0x21')](null);}),this[_0x31dd('0xc')](_0x4c997e,'uiUpdate',()=>{this[_0x31dd('0x2c')]();}),this[_0x31dd('0xc')](this[_0x31dd('0x1d')],_0x31dd('0x2e'),_0x11b536=>{_0x4c997e[_0x31dd('0x2b')]()&&(_0x576f46(),_0x11b536[_0x31dd('0x1b')]());},{'priority':_0x31dd('0x14')}),this['_editorAnnotations'][_0x31dd('0x2a')](_0x4c997e);}[_0x31dd('0x3')](_0x5f2b08){this['stopListening'](_0x5f2b08),this[_0x31dd('0xd')][_0x31dd('0x16')](_0x5f2b08);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1040=['_itemIsContent','document','editor','_trimToContent','addMarker','$textProxy','getRanges','end','backward','selection','element','schema','substr','_hasContent','push','getLastMatchingPosition','isObject','start','isEnabled','tableCell','execute','change','model','refresh','comment:'];(function(_0x1d92f7,_0x1040cc){const _0xcdfde4=function(_0x17eee1){while(--_0x17eee1){_0x1d92f7['push'](_0x1d92f7['shift']());}};_0xcdfde4(++_0x1040cc);}(_0x1040,0xe0));const _0xcdfd=function(_0x1d92f7,_0x1040cc){_0x1d92f7=_0x1d92f7-0x0;let _0xcdfde4=_0x1040[_0x1d92f7];return _0xcdfde4;};import{Command as _0x4d0ec1}from'ckeditor5/src/core.js';import{uid as _0x46f265}from'ckeditor5/src/utils.js';export default class G extends _0x4d0ec1{[_0xcdfd('0x18')](){const _0x5d3a48=this[_0xcdfd('0x3')]['model'][_0xcdfd('0x2')][_0xcdfd('0xa')];for(const _0x84835c of _0x5d3a48['getRanges']())if(this[_0xcdfd('0xe')](_0x84835c))return void(this['isEnabled']=!0x0);this[_0xcdfd('0x13')]=!0x1;}[_0xcdfd('0x15')]({threadId:_0x30a640=_0x46f265()}={}){const _0x12b680=this[_0xcdfd('0x3')][_0xcdfd('0x17')],_0x2b3126=[];for(const _0x1fef72 of _0x12b680[_0xcdfd('0x2')][_0xcdfd('0xa')][_0xcdfd('0x7')]())this[_0xcdfd('0xe')](_0x1fef72)&&_0x2b3126[_0xcdfd('0xf')](this[_0xcdfd('0x4')](_0x1fef72));_0x12b680[_0xcdfd('0x16')](_0x317581=>{for(const _0x39bba1 of _0x2b3126){const _0x457fcf=_0x46f265()[_0xcdfd('0xd')](0x1,0x5),_0x175ebc=_0xcdfd('0x0')+_0x30a640+':'+_0x457fcf;_0x317581[_0xcdfd('0x5')](_0x175ebc,{'range':_0x39bba1,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0xcdfd('0xe')](_0xf32584){for(const _0x65d4dc of _0xf32584['getItems']())if(this['_itemIsContent'](_0x65d4dc))return!0x0;return!0x1;}[_0xcdfd('0x1')](_0x58862a){return _0x58862a['is'](_0xcdfd('0x6'))||this[_0xcdfd('0x3')][_0xcdfd('0x17')][_0xcdfd('0xc')][_0xcdfd('0x11')](_0x58862a)&&!_0x58862a['is'](_0xcdfd('0xb'),_0xcdfd('0x14'));}[_0xcdfd('0x4')](_0x292244){const _0x42c8b4=_0x346499=>!this[_0xcdfd('0x1')](_0x346499['item']),_0x1a3665=_0x292244[_0xcdfd('0x12')][_0xcdfd('0x10')](_0x42c8b4),_0x58dc6d=_0x292244[_0xcdfd('0x8')][_0xcdfd('0x10')](_0x42c8b4,{'direction':_0xcdfd('0x9')});return this[_0xcdfd('0x3')]['model']['createRange'](_0x1a3665,_0x58dc6d);}}
23
+ const _0x1d85=['document','model','tableCell','backward','element','selection','schema','push','execute','editor','change','$textProxy','_hasContent','item','getLastMatchingPosition','comment:','refresh','end','_itemIsContent','isEnabled','addMarker','_trimToContent'];(function(_0x14dbc9,_0x1d854b){const _0x3e841f=function(_0x2d6d8b){while(--_0x2d6d8b){_0x14dbc9['push'](_0x14dbc9['shift']());}};_0x3e841f(++_0x1d854b);}(_0x1d85,0xbb));const _0x3e84=function(_0x14dbc9,_0x1d854b){_0x14dbc9=_0x14dbc9-0x0;let _0x3e841f=_0x1d85[_0x14dbc9];return _0x3e841f;};import{Command as _0x4aff93}from'ckeditor5/src/core.js';import{uid as _0x95952c}from'ckeditor5/src/utils.js';export default class G extends _0x4aff93{[_0x3e84('0x5')](){const _0x59a2cc=this['editor']['model'][_0x3e84('0xb')][_0x3e84('0x10')];for(const _0x1c977f of _0x59a2cc['getRanges']())if(this[_0x3e84('0x1')](_0x1c977f))return void(this[_0x3e84('0x8')]=!0x0);this[_0x3e84('0x8')]=!0x1;}[_0x3e84('0x13')]({threadId:_0x14ea74=_0x95952c()}={}){const _0x180e01=this[_0x3e84('0x14')][_0x3e84('0xc')],_0x3dde68=[];for(const _0x3acc14 of _0x180e01[_0x3e84('0xb')][_0x3e84('0x10')]['getRanges']())this[_0x3e84('0x1')](_0x3acc14)&&_0x3dde68[_0x3e84('0x12')](this[_0x3e84('0xa')](_0x3acc14));_0x180e01[_0x3e84('0x15')](_0x4cfd1c=>{for(const _0x402ea3 of _0x3dde68){const _0x45564d=_0x95952c()['substr'](0x1,0x5),_0x510f87=_0x3e84('0x4')+_0x14ea74+':'+_0x45564d;_0x4cfd1c[_0x3e84('0x9')](_0x510f87,{'range':_0x402ea3,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x213a90){for(const _0x8ff795 of _0x213a90['getItems']())if(this[_0x3e84('0x7')](_0x8ff795))return!0x0;return!0x1;}[_0x3e84('0x7')](_0x447e10){return _0x447e10['is'](_0x3e84('0x0'))||this[_0x3e84('0x14')][_0x3e84('0xc')][_0x3e84('0x11')]['isObject'](_0x447e10)&&!_0x447e10['is'](_0x3e84('0xf'),_0x3e84('0xd'));}[_0x3e84('0xa')](_0x3907bc){const _0x5a26ca=_0x5aa48f=>!this['_itemIsContent'](_0x5aa48f[_0x3e84('0x2')]),_0xd90dc=_0x3907bc['start']['getLastMatchingPosition'](_0x5a26ca),_0x59d5db=_0x3907bc[_0x3e84('0x6')][_0x3e84('0x3')](_0x5a26ca,{'direction':_0x3e84('0xe')});return this[_0x3e84('0x14')]['model']['createRange'](_0xd90dc,_0x59d5db);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x464b=['focus','change:archivedAt','add','listenTo','addCommentThread','plugins','_calculatePosition','init','removeCommentThread','remove','isActive','activate','stopListening','highest','archivedAt','length','CommentsArchive','context','pluginName','requires','has','collection','archivedThreads','get'];(function(_0x4ec164,_0x464b69){const _0x18c74f=function(_0xabe7aa){while(--_0xabe7aa){_0x4ec164['push'](_0x4ec164['shift']());}};_0x18c74f(++_0x464b69);}(_0x464b,0x1af));const _0x18c7=function(_0x4ec164,_0x464b69){_0x4ec164=_0x4ec164-0x0;let _0x18c74f=_0x464b[_0x4ec164];return _0x18c74f;};import{ContextPlugin as _0x23a63a}from'ckeditor5/src/core.js';import{Collection as _0x2fbaf3}from'ckeditor5/src/utils.js';import _0x5c4a65 from'./commentsrepository.js';import _0x4fe363 from'../annotations/annotations.js';export default class p extends _0x23a63a{static get[_0x18c7('0x13')](){return _0x18c7('0x11');}static get[_0x18c7('0x14')](){return[_0x5c4a65,_0x4fe363];}constructor(_0x37d94b){super(_0x37d94b),this[_0x18c7('0x17')]=new _0x2fbaf3();}[_0x18c7('0x8')](){const _0x478d6e=this[_0x18c7('0x12')],_0xb06507=_0x478d6e[_0x18c7('0x6')][_0x18c7('0x0')](_0x5c4a65),_0x241870=_0x478d6e[_0x18c7('0x6')]['get'](_0x4fe363);this[_0x18c7('0x4')](_0xb06507,_0x18c7('0x5'),(_0x3ea405,{threadId:_0x4ac1b3})=>{const _0x16aec9=_0xb06507['getCommentThread'](_0x4ac1b3);_0x16aec9[_0x18c7('0xf')]&&this[_0x18c7('0x17')]['add'](_0x16aec9,this[_0x18c7('0x7')](_0x16aec9['archivedAt'])),this[_0x18c7('0x4')](_0x16aec9,_0x18c7('0x2'),(_0x265b0e,_0x40928d,_0x61c2ee)=>{_0x61c2ee?this[_0x18c7('0x17')][_0x18c7('0x15')](_0x16aec9)||this[_0x18c7('0x17')][_0x18c7('0x3')](_0x16aec9,this[_0x18c7('0x7')](_0x16aec9[_0x18c7('0xf')])):this[_0x18c7('0x17')][_0x18c7('0x15')](_0x16aec9)&&this[_0x18c7('0x17')][_0x18c7('0xa')](_0x16aec9);});}),this['listenTo'](_0xb06507,_0x18c7('0x9'),(_0xce452b,{threadId:_0x1ebe26})=>{const _0x38712d=_0xb06507['getCommentThread'](_0x1ebe26);this[_0x18c7('0xd')](_0x38712d),this['archivedThreads']['has'](_0x38712d)&&this[_0x18c7('0x17')][_0x18c7('0xa')](_0x38712d);},{'priority':_0x18c7('0xe')}),this['listenTo'](_0x241870[_0x18c7('0x16')],_0x18c7('0x1'),(_0xc5ffa8,_0x40d93f)=>{_0x40d93f[_0x18c7('0xb')]=!0x0,_0x241870[_0x18c7('0xc')](_0x40d93f);});}[_0x18c7('0x7')](_0x5b76e2){const _0xef9d23=[...this[_0x18c7('0x17')]]['findIndex'](_0x224090=>_0x224090['archivedAt']<_0x5b76e2);return _0xef9d23>-0x1?_0xef9d23:this[_0x18c7('0x17')][_0x18c7('0x10')];}}
23
+ const _0x2a82=['change:archivedAt','init','removeCommentThread','isActive','focus','pluginName','addCommentThread','requires','collection','get','listenTo','activate','context','archivedThreads','has','add','CommentsArchive','plugins','length','stopListening','remove','archivedAt','_calculatePosition','findIndex','highest','getCommentThread'];(function(_0x13d6e0,_0x2a8297){const _0x980b6d=function(_0x5d8ec7){while(--_0x5d8ec7){_0x13d6e0['push'](_0x13d6e0['shift']());}};_0x980b6d(++_0x2a8297);}(_0x2a82,0xb7));const _0x980b=function(_0x13d6e0,_0x2a8297){_0x13d6e0=_0x13d6e0-0x0;let _0x980b6d=_0x2a82[_0x13d6e0];return _0x980b6d;};import{ContextPlugin as _0x54d9f0}from'ckeditor5/src/core.js';import{Collection as _0x3a3a88}from'ckeditor5/src/utils.js';import _0x4dc627 from'./commentsrepository.js';import _0x124fbd from'../annotations/annotations.js';export default class p extends _0x54d9f0{static get[_0x980b('0x4')](){return _0x980b('0xf');}static get[_0x980b('0x6')](){return[_0x4dc627,_0x124fbd];}constructor(_0x3ed45d){super(_0x3ed45d),this[_0x980b('0xc')]=new _0x3a3a88();}[_0x980b('0x0')](){const _0x4813fe=this[_0x980b('0xb')],_0x4a4a90=_0x4813fe[_0x980b('0x10')]['get'](_0x4dc627),_0x272549=_0x4813fe[_0x980b('0x10')][_0x980b('0x8')](_0x124fbd);this[_0x980b('0x9')](_0x4a4a90,_0x980b('0x5'),(_0x1f7ece,{threadId:_0x5314ac})=>{const _0xeeea06=_0x4a4a90[_0x980b('0x18')](_0x5314ac);_0xeeea06[_0x980b('0x14')]&&this[_0x980b('0xc')]['add'](_0xeeea06,this[_0x980b('0x15')](_0xeeea06[_0x980b('0x14')])),this['listenTo'](_0xeeea06,_0x980b('0x19'),(_0x3cc7b9,_0x2a0896,_0x22f778)=>{_0x22f778?this[_0x980b('0xc')][_0x980b('0xd')](_0xeeea06)||this[_0x980b('0xc')][_0x980b('0xe')](_0xeeea06,this[_0x980b('0x15')](_0xeeea06['archivedAt'])):this['archivedThreads'][_0x980b('0xd')](_0xeeea06)&&this[_0x980b('0xc')][_0x980b('0x13')](_0xeeea06);});}),this['listenTo'](_0x4a4a90,_0x980b('0x1'),(_0x3d20e2,{threadId:_0x2616bb})=>{const _0x341b60=_0x4a4a90[_0x980b('0x18')](_0x2616bb);this[_0x980b('0x12')](_0x341b60),this[_0x980b('0xc')][_0x980b('0xd')](_0x341b60)&&this[_0x980b('0xc')][_0x980b('0x13')](_0x341b60);},{'priority':_0x980b('0x17')}),this[_0x980b('0x9')](_0x272549[_0x980b('0x7')],_0x980b('0x3'),(_0x4885fe,_0x4f6d7e)=>{_0x4f6d7e[_0x980b('0x2')]=!0x0,_0x272549[_0x980b('0xa')](_0x4f6d7e);});}[_0x980b('0x15')](_0x32a2a5){const _0x3ae982=[...this[_0x980b('0xc')]][_0x980b('0x16')](_0xf440f2=>_0xf440f2[_0x980b('0x14')]<_0x32a2a5);return _0x3ae982>-0x1?_0x3ae982:this[_0x980b('0xc')][_0x980b('0x11')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4233=['view','findIndex','_pendingThreads','editor','position','channelId','_calculatePosition','pluginName','annotationViews','length','componentFactory','contains','set','get','CommentsArchiveUI','find','_visibleAnnotations','stopListening','_threadToController','init','innerView','push','_handleAnnotationFocusableElements','config','focusableElements','change:isOpen','isVisible','collaboration.channelId','COMMENTS_ARCHIVE','Annotations','getByInnerView','_createArchiveUIDropdown','commentsArchiveView','buttonView','locale','focusTracker','plugins','ck-body','filter','archivedThreads','archivedAt','mainView','classList','listenTo','remove','panelView','add','collection'];(function(_0x47e50c,_0x42335a){const _0x13496b=function(_0x44b089){while(--_0x44b089){_0x47e50c['push'](_0x47e50c['shift']());}};_0x13496b(++_0x42335a);}(_0x4233,0x192));const _0x1349=function(_0x47e50c,_0x42335a){_0x47e50c=_0x47e50c-0x0;let _0x13496b=_0x4233[_0x47e50c];return _0x13496b;};import'../../theme/commentsarchive.css';import{Plugin as _0x394b0f}from'ckeditor5/src/core.js';import{createDropdown as _0x4e2b61,ViewCollection as _0x42f5c3}from'ckeditor5/src/ui.js';import _0x498082 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x3f6b24}from'../utils/common-translations.js';import _0x5a2ff2 from'./ui/view/commentsarchiveview.js';import _0x292d4e from'./commentsarchive.js';export default class a extends _0x394b0f{static get[_0x1349('0x25')](){return _0x1349('0x2c');}static get['requires'](){return[_0x292d4e];}constructor(_0x566b8a){super(_0x566b8a),this[_0x1349('0x26')]=new _0x42f5c3(),this['_pendingThreads']=[];}[_0x1349('0x1')](){this['editor']['ui'][_0x1349('0x28')][_0x1349('0x1c')]('commentsArchive',()=>this[_0x1349('0xd')]());const _0x2a05ce=this['editor'][_0x1349('0x12')][_0x1349('0x2b')](_0x292d4e),_0x5b3a8b=this[_0x1349('0x21')]['plugins'][_0x1349('0x2b')](_0x1349('0xb')),_0x126992=this[_0x1349('0x21')][_0x1349('0x12')][_0x1349('0x2b')]('CommentsRepository');this['listenTo'](_0x2a05ce[_0x1349('0x15')],_0x1349('0x1c'),(_0x13f882,_0x5e53c9)=>{const _0x50029e=this['editor']['config'][_0x1349('0x2b')](_0x1349('0x9'));if(!_0x50029e||_0x5e53c9[_0x1349('0x23')]===_0x50029e){const _0x15b426=this[_0x1349('0x24')](_0x5e53c9[_0x1349('0x16')]),_0x579a3c=_0x126992[_0x1349('0x0')][_0x1349('0x2b')](_0x5e53c9);if(!_0x579a3c)return void this[_0x1349('0x20')][_0x1349('0x3')]({'thread':_0x5e53c9,'position':_0x15b426});const _0x3dc28a=_0x5b3a8b['getByInnerView'](_0x579a3c[_0x1349('0x1e')]);_0x3dc28a[_0x1349('0x8')]&&_0x5b3a8b[_0x1349('0x2e')]['remove'](_0x3dc28a),this[_0x1349('0x26')]['add'](_0x3dc28a[_0x1349('0x1e')],_0x15b426);}}),this[_0x1349('0x19')](_0x5b3a8b[_0x1349('0x1d')],'add',(_0xfed13e,_0x543744)=>{const _0x55089c=this[_0x1349('0x20')][_0x1349('0x2d')](({thread:_0x4af34c})=>{const _0x1712db=_0x126992[_0x1349('0x0')]['get'](_0x4af34c);return _0x1712db&&_0x543744[_0x1349('0x2')]===_0x1712db[_0x1349('0x1e')];});_0x55089c&&(this[_0x1349('0x26')][_0x1349('0x1c')](_0x543744[_0x1349('0x1e')],_0x55089c[_0x1349('0x22')]),this[_0x1349('0x20')]['splice'](this[_0x1349('0x20')]['indexOf'](_0x55089c),0x1));}),this[_0x1349('0x19')](_0x2a05ce[_0x1349('0x15')],_0x1349('0x1a'),(_0x3d2bfc,_0x5c543b)=>{const _0x24b735=this[_0x1349('0x21')][_0x1349('0x5')][_0x1349('0x2b')](_0x1349('0x9'));if(!_0x24b735||_0x5c543b['channelId']===_0x24b735){const _0x3d2a85=_0x126992[_0x1349('0x0')][_0x1349('0x2b')](_0x5c543b),_0x2b035d=_0x5b3a8b[_0x1349('0xc')](_0x3d2a85[_0x1349('0x1e')]);this['annotationViews'][_0x1349('0x1a')](_0x2b035d[_0x1349('0x1e')]),this[_0x1349('0x2f')](_0x2b035d[_0x1349('0x6')]);}});}[_0x1349('0x4')](_0x3d11b2,_0x22547b){for(const _0x4c75cf of _0x22547b[_0x1349('0x6')])_0x4c75cf[_0x1349('0x18')]['contains']('ck-body')&&_0x3d11b2[_0x1349('0x11')][_0x1349('0x1c')](_0x4c75cf);this['listenTo'](_0x22547b[_0x1349('0x6')],_0x1349('0x1c'),(_0x51885c,_0x15eb3e)=>{_0x15eb3e['classList']['contains'](_0x1349('0x13'))&&_0x3d11b2[_0x1349('0x11')]['add'](_0x15eb3e);}),this[_0x1349('0x19')](_0x22547b[_0x1349('0x6')],_0x1349('0x1a'),(_0x462a00,_0x44f277)=>{_0x44f277[_0x1349('0x18')][_0x1349('0x29')]('ck-body')&&_0x3d11b2['focusTracker'][_0x1349('0x1a')](_0x44f277);});}['_calculatePosition'](_0x138409){const _0x3a4a12=this['editor'][_0x1349('0x5')]['get'](_0x1349('0x9')),_0x193db5=[...this[_0x1349('0x21')]['plugins']['get'](_0x292d4e)['archivedThreads']][_0x1349('0x14')](_0x28ca5d=>_0x28ca5d[_0x1349('0x23')]===_0x3a4a12)[_0x1349('0x1f')](_0x37bad7=>_0x37bad7['archivedAt']<_0x138409);return _0x193db5>-0x1?_0x193db5-0x1:this[_0x1349('0x26')][_0x1349('0x27')];}[_0x1349('0xd')](){const _0x2f5c86=this['editor'],_0x3f59b2=this[_0x1349('0x21')][_0x1349('0x12')][_0x1349('0x2b')]('Annotations'),_0x4f4626=_0x4e2b61(_0x2f5c86[_0x1349('0x10')]);_0x4f4626[_0x1349('0xf')][_0x1349('0x2a')]({'icon':_0x498082,'label':_0x3f6b24(_0x2f5c86[_0x1349('0x10')],_0x1349('0xa')),'tooltip':!0x0}),_0x4f4626[_0x1349('0x1b')]['extendTemplate']({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x4f4626['on'](_0x1349('0x7'),(_0x171083,_0x55c411,_0x111ead)=>{this[_0x1349('0xe')]||(this[_0x1349('0xe')]=new _0x5a2ff2(_0x2f5c86[_0x1349('0x10')],this['annotationViews'])),_0x111ead?_0x4f4626[_0x1349('0x1b')]['children']['add'](this[_0x1349('0xe')]):_0x4f4626[_0x1349('0x1b')]['children'][_0x1349('0x1a')](this[_0x1349('0xe')]);});for(const _0x2b1d58 of this['annotationViews']){const _0x8e594f=_0x3f59b2[_0x1349('0xc')](_0x2b1d58[_0x1349('0x17')]);this[_0x1349('0x4')](_0x4f4626,_0x8e594f);}return _0x4f4626[_0x1349('0x19')](this['annotationViews'],_0x1349('0x1c'),(_0x474f58,_0x322123)=>{const _0x39f57a=_0x3f59b2[_0x1349('0xc')](_0x322123[_0x1349('0x17')]);this[_0x1349('0x4')](_0x4f4626,_0x39f57a);}),_0x4f4626[_0x1349('0x19')](this[_0x1349('0x26')],'remove',(_0x549eb4,_0x414d16)=>{const _0x76f000=_0x3f59b2[_0x1349('0xc')](_0x414d16[_0x1349('0x17')]);for(const _0x55036b of _0x76f000[_0x1349('0x6')])_0x55036b[_0x1349('0x18')][_0x1349('0x29')]('ck-body')&&_0x4f4626[_0x1349('0x11')]['remove'](_0x55036b);}),_0x4f4626;}}
23
+ const _0x22f5=['add','requires','archivedAt','mainView','set','indexOf','push','COMMENTS_ARCHIVE','innerView','filter','extendTemplate','find','pluginName','_calculatePosition','buttonView','CommentsRepository','annotationViews','remove','locale','length','_threadToController','config','get','findIndex','focusTracker','archivedThreads','init','_handleAnnotationFocusableElements','panelView','splice','Annotations','classList','commentsArchiveView','editor','_createArchiveUIDropdown','ck-comments-archive-dropdown','focusableElements','collaboration.channelId','channelId','change:isOpen','_pendingThreads','contains','children','view','plugins','ck-body','getByInnerView','componentFactory','listenTo'];(function(_0x1fa400,_0x22f57f){const _0x3da091=function(_0x3ddc98){while(--_0x3ddc98){_0x1fa400['push'](_0x1fa400['shift']());}};_0x3da091(++_0x22f57f);}(_0x22f5,0xe9));const _0x3da0=function(_0x1fa400,_0x22f57f){_0x1fa400=_0x1fa400-0x0;let _0x3da091=_0x22f5[_0x1fa400];return _0x3da091;};import'../../theme/commentsarchive.css';import{Plugin as _0x501768}from'ckeditor5/src/core.js';import{createDropdown as _0x2affbe,ViewCollection as _0x1a4386}from'ckeditor5/src/ui.js';import _0x3f8193 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x37098b}from'../utils/common-translations.js';import _0x5e513a from'./ui/view/commentsarchiveview.js';import _0x5630f9 from'./commentsarchive.js';export default class a extends _0x501768{static get[_0x3da0('0x18')](){return'CommentsArchiveUI';}static get[_0x3da0('0xd')](){return[_0x5630f9];}constructor(_0x5977f0){super(_0x5977f0),this['annotationViews']=new _0x1a4386(),this[_0x3da0('0x3')]=[];}[_0x3da0('0x26')](){this['editor']['ui'][_0x3da0('0xa')][_0x3da0('0xc')]('commentsArchive',()=>this[_0x3da0('0x2e')]());const _0x1fba2f=this[_0x3da0('0x2d')]['plugins'][_0x3da0('0x22')](_0x5630f9),_0x426894=this[_0x3da0('0x2d')][_0x3da0('0x7')][_0x3da0('0x22')](_0x3da0('0x2a')),_0x46a923=this[_0x3da0('0x2d')][_0x3da0('0x7')][_0x3da0('0x22')](_0x3da0('0x1b'));this[_0x3da0('0xb')](_0x1fba2f['archivedThreads'],_0x3da0('0xc'),(_0x243a14,_0x539b9e)=>{const _0x2b257e=this[_0x3da0('0x2d')][_0x3da0('0x21')][_0x3da0('0x22')](_0x3da0('0x0'));if(!_0x2b257e||_0x539b9e[_0x3da0('0x1')]===_0x2b257e){const _0x2665c1=this[_0x3da0('0x19')](_0x539b9e[_0x3da0('0xe')]),_0x278f16=_0x46a923[_0x3da0('0x20')][_0x3da0('0x22')](_0x539b9e);if(!_0x278f16)return void this[_0x3da0('0x3')][_0x3da0('0x12')]({'thread':_0x539b9e,'position':_0x2665c1});const _0x3d9e0e=_0x426894[_0x3da0('0x9')](_0x278f16[_0x3da0('0x6')]);_0x3d9e0e['isVisible']&&_0x426894['_visibleAnnotations'][_0x3da0('0x1d')](_0x3d9e0e),this[_0x3da0('0x1c')]['add'](_0x3d9e0e[_0x3da0('0x6')],_0x2665c1);}}),this['listenTo'](_0x426894['collection'],_0x3da0('0xc'),(_0x3daaee,_0x31729e)=>{const _0x582ad2=this[_0x3da0('0x3')][_0x3da0('0x17')](({thread:_0x555740})=>{const _0x1fbbc0=_0x46a923[_0x3da0('0x20')][_0x3da0('0x22')](_0x555740);return _0x1fbbc0&&_0x31729e[_0x3da0('0x14')]===_0x1fbbc0[_0x3da0('0x6')];});_0x582ad2&&(this[_0x3da0('0x1c')][_0x3da0('0xc')](_0x31729e['view'],_0x582ad2['position']),this[_0x3da0('0x3')][_0x3da0('0x29')](this[_0x3da0('0x3')][_0x3da0('0x11')](_0x582ad2),0x1));}),this[_0x3da0('0xb')](_0x1fba2f[_0x3da0('0x25')],_0x3da0('0x1d'),(_0x5c5cc1,_0x1579e7)=>{const _0x5a6e86=this[_0x3da0('0x2d')][_0x3da0('0x21')][_0x3da0('0x22')](_0x3da0('0x0'));if(!_0x5a6e86||_0x1579e7[_0x3da0('0x1')]===_0x5a6e86){const _0x27e470=_0x46a923[_0x3da0('0x20')][_0x3da0('0x22')](_0x1579e7),_0x44afa6=_0x426894[_0x3da0('0x9')](_0x27e470[_0x3da0('0x6')]);this[_0x3da0('0x1c')]['remove'](_0x44afa6['view']),this['stopListening'](_0x44afa6[_0x3da0('0x30')]);}});}[_0x3da0('0x27')](_0x3d20d7,_0x5dd238){for(const _0x331d35 of _0x5dd238[_0x3da0('0x30')])_0x331d35['classList'][_0x3da0('0x4')](_0x3da0('0x8'))&&_0x3d20d7['focusTracker'][_0x3da0('0xc')](_0x331d35);this[_0x3da0('0xb')](_0x5dd238[_0x3da0('0x30')],_0x3da0('0xc'),(_0x5cb067,_0x10c074)=>{_0x10c074[_0x3da0('0x2b')][_0x3da0('0x4')]('ck-body')&&_0x3d20d7[_0x3da0('0x24')][_0x3da0('0xc')](_0x10c074);}),this['listenTo'](_0x5dd238[_0x3da0('0x30')],_0x3da0('0x1d'),(_0x7783,_0x100e07)=>{_0x100e07['classList'][_0x3da0('0x4')]('ck-body')&&_0x3d20d7['focusTracker'][_0x3da0('0x1d')](_0x100e07);});}['_calculatePosition'](_0x3eff6c){const _0x56f009=this[_0x3da0('0x2d')]['config'][_0x3da0('0x22')](_0x3da0('0x0')),_0x1a18f1=[...this['editor'][_0x3da0('0x7')][_0x3da0('0x22')](_0x5630f9)['archivedThreads']][_0x3da0('0x15')](_0x41cf76=>_0x41cf76[_0x3da0('0x1')]===_0x56f009)[_0x3da0('0x23')](_0x5df46f=>_0x5df46f[_0x3da0('0xe')]<_0x3eff6c);return _0x1a18f1>-0x1?_0x1a18f1-0x1:this[_0x3da0('0x1c')][_0x3da0('0x1f')];}[_0x3da0('0x2e')](){const _0x17ea89=this[_0x3da0('0x2d')],_0x55817e=this[_0x3da0('0x2d')]['plugins'][_0x3da0('0x22')](_0x3da0('0x2a')),_0x21ef72=_0x2affbe(_0x17ea89['locale']);_0x21ef72[_0x3da0('0x1a')][_0x3da0('0x10')]({'icon':_0x3f8193,'label':_0x37098b(_0x17ea89[_0x3da0('0x1e')],_0x3da0('0x13')),'tooltip':!0x0}),_0x21ef72['panelView'][_0x3da0('0x16')]({'attributes':{'class':_0x3da0('0x2f')}}),_0x21ef72['on'](_0x3da0('0x2'),(_0x2afac5,_0x1c5cb0,_0x202a82)=>{this[_0x3da0('0x2c')]||(this['commentsArchiveView']=new _0x5e513a(_0x17ea89['locale'],this[_0x3da0('0x1c')])),_0x202a82?_0x21ef72[_0x3da0('0x28')][_0x3da0('0x5')][_0x3da0('0xc')](this['commentsArchiveView']):_0x21ef72['panelView'][_0x3da0('0x5')][_0x3da0('0x1d')](this[_0x3da0('0x2c')]);});for(const _0x4b4cee of this['annotationViews']){const _0x34b0bc=_0x55817e['getByInnerView'](_0x4b4cee[_0x3da0('0xf')]);this[_0x3da0('0x27')](_0x21ef72,_0x34b0bc);}return _0x21ef72[_0x3da0('0xb')](this[_0x3da0('0x1c')],_0x3da0('0xc'),(_0x589054,_0x3eb8dd)=>{const _0x3bbf62=_0x55817e[_0x3da0('0x9')](_0x3eb8dd['mainView']);this[_0x3da0('0x27')](_0x21ef72,_0x3bbf62);}),_0x21ef72[_0x3da0('0xb')](this[_0x3da0('0x1c')],_0x3da0('0x1d'),(_0x3f19d5,_0x4e8060)=>{const _0x1cd02d=_0x55817e['getByInnerView'](_0x4e8060[_0x3da0('0xf')]);for(const _0x841d09 of _0x1cd02d[_0x3da0('0x30')])_0x841d09[_0x3da0('0x2b')]['contains'](_0x3da0('0x8'))&&_0x21ef72[_0x3da0('0x24')][_0x3da0('0x1d')](_0x841d09);}),_0x21ef72;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4177=['end','removeCommentThread','isResolved','openNewCommentThread','get','_initializeMarkerConverters','_getTextContext','for','text','activeMarker','createPositionBefore','_reconvertMarkers','fetchCommentThread','ignoreResolvedComments','getByInnerView','destroyed','root','substring','change','split','scrollToThreadMarker','isLocal','start','setUnlinkedAt','commands','getItems','_handleThreadMarker','addMarker:','hasCommentThread','rootName','differ','locale','pluginName','elementToElement','getAllMarkersForId','size','state','ariaLiveAnnouncer','isCollapsed','ck-comment-marker','ready','getRange','view','_hasTargetInContent','set','reopenCommentThread','isEqual','comment','newRange','removeMarker','unlinkedAt','$marker','clear','init','add','collaboration.channelId','_initAriaMarkerChangeAnnouncements','schema','registerPostFixer','focus','announce','resolveCommentThread','once','_threadToController','editing','dataToMarker','isAttached','data','delete','consumable','config','archivedAt','_attachMarkerToThread','destroy','switchReadOnly','addCommentThread','item','getChangedMarkers','_attachResolvedThread','low','getCommentThread','managedUsingOperations','_getTargetForId','push','consume','length','markers','change:isThreadsLoadingPaused','removeMarker:','_detachCommentThread','editor','comment:','markerName','ENTER_COMMENT_ANNOUNCEMENT','document','reconvertMarker','context','isThreadsLoadingPaused','registerAnnotation','isObject','attachTo','hasDomSelection','conversion','upcast','listenTo','enqueueChange','setContext','change:activeMarker','model','startsWith','dataDowncast','affectsData','updateMarker','getWalker','hasMarkerForId','plugins'];(function(_0x2827dd,_0x4177ee){const _0x32d1e0=function(_0x52ce68){while(--_0x52ce68){_0x2827dd['push'](_0x2827dd['shift']());}};_0x32d1e0(++_0x4177ee);}(_0x4177,0x10c));const _0x32d1=function(_0x2827dd,_0x4177ee){_0x2827dd=_0x2827dd-0x0;let _0x32d1e0=_0x4177[_0x2827dd];return _0x32d1e0;};import{Plugin as _0x2bd93a}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x5c74cd}from'ckeditor5/src/utils.js';import _0x4536b7 from'./commentsrepository.js';import _0x48befc from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x2b315a,getAllMarkersDomElementsSorted as _0x18ee58}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3add79 from'../annotations/editorannotations.js';import _0x44df12 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x376af8 from'./integrations/importword.js';import _0x2bfe43 from'../annotations/annotations.js';import{getTranslation as _0x364018}from'../utils/common-translations.js';export default class r extends _0x2bd93a{static get['requires'](){return[_0x4536b7,_0x3add79,_0x44df12,_0x376af8];}static get[_0x32d1('0x70')](){return'CommentsEditing';}constructor(_0x3c9910){super(_0x3c9910),this[_0x32d1('0x8')](_0x32d1('0x3d'),!0x0),_0x3c9910['data'][_0x32d1('0x1a')](_0x32d1('0x4'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x32d1('0x59'),null),this['on'](_0x32d1('0x47'),(_0x189f56,_0x24efb5,_0x19a8e3,_0xe253a4)=>{const _0x2f91bb=_0x19a8e3?ot(_0x19a8e3)['id']:null;if(_0x3c9910[_0x32d1('0x48')][_0x32d1('0x62')](()=>{if(_0x2f91bb){const _0x10586c=this['getAllMarkersForId'](_0x2f91bb);for(const _0x252596 of _0x10586c)_0x3c9910[_0x32d1('0x1c')]['reconvertMarker'](_0x252596);}if(_0xe253a4){const {id:_0x5becac}=ot(_0xe253a4),_0x1b55e2=this['getAllMarkersForId'](_0x5becac);for(const _0x36c0a2 of _0x1b55e2)_0x3c9910[_0x32d1('0x1c')]['reconvertMarker'](_0x36c0a2);}}),_0x2f91bb){const _0x36e78d=_0x3c9910[_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7)[_0x32d1('0x2c')](_0x2f91bb);_0x36e78d&&_0x36e78d[_0x32d1('0x52')]&&this[_0x32d1('0x64')](_0x2f91bb);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x32d1('0x11')](){const _0x476be5=this[_0x32d1('0x36')],_0x1e79ac=_0x476be5['plugins']['get'](_0x4536b7),_0x153475=_0x476be5[_0x32d1('0x22')][_0x32d1('0x54')](_0x32d1('0x13'));_0x476be5[_0x32d1('0x68')][_0x32d1('0x12')]('addCommentThread',new _0x48befc(_0x476be5)),this[_0x32d1('0x44')](_0x476be5,'change:isReadOnly',(_0x4e6f37,_0x296f7e,_0x4bdf6d)=>{_0x1e79ac[_0x32d1('0x26')](_0x4bdf6d,_0x476be5[_0x32d1('0x22')][_0x32d1('0x54')]('collaboration.channelId'));}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x27'),_0x153475),(_0x356567,{threadId:_0x374417})=>{const _0x3a6f13=this[_0x32d1('0x36')]['plugins'][_0x32d1('0x54')](_0x4536b7)[_0x32d1('0x2c')](_0x374417);_0x3a6f13&&_0x3a6f13[_0x32d1('0x23')]&&this[_0x32d1('0x2a')](_0x374417);}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x51'),_0x153475),(_0x119338,{threadId:_0x1fc561})=>{_0x476be5[_0x32d1('0x48')][_0x32d1('0x45')]({'isUndoable':!0x1},_0x1e9e26=>{const _0x307186=this['getAllMarkersForId'](_0x1fc561);for(const _0x4c550b of _0x307186)_0x1e9e26[_0x32d1('0xd')](_0x4c550b);});}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x19'),_0x153475),(_0x12454e,{threadId:_0x349fff})=>{(this[_0x32d1('0x2a')](_0x349fff),this[_0x32d1('0x5b')](_0x349fff),this[_0x32d1('0x36')][_0x32d1('0x1c')][_0x32d1('0x6')][_0x32d1('0x41')])&&(this[_0x32d1('0x36')][_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7)[_0x32d1('0x2c')](_0x349fff)[_0x32d1('0xe')]||this[_0x32d1('0x36')][_0x32d1('0x1c')][_0x32d1('0x6')][_0x32d1('0x17')]());},{'priority':_0x32d1('0x2b')}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x9'),_0x153475),(_0x1b94e3,{threadId:_0xd6157d})=>{this[_0x32d1('0x5b')](_0xd6157d);},{'priority':'low'}),this[_0x32d1('0x44')](_0x1e79ac,tt('addComment',_0x153475),(_0x54eb2f,{threadId:_0x2efb56,isFromAdapter:_0x4fae2a})=>{const _0x3bf6b4=this[_0x32d1('0x72')](_0x2efb56);if(_0x4fae2a||0x0==_0x3bf6b4[_0x32d1('0x31')]||!_0x1e79ac[_0x32d1('0x6c')](_0x2efb56))return;0x1===_0x1e79ac[_0x32d1('0x2c')](_0x2efb56)[_0x32d1('0x31')]&&_0x476be5['model']['enqueueChange']({'isUndoable':!0x1},_0x212772=>{for(const _0x51922a of _0x3bf6b4)_0x212772[_0x32d1('0x4c')](_0x51922a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x32d1('0x2b')}),this[_0x32d1('0x55')](),this['_handleMarkerAddAndRemove']();}[_0x32d1('0x25')](){const _0x3319a4=this[_0x32d1('0x36')][_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7),_0x381e1b=this[_0x32d1('0x36')]['config'][_0x32d1('0x54')]('collaboration.channelId');for(const _0x250605 of _0x3319a4['getCommentThreads']({'channelId':_0x381e1b}))_0x3319a4[_0x32d1('0x35')](_0x250605['id']),_0x3319a4['_threads'][_0x32d1('0x20')](_0x250605['id']);super['destroy']();}[_0x32d1('0x4e')](_0x3d2172){return this[_0x32d1('0x72')](_0x3d2172)['length']>0x0;}[_0x32d1('0x72')](_0x5f42da){const _0x2c59c5=[];for(const _0x54eef6 of this[_0x32d1('0x36')]['model']['markers'])_0x54eef6['name'][_0x32d1('0x49')](_0x32d1('0x37')+_0x5f42da)&&_0x2c59c5[_0x32d1('0x2f')](_0x54eef6);return _0x2c59c5;}[_0x32d1('0x64')](_0x448815){const _0x1f0f81=this[_0x32d1('0x2e')](_0x448815);_0x1f0f81&&setTimeout(()=>{this[_0x32d1('0x59')]&&ot(this[_0x32d1('0x59')])['id']===_0x448815&&_0x5c74cd({'target':_0x1f0f81[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x32d1('0x5b')](_0x21fadc){this[_0x32d1('0x36')][_0x32d1('0x48')][_0x32d1('0x62')](()=>{for(const _0x4b1e08 of this[_0x32d1('0x72')](_0x21fadc))this[_0x32d1('0x36')]['editing'][_0x32d1('0x3b')](_0x4b1e08);});}['_attachResolvedThread'](_0x9a6049){const _0x51d772=this[_0x32d1('0x36')][_0x32d1('0x4f')]['get'](_0x4536b7),_0x1524e2=this[_0x32d1('0x36')][_0x32d1('0x4f')][_0x32d1('0x54')](_0x3add79),_0x459258=_0x51d772[_0x32d1('0x2c')](_0x9a6049);if(!_0x459258['isAttached']){const _0x148cc0=_0x459258[_0x32d1('0x40')](()=>this['_getTargetForId'](_0x459258['id']));_0x1524e2[_0x32d1('0x3e')](_0x148cc0),_0x459258[_0x32d1('0x7')]=!0x1;}}['_initializeMarkerConverters'](){const _0x426fa8=this[_0x32d1('0x36')];_0x426fa8[_0x32d1('0x42')][_0x32d1('0x57')]('editingDowncast')['markerToHighlight']({'model':_0x32d1('0xb'),'view':(_0x4338b8,_0x2b5a34)=>{const {id:_0x1fdf23}=ot(_0x4338b8[_0x32d1('0x38')]),_0x1439fb=_0x426fa8[_0x32d1('0x4f')]['get'](_0x4536b7)[_0x32d1('0x2c')](_0x1fdf23),_0x23653c=this[_0x32d1('0x59')]&&ot(this['activeMarker'])['id']===_0x1fdf23;if(_0x1439fb&&_0x1439fb[_0x32d1('0x52')]&&!_0x23653c&&_0x4338b8[_0x32d1('0x28')])return _0x2b5a34[_0x32d1('0x21')][_0x32d1('0x30')](_0x4338b8[_0x32d1('0x28')],_0x32d1('0x6b')+_0x4338b8['markerName']),_0x2b5a34[_0x32d1('0x21')][_0x32d1('0x30')](_0x4338b8['item'],_0x32d1('0x34')+_0x4338b8['markerName']),{'classes':[]};const _0x257ab9=[_0x32d1('0x3')];return _0x23653c&&_0x257ab9[_0x32d1('0x2f')]('ck-comment-marker--active'),{'classes':_0x257ab9,'attributes':{'data-comment':_0x1fdf23}};}}),_0x426fa8[_0x32d1('0x42')]['for'](_0x32d1('0x4a'))['markerToData']({'model':_0x32d1('0xb'),'view':(_0x5c1150,{options:_0x253b70})=>{const _0x27ea45=_0x426fa8[_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7),_0x56e4b7=_0x426fa8[_0x32d1('0x48')]['markers'][_0x32d1('0x54')](_0x5c1150),{id:_0x1e1f16,part:_0x5c6fca}=ot(_0x5c1150);if(_0x56e4b7&&!_0x56e4b7[_0x32d1('0x4b')])return null;if(_0x253b70[_0x32d1('0x5d')]){const _0x3916af=_0x27ea45['getCommentThread'](_0x1e1f16);if(_0x3916af&&_0x3916af[_0x32d1('0x52')])return null;}return{'group':_0x32d1('0xb'),'name':_0x5c6fca?_0x1e1f16+':'+_0x5c6fca:_0x1e1f16};}}),_0x426fa8[_0x32d1('0x42')]['for'](_0x32d1('0x43'))[_0x32d1('0x71')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x52d5cc,{writer:_0x44a03f})=>_0x44a03f['createElement'](_0x32d1('0xf'),{'data-name':'comment:'+_0x52d5cc['getAttribute']('id')})}),_0x426fa8[_0x32d1('0x42')][_0x32d1('0x57')](_0x32d1('0x43'))[_0x32d1('0x1d')]({'view':_0x32d1('0xb')});}['_handleMarkerAddAndRemove'](){const _0x4d5e2b=this[_0x32d1('0x36')],_0x4e283a=_0x4d5e2b['plugins'][_0x32d1('0x54')](_0x4536b7),_0x530cbb=new Set(),_0x2365fc=new Set();_0x4d5e2b[_0x32d1('0x48')]['document'][_0x32d1('0x16')](_0x3f1c3e=>{let _0x27af8a=!0x1;for(const {name:_0xea13ae,data:_0x3bf969}of _0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x3a')][_0x32d1('0x6e')][_0x32d1('0x29')]()){const {group:_0xc9aedd,id:_0x1c687d}=ot(_0xea13ae);let _0xb352d2=_0x3bf969['newRange'];if('comment'!==_0xc9aedd||!_0xb352d2)continue;const _0x42d3ff='$graveyard'===_0xb352d2[_0x32d1('0x60')][_0x32d1('0x6d')];_0x42d3ff||(_0xb352d2=et(_0xb352d2,_0x4d5e2b[_0x32d1('0x48')]),!_0xb352d2||_0xb352d2[_0x32d1('0x2')]||!_0x3bf969[_0x32d1('0xc')]||_0xb352d2[_0x32d1('0xa')](_0x3bf969[_0x32d1('0xc')]))?_0x4d5e2b['model']['hasContent'](_0xb352d2)&&!_0x42d3ff?this[_0x32d1('0x3d')]?_0x530cbb[_0x32d1('0x12')](_0xea13ae):this[_0x32d1('0x6a')](_0xea13ae,_0x1c687d):(_0x2365fc['add'](_0xea13ae),_0x530cbb[_0x32d1('0x20')](_0xea13ae),_0x3f1c3e[_0x32d1('0xd')](_0xea13ae),_0x27af8a=!0x0):(_0x3f1c3e[_0x32d1('0x4c')](_0xea13ae,{'range':_0xb352d2}),_0x27af8a=!0x0);}return _0x27af8a;}),this['on'](_0x32d1('0x33'),(_0x599e05,_0xfc95d6,_0x53e88c)=>{if(!_0x53e88c&&_0x530cbb[_0x32d1('0x73')])for(const _0x3a7d70 of _0x530cbb){const {id:_0x4db35d}=ot(_0x3a7d70);_0x530cbb[_0x32d1('0x20')](_0x3a7d70),_0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x32')]['get'](_0x3a7d70)&&this[_0x32d1('0x6a')](_0x3a7d70,_0x4db35d);}}),this[_0x32d1('0x44')](_0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x3a')],_0x32d1('0x62'),(_0x109263,_0x10391d)=>{for(const {name:_0x555947,data:{newRange:_0x57d760}}of _0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x3a')]['differ'][_0x32d1('0x29')]()){const {group:_0x5f119b,id:_0x4d50e3}=ot(_0x555947);if(_0x32d1('0xb')!==_0x5f119b)continue;const _0x266bac=_0x4e283a[_0x32d1('0x2c')](_0x4d50e3),_0x31edda=this[_0x32d1('0x4e')](_0x4d50e3);_0x266bac&&(_0x266bac[_0x32d1('0x7')]||_0x4d5e2b['editing'][_0x32d1('0x6')][_0x32d1('0x1a')]('render',()=>{const _0x2f98ae=_0x4d5e2b[_0x32d1('0x4f')]['get'](_0x2bfe43),_0x50d52f=_0x4e283a[_0x32d1('0x1b')]['get'](_0x266bac)[_0x32d1('0x6')];_0x2f98ae[_0x32d1('0x5e')](_0x50d52f)['refreshVisibility']();},{'priority':_0x32d1('0x2b')}),_0x266bac[_0x32d1('0x7')]=_0x31edda||!!_0x57d760),_0x57d760||(_0x2365fc[_0x32d1('0x12')](_0x555947),_0x530cbb[_0x32d1('0x20')](_0x555947));}if(_0x10391d[_0x32d1('0x65')])for(const _0x31584d of _0x2365fc){const {id:_0x5c83b3}=ot(_0x31584d),_0x51e069=_0x4e283a[_0x32d1('0x2c')](_0x5c83b3),_0x6cfeb5=this['hasMarkerForId'](_0x5c83b3);_0x530cbb['delete'](_0x31584d),!_0x51e069||_0x6cfeb5||_0x51e069[_0x32d1('0xe')]||_0x51e069[_0x32d1('0x67')](new Date());}_0x2365fc[_0x32d1('0x10')]();});}[_0x32d1('0x2e')](_0x224af1){const _0x27836e=this[_0x32d1('0x36')],_0x1bfe17=this['getAllMarkersForId'](_0x224af1);return _0x18ee58(_0x27836e['editing'],_0x1bfe17);}['_getTextContext'](_0x2afb27){const _0x48f679=this[_0x32d1('0x72')](_0x2afb27);let _0x1c1960='',_0xdcf7bb=!0x1;for(const _0x3b65f2 of _0x48f679){const _0x523b35=_0x3b65f2[_0x32d1('0x5')]();for(const _0x2f2b5b of Array['from'](_0x523b35[_0x32d1('0x69')]()))_0x2f2b5b['is']('$textProxy')?(_0x1c1960&&_0xdcf7bb&&(_0x1c1960+='\x20',_0xdcf7bb=!0x1),_0x1c1960+=_0x2f2b5b[_0x32d1('0x1f')]):_0xdcf7bb=!0x0;_0xdcf7bb=!0x0;}return _0x1c1960[_0x32d1('0x61')](0x0,0x96);}[_0x32d1('0x24')](_0x16ca8a,_0x278edd){const _0x3c2d70=this[_0x32d1('0x36')],_0x540c17=_0x3c2d70[_0x32d1('0x4f')]['get'](_0x4536b7);let _0x23d879=_0x540c17[_0x32d1('0x2c')](_0x278edd);const _0x61849d=_0x3c2d70[_0x32d1('0x22')][_0x32d1('0x54')](_0x32d1('0x13')),_0x11d1b=_0x3c2d70[_0x32d1('0x4f')][_0x32d1('0x54')](_0x3add79);if(_0x23d879&&(_0x23d879[_0x32d1('0xe')]&&_0x23d879['setUnlinkedAt'](null),_0x23d879[_0x32d1('0x1e')]))return _0x23d879;return!this[_0x32d1('0x72')](_0x278edd)[0x0][_0x32d1('0x2d')]?_0x3c2d70[_0x32d1('0x1c')][_0x32d1('0x6')][_0x32d1('0x1a')]('render',()=>{if(_0x540c17[_0x32d1('0x2c')](_0x278edd))return;const _0x12b3e4=_0x3c2d70[_0x32d1('0x4f')]['get'](_0x2bfe43);_0x23d879=_0x540c17[_0x32d1('0x53')]({'channelId':_0x61849d,'threadId':_0x278edd,'target':()=>this[_0x32d1('0x2e')](_0x278edd),'context':{'type':'text','value':this[_0x32d1('0x56')](_0x278edd)}});const _0x47ffcc=_0x540c17[_0x32d1('0x1b')][_0x32d1('0x54')](_0x23d879)[_0x32d1('0x6')],_0x89f517=_0x12b3e4[_0x32d1('0x5e')](_0x47ffcc);_0x89f517&&_0x11d1b[_0x32d1('0x3e')](_0x89f517);},{'priority':'low'}):_0x540c17[_0x32d1('0x5c')]({'channelId':_0x61849d,'threadId':_0x278edd})['then'](_0x38d3fb=>{if(_0x32d1('0x5f')!==_0x3c2d70[_0x32d1('0x0')]){if(_0x23d879=_0x38d3fb,_0x23d879&&!_0x23d879[_0x32d1('0x1e')]){const _0x3e73ac=_0x23d879[_0x32d1('0x40')](()=>this[_0x32d1('0x2e')](_0x278edd));_0x11d1b[_0x32d1('0x3e')](_0x3e73ac),_0x23d879[_0x32d1('0x52')]&&this[_0x32d1('0x5b')](_0x278edd);}else{if(!_0x23d879){const _0x51b34a=this[_0x32d1('0x72')](_0x278edd);_0x3c2d70['model']['change'](_0x265187=>{for(const _0x53f6be of _0x51b34a)_0x265187['removeMarker'](_0x53f6be);});}}}}),_0x23d879;}[_0x32d1('0x6a')](_0x51a07c,_0x121c63){const _0x2e0dfb=this[_0x32d1('0x24')](_0x51a07c,_0x121c63);_0x2e0dfb&&!_0x2e0dfb[_0x32d1('0x3c')]&&_0x2e0dfb[_0x32d1('0x46')]({'type':_0x32d1('0x58'),'value':this[_0x32d1('0x56')](_0x121c63)});}[_0x32d1('0x14')](){const _0x1178f5=this['editor'];_0x2b315a(_0x1178f5[_0x32d1('0x48')],({left:_0x1ef847,entered:_0x4fc690})=>{const _0x4b0651=[];for(const _0x6e13ff of _0x1ef847)if(rt(_0x6e13ff)){_0x4b0651[_0x32d1('0x2f')](_0x364018(_0x1178f5[_0x32d1('0x6f')],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x121c87 of _0x4fc690)if(rt(_0x121c87)){_0x4b0651[_0x32d1('0x2f')](_0x364018(_0x1178f5['locale'],_0x32d1('0x39')));break;}_0x4b0651[_0x32d1('0x31')]&&_0x1178f5['ui'][_0x32d1('0x1')][_0x32d1('0x18')]('comments',_0x4b0651['join']('\x20'));});}}function tt(_0x32c98b,_0x31a1c6){return _0x31a1c6?_0x32c98b+':'+_0x31a1c6:_0x32c98b;}function ot(_0x51de3a){const _0x48a655=_0x51de3a[_0x32d1('0x63')](':');return{'group':_0x48a655[0x0],'id':_0x48a655[0x1],'part':_0x48a655[0x2]};}function et(_0x2482f2,_0x4d51f1){const _0x344c0f=_0x4d51f1[_0x32d1('0x15')],_0x343ad0=_0x4d51f1['createRange'](_0x2482f2['start']);for(const _0x3cbd59 of _0x2482f2[_0x32d1('0x4d')]()){const {type:_0x3bd92e,item:_0x4eb70f,nextPosition:_0x422728}=_0x3cbd59;if(_0x32d1('0x58')===_0x3bd92e||_0x344c0f[_0x32d1('0x3f')](_0x4eb70f)){const _0x59ab1b=_0x4d51f1[_0x32d1('0x5a')](_0x4eb70f);_0x343ad0[_0x32d1('0x2')]&&(_0x343ad0[_0x32d1('0x66')]=_0x59ab1b),_0x343ad0[_0x32d1('0x50')]=_0x422728;}}return _0x343ad0;}function rt(_0x334d9f){return _0x32d1('0xb')===ot(_0x334d9f['name'])['group'];}
23
+ const _0x31f2=['change:isThreadsLoadingPaused','root','enqueueChange','createRange','switchReadOnly','group','_threadToController','low','differ','resolveCommentThread','for','ignoreResolvedComments','_getTextContext','_initAriaMarkerChangeAnnouncements','reopenCommentThread','editingDowncast','isCollapsed','CommentsEditing','push','set','render','removeMarker','upcast','clear','markerName','attachTo','getRange','registerAnnotation','managedUsingOperations','reconvertMarker','hasDomSelection','setUnlinkedAt','LEAVE_COMMENT_ANNOUNCEMENT','activeMarker','conversion','markerToData','once','archivedAt','rootName','isObject','markers','elementToElement','init','context','_reconvertMarkers','hasCommentThread','setContext','$textProxy','size','comments','listenTo','scrollToThreadMarker','getAllMarkersForId','editor','ENTER_COMMENT_ANNOUNCEMENT','getChangedMarkers','removeMarker:','editing','comment','unlinkedAt','substring','item','data','getWalker','_attachMarkerToThread','pluginName','document','_handleMarkerAddAndRemove','hasMarkerForId','delete','collaboration.channelId','_hasTargetInContent','createElement','hasContent','consume','newRange','_detachCommentThread','addComment','change:activeMarker','updateMarker','dataToMarker','model','$marker','text','comment:','consumable','plugins','addCommentThread','$graveyard','getCommentThreads','destroy','isLocal','ck-comment-marker--active','change','isResolved','then','get','isAttached','getItems','getCommentThread','getByInnerView','_handleThreadMarker','ready','_getTargetForId','createPositionBefore','start','removeCommentThread','view','config','locale','markerToHighlight','addMarker:','focus','ck-comment-marker','isThreadsLoadingPaused','add','announce','_initializeMarkerConverters','commands','name','dataDowncast','fetchCommentThread','length','_threads','ariaLiveAnnouncer','_attachResolvedThread'];(function(_0x3e294a,_0x31f2e9){const _0x32093a=function(_0x43bb1a){while(--_0x43bb1a){_0x3e294a['push'](_0x3e294a['shift']());}};_0x32093a(++_0x31f2e9);}(_0x31f2,0x169));const _0x3209=function(_0x3e294a,_0x31f2e9){_0x3e294a=_0x3e294a-0x0;let _0x32093a=_0x31f2[_0x3e294a];return _0x32093a;};import{Plugin as _0x24afde}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x405bf2}from'ckeditor5/src/utils.js';import _0x2f93de from'./commentsrepository.js';import _0x56630d from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x5f2058,getAllMarkersDomElementsSorted as _0x1ba9c9}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x22df07 from'../annotations/editorannotations.js';import _0x14224d from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x2f3c56 from'./integrations/importword.js';import _0x476c26 from'../annotations/annotations.js';import{getTranslation as _0x1c7e24}from'../utils/common-translations.js';export default class r extends _0x24afde{static get['requires'](){return[_0x2f93de,_0x22df07,_0x14224d,_0x2f3c56];}static get[_0x3209('0x52')](){return _0x3209('0x22');}constructor(_0x26be7a){super(_0x26be7a),this[_0x3209('0x24')](_0x3209('0x5'),!0x0),_0x26be7a[_0x3209('0x4f')][_0x3209('0x35')](_0x3209('0x77'),()=>this[_0x3209('0x5')]=!0x1),this[_0x3209('0x24')](_0x3209('0x32'),null),this['on'](_0x3209('0x5f'),(_0x3b0f12,_0x5e4092,_0x30fd9c,_0x200fd8)=>{const _0x26dc3c=_0x30fd9c?ot(_0x30fd9c)['id']:null;if(_0x26be7a['model'][_0x3209('0x6e')](()=>{if(_0x26dc3c){const _0x53a334=this[_0x3209('0x45')](_0x26dc3c);for(const _0x148f7e of _0x53a334)_0x26be7a[_0x3209('0x4a')][_0x3209('0x2e')](_0x148f7e);}if(_0x200fd8){const {id:_0x29caa2}=ot(_0x200fd8),_0x6c249e=this[_0x3209('0x45')](_0x29caa2);for(const _0x3af6cf of _0x6c249e)_0x26be7a['editing'][_0x3209('0x2e')](_0x3af6cf);}}),_0x26dc3c){const _0x5a8ab2=_0x26be7a['plugins']['get'](_0x2f93de)[_0x3209('0x74')](_0x26dc3c);_0x5a8ab2&&_0x5a8ab2[_0x3209('0x6f')]&&this[_0x3209('0x44')](_0x26dc3c);}}),this[_0x3209('0x1e')]();}[_0x3209('0x3b')](){const _0x14ab04=this[_0x3209('0x46')],_0x338399=_0x14ab04[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de),_0x3a6ace=_0x14ab04[_0x3209('0x7d')][_0x3209('0x71')]('collaboration.channelId');_0x14ab04[_0x3209('0x9')][_0x3209('0x6')](_0x3209('0x68'),new _0x56630d(_0x14ab04)),this['listenTo'](_0x14ab04,'change:isReadOnly',(_0xb90a1,_0x39b597,_0x2b87fc)=>{_0x338399[_0x3209('0x15')](_0x2b87fc,_0x14ab04[_0x3209('0x7d')]['get'](_0x3209('0x57')));}),this[_0x3209('0x43')](_0x338399,tt('addCommentThread',_0x3a6ace),(_0x12c054,{threadId:_0x411613})=>{const _0x57b0b1=this[_0x3209('0x46')][_0x3209('0x67')]['get'](_0x2f93de)[_0x3209('0x74')](_0x411613);_0x57b0b1&&_0x57b0b1[_0x3209('0x36')]&&this[_0x3209('0x10')](_0x411613);}),this[_0x3209('0x43')](_0x338399,tt(_0x3209('0x7b'),_0x3a6ace),(_0x1979e6,{threadId:_0x1c801c})=>{_0x14ab04['model'][_0x3209('0x13')]({'isUndoable':!0x1},_0x2d11d7=>{const _0x27f7a1=this[_0x3209('0x45')](_0x1c801c);for(const _0x70c3e9 of _0x27f7a1)_0x2d11d7['removeMarker'](_0x70c3e9);});}),this['listenTo'](_0x338399,tt(_0x3209('0x1a'),_0x3a6ace),(_0x486f85,{threadId:_0x3cc88f})=>{(this['_attachResolvedThread'](_0x3cc88f),this[_0x3209('0x3d')](_0x3cc88f),this[_0x3209('0x46')][_0x3209('0x4a')][_0x3209('0x7c')][_0x3209('0x2f')])&&(this[_0x3209('0x46')][_0x3209('0x67')][_0x3209('0x71')](_0x2f93de)[_0x3209('0x74')](_0x3cc88f)[_0x3209('0x4c')]||this[_0x3209('0x46')]['editing']['view'][_0x3209('0x3')]());},{'priority':_0x3209('0x18')}),this[_0x3209('0x43')](_0x338399,tt(_0x3209('0x1f'),_0x3a6ace),(_0x4073eb,{threadId:_0x29c577})=>{this['_reconvertMarkers'](_0x29c577);},{'priority':'low'}),this[_0x3209('0x43')](_0x338399,tt(_0x3209('0x5e'),_0x3a6ace),(_0x11dff6,{threadId:_0x3b8758,isFromAdapter:_0xe5c627})=>{const _0x2a4261=this[_0x3209('0x45')](_0x3b8758);if(_0xe5c627||0x0==_0x2a4261[_0x3209('0xd')]||!_0x338399[_0x3209('0x3e')](_0x3b8758))return;0x1===_0x338399[_0x3209('0x74')](_0x3b8758)[_0x3209('0xd')]&&_0x14ab04[_0x3209('0x62')][_0x3209('0x13')]({'isUndoable':!0x1},_0x489949=>{for(const _0x5c3f22 of _0x2a4261)_0x489949[_0x3209('0x60')](_0x5c3f22,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x3209('0x8')](),this[_0x3209('0x54')]();}[_0x3209('0x6b')](){const _0x2ad92b=this[_0x3209('0x46')][_0x3209('0x67')]['get'](_0x2f93de),_0x444e55=this[_0x3209('0x46')][_0x3209('0x7d')][_0x3209('0x71')](_0x3209('0x57'));for(const _0x7bd2a9 of _0x2ad92b[_0x3209('0x6a')]({'channelId':_0x444e55}))_0x2ad92b[_0x3209('0x5d')](_0x7bd2a9['id']),_0x2ad92b[_0x3209('0xe')][_0x3209('0x56')](_0x7bd2a9['id']);super[_0x3209('0x6b')]();}['hasMarkerForId'](_0x2c8f3c){return this['getAllMarkersForId'](_0x2c8f3c)[_0x3209('0xd')]>0x0;}['getAllMarkersForId'](_0x2b3482){const _0x300b61=[];for(const _0x568ac4 of this[_0x3209('0x46')][_0x3209('0x62')]['markers'])_0x568ac4[_0x3209('0xa')]['startsWith'](_0x3209('0x65')+_0x2b3482)&&_0x300b61['push'](_0x568ac4);return _0x300b61;}[_0x3209('0x44')](_0x2a52cc){const _0x4128a0=this[_0x3209('0x78')](_0x2a52cc);_0x4128a0&&setTimeout(()=>{this[_0x3209('0x32')]&&ot(this[_0x3209('0x32')])['id']===_0x2a52cc&&_0x405bf2({'target':_0x4128a0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x5ad8a3){this['editor'][_0x3209('0x62')][_0x3209('0x6e')](()=>{for(const _0x13dc78 of this[_0x3209('0x45')](_0x5ad8a3))this[_0x3209('0x46')][_0x3209('0x4a')]['reconvertMarker'](_0x13dc78);});}[_0x3209('0x10')](_0x39b92b){const _0x4ba212=this['editor'][_0x3209('0x67')]['get'](_0x2f93de),_0x54a256=this[_0x3209('0x46')][_0x3209('0x67')][_0x3209('0x71')](_0x22df07),_0x2445a5=_0x4ba212[_0x3209('0x74')](_0x39b92b);if(!_0x2445a5[_0x3209('0x72')]){const _0x3b2280=_0x2445a5['attachTo'](()=>this['_getTargetForId'](_0x2445a5['id']));_0x54a256[_0x3209('0x2c')](_0x3b2280),_0x2445a5[_0x3209('0x58')]=!0x1;}}[_0x3209('0x8')](){const _0x3c9fd2=this[_0x3209('0x46')];_0x3c9fd2['conversion'][_0x3209('0x1b')](_0x3209('0x20'))[_0x3209('0x1')]({'model':_0x3209('0x4b'),'view':(_0x56ef7e,_0x2c8668)=>{const {id:_0x290ca5}=ot(_0x56ef7e[_0x3209('0x29')]),_0x566881=_0x3c9fd2[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de)['getCommentThread'](_0x290ca5),_0x1bf558=this[_0x3209('0x32')]&&ot(this[_0x3209('0x32')])['id']===_0x290ca5;if(_0x566881&&_0x566881[_0x3209('0x6f')]&&!_0x1bf558&&_0x56ef7e[_0x3209('0x4e')])return _0x2c8668[_0x3209('0x66')][_0x3209('0x5b')](_0x56ef7e[_0x3209('0x4e')],_0x3209('0x2')+_0x56ef7e[_0x3209('0x29')]),_0x2c8668[_0x3209('0x66')]['consume'](_0x56ef7e[_0x3209('0x4e')],_0x3209('0x49')+_0x56ef7e['markerName']),{'classes':[]};const _0x2ef5fb=[_0x3209('0x4')];return _0x1bf558&&_0x2ef5fb['push'](_0x3209('0x6d')),{'classes':_0x2ef5fb,'attributes':{'data-comment':_0x290ca5}};}}),_0x3c9fd2[_0x3209('0x33')][_0x3209('0x1b')](_0x3209('0xb'))[_0x3209('0x34')]({'model':_0x3209('0x4b'),'view':(_0x369c0d,{options:_0x16679c})=>{const _0x2c7206=_0x3c9fd2[_0x3209('0x67')]['get'](_0x2f93de),_0x5114f4=_0x3c9fd2[_0x3209('0x62')][_0x3209('0x39')][_0x3209('0x71')](_0x369c0d),{id:_0x186791,part:_0x55fc12}=ot(_0x369c0d);if(_0x5114f4&&!_0x5114f4['affectsData'])return null;if(_0x16679c[_0x3209('0x1c')]){const _0x4854da=_0x2c7206['getCommentThread'](_0x186791);if(_0x4854da&&_0x4854da['isResolved'])return null;}return{'group':_0x3209('0x4b'),'name':_0x55fc12?_0x186791+':'+_0x55fc12:_0x186791};}}),_0x3c9fd2[_0x3209('0x33')][_0x3209('0x1b')]('upcast')[_0x3209('0x3a')]({'view':{'name':_0x3209('0x4b'),'attributes':{'id':/^\w/}},'model':(_0x17cf66,{writer:_0x41899d})=>_0x41899d[_0x3209('0x59')](_0x3209('0x63'),{'data-name':_0x3209('0x65')+_0x17cf66['getAttribute']('id')})}),_0x3c9fd2[_0x3209('0x33')][_0x3209('0x1b')](_0x3209('0x27'))[_0x3209('0x61')]({'view':_0x3209('0x4b')});}[_0x3209('0x54')](){const _0x18a648=this[_0x3209('0x46')],_0x5556da=_0x18a648[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de),_0x10d377=new Set(),_0x1b0c04=new Set();_0x18a648[_0x3209('0x62')]['document']['registerPostFixer'](_0x34a91e=>{let _0x4e5593=!0x1;for(const {name:_0x5d3278,data:_0x39d24c}of _0x18a648[_0x3209('0x62')]['document']['differ'][_0x3209('0x48')]()){const {group:_0x53fab4,id:_0x379cca}=ot(_0x5d3278);let _0x8d7763=_0x39d24c[_0x3209('0x5c')];if(_0x3209('0x4b')!==_0x53fab4||!_0x8d7763)continue;const _0x202bda=_0x3209('0x69')===_0x8d7763[_0x3209('0x12')][_0x3209('0x37')];_0x202bda||(_0x8d7763=et(_0x8d7763,_0x18a648[_0x3209('0x62')]),!_0x8d7763||_0x8d7763['isCollapsed']||!_0x39d24c[_0x3209('0x5c')]||_0x8d7763['isEqual'](_0x39d24c[_0x3209('0x5c')]))?_0x18a648['model'][_0x3209('0x5a')](_0x8d7763)&&!_0x202bda?this[_0x3209('0x5')]?_0x10d377[_0x3209('0x6')](_0x5d3278):this[_0x3209('0x76')](_0x5d3278,_0x379cca):(_0x1b0c04[_0x3209('0x6')](_0x5d3278),_0x10d377[_0x3209('0x56')](_0x5d3278),_0x34a91e[_0x3209('0x26')](_0x5d3278),_0x4e5593=!0x0):(_0x34a91e[_0x3209('0x60')](_0x5d3278,{'range':_0x8d7763}),_0x4e5593=!0x0);}return _0x4e5593;}),this['on'](_0x3209('0x11'),(_0x406bb8,_0x4a4d58,_0x4d473f)=>{if(!_0x4d473f&&_0x10d377[_0x3209('0x41')])for(const _0x4a7205 of _0x10d377){const {id:_0x3d036f}=ot(_0x4a7205);_0x10d377[_0x3209('0x56')](_0x4a7205),_0x18a648['model'][_0x3209('0x39')][_0x3209('0x71')](_0x4a7205)&&this[_0x3209('0x76')](_0x4a7205,_0x3d036f);}}),this[_0x3209('0x43')](_0x18a648[_0x3209('0x62')]['document'],_0x3209('0x6e'),(_0x59555a,_0x3c0c52)=>{for(const {name:_0x4bf705,data:{newRange:_0x481f74}}of _0x18a648[_0x3209('0x62')][_0x3209('0x53')][_0x3209('0x19')][_0x3209('0x48')]()){const {group:_0x289a85,id:_0x37d4fc}=ot(_0x4bf705);if('comment'!==_0x289a85)continue;const _0x105cfb=_0x5556da[_0x3209('0x74')](_0x37d4fc),_0x7ac725=this[_0x3209('0x55')](_0x37d4fc);_0x105cfb&&(_0x105cfb[_0x3209('0x58')]||_0x18a648[_0x3209('0x4a')][_0x3209('0x7c')][_0x3209('0x35')]('render',()=>{const _0x20fd79=_0x18a648[_0x3209('0x67')][_0x3209('0x71')](_0x476c26),_0x39752b=_0x5556da[_0x3209('0x17')][_0x3209('0x71')](_0x105cfb)['view'];_0x20fd79[_0x3209('0x75')](_0x39752b)['refreshVisibility']();},{'priority':'low'}),_0x105cfb[_0x3209('0x58')]=_0x7ac725||!!_0x481f74),_0x481f74||(_0x1b0c04[_0x3209('0x6')](_0x4bf705),_0x10d377[_0x3209('0x56')](_0x4bf705));}if(_0x3c0c52[_0x3209('0x6c')])for(const _0x4af269 of _0x1b0c04){const {id:_0xac8263}=ot(_0x4af269),_0x2419bc=_0x5556da['getCommentThread'](_0xac8263),_0x16f8d1=this[_0x3209('0x55')](_0xac8263);_0x10d377['delete'](_0x4af269),!_0x2419bc||_0x16f8d1||_0x2419bc[_0x3209('0x4c')]||_0x2419bc['setUnlinkedAt'](new Date());}_0x1b0c04[_0x3209('0x28')]();});}['_getTargetForId'](_0xc2fb05){const _0xfa6182=this[_0x3209('0x46')],_0x5d7f9e=this[_0x3209('0x45')](_0xc2fb05);return _0x1ba9c9(_0xfa6182[_0x3209('0x4a')],_0x5d7f9e);}[_0x3209('0x1d')](_0x2d1c93){const _0x21fff0=this[_0x3209('0x45')](_0x2d1c93);let _0x121369='',_0x523acc=!0x1;for(const _0x1d8573 of _0x21fff0){const _0x46e8ff=_0x1d8573[_0x3209('0x2b')]();for(const _0x283eda of Array['from'](_0x46e8ff[_0x3209('0x73')]()))_0x283eda['is'](_0x3209('0x40'))?(_0x121369&&_0x523acc&&(_0x121369+='\x20',_0x523acc=!0x1),_0x121369+=_0x283eda[_0x3209('0x4f')]):_0x523acc=!0x0;_0x523acc=!0x0;}return _0x121369[_0x3209('0x4d')](0x0,0x96);}['_attachMarkerToThread'](_0x312c78,_0x56249d){const _0x40b33a=this['editor'],_0x33cccd=_0x40b33a[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de);let _0x43361d=_0x33cccd[_0x3209('0x74')](_0x56249d);const _0x1a0650=_0x40b33a['config']['get']('collaboration.channelId'),_0x48ce0b=_0x40b33a[_0x3209('0x67')][_0x3209('0x71')](_0x22df07);if(_0x43361d&&(_0x43361d[_0x3209('0x4c')]&&_0x43361d[_0x3209('0x30')](null),_0x43361d['isAttached']))return _0x43361d;return!this[_0x3209('0x45')](_0x56249d)[0x0][_0x3209('0x2d')]?_0x40b33a[_0x3209('0x4a')]['view']['once'](_0x3209('0x25'),()=>{if(_0x33cccd[_0x3209('0x74')](_0x56249d))return;const _0x3fcf25=_0x40b33a[_0x3209('0x67')][_0x3209('0x71')](_0x476c26);_0x43361d=_0x33cccd['openNewCommentThread']({'channelId':_0x1a0650,'threadId':_0x56249d,'target':()=>this['_getTargetForId'](_0x56249d),'context':{'type':_0x3209('0x64'),'value':this[_0x3209('0x1d')](_0x56249d)}});const _0x17f568=_0x33cccd[_0x3209('0x17')][_0x3209('0x71')](_0x43361d)[_0x3209('0x7c')],_0x5223f7=_0x3fcf25[_0x3209('0x75')](_0x17f568);_0x5223f7&&_0x48ce0b[_0x3209('0x2c')](_0x5223f7);},{'priority':_0x3209('0x18')}):_0x33cccd[_0x3209('0xc')]({'channelId':_0x1a0650,'threadId':_0x56249d})[_0x3209('0x70')](_0x20f5fd=>{if('destroyed'!==_0x40b33a['state']){if(_0x43361d=_0x20f5fd,_0x43361d&&!_0x43361d[_0x3209('0x72')]){const _0x2082be=_0x43361d[_0x3209('0x2a')](()=>this[_0x3209('0x78')](_0x56249d));_0x48ce0b[_0x3209('0x2c')](_0x2082be),_0x43361d[_0x3209('0x6f')]&&this[_0x3209('0x3d')](_0x56249d);}else{if(!_0x43361d){const _0x19a60d=this['getAllMarkersForId'](_0x56249d);_0x40b33a['model'][_0x3209('0x6e')](_0x2983fb=>{for(const _0x10d085 of _0x19a60d)_0x2983fb['removeMarker'](_0x10d085);});}}}}),_0x43361d;}[_0x3209('0x76')](_0x4e9ada,_0x547c80){const _0xeb572f=this[_0x3209('0x51')](_0x4e9ada,_0x547c80);_0xeb572f&&!_0xeb572f[_0x3209('0x3c')]&&_0xeb572f[_0x3209('0x3f')]({'type':'text','value':this[_0x3209('0x1d')](_0x547c80)});}[_0x3209('0x1e')](){const _0x224bc8=this[_0x3209('0x46')];_0x5f2058(_0x224bc8[_0x3209('0x62')],({left:_0x48b825,entered:_0x3c65bf})=>{const _0x4899e1=[];for(const _0x4ab9b1 of _0x48b825)if(rt(_0x4ab9b1)){_0x4899e1[_0x3209('0x23')](_0x1c7e24(_0x224bc8[_0x3209('0x0')],_0x3209('0x31')));break;}for(const _0x51daa7 of _0x3c65bf)if(rt(_0x51daa7)){_0x4899e1['push'](_0x1c7e24(_0x224bc8['locale'],_0x3209('0x47')));break;}_0x4899e1[_0x3209('0xd')]&&_0x224bc8['ui'][_0x3209('0xf')][_0x3209('0x7')](_0x3209('0x42'),_0x4899e1['join']('\x20'));});}}function tt(_0x43fe82,_0x544e3b){return _0x544e3b?_0x43fe82+':'+_0x544e3b:_0x43fe82;}function ot(_0x59de5a){const _0x370043=_0x59de5a['split'](':');return{'group':_0x370043[0x0],'id':_0x370043[0x1],'part':_0x370043[0x2]};}function et(_0x71e4c7,_0x5d614b){const _0x1f7d52=_0x5d614b['schema'],_0x50aa27=_0x5d614b[_0x3209('0x14')](_0x71e4c7[_0x3209('0x7a')]);for(const _0x2e1734 of _0x71e4c7[_0x3209('0x50')]()){const {type:_0x35c7da,item:_0x10f2d9,nextPosition:_0x24497c}=_0x2e1734;if('text'===_0x35c7da||_0x1f7d52[_0x3209('0x38')](_0x10f2d9)){const _0x1da1af=_0x5d614b[_0x3209('0x79')](_0x10f2d9);_0x50aa27[_0x3209('0x21')]&&(_0x50aa27['start']=_0x1da1af),_0x50aa27['end']=_0x24497c;}}return _0x50aa27;}function rt(_0x359be6){return _0x3209('0x4b')===ot(_0x359be6[_0x3209('0xa')])[_0x3209('0x16')];}