@ckeditor/ckeditor5-comments 0.0.0-nightly-20231207.0 → 0.0.0-nightly-20231209.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 _0x5e84=['element','ck-annotation-wrapper','set','createCollection','content','mainView','destroy','render','add','ck-rounded-corners','isDirty','bindTemplate','clientHeight','length','ck-annotation-wrapper--active','keystrokes','type','focusTracker','isActive','height','fire','_updateHeight','listenTo','setTemplate','attach','Esc','clear','focus'];(function(_0x13ca42,_0x5e8482){const _0x4a7324=function(_0x43bfea){while(--_0x43bfea){_0x13ca42['push'](_0x13ca42['shift']());}};_0x4a7324(++_0x5e8482);}(_0x5e84,0xb7));const _0x4a73=function(_0x13ca42,_0x5e8482){_0x13ca42=_0x13ca42-0x0;let _0x4a7324=_0x5e84[_0x13ca42];return _0x4a7324;};import{View as _0x9478f6}from'ckeditor5/src/ui';import{FocusTracker as _0x30aa13,KeystrokeHandler as _0x32519c,uid as _0x1bd0c}from'ckeditor5/src/utils';import _0x135006 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x9478f6{constructor(_0x4215a5,_0xde9fe5){super(_0x4215a5),this['id']=_0x1bd0c(),this['focusTracker']=new _0x30aa13(),this[_0x4a73('0x0')]=new _0x32519c(),this[_0x4a73('0x0')]['set'](_0x4a73('0xa'),(_0x433911,_0x4fab74)=>this[_0x4a73('0x5')](_0x4a73('0xa'),_0x4fab74)),this[_0x4a73('0xf')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x4a73('0x4'),0x0),this['set'](_0x4a73('0x3'),!0x1),this[_0x4a73('0xf')](_0x4a73('0x17'),!0x1),this['set'](_0x4a73('0x1a'),0x0),this[_0x4a73('0xf')](_0x4a73('0x1'),''),this['_mutationObserver']=_0x135006(()=>this[_0x4a73('0x6')]()),this['content']=this[_0x4a73('0x10')](),this[_0x4a73('0x11')][_0x4a73('0x15')](_0xde9fe5),this[_0x4a73('0x12')]=_0xde9fe5;const _0x5282f2=this[_0x4a73('0x18')];this[_0x4a73('0x8')]({'tag':'div','attributes':{'class':['ck',_0x4a73('0xe'),_0x4a73('0x16'),_0x5282f2['if'](_0x4a73('0x3'),_0x4a73('0x1b'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x4a73('0x14')](),this['focusTracker'][_0x4a73('0x15')](this[_0x4a73('0xd')]),this[_0x4a73('0x0')][_0x4a73('0x7')](this[_0x4a73('0xd')]),this['_mutationObserver'][_0x4a73('0x9')](this[_0x4a73('0xd')]);}['destroy'](){this[_0x4a73('0x11')][_0x4a73('0xb')](),this[_0x4a73('0x0')]['destroy'](),this[_0x4a73('0x2')][_0x4a73('0x13')](),this['_mutationObserver']['detach'](),super[_0x4a73('0x13')]();}[_0x4a73('0xc')](){this[_0x4a73('0xd')][_0x4a73('0xc')]();}[_0x4a73('0x6')](){const _0x1d7b4b=this['element'][_0x4a73('0x19')];_0x1d7b4b&&(this[_0x4a73('0x4')]=_0x1d7b4b);}}
23
+ const _0x1dc7=['render','set','isDirty','div','focusTracker','fire','_mutationObserver','_updateHeight','clear','keystrokes','element','ck-annotation-wrapper--active','focus','Esc','height','targetRect','type','length','destroy','content'];(function(_0x11c159,_0x1dc7b7){const _0x35414a=function(_0x52be1a){while(--_0x52be1a){_0x11c159['push'](_0x11c159['shift']());}};_0x35414a(++_0x1dc7b7);}(_0x1dc7,0xae));const _0x3541=function(_0x11c159,_0x1dc7b7){_0x11c159=_0x11c159-0x0;let _0x35414a=_0x1dc7[_0x11c159];return _0x35414a;};import{View as _0x57eddb}from'ckeditor5/src/ui';import{FocusTracker as _0x23c8a4,KeystrokeHandler as _0x242c47,uid as _0x2b5b84}from'ckeditor5/src/utils';import _0x445ca0 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x57eddb{constructor(_0x45fbe5,_0x315d80){super(_0x45fbe5),this['id']=_0x2b5b84(),this['focusTracker']=new _0x23c8a4(),this[_0x3541('0xf')]=new _0x242c47(),this[_0x3541('0xf')][_0x3541('0x7')](_0x3541('0x13'),(_0x256b7d,_0x99a56f)=>this[_0x3541('0xb')](_0x3541('0x13'),_0x99a56f)),this[_0x3541('0x7')](_0x3541('0x1'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3541('0x7')](_0x3541('0x0'),0x0),this[_0x3541('0x7')]('isActive',!0x1),this[_0x3541('0x7')](_0x3541('0x8'),!0x1),this[_0x3541('0x7')](_0x3541('0x3'),0x0),this[_0x3541('0x7')](_0x3541('0x2'),''),this[_0x3541('0xc')]=_0x445ca0(()=>this[_0x3541('0xd')]()),this[_0x3541('0x5')]=this['createCollection'](),this[_0x3541('0x5')]['add'](_0x315d80),this['mainView']=_0x315d80;const _0x2ec612=this['bindTemplate'];this['setTemplate']({'tag':_0x3541('0x9'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2ec612['if']('isActive',_0x3541('0x11'))],'tabindex':-0x1},'children':this[_0x3541('0x5')]});}[_0x3541('0x6')](){super[_0x3541('0x6')](),this[_0x3541('0xa')]['add'](this[_0x3541('0x10')]),this[_0x3541('0xf')]['listenTo'](this[_0x3541('0x10')]),this['_mutationObserver']['attach'](this[_0x3541('0x10')]);}[_0x3541('0x4')](){this['content'][_0x3541('0xe')](),this['keystrokes'][_0x3541('0x4')](),this[_0x3541('0xa')][_0x3541('0x4')](),this[_0x3541('0xc')]['detach'](),super['destroy']();}['focus'](){this[_0x3541('0x10')][_0x3541('0x12')]();}[_0x3541('0xd')](){const _0x50284e=this[_0x3541('0x10')]['clientHeight'];_0x50284e&&(this[_0x3541('0x0')]=_0x50284e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc578=['detach','_mutationObserver','top','set','updateHeight','content','clientHeight','ck-sidebar-item','render','height','_targetTop','attach','bottom','createCollection','isAnimationDisabled','clear','bind','setTemplate','destroy'];(function(_0x34e15e,_0xc5787d){const _0x260493=function(_0x428b15){while(--_0x428b15){_0x34e15e['push'](_0x34e15e['shift']());}};_0x260493(++_0xc5787d);}(_0xc578,0x142));const _0x2604=function(_0x34e15e,_0xc5787d){_0x34e15e=_0x34e15e-0x0;let _0x260493=_0xc578[_0x34e15e];return _0x260493;};import{View as _0x57cb9b}from'ckeditor5/src/ui';import{toUnit as _0x421fe9}from'ckeditor5/src/utils';import _0x8b79db from'../../utils/createmutationobserver';const jt=_0x421fe9('px');export default class C extends _0x57cb9b{constructor(_0x26b65e){super(_0x26b65e),this[_0x2604('0x4')]('top',0x0),this[_0x2604('0x4')](_0x2604('0xa'),0x0),this[_0x2604('0x11')](_0x2604('0xd'))['to'](this,_0x2604('0x3'),this,'height',(_0x3ecb06,_0x2d7e8c)=>_0x3ecb06+_0x2d7e8c),this[_0x2604('0x4')](_0x2604('0xf'),!0x1),this['_mutationObserver']=_0x8b79db(()=>this[_0x2604('0x5')]()),this[_0x2604('0xb')]=null,this[_0x2604('0x6')]=this[_0x2604('0xe')]();const _0x5e768b=this['bindTemplate'];this[_0x2604('0x12')]({'tag':'div','attributes':{'class':[_0x2604('0x8'),_0x5e768b['to'](_0x2604('0xf'),_0x2ddfe0=>_0x2ddfe0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5e768b['to']('top',_0x14a7ec=>jt(_0x14a7ec))}},'children':this[_0x2604('0x6')]});}[_0x2604('0x9')](){super['render'](),this[_0x2604('0x2')][_0x2604('0xc')](this['element']);}[_0x2604('0x5')](){const _0x3ff417=this['element'][_0x2604('0x7')];_0x3ff417&&(this[_0x2604('0xa')]=_0x3ff417);}[_0x2604('0x0')](){this[_0x2604('0x6')][_0x2604('0x10')](),this[_0x2604('0x2')][_0x2604('0x1')](),super['destroy']();}}
23
+ const _0x33b7=['set','bindTemplate','ck-sidebar-item--no-animation','clear','setTemplate','destroy','_mutationObserver','height','element','createCollection','ck-sidebar-item','top','clientHeight','_targetTop','bottom','content','isAnimationDisabled','attach','bind','updateHeight'];(function(_0x581760,_0x33b7e7){const _0x332219=function(_0x2cfbc1){while(--_0x2cfbc1){_0x581760['push'](_0x581760['shift']());}};_0x332219(++_0x33b7e7);}(_0x33b7,0x1d6));const _0x3322=function(_0x581760,_0x33b7e7){_0x581760=_0x581760-0x0;let _0x332219=_0x33b7[_0x581760];return _0x332219;};import{View as _0x4422c5}from'ckeditor5/src/ui';import{toUnit as _0x3e1439}from'ckeditor5/src/utils';import _0x4f13a3 from'../../utils/createmutationobserver';const jt=_0x3e1439('px');export default class C extends _0x4422c5{constructor(_0x1222f7){super(_0x1222f7),this[_0x3322('0xa')](_0x3322('0x1'),0x0),this['set'](_0x3322('0x11'),0x0),this[_0x3322('0x8')](_0x3322('0x4'))['to'](this,_0x3322('0x1'),this,_0x3322('0x11'),(_0x33f185,_0x319450)=>_0x33f185+_0x319450),this['set'](_0x3322('0x6'),!0x1),this[_0x3322('0x10')]=_0x4f13a3(()=>this[_0x3322('0x9')]()),this[_0x3322('0x3')]=null,this[_0x3322('0x5')]=this[_0x3322('0x13')]();const _0x5321d8=this[_0x3322('0xb')];this[_0x3322('0xe')]({'tag':'div','attributes':{'class':[_0x3322('0x0'),_0x5321d8['to']('isAnimationDisabled',_0xb7fc7c=>_0xb7fc7c?_0x3322('0xc'):'')],'style':{'top':_0x5321d8['to']('top',_0x50ab84=>jt(_0x50ab84))}},'children':this[_0x3322('0x5')]});}['render'](){super['render'](),this[_0x3322('0x10')][_0x3322('0x7')](this[_0x3322('0x12')]);}[_0x3322('0x9')](){const _0x510845=this[_0x3322('0x12')][_0x3322('0x2')];_0x510845&&(this[_0x3322('0x11')]=_0x510845);}[_0x3322('0xf')](){this[_0x3322('0x5')][_0x3322('0xd')](),this[_0x3322('0x10')]['detach'](),super[_0x3322('0xf')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ad1=['minHeight','number','bindTemplate','div','createCollection','set'];(function(_0xb0b3a4,_0x4ad178){const _0x3ba97f=function(_0xac8ee8){while(--_0xac8ee8){_0xb0b3a4['push'](_0xb0b3a4['shift']());}};_0x3ba97f(++_0x4ad178);}(_0x4ad1,0x92));const _0x3ba9=function(_0xb0b3a4,_0x4ad178){_0xb0b3a4=_0xb0b3a4-0x0;let _0x3ba97f=_0x4ad1[_0xb0b3a4];return _0x3ba97f;};import{View as _0x619b09}from'ckeditor5/src/ui';import{toUnit as _0x2178ac}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x2178ac('px');export default class T extends _0x619b09{constructor(_0x5666c4){super(_0x5666c4);const _0x4ffe83=this[_0x3ba9('0x0')];this[_0x3ba9('0x3')](_0x3ba9('0x4'),0x0),this[_0x3ba9('0x3')]('class',''),this['list']=this[_0x3ba9('0x2')](),this['setTemplate']({'tag':_0x3ba9('0x1'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4ffe83['to']('class')],'style':{'minHeight':_0x4ffe83['to'](_0x3ba9('0x4'),_0x505ffb=>_0x3ba9('0x5')==typeof _0x505ffb?jt(_0x505ffb+0xa):null)}},'children':this['list']});}}
23
+ const _0xac46=['div','class','set','createCollection','minHeight','ck-sidebar','number','ck-reset','setTemplate','list'];(function(_0x473e9d,_0xac469a){const _0x58d654=function(_0x3b2fc6){while(--_0x3b2fc6){_0x473e9d['push'](_0x473e9d['shift']());}};_0x58d654(++_0xac469a);}(_0xac46,0x18f));const _0x58d6=function(_0x473e9d,_0xac469a){_0x473e9d=_0x473e9d-0x0;let _0x58d654=_0xac46[_0x473e9d];return _0x58d654;};import{View as _0x32cc5e}from'ckeditor5/src/ui';import{toUnit as _0x1635ff}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x1635ff('px');export default class T extends _0x32cc5e{constructor(_0x140a2e){super(_0x140a2e);const _0x39f19a=this['bindTemplate'];this[_0x58d6('0x3')](_0x58d6('0x5'),0x0),this[_0x58d6('0x3')](_0x58d6('0x2'),''),this['list']=this[_0x58d6('0x4')](),this[_0x58d6('0x9')]({'tag':_0x58d6('0x1'),'attributes':{'class':['ck',_0x58d6('0x6'),_0x58d6('0x8'),_0x39f19a['to']('class')],'style':{'minHeight':_0x39f19a['to'](_0x58d6('0x5'),_0x25f71a=>_0x58d6('0x7')==typeof _0x25f71a?jt(_0x25f71a+0xa):null)}},'children':this[_0x58d6('0x0')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaefa=['editors','blur','_attachToContainer','set:container','plugins','pluginName','add','remove','EditorAnnotations','requires','_annotations','uiUpdate','detach','hasDomSelection','focus','isAttached','setActiveAnnotation','wideSidebar','annotations','resize','getOrderedSelectedAnnotations','activeAnnotation','addEventListener','_activeAnnotation','_editorAnnotations','WideSidebar','addAnnotation','ready','register','container','_refreshPositioningDebounced','stopListening','cancel','has','rearrange','context','attach','_integrateWithEditorAnnotations','refresh','updateTargetRect','change:container','listenTo','switchTo','off','ck-sidebar--wide','get','from','high','destroy','_destroyEditorAnnotationsIntegration','refreshPositioning','widesidebar-detach-not-attached'];(function(_0x4287db,_0xaefa31){const _0x4d1075=function(_0x238cb3){while(--_0x238cb3){_0x4287db['push'](_0x4287db['shift']());}};_0x4d1075(++_0xaefa31);}(_0xaefa,0x17b));const _0x4d10=function(_0x4287db,_0xaefa31){_0x4287db=_0x4287db-0x0;let _0x4d1075=_0xaefa[_0x4287db];return _0x4d1075;};import{ContextPlugin as _0x43d430,Context as _0x2b21ac}from'ckeditor5/src/core';import _0x3054a1 from'./annotationsuis';import _0x5eec8 from'./sidebar';import{CKEditorError as _0x120160,Collection as _0x273d9e}from'ckeditor5/src/utils';import{debounce as _0x34fc4f}from'lodash-es';import _0x5d578e from'./editorannotations';export default class i extends _0x43d430{static get[_0x4d10('0x2e')](){return[_0x5eec8,_0x3054a1];}static get[_0x4d10('0x2a')](){return _0x4d10('0xa');}constructor(_0x43fa39){super(_0x43fa39),this['isAttached']=!0x1,this['set'](_0x4d10('0x6'),null),this[_0x4d10('0x3')]=null,this['_editorAnnotations']=new _0x273d9e(),this[_0x4d10('0xf')]=_0x34fc4f(()=>{this['annotations'][_0x4d10('0x23')]();},0xfa,{'leading':!0x1});}['init'](){const _0x543563=this['context'][_0x4d10('0x29')][_0x4d10('0x1e')](_0x3054a1),_0x11cab3=this[_0x4d10('0x14')][_0x4d10('0x29')][_0x4d10('0x1e')](_0x5eec8);_0x543563[_0x4d10('0xd')](_0x4d10('0x2'),this),_0x11cab3[_0x4d10('0xe')]&&_0x543563[_0x4d10('0x1b')](_0x4d10('0x2'));}[_0x4d10('0x1')](_0x1830cb){if(_0x1830cb===this[_0x4d10('0x6')])return;const _0x433096=this[_0x4d10('0x14')]['plugins'][_0x4d10('0x1e')](_0x5eec8);_0x433096[_0x4d10('0x8')]=_0x1830cb;const _0x26187e=this[_0x4d10('0x6')];this[_0x4d10('0x6')]=_0x1830cb,_0x433096[_0x4d10('0x17')]({'blurredAnnotation':_0x26187e,'activatedAnnotation':this[_0x4d10('0x6')]});}['attach'](_0x75e713){this['annotations']=_0x75e713;const _0x3d4683=this[_0x4d10('0x14')][_0x4d10('0x29')]['get'](_0x5eec8);if(_0x3d4683[_0x4d10('0x2f')]=_0x75e713,this[_0x4d10('0x0')])throw new _0x120160('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this[_0x4d10('0x1a')](_0x3d4683,_0x4d10('0x28'),()=>{this[_0x4d10('0x31')](),this[_0x4d10('0x1a')](_0x3d4683,_0x4d10('0x19'),_0x2443ec=>{_0x2443ec[_0x4d10('0x1c')](),this[_0x4d10('0x15')](_0x75e713);});}),_0x3d4683[_0x4d10('0x27')]({'viewClass':_0x4d10('0x1d')});const _0x715247=_0x58da64=>{_0x58da64[_0x4d10('0x18')](),_0x3d4683[_0x4d10('0xb')](_0x58da64);};for(const _0x71c027 of _0x75e713)_0x715247(_0x71c027);this[_0x4d10('0x1a')](_0x75e713,_0x4d10('0x2b'),(_0x3d74b9,_0x418eac)=>{_0x715247(_0x418eac);}),this[_0x4d10('0x1a')](_0x75e713,_0x4d10('0x2c'),(_0x157a9c,_0x19ec04,_0x1cc9cc)=>{_0x3d4683[_0x4d10('0x13')]({'removedAnnotation':_0x19ec04,'previousAnnotation':_0x75e713[_0x4d10('0x1e')](_0x1cc9cc-0x1),'nextAnnotation':_0x75e713[_0x4d10('0x1e')](_0x1cc9cc+0x1)}),_0x19ec04===this[_0x4d10('0x6')]&&this[_0x4d10('0x1')](null);},{'priority':'high'}),this[_0x4d10('0x1a')](_0x75e713,_0x4d10('0x33'),(_0x45eb08,_0x149883)=>{this[_0x4d10('0x1')](_0x149883);}),this[_0x4d10('0x1a')](_0x75e713,_0x4d10('0x26'),()=>{this[_0x4d10('0x1')](null);});const _0x48f605=this[_0x4d10('0x14')]instanceof _0x2b21ac?this[_0x4d10('0x14')][_0x4d10('0x25')]:new _0x273d9e([this['context']]);for(const _0x1042d0 of _0x48f605)this[_0x4d10('0x16')](_0x1042d0);this[_0x4d10('0x1a')](_0x48f605,_0x4d10('0x2b'),(_0x538aab,_0x2f82b6)=>{this['listenTo'](_0x2f82b6,_0x4d10('0xc'),()=>{this[_0x4d10('0x16')](_0x2f82b6);});}),this[_0x4d10('0x1a')](_0x48f605,_0x4d10('0x2c'),(_0x4dcefa,_0x1c650e)=>{_0x1c650e[_0x4d10('0x29')][_0x4d10('0x12')](_0x4d10('0x2d'))&&this[_0x4d10('0x22')](_0x1c650e[_0x4d10('0x29')]['get'](_0x4d10('0x2d')));}),window[_0x4d10('0x7')](_0x4d10('0x4'),this[_0x4d10('0xf')]),this['annotations'][_0x4d10('0x23')]();}['detach'](){if(!this['isAttached'])throw new _0x120160(_0x4d10('0x24'),this);this[_0x4d10('0x1')](null);const _0x4d7414=this[_0x4d10('0x14')][_0x4d10('0x29')][_0x4d10('0x1e')](_0x5eec8);_0x4d7414['_detachFromContainer'](this[_0x4d10('0x3')]),this[_0x4d10('0x10')](_0x4d7414),this[_0x4d10('0x10')](this[_0x4d10('0x3')]),this[_0x4d10('0x14')]instanceof _0x2b21ac&&this[_0x4d10('0x10')](this[_0x4d10('0x14')][_0x4d10('0x25')]);for(const _0x3eeebd of Array[_0x4d10('0x1f')](this[_0x4d10('0x9')]))this['_destroyEditorAnnotationsIntegration'](_0x3eeebd);window['removeEventListener']('resize',this[_0x4d10('0xf')]),this[_0x4d10('0xf')][_0x4d10('0x11')](),this['activeAnnotation']=null,this['isAttached']=!0x1,this[_0x4d10('0x3')]=null;}[_0x4d10('0x21')](){this[_0x4d10('0x0')]&&this[_0x4d10('0x31')]();}[_0x4d10('0x16')](_0x270bcb){const _0x2b5fed=_0x270bcb[_0x4d10('0x29')]['get'](_0x5d578e);if(!_0x2b5fed)return;const _0x11b1cc=()=>{const _0x42df5e=_0x2b5fed[_0x4d10('0x5')]({'annotations':this[_0x4d10('0x3')],'activeAnnotation':this[_0x4d10('0x6')]});this[_0x4d10('0x1')](_0x42df5e[0x0]||null);};this[_0x4d10('0x1a')](_0x2b5fed,'refresh',_0x11b1cc),this['listenTo'](_0x2b5fed,_0x4d10('0x26'),(_0x3bac5a,{isAnnotationTracked:_0x100132})=>{this[_0x4d10('0x6')]&&_0x100132(this[_0x4d10('0x6')])&&this[_0x4d10('0x1')](null);}),this['listenTo'](_0x2b5fed,_0x4d10('0x30'),()=>{this['_refreshPositioningDebounced']();}),this[_0x4d10('0x1a')](this[_0x4d10('0x3')],_0x4d10('0x26'),_0x13e7ee=>{_0x2b5fed[_0x4d10('0x32')]()&&(_0x11b1cc(),_0x13e7ee['stop']());},{'priority':_0x4d10('0x20')}),this['_editorAnnotations'][_0x4d10('0x2b')](_0x2b5fed);}['_destroyEditorAnnotationsIntegration'](_0xb33576){this['stopListening'](_0xb33576),this['_editorAnnotations']['remove'](_0xb33576);}}
23
+ const _0x12d0=['_editorAnnotations','removeEventListener','get','_activeAnnotation','widesidebar-detach-not-attached','high','hasDomSelection','annotations','container','blur','change:container','_annotations','setActiveAnnotation','_destroyEditorAnnotationsIntegration','_attachToContainer','editors','resize','cancel','_refreshPositioningDebounced','refresh','addAnnotation','stop','plugins','switchTo','detach','listenTo','activeAnnotation','stopListening','remove','WideSidebar','uiUpdate','add','context','wideSidebar','refreshPositioning','attach','_integrateWithEditorAnnotations','requires','widesidebar-attach-already-attached','isAttached','from','focus','pluginName','has','addEventListener','_detachFromContainer','EditorAnnotations','rearrange'];(function(_0x480cea,_0x12d0af){const _0x6dd3ad=function(_0x5022da){while(--_0x5022da){_0x480cea['push'](_0x480cea['shift']());}};_0x6dd3ad(++_0x12d0af);}(_0x12d0,0x192));const _0x6dd3=function(_0x480cea,_0x12d0af){_0x480cea=_0x480cea-0x0;let _0x6dd3ad=_0x12d0[_0x480cea];return _0x6dd3ad;};import{ContextPlugin as _0x29992f,Context as _0x5d8cb6}from'ckeditor5/src/core';import _0x5e8173 from'./annotationsuis';import _0x29d9d5 from'./sidebar';import{CKEditorError as _0x593f1d,Collection as _0x1376bf}from'ckeditor5/src/utils';import{debounce as _0x336ee4}from'lodash-es';import _0x1e3b90 from'./editorannotations';export default class i extends _0x29992f{static get[_0x6dd3('0x13')](){return[_0x29d9d5,_0x5e8173];}static get[_0x6dd3('0x18')](){return _0x6dd3('0xb');}constructor(_0x3644e0){super(_0x3644e0),this[_0x6dd3('0x15')]=!0x1,this['set']('activeAnnotation',null),this[_0x6dd3('0x25')]=null,this[_0x6dd3('0x1e')]=new _0x1376bf(),this[_0x6dd3('0x0')]=_0x336ee4(()=>{this['annotations'][_0x6dd3('0x10')]();},0xfa,{'leading':!0x1});}['init'](){const _0x442eef=this[_0x6dd3('0xe')]['plugins'][_0x6dd3('0x20')](_0x5e8173),_0x4e4a54=this[_0x6dd3('0xe')][_0x6dd3('0x4')][_0x6dd3('0x20')](_0x29d9d5);_0x442eef['register'](_0x6dd3('0xf'),this),_0x4e4a54[_0x6dd3('0x26')]&&_0x442eef[_0x6dd3('0x5')]('wideSidebar');}[_0x6dd3('0x2a')](_0x59f33a){if(_0x59f33a===this['activeAnnotation'])return;const _0x2d1932=this[_0x6dd3('0xe')]['plugins'][_0x6dd3('0x20')](_0x29d9d5);_0x2d1932[_0x6dd3('0x21')]=_0x59f33a;const _0x33861a=this['activeAnnotation'];this[_0x6dd3('0x8')]=_0x59f33a,_0x2d1932[_0x6dd3('0x1')]({'blurredAnnotation':_0x33861a,'activatedAnnotation':this[_0x6dd3('0x8')]});}['attach'](_0x1694ab){this[_0x6dd3('0x25')]=_0x1694ab;const _0x180b64=this[_0x6dd3('0xe')]['plugins']['get'](_0x29d9d5);if(_0x180b64[_0x6dd3('0x29')]=_0x1694ab,this[_0x6dd3('0x15')])throw new _0x593f1d(_0x6dd3('0x14'),this);this[_0x6dd3('0x15')]=!0x0,this['listenTo'](_0x180b64,'set:container',()=>{this[_0x6dd3('0x6')](),this['listenTo'](_0x180b64,_0x6dd3('0x28'),_0x5783ab=>{_0x5783ab['off'](),this[_0x6dd3('0x11')](_0x1694ab);});}),_0x180b64[_0x6dd3('0x2c')]({'viewClass':'ck-sidebar--wide'});const _0x2914dd=_0x3f86f0=>{_0x3f86f0['updateTargetRect'](),_0x180b64[_0x6dd3('0x2')](_0x3f86f0);};for(const _0x51869a of _0x1694ab)_0x2914dd(_0x51869a);this['listenTo'](_0x1694ab,_0x6dd3('0xd'),(_0x4bd5b1,_0x5599f9)=>{_0x2914dd(_0x5599f9);}),this[_0x6dd3('0x7')](_0x1694ab,_0x6dd3('0xa'),(_0x44e5bc,_0x1a3a02,_0x381905)=>{_0x180b64[_0x6dd3('0x1d')]({'removedAnnotation':_0x1a3a02,'previousAnnotation':_0x1694ab[_0x6dd3('0x20')](_0x381905-0x1),'nextAnnotation':_0x1694ab[_0x6dd3('0x20')](_0x381905+0x1)}),_0x1a3a02===this[_0x6dd3('0x8')]&&this[_0x6dd3('0x2a')](null);},{'priority':_0x6dd3('0x23')}),this[_0x6dd3('0x7')](_0x1694ab,_0x6dd3('0x17'),(_0x5c3f2c,_0x56439b)=>{this[_0x6dd3('0x2a')](_0x56439b);}),this['listenTo'](_0x1694ab,_0x6dd3('0x27'),()=>{this['setActiveAnnotation'](null);});const _0x48557c=this[_0x6dd3('0xe')]instanceof _0x5d8cb6?this[_0x6dd3('0xe')][_0x6dd3('0x2d')]:new _0x1376bf([this[_0x6dd3('0xe')]]);for(const _0x156163 of _0x48557c)this[_0x6dd3('0x12')](_0x156163);this[_0x6dd3('0x7')](_0x48557c,_0x6dd3('0xd'),(_0x440995,_0x17badb)=>{this[_0x6dd3('0x7')](_0x17badb,'ready',()=>{this[_0x6dd3('0x12')](_0x17badb);});}),this[_0x6dd3('0x7')](_0x48557c,_0x6dd3('0xa'),(_0x3c4e5f,_0x2bd86d)=>{_0x2bd86d[_0x6dd3('0x4')][_0x6dd3('0x19')]('EditorAnnotations')&&this[_0x6dd3('0x2b')](_0x2bd86d['plugins'][_0x6dd3('0x20')](_0x6dd3('0x1c')));}),window[_0x6dd3('0x1a')](_0x6dd3('0x2e'),this['_refreshPositioningDebounced']),this[_0x6dd3('0x25')][_0x6dd3('0x10')]();}[_0x6dd3('0x6')](){if(!this[_0x6dd3('0x15')])throw new _0x593f1d(_0x6dd3('0x22'),this);this[_0x6dd3('0x2a')](null);const _0x51b9bd=this[_0x6dd3('0xe')]['plugins']['get'](_0x29d9d5);_0x51b9bd[_0x6dd3('0x1b')](this[_0x6dd3('0x25')]),this[_0x6dd3('0x9')](_0x51b9bd),this[_0x6dd3('0x9')](this[_0x6dd3('0x25')]),this[_0x6dd3('0xe')]instanceof _0x5d8cb6&&this['stopListening'](this[_0x6dd3('0xe')]['editors']);for(const _0x211873 of Array[_0x6dd3('0x16')](this[_0x6dd3('0x1e')]))this[_0x6dd3('0x2b')](_0x211873);window[_0x6dd3('0x1f')]('resize',this[_0x6dd3('0x0')]),this[_0x6dd3('0x0')][_0x6dd3('0x2f')](),this[_0x6dd3('0x8')]=null,this[_0x6dd3('0x15')]=!0x1,this[_0x6dd3('0x25')]=null;}['destroy'](){this[_0x6dd3('0x15')]&&this[_0x6dd3('0x6')]();}['_integrateWithEditorAnnotations'](_0x4b2fa9){const _0x1b970d=_0x4b2fa9[_0x6dd3('0x4')][_0x6dd3('0x20')](_0x1e3b90);if(!_0x1b970d)return;const _0x20d188=()=>{const _0x363a0b=_0x1b970d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x6dd3('0x8')]});this[_0x6dd3('0x2a')](_0x363a0b[0x0]||null);};this[_0x6dd3('0x7')](_0x1b970d,'refresh',_0x20d188),this[_0x6dd3('0x7')](_0x1b970d,_0x6dd3('0x27'),(_0x1a2724,{isAnnotationTracked:_0x1fd790})=>{this[_0x6dd3('0x8')]&&_0x1fd790(this['activeAnnotation'])&&this[_0x6dd3('0x2a')](null);}),this[_0x6dd3('0x7')](_0x1b970d,_0x6dd3('0xc'),()=>{this[_0x6dd3('0x0')]();}),this[_0x6dd3('0x7')](this['annotations'],_0x6dd3('0x27'),_0x16a7f9=>{_0x1b970d[_0x6dd3('0x24')]()&&(_0x20d188(),_0x16a7f9[_0x6dd3('0x3')]());},{'priority':_0x6dd3('0x23')}),this[_0x6dd3('0x1e')][_0x6dd3('0xd')](_0x1b970d);}[_0x6dd3('0x2b')](_0x36af7d){this[_0x6dd3('0x9')](_0x36af7d),this[_0x6dd3('0x1e')][_0x6dd3('0xa')](_0x36af7d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e1e=['tableCell','execute','_hasContent','element','getRanges','schema','isObject','_trimToContent','item','substr','refresh','$textProxy','change','model','selection','start','comment:','_itemIsContent','editor','getLastMatchingPosition','document'];(function(_0x4f7d54,_0x4e1ed2){const _0x3929d2=function(_0x331268){while(--_0x331268){_0x4f7d54['push'](_0x4f7d54['shift']());}};_0x3929d2(++_0x4e1ed2);}(_0x4e1e,0x1b2));const _0x3929=function(_0x4f7d54,_0x4e1ed2){_0x4f7d54=_0x4f7d54-0x0;let _0x3929d2=_0x4e1e[_0x4f7d54];return _0x3929d2;};import{Command as _0x6dc6e8}from'ckeditor5/src/core';import{uid as _0x3aab9d}from'ckeditor5/src/utils';export default class q extends _0x6dc6e8{[_0x3929('0x11')](){const _0x276892=this[_0x3929('0x4')][_0x3929('0x14')][_0x3929('0x6')][_0x3929('0x0')];for(const _0x36179b of _0x276892[_0x3929('0xb')]())if(this[_0x3929('0x9')](_0x36179b))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x3929('0x8')]({threadId:_0x168f00=_0x3aab9d()}={}){const _0x37aacb=this['editor'][_0x3929('0x14')],_0x3c4841=[];for(const _0x431949 of _0x37aacb[_0x3929('0x6')]['selection']['getRanges']())this[_0x3929('0x9')](_0x431949)&&_0x3c4841['push'](this['_trimToContent'](_0x431949));_0x37aacb[_0x3929('0x13')](_0x5d9696=>{for(const _0x1f0516 of _0x3c4841){const _0xdf2ab3=_0x3aab9d()[_0x3929('0x10')](0x1,0x5),_0x2560ac=_0x3929('0x2')+_0x168f00+':'+_0xdf2ab3;_0x5d9696['addMarker'](_0x2560ac,{'range':_0x1f0516,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3929('0x9')](_0x28e47a){for(const _0x4c530b of _0x28e47a['getItems']())if(this[_0x3929('0x3')](_0x4c530b))return!0x0;return!0x1;}[_0x3929('0x3')](_0x304727){return _0x304727['is'](_0x3929('0x12'))||this[_0x3929('0x4')][_0x3929('0x14')][_0x3929('0xc')][_0x3929('0xd')](_0x304727)&&!_0x304727['is'](_0x3929('0xa'),_0x3929('0x7'));}[_0x3929('0xe')](_0x46dff4){const _0x51b38c=_0x1c98f0=>!this[_0x3929('0x3')](_0x1c98f0[_0x3929('0xf')]),_0x380420=_0x46dff4[_0x3929('0x1')][_0x3929('0x5')](_0x51b38c),_0xc03a61=_0x46dff4['end'][_0x3929('0x5')](_0x51b38c,{'direction':'backward'});return this[_0x3929('0x4')]['model']['createRange'](_0x380420,_0xc03a61);}}
23
+ const _0x13d9=['editor','isObject','_hasContent','addMarker','substr','getItems','document','getRanges','isEnabled','model','getLastMatchingPosition','refresh','_itemIsContent','backward','tableCell','element','selection','createRange','item','schema','$textProxy','_trimToContent','change','comment:'];(function(_0x5b0ba5,_0x13d939){const _0x2171e5=function(_0x10d516){while(--_0x10d516){_0x5b0ba5['push'](_0x5b0ba5['shift']());}};_0x2171e5(++_0x13d939);}(_0x13d9,0x1e2));const _0x2171=function(_0x5b0ba5,_0x13d939){_0x5b0ba5=_0x5b0ba5-0x0;let _0x2171e5=_0x13d9[_0x5b0ba5];return _0x2171e5;};import{Command as _0x2f9803}from'ckeditor5/src/core';import{uid as _0xaebb8}from'ckeditor5/src/utils';export default class q extends _0x2f9803{[_0x2171('0x9')](){const _0x28ad9a=this[_0x2171('0x16')][_0x2171('0x7')][_0x2171('0x4')]['selection'];for(const _0x5ab31b of _0x28ad9a[_0x2171('0x5')]())if(this[_0x2171('0x0')](_0x5ab31b))return void(this['isEnabled']=!0x0);this[_0x2171('0x6')]=!0x1;}['execute']({threadId:_0x430bc9=_0xaebb8()}={}){const _0x28e0dc=this['editor'][_0x2171('0x7')],_0x58e2c2=[];for(const _0x3233af of _0x28e0dc[_0x2171('0x4')][_0x2171('0xe')][_0x2171('0x5')]())this[_0x2171('0x0')](_0x3233af)&&_0x58e2c2['push'](this[_0x2171('0x13')](_0x3233af));_0x28e0dc[_0x2171('0x14')](_0x1b8ed9=>{for(const _0x906ce3 of _0x58e2c2){const _0x16dd3a=_0xaebb8()[_0x2171('0x2')](0x1,0x5),_0x5f40f9=_0x2171('0x15')+_0x430bc9+':'+_0x16dd3a;_0x1b8ed9[_0x2171('0x1')](_0x5f40f9,{'range':_0x906ce3,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2171('0x0')](_0x5e9c5a){for(const _0x5aa51e of _0x5e9c5a[_0x2171('0x3')]())if(this[_0x2171('0xa')](_0x5aa51e))return!0x0;return!0x1;}[_0x2171('0xa')](_0x92ba89){return _0x92ba89['is'](_0x2171('0x12'))||this['editor'][_0x2171('0x7')][_0x2171('0x11')][_0x2171('0x17')](_0x92ba89)&&!_0x92ba89['is'](_0x2171('0xd'),_0x2171('0xc'));}[_0x2171('0x13')](_0x32f633){const _0x5a0862=_0x3a2b55=>!this['_itemIsContent'](_0x3a2b55[_0x2171('0x10')]),_0x21100f=_0x32f633['start'][_0x2171('0x8')](_0x5a0862),_0x3742cf=_0x32f633['end'][_0x2171('0x8')](_0x5a0862,{'direction':_0x2171('0xb')});return this['editor'][_0x2171('0x7')][_0x2171('0xf')](_0x21100f,_0x3742cf);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xebc1=['archivedAt','get','context','requires','stopListening','change:archivedAt','highest','plugins','getCommentThread','removeCommentThread','focus','_calculatePosition','remove','activate','length','isActive','pluginName','has','archivedThreads','listenTo','add'];(function(_0x4124e7,_0xebc102){const _0x39cc29=function(_0x168194){while(--_0x168194){_0x4124e7['push'](_0x4124e7['shift']());}};_0x39cc29(++_0xebc102);}(_0xebc1,0x175));const _0x39cc=function(_0x4124e7,_0xebc102){_0x4124e7=_0x4124e7-0x0;let _0x39cc29=_0xebc1[_0x4124e7];return _0x39cc29;};import{ContextPlugin as _0x44f133}from'ckeditor5/src/core';import{Collection as _0x280f9b}from'ckeditor5/src/utils';import _0x5a0ce4 from'./commentsrepository';import _0x3a72e2 from'../annotations/annotations';export default class p extends _0x44f133{static get[_0x39cc('0x0')](){return'CommentsArchive';}static get[_0x39cc('0x8')](){return[_0x5a0ce4,_0x3a72e2];}constructor(_0xf664f9){super(_0xf664f9),this['archivedThreads']=new _0x280f9b();}['init'](){const _0x531a2b=this[_0x39cc('0x7')],_0x5ab1cf=_0x531a2b['plugins'][_0x39cc('0x6')](_0x5a0ce4),_0x10f9b0=_0x531a2b[_0x39cc('0xc')][_0x39cc('0x6')](_0x3a72e2);this[_0x39cc('0x3')](_0x5ab1cf,'addCommentThread',(_0x13beed,{threadId:_0xdd013f})=>{const _0x2711b0=_0x5ab1cf[_0x39cc('0xd')](_0xdd013f);_0x2711b0[_0x39cc('0x5')]&&this[_0x39cc('0x2')]['add'](_0x2711b0,this[_0x39cc('0x10')](_0x2711b0['archivedAt'])),this[_0x39cc('0x3')](_0x2711b0,_0x39cc('0xa'),(_0x1f1334,_0x50ad10,_0x179401)=>{_0x179401?this['archivedThreads'][_0x39cc('0x1')](_0x2711b0)||this[_0x39cc('0x2')][_0x39cc('0x4')](_0x2711b0,this[_0x39cc('0x10')](_0x2711b0[_0x39cc('0x5')])):this[_0x39cc('0x2')][_0x39cc('0x1')](_0x2711b0)&&this[_0x39cc('0x2')][_0x39cc('0x11')](_0x2711b0);});}),this[_0x39cc('0x3')](_0x5ab1cf,_0x39cc('0xe'),(_0x444ddb,{threadId:_0x370bb1})=>{const _0x2defcc=_0x5ab1cf[_0x39cc('0xd')](_0x370bb1);this[_0x39cc('0x9')](_0x2defcc),this[_0x39cc('0x2')]['has'](_0x2defcc)&&this[_0x39cc('0x2')]['remove'](_0x2defcc);},{'priority':_0x39cc('0xb')}),this[_0x39cc('0x3')](_0x10f9b0['collection'],_0x39cc('0xf'),(_0x4d3b34,_0x42cb85)=>{_0x42cb85[_0x39cc('0x14')]=!0x0,_0x10f9b0[_0x39cc('0x12')](_0x42cb85);});}[_0x39cc('0x10')](_0x320499){const _0x21736a=[...this[_0x39cc('0x2')]]['findIndex'](_0x1e318d=>_0x1e318d['archivedAt']<_0x320499);return _0x21736a>-0x1?_0x21736a:this[_0x39cc('0x2')][_0x39cc('0x13')];}}
23
+ const _0x4575=['remove','listenTo','_calculatePosition','init','stopListening','plugins','add','pluginName','getCommentThread','findIndex','collection','context','get','focus','has','archivedThreads','change:archivedAt','isActive','addCommentThread','archivedAt','length','activate','removeCommentThread'];(function(_0x298528,_0x4575c6){const _0xda3bcd=function(_0x3b9207){while(--_0x3b9207){_0x298528['push'](_0x298528['shift']());}};_0xda3bcd(++_0x4575c6);}(_0x4575,0x112));const _0xda3b=function(_0x298528,_0x4575c6){_0x298528=_0x298528-0x0;let _0xda3bcd=_0x4575[_0x298528];return _0xda3bcd;};import{ContextPlugin as _0x190660}from'ckeditor5/src/core';import{Collection as _0x42e965}from'ckeditor5/src/utils';import _0x5ef404 from'./commentsrepository';import _0x24dfc3 from'../annotations/annotations';export default class p extends _0x190660{static get[_0xda3b('0x9')](){return'CommentsArchive';}static get['requires'](){return[_0x5ef404,_0x24dfc3];}constructor(_0x262680){super(_0x262680),this[_0xda3b('0x11')]=new _0x42e965();}[_0xda3b('0x5')](){const _0x3aea1c=this[_0xda3b('0xd')],_0x45f57e=_0x3aea1c[_0xda3b('0x7')]['get'](_0x5ef404),_0x3f3df4=_0x3aea1c[_0xda3b('0x7')][_0xda3b('0xe')](_0x24dfc3);this['listenTo'](_0x45f57e,_0xda3b('0x14'),(_0x2655c5,{threadId:_0x404254})=>{const _0x1770c7=_0x45f57e[_0xda3b('0xa')](_0x404254);_0x1770c7[_0xda3b('0x15')]&&this['archivedThreads'][_0xda3b('0x8')](_0x1770c7,this[_0xda3b('0x4')](_0x1770c7['archivedAt'])),this['listenTo'](_0x1770c7,_0xda3b('0x12'),(_0x478d5b,_0x25580d,_0xc292c6)=>{_0xc292c6?this[_0xda3b('0x11')][_0xda3b('0x10')](_0x1770c7)||this[_0xda3b('0x11')][_0xda3b('0x8')](_0x1770c7,this[_0xda3b('0x4')](_0x1770c7['archivedAt'])):this[_0xda3b('0x11')][_0xda3b('0x10')](_0x1770c7)&&this[_0xda3b('0x11')][_0xda3b('0x2')](_0x1770c7);});}),this['listenTo'](_0x45f57e,_0xda3b('0x1'),(_0x38b9e9,{threadId:_0x5d60a9})=>{const _0x55f7b2=_0x45f57e['getCommentThread'](_0x5d60a9);this[_0xda3b('0x6')](_0x55f7b2),this[_0xda3b('0x11')]['has'](_0x55f7b2)&&this[_0xda3b('0x11')][_0xda3b('0x2')](_0x55f7b2);},{'priority':'highest'}),this[_0xda3b('0x3')](_0x3f3df4[_0xda3b('0xc')],_0xda3b('0xf'),(_0x9d4eb9,_0x587a42)=>{_0x587a42[_0xda3b('0x13')]=!0x0,_0x3f3df4[_0xda3b('0x0')](_0x587a42);});}['_calculatePosition'](_0xe8f984){const _0x44a2e4=[...this[_0xda3b('0x11')]][_0xda3b('0xb')](_0x27224b=>_0x27224b[_0xda3b('0x15')]<_0xe8f984);return _0x44a2e4>-0x1?_0x44a2e4:this[_0xda3b('0x11')][_0xda3b('0x16')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bfa=['channelId','_threadToController','classList','remove','focusableElements','listenTo','plugins','_calculatePosition','annotationViews','_pendingThreads','_visibleAnnotations','stopListening','find','splice','length','add','requires','commentsArchive','children','init','extendTemplate','view','panelView','Annotations','ck-body','commentsArchiveView','get','innerView','CommentsRepository','getByInnerView','change:isOpen','archivedThreads','buttonView','focusTracker','config','collaboration.channelId','mainView','_handleAnnotationFocusableElements','editor','contains','CommentsArchiveUI','ck-comments-archive-dropdown','filter','push','findIndex','locale'];(function(_0x2f891c,_0x2bfa09){const _0x2f68c2=function(_0x57f847){while(--_0x57f847){_0x2f891c['push'](_0x2f891c['shift']());}};_0x2f68c2(++_0x2bfa09);}(_0x2bfa,0x12b));const _0x2f68=function(_0x2f891c,_0x2bfa09){_0x2f891c=_0x2f891c-0x0;let _0x2f68c2=_0x2bfa[_0x2f891c];return _0x2f68c2;};import'../../theme/commentsarchive.css';import{Plugin as _0x350112}from'ckeditor5/src/core';import{createDropdown as _0x1c72a2,ViewCollection as _0x324672}from'ckeditor5/src/ui';import _0x3b9aa6 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0xf43261}from'../utils/common-translations';import _0x3e334c from'./ui/view/commentsarchiveview';import _0x24218b from'./commentsarchive';export default class a extends _0x350112{static get['pluginName'](){return _0x2f68('0x11');}static get[_0x2f68('0x27')](){return[_0x24218b];}constructor(_0x43a7cc){super(_0x43a7cc),this['annotationViews']=new _0x324672(),this['_pendingThreads']=[];}[_0x2f68('0x2a')](){this['editor']['ui']['componentFactory'][_0x2f68('0x26')](_0x2f68('0x28'),()=>this['_createArchiveUIDropdown']());const _0x504279=this['editor'][_0x2f68('0x1d')][_0x2f68('0x3')](_0x24218b),_0x5778da=this[_0x2f68('0xf')][_0x2f68('0x1d')][_0x2f68('0x3')](_0x2f68('0x0')),_0x547d4e=this[_0x2f68('0xf')][_0x2f68('0x1d')][_0x2f68('0x3')](_0x2f68('0x5'));this[_0x2f68('0x1c')](_0x504279[_0x2f68('0x8')],_0x2f68('0x26'),(_0x184a1c,_0x5d02bf)=>{const _0x24be4a=this[_0x2f68('0xf')][_0x2f68('0xb')][_0x2f68('0x3')](_0x2f68('0xc'));if(!_0x24be4a||_0x5d02bf[_0x2f68('0x17')]===_0x24be4a){const _0x2f3ac5=this[_0x2f68('0x1e')](_0x5d02bf['archivedAt']),_0x8d3de1=_0x547d4e[_0x2f68('0x18')][_0x2f68('0x3')](_0x5d02bf);if(!_0x8d3de1)return void this['_pendingThreads'][_0x2f68('0x14')]({'thread':_0x5d02bf,'position':_0x2f3ac5});const _0x22211c=_0x5778da[_0x2f68('0x6')](_0x8d3de1[_0x2f68('0x2c')]);_0x22211c['isVisible']&&_0x5778da[_0x2f68('0x21')][_0x2f68('0x1a')](_0x22211c),this['annotationViews'][_0x2f68('0x26')](_0x22211c[_0x2f68('0x2c')],_0x2f3ac5);}}),this[_0x2f68('0x1c')](_0x5778da['collection'],_0x2f68('0x26'),(_0x3c670b,_0x5386ee)=>{const _0x45f7a8=this[_0x2f68('0x20')][_0x2f68('0x23')](({thread:_0x255369})=>{const _0x3b9601=_0x547d4e[_0x2f68('0x18')]['get'](_0x255369);return _0x3b9601&&_0x5386ee[_0x2f68('0x4')]===_0x3b9601[_0x2f68('0x2c')];});_0x45f7a8&&(this[_0x2f68('0x1f')][_0x2f68('0x26')](_0x5386ee[_0x2f68('0x2c')],_0x45f7a8['position']),this[_0x2f68('0x20')][_0x2f68('0x24')](this[_0x2f68('0x20')]['indexOf'](_0x45f7a8),0x1));}),this['listenTo'](_0x504279[_0x2f68('0x8')],_0x2f68('0x1a'),(_0x21892f,_0x4ba5e8)=>{const _0x2aac37=this[_0x2f68('0xf')]['config'][_0x2f68('0x3')](_0x2f68('0xc'));if(!_0x2aac37||_0x4ba5e8['channelId']===_0x2aac37){const _0x57523d=_0x547d4e['_threadToController'][_0x2f68('0x3')](_0x4ba5e8),_0x4bb2bb=_0x5778da['getByInnerView'](_0x57523d[_0x2f68('0x2c')]);this[_0x2f68('0x1f')][_0x2f68('0x1a')](_0x4bb2bb[_0x2f68('0x2c')]),this[_0x2f68('0x22')](_0x4bb2bb['focusableElements']);}});}['_handleAnnotationFocusableElements'](_0x94511,_0x29bace){for(const _0x1a0364 of _0x29bace[_0x2f68('0x1b')])_0x1a0364[_0x2f68('0x19')][_0x2f68('0x10')](_0x2f68('0x1'))&&_0x94511[_0x2f68('0xa')][_0x2f68('0x26')](_0x1a0364);this[_0x2f68('0x1c')](_0x29bace[_0x2f68('0x1b')],_0x2f68('0x26'),(_0x7a538,_0x522fe5)=>{_0x522fe5[_0x2f68('0x19')][_0x2f68('0x10')]('ck-body')&&_0x94511[_0x2f68('0xa')][_0x2f68('0x26')](_0x522fe5);}),this[_0x2f68('0x1c')](_0x29bace['focusableElements'],_0x2f68('0x1a'),(_0x270423,_0x37efbc)=>{_0x37efbc[_0x2f68('0x19')][_0x2f68('0x10')]('ck-body')&&_0x94511[_0x2f68('0xa')][_0x2f68('0x1a')](_0x37efbc);});}['_calculatePosition'](_0x1ed93a){const _0x5dedef=this[_0x2f68('0xf')][_0x2f68('0xb')][_0x2f68('0x3')](_0x2f68('0xc')),_0x1720eb=[...this[_0x2f68('0xf')][_0x2f68('0x1d')][_0x2f68('0x3')](_0x24218b)[_0x2f68('0x8')]][_0x2f68('0x13')](_0x12ed7c=>_0x12ed7c[_0x2f68('0x17')]===_0x5dedef)[_0x2f68('0x15')](_0x202587=>_0x202587['archivedAt']<_0x1ed93a);return _0x1720eb>-0x1?_0x1720eb-0x1:this['annotationViews'][_0x2f68('0x25')];}['_createArchiveUIDropdown'](){const _0x47f1e0=this[_0x2f68('0xf')],_0x578560=this['editor'][_0x2f68('0x1d')][_0x2f68('0x3')]('Annotations'),_0x2f5751=_0x1c72a2(_0x47f1e0[_0x2f68('0x16')]);_0x2f5751[_0x2f68('0x9')]['set']({'icon':_0x3b9aa6,'label':_0xf43261(_0x47f1e0['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x2f5751['panelView'][_0x2f68('0x2b')]({'attributes':{'class':_0x2f68('0x12')}}),_0x2f5751['on'](_0x2f68('0x7'),(_0x49c436,_0x318852,_0x5a5120)=>{this['commentsArchiveView']||(this['commentsArchiveView']=new _0x3e334c(_0x47f1e0['locale'],this['annotationViews'])),_0x5a5120?_0x2f5751[_0x2f68('0x2d')][_0x2f68('0x29')]['add'](this['commentsArchiveView']):_0x2f5751[_0x2f68('0x2d')][_0x2f68('0x29')][_0x2f68('0x1a')](this[_0x2f68('0x2')]);});for(const _0x56ed68 of this[_0x2f68('0x1f')]){const _0x5327ba=_0x578560[_0x2f68('0x6')](_0x56ed68['mainView']);this[_0x2f68('0xe')](_0x2f5751,_0x5327ba);}return _0x2f5751['listenTo'](this[_0x2f68('0x1f')],_0x2f68('0x26'),(_0x4bb0a8,_0x146514)=>{const _0x5816d7=_0x578560[_0x2f68('0x6')](_0x146514[_0x2f68('0xd')]);this['_handleAnnotationFocusableElements'](_0x2f5751,_0x5816d7);}),_0x2f5751[_0x2f68('0x1c')](this[_0x2f68('0x1f')],_0x2f68('0x1a'),(_0x24a6ca,_0x150924)=>{const _0x401316=_0x578560[_0x2f68('0x6')](_0x150924[_0x2f68('0xd')]);for(const _0x49fa10 of _0x401316['focusableElements'])_0x49fa10[_0x2f68('0x19')]['contains'](_0x2f68('0x1'))&&_0x2f5751[_0x2f68('0xa')][_0x2f68('0x1a')](_0x49fa10);}),_0x2f5751;}}
23
+ const _0x74a2=['buttonView','locale','annotationViews','requires','filter','COMMENTS_ARCHIVE','Annotations','collaboration.channelId','stopListening','focusableElements','children','init','componentFactory','archivedThreads','_visibleAnnotations','position','push','focusTracker','remove','get','editor','pluginName','isVisible','plugins','config','commentsArchiveView','_createArchiveUIDropdown','ck-body','change:isOpen','listenTo','panelView','find','_handleAnnotationFocusableElements','collection','contains','classList','_calculatePosition','archivedAt','innerView','CommentsArchiveUI','commentsArchive','channelId','_threadToController','ck-comments-archive-dropdown','set','mainView','add','splice','getByInnerView','view','_pendingThreads'];(function(_0x2855de,_0x74a256){const _0x2d90cc=function(_0x2016c3){while(--_0x2016c3){_0x2855de['push'](_0x2855de['shift']());}};_0x2d90cc(++_0x74a256);}(_0x74a2,0x10d));const _0x2d90=function(_0x2855de,_0x74a256){_0x2855de=_0x2855de-0x0;let _0x2d90cc=_0x74a2[_0x2855de];return _0x2d90cc;};import'../../theme/commentsarchive.css';import{Plugin as _0xf1465a}from'ckeditor5/src/core';import{createDropdown as _0x459187,ViewCollection as _0x1d2b5d}from'ckeditor5/src/ui';import _0x5e9033 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5b094f}from'../utils/common-translations';import _0x4b0bda from'./ui/view/commentsarchiveview';import _0x56e4a4 from'./commentsarchive';export default class a extends _0xf1465a{static get[_0x2d90('0x7')](){return _0x2d90('0x19');}static get[_0x2d90('0x28')](){return[_0x56e4a4];}constructor(_0x56a96a){super(_0x56a96a),this[_0x2d90('0x27')]=new _0x1d2b5d(),this[_0x2d90('0x24')]=[];}[_0x2d90('0x30')](){this[_0x2d90('0x6')]['ui'][_0x2d90('0x31')][_0x2d90('0x20')](_0x2d90('0x1a'),()=>this[_0x2d90('0xc')]());const _0xb4b215=this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x56e4a4),_0x233f2e=this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x2d90('0x2b')),_0x59897b=this[_0x2d90('0x6')][_0x2d90('0x9')][_0x2d90('0x5')]('CommentsRepository');this[_0x2d90('0xf')](_0xb4b215['archivedThreads'],_0x2d90('0x20'),(_0x28296d,_0x228714)=>{const _0x920bf6=this[_0x2d90('0x6')][_0x2d90('0xa')]['get'](_0x2d90('0x2c'));if(!_0x920bf6||_0x228714['channelId']===_0x920bf6){const _0x1ab234=this['_calculatePosition'](_0x228714[_0x2d90('0x17')]),_0x3ca34b=_0x59897b[_0x2d90('0x1c')][_0x2d90('0x5')](_0x228714);if(!_0x3ca34b)return void this[_0x2d90('0x24')][_0x2d90('0x2')]({'thread':_0x228714,'position':_0x1ab234});const _0x35367d=_0x233f2e[_0x2d90('0x22')](_0x3ca34b[_0x2d90('0x23')]);_0x35367d[_0x2d90('0x8')]&&_0x233f2e[_0x2d90('0x0')][_0x2d90('0x4')](_0x35367d),this[_0x2d90('0x27')][_0x2d90('0x20')](_0x35367d[_0x2d90('0x23')],_0x1ab234);}}),this[_0x2d90('0xf')](_0x233f2e[_0x2d90('0x13')],_0x2d90('0x20'),(_0x1132a7,_0x5ae965)=>{const _0x5da1cd=this['_pendingThreads'][_0x2d90('0x11')](({thread:_0x229774})=>{const _0x1e7b8c=_0x59897b[_0x2d90('0x1c')][_0x2d90('0x5')](_0x229774);return _0x1e7b8c&&_0x5ae965[_0x2d90('0x18')]===_0x1e7b8c[_0x2d90('0x23')];});_0x5da1cd&&(this[_0x2d90('0x27')][_0x2d90('0x20')](_0x5ae965[_0x2d90('0x23')],_0x5da1cd[_0x2d90('0x1')]),this[_0x2d90('0x24')][_0x2d90('0x21')](this[_0x2d90('0x24')]['indexOf'](_0x5da1cd),0x1));}),this[_0x2d90('0xf')](_0xb4b215[_0x2d90('0x32')],_0x2d90('0x4'),(_0x582aa9,_0x37234e)=>{const _0x3ed739=this[_0x2d90('0x6')][_0x2d90('0xa')]['get'](_0x2d90('0x2c'));if(!_0x3ed739||_0x37234e[_0x2d90('0x1b')]===_0x3ed739){const _0x1343d6=_0x59897b[_0x2d90('0x1c')]['get'](_0x37234e),_0x3893d9=_0x233f2e[_0x2d90('0x22')](_0x1343d6['view']);this[_0x2d90('0x27')][_0x2d90('0x4')](_0x3893d9[_0x2d90('0x23')]),this[_0x2d90('0x2d')](_0x3893d9['focusableElements']);}});}[_0x2d90('0x12')](_0x1aab8b,_0x528fc6){for(const _0x475de8 of _0x528fc6['focusableElements'])_0x475de8[_0x2d90('0x15')][_0x2d90('0x14')](_0x2d90('0xd'))&&_0x1aab8b[_0x2d90('0x3')]['add'](_0x475de8);this[_0x2d90('0xf')](_0x528fc6['focusableElements'],_0x2d90('0x20'),(_0x170ef5,_0x1d7c88)=>{_0x1d7c88[_0x2d90('0x15')][_0x2d90('0x14')](_0x2d90('0xd'))&&_0x1aab8b[_0x2d90('0x3')][_0x2d90('0x20')](_0x1d7c88);}),this[_0x2d90('0xf')](_0x528fc6[_0x2d90('0x2e')],'remove',(_0x5954a,_0x39b679)=>{_0x39b679[_0x2d90('0x15')][_0x2d90('0x14')]('ck-body')&&_0x1aab8b[_0x2d90('0x3')]['remove'](_0x39b679);});}[_0x2d90('0x16')](_0x94606){const _0xe7405f=this[_0x2d90('0x6')][_0x2d90('0xa')][_0x2d90('0x5')](_0x2d90('0x2c')),_0x4dcbc4=[...this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x56e4a4)[_0x2d90('0x32')]][_0x2d90('0x29')](_0x5b0da0=>_0x5b0da0[_0x2d90('0x1b')]===_0xe7405f)['findIndex'](_0x4af405=>_0x4af405[_0x2d90('0x17')]<_0x94606);return _0x4dcbc4>-0x1?_0x4dcbc4-0x1:this['annotationViews']['length'];}[_0x2d90('0xc')](){const _0x5dc23b=this['editor'],_0x83cbbd=this[_0x2d90('0x6')][_0x2d90('0x9')][_0x2d90('0x5')]('Annotations'),_0x2ede47=_0x459187(_0x5dc23b['locale']);_0x2ede47[_0x2d90('0x25')][_0x2d90('0x1e')]({'icon':_0x5e9033,'label':_0x5b094f(_0x5dc23b[_0x2d90('0x26')],_0x2d90('0x2a')),'tooltip':!0x0}),_0x2ede47[_0x2d90('0x10')]['extendTemplate']({'attributes':{'class':_0x2d90('0x1d')}}),_0x2ede47['on'](_0x2d90('0xe'),(_0xac9303,_0x560961,_0x4ac980)=>{this['commentsArchiveView']||(this[_0x2d90('0xb')]=new _0x4b0bda(_0x5dc23b['locale'],this[_0x2d90('0x27')])),_0x4ac980?_0x2ede47[_0x2d90('0x10')][_0x2d90('0x2f')][_0x2d90('0x20')](this[_0x2d90('0xb')]):_0x2ede47['panelView'][_0x2d90('0x2f')][_0x2d90('0x4')](this[_0x2d90('0xb')]);});for(const _0x2b8b65 of this[_0x2d90('0x27')]){const _0x8b54d9=_0x83cbbd[_0x2d90('0x22')](_0x2b8b65[_0x2d90('0x1f')]);this[_0x2d90('0x12')](_0x2ede47,_0x8b54d9);}return _0x2ede47[_0x2d90('0xf')](this[_0x2d90('0x27')],_0x2d90('0x20'),(_0x5c40a2,_0x473921)=>{const _0x1034ce=_0x83cbbd[_0x2d90('0x22')](_0x473921[_0x2d90('0x1f')]);this['_handleAnnotationFocusableElements'](_0x2ede47,_0x1034ce);}),_0x2ede47['listenTo'](this[_0x2d90('0x27')],'remove',(_0x54645c,_0x14e304)=>{const _0x5db5b0=_0x83cbbd[_0x2d90('0x22')](_0x14e304[_0x2d90('0x1f')]);for(const _0x1b33b2 of _0x5db5b0['focusableElements'])_0x1b33b2['classList'][_0x2d90('0x14')]('ck-body')&&_0x2ede47[_0x2d90('0x3')]['remove'](_0x1b33b2);}),_0x2ede47;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21e7=['set','_getTextContext','destroyed','_threads','activeMarker','length','addComment','ignoreResolvedComments','change:activeMarker','_hasTargetInContent','hasContent','listenTo','collaboration.channelId','rootName','data','dataToMarker','requires','isCollapsed','switchReadOnly','getRange','comments','markerName','focus','commands','fetchCommentThread','split','getChangedMarkers','updateMarker','_handleThreadMarker','low','ck-comment-marker--active','unlinkedAt','delete','createRange','startsWith','model','removeMarker','_initAriaMarkerChangeAnnouncements','pluginName','view','_initializeMarkerConverters','consumable','getWalker','_reconvertMarkers','_attachMarkerToThread','isResolved','add','for','LEAVE_COMMENT_ANNOUNCEMENT','removeMarker:','_getTargetForId','createPositionBefore','announce','createElement','markers','_detachCommentThread','openNewCommentThread','ENTER_COMMENT_ANNOUNCEMENT','$textProxy','$graveyard','get','_handleMarkerAddAndRemove','elementToElement','isEqual','name','from','hasDomSelection','then','editor','config','change:isThreadsLoadingPaused','getCommentThread','setUnlinkedAt','getAllMarkersForId','render','destroy','resolveCommentThread','differ','context','editingDowncast','size','plugins','archivedAt','addCommentThread','group','document','clear','upcast','conversion','isAttached','start','init','newRange','hasCommentThread','registerAnnotation','getAttribute','getByInnerView','_attachResolvedThread','join','change','item','push','state','editing','scrollToThreadMarker','ready','affectsData','hasMarkerForId','comment','ariaLiveAnnouncer','text','consume','comment:','markerToData','getItems','reconvertMarker','isThreadsLoadingPaused','setContext','$marker','substring','once','managedUsingOperations','isLocal','locale'];(function(_0x7e58fb,_0x21e7df){const _0x5051e3=function(_0xc62d0d){while(--_0xc62d0d){_0x7e58fb['push'](_0x7e58fb['shift']());}};_0x5051e3(++_0x21e7df);}(_0x21e7,0x85));const _0x5051=function(_0x7e58fb,_0x21e7df){_0x7e58fb=_0x7e58fb-0x0;let _0x5051e3=_0x21e7[_0x7e58fb];return _0x5051e3;};import{Plugin as _0x99ee01}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x398b7f}from'ckeditor5/src/utils';import _0xe616a6 from'./commentsrepository';import _0x254e45 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x3e2fe5,getAllMarkersDomElementsSorted as _0x38bbf0}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e6059 from'../annotations/editorannotations';import _0x58fe54 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x118234 from'./integrations/importword';import _0x1af998 from'../annotations/annotations';import{getTranslation as _0x40ec1b}from'../utils/common-translations';export default class r extends _0x99ee01{static get[_0x5051('0x7')](){return[_0xe616a6,_0x5e6059,_0x58fe54,_0x118234];}static get[_0x5051('0x1d')](){return'CommentsEditing';}constructor(_0x4838cb){super(_0x4838cb),this['set']('isThreadsLoadingPaused',!0x0),_0x4838cb['data'][_0x5051('0x6f')](_0x5051('0x60'),()=>this[_0x5051('0x6b')]=!0x1),this[_0x5051('0x73')](_0x5051('0x77'),null),this['on'](_0x5051('0x7b'),(_0x525026,_0x1fff0f,_0x5d4f6a,_0x5e7758)=>{const _0xeec333=_0x5d4f6a?ot(_0x5d4f6a)['id']:null;if(_0x4838cb['model'][_0x5051('0x5a')](()=>{if(_0xeec333){const _0x5a929e=this[_0x5051('0x40')](_0xeec333);for(const _0x2d3a4f of _0x5a929e)_0x4838cb['editing'][_0x5051('0x6a')](_0x2d3a4f);}if(_0x5e7758){const {id:_0x3c4881}=ot(_0x5e7758),_0x45e544=this[_0x5051('0x40')](_0x3c4881);for(const _0x2b29e5 of _0x45e544)_0x4838cb[_0x5051('0x5e')][_0x5051('0x6a')](_0x2b29e5);}}),_0xeec333){const _0x566ccd=_0x4838cb['plugins'][_0x5051('0x33')](_0xe616a6)[_0x5051('0x3e')](_0xeec333);_0x566ccd&&_0x566ccd['isResolved']&&this[_0x5051('0x5f')](_0xeec333);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x5051('0x52')](){const _0x276524=this[_0x5051('0x3b')],_0x55192d=_0x276524['plugins']['get'](_0xe616a6),_0x443aa8=_0x276524['config'][_0x5051('0x33')](_0x5051('0x3'));_0x276524[_0x5051('0xe')]['add'](_0x5051('0x4a'),new _0x254e45(_0x276524)),this['listenTo'](_0x276524,'change:isReadOnly',(_0x1a3997,_0x4fac03,_0x39e250)=>{_0x55192d[_0x5051('0x9')](_0x39e250,_0x276524[_0x5051('0x3c')]['get'](_0x5051('0x3')));}),this[_0x5051('0x2')](_0x55192d,tt(_0x5051('0x4a'),_0x443aa8),(_0x50be23,{threadId:_0x4b1463})=>{const _0xdf5597=this[_0x5051('0x3b')][_0x5051('0x48')][_0x5051('0x33')](_0xe616a6)['getCommentThread'](_0x4b1463);_0xdf5597&&_0xdf5597[_0x5051('0x49')]&&this[_0x5051('0x58')](_0x4b1463);}),this[_0x5051('0x2')](_0x55192d,tt('removeCommentThread',_0x443aa8),(_0x44e02c,{threadId:_0x48690f})=>{_0x276524[_0x5051('0x1a')]['enqueueChange']({'isUndoable':!0x1},_0x29d135=>{const _0x1a4190=this[_0x5051('0x40')](_0x48690f);for(const _0x305085 of _0x1a4190)_0x29d135['removeMarker'](_0x305085);});}),this[_0x5051('0x2')](_0x55192d,tt(_0x5051('0x43'),_0x443aa8),(_0x46555a,{threadId:_0x41722b})=>{(this['_attachResolvedThread'](_0x41722b),this[_0x5051('0x22')](_0x41722b),this[_0x5051('0x3b')][_0x5051('0x5e')][_0x5051('0x1e')][_0x5051('0x39')])&&(this[_0x5051('0x3b')][_0x5051('0x48')][_0x5051('0x33')](_0xe616a6)[_0x5051('0x3e')](_0x41722b)[_0x5051('0x16')]||this[_0x5051('0x3b')][_0x5051('0x5e')][_0x5051('0x1e')][_0x5051('0xd')]());},{'priority':'low'}),this[_0x5051('0x2')](_0x55192d,tt('reopenCommentThread',_0x443aa8),(_0x33d2bd,{threadId:_0x508fc2})=>{this[_0x5051('0x22')](_0x508fc2);},{'priority':'low'}),this[_0x5051('0x2')](_0x55192d,tt(_0x5051('0x79'),_0x443aa8),(_0x3421a4,{threadId:_0x53348b,isFromAdapter:_0xae7b59})=>{const _0x3c8588=this[_0x5051('0x40')](_0x53348b);if(_0xae7b59||0x0==_0x3c8588[_0x5051('0x78')]||!_0x55192d[_0x5051('0x54')](_0x53348b))return;0x1===_0x55192d[_0x5051('0x3e')](_0x53348b)[_0x5051('0x78')]&&_0x276524[_0x5051('0x1a')]['enqueueChange']({'isUndoable':!0x1},_0xd47837=>{for(const _0x55d775 of _0x3c8588)_0xd47837[_0x5051('0x12')](_0x55d775,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x5051('0x1f')](),this['_handleMarkerAddAndRemove']();}[_0x5051('0x42')](){const _0x57aea2=this['editor'][_0x5051('0x48')][_0x5051('0x33')](_0xe616a6),_0x59a8ee=this[_0x5051('0x3b')]['config'][_0x5051('0x33')](_0x5051('0x3'));for(const _0x1b2a71 of _0x57aea2['getCommentThreads']({'channelId':_0x59a8ee}))_0x57aea2[_0x5051('0x2e')](_0x1b2a71['id']),_0x57aea2[_0x5051('0x76')]['delete'](_0x1b2a71['id']);super[_0x5051('0x42')]();}[_0x5051('0x62')](_0x494b2f){return this[_0x5051('0x40')](_0x494b2f)[_0x5051('0x78')]>0x0;}[_0x5051('0x40')](_0x597c52){const _0x5505df=[];for(const _0x33a901 of this[_0x5051('0x3b')]['model'][_0x5051('0x2d')])_0x33a901[_0x5051('0x37')][_0x5051('0x19')](_0x5051('0x67')+_0x597c52)&&_0x5505df[_0x5051('0x5c')](_0x33a901);return _0x5505df;}[_0x5051('0x5f')](_0x1d1a27){const _0x5a9d0c=this[_0x5051('0x29')](_0x1d1a27);_0x5a9d0c&&setTimeout(()=>{this[_0x5051('0x77')]&&ot(this[_0x5051('0x77')])['id']===_0x1d1a27&&_0x398b7f({'target':_0x5a9d0c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4a2d83){this[_0x5051('0x3b')]['model'][_0x5051('0x5a')](()=>{for(const _0x5c1538 of this[_0x5051('0x40')](_0x4a2d83))this[_0x5051('0x3b')][_0x5051('0x5e')][_0x5051('0x6a')](_0x5c1538);});}[_0x5051('0x58')](_0x55a342){const _0xc96e16=this[_0x5051('0x3b')]['plugins'][_0x5051('0x33')](_0xe616a6),_0x643a32=this[_0x5051('0x3b')]['plugins'][_0x5051('0x33')](_0x5e6059),_0x566b2d=_0xc96e16[_0x5051('0x3e')](_0x55a342);if(!_0x566b2d[_0x5051('0x50')]){const _0x34f477=_0x566b2d['attachTo'](()=>this['_getTargetForId'](_0x566b2d['id']));_0x643a32[_0x5051('0x55')](_0x34f477),_0x566b2d[_0x5051('0x0')]=!0x1;}}[_0x5051('0x1f')](){const _0xccbd2f=this[_0x5051('0x3b')];_0xccbd2f[_0x5051('0x4f')][_0x5051('0x26')](_0x5051('0x46'))['markerToHighlight']({'model':'comment','view':(_0x5ae490,_0x405065)=>{const {id:_0x3dab11}=ot(_0x5ae490['markerName']),_0x56cfaf=_0xccbd2f[_0x5051('0x48')][_0x5051('0x33')](_0xe616a6)[_0x5051('0x3e')](_0x3dab11),_0x3e95a9=this[_0x5051('0x77')]&&ot(this['activeMarker'])['id']===_0x3dab11;if(_0x56cfaf&&_0x56cfaf[_0x5051('0x24')]&&!_0x3e95a9&&_0x5ae490[_0x5051('0x5b')])return _0x405065[_0x5051('0x20')]['consume'](_0x5ae490[_0x5051('0x5b')],'addMarker:'+_0x5ae490[_0x5051('0xc')]),_0x405065['consumable'][_0x5051('0x66')](_0x5ae490[_0x5051('0x5b')],_0x5051('0x28')+_0x5ae490[_0x5051('0xc')]),{'classes':[]};const _0xeb2776=['ck-comment-marker'];return _0x3e95a9&&_0xeb2776['push'](_0x5051('0x15')),{'classes':_0xeb2776,'attributes':{'data-comment':_0x3dab11}};}}),_0xccbd2f['conversion'][_0x5051('0x26')]('dataDowncast')[_0x5051('0x68')]({'model':_0x5051('0x63'),'view':(_0x2f04d7,{options:_0x55956c})=>{const _0x34a5ab=_0xccbd2f['plugins'][_0x5051('0x33')](_0xe616a6),_0x40bbfe=_0xccbd2f['model'][_0x5051('0x2d')][_0x5051('0x33')](_0x2f04d7),{id:_0x306c9b,part:_0x5abb4e}=ot(_0x2f04d7);if(_0x40bbfe&&!_0x40bbfe[_0x5051('0x61')])return null;if(_0x55956c[_0x5051('0x7a')]){const _0x31cc3c=_0x34a5ab[_0x5051('0x3e')](_0x306c9b);if(_0x31cc3c&&_0x31cc3c[_0x5051('0x24')])return null;}return{'group':_0x5051('0x63'),'name':_0x5abb4e?_0x306c9b+':'+_0x5abb4e:_0x306c9b};}}),_0xccbd2f[_0x5051('0x4f')][_0x5051('0x26')](_0x5051('0x4e'))[_0x5051('0x35')]({'view':{'name':_0x5051('0x63'),'attributes':{'id':/^\w/}},'model':(_0x5ee9d3,{writer:_0x302598})=>_0x302598[_0x5051('0x2c')](_0x5051('0x6d'),{'data-name':_0x5051('0x67')+_0x5ee9d3[_0x5051('0x56')]('id')})}),_0xccbd2f[_0x5051('0x4f')][_0x5051('0x26')](_0x5051('0x4e'))[_0x5051('0x6')]({'view':_0x5051('0x63')});}[_0x5051('0x34')](){const _0x4f8d2f=this[_0x5051('0x3b')],_0x513603=_0x4f8d2f['plugins'][_0x5051('0x33')](_0xe616a6),_0x3e2936=new Set(),_0x3a24db=new Set();_0x4f8d2f['model']['document']['registerPostFixer'](_0x5d2422=>{let _0x14def2=!0x1;for(const {name:_0x20ce47,data:_0x3bc781}of _0x4f8d2f[_0x5051('0x1a')][_0x5051('0x4c')][_0x5051('0x44')][_0x5051('0x11')]()){const {group:_0x3e683e,id:_0x3559ba}=ot(_0x20ce47);let _0x556efe=_0x3bc781[_0x5051('0x53')];if(_0x5051('0x63')!==_0x3e683e||!_0x556efe)continue;const _0x4aba1c=_0x5051('0x32')===_0x556efe['root'][_0x5051('0x4')];_0x4aba1c||(_0x556efe=et(_0x556efe,_0x4f8d2f[_0x5051('0x1a')]),!_0x556efe||_0x556efe[_0x5051('0x8')]||!_0x3bc781[_0x5051('0x53')]||_0x556efe[_0x5051('0x36')](_0x3bc781[_0x5051('0x53')]))?_0x4f8d2f[_0x5051('0x1a')][_0x5051('0x1')](_0x556efe)&&!_0x4aba1c?this[_0x5051('0x6b')]?_0x3e2936['add'](_0x20ce47):this[_0x5051('0x13')](_0x20ce47,_0x3559ba):(_0x3a24db[_0x5051('0x25')](_0x20ce47),_0x3e2936[_0x5051('0x17')](_0x20ce47),_0x5d2422[_0x5051('0x1b')](_0x20ce47),_0x14def2=!0x0):(_0x5d2422[_0x5051('0x12')](_0x20ce47,{'range':_0x556efe}),_0x14def2=!0x0);}return _0x14def2;}),this['on'](_0x5051('0x3d'),(_0x315b56,_0x310958,_0x4c0be)=>{if(!_0x4c0be&&_0x3e2936[_0x5051('0x47')])for(const _0x35d045 of _0x3e2936){const {id:_0x464e7a}=ot(_0x35d045);_0x3e2936[_0x5051('0x17')](_0x35d045),_0x4f8d2f[_0x5051('0x1a')]['markers'][_0x5051('0x33')](_0x35d045)&&this[_0x5051('0x13')](_0x35d045,_0x464e7a);}}),this['listenTo'](_0x4f8d2f[_0x5051('0x1a')][_0x5051('0x4c')],'change',(_0x2ab7a0,_0x7e7a1a)=>{for(const {name:_0x1e8808,data:{newRange:_0x441bac}}of _0x4f8d2f[_0x5051('0x1a')]['document'][_0x5051('0x44')][_0x5051('0x11')]()){const {group:_0x220f0d,id:_0x3467dd}=ot(_0x1e8808);if(_0x5051('0x63')!==_0x220f0d)continue;const _0x1a38d3=_0x513603[_0x5051('0x3e')](_0x3467dd),_0x2f1707=this[_0x5051('0x62')](_0x3467dd);_0x1a38d3&&(_0x1a38d3[_0x5051('0x0')]||_0x4f8d2f[_0x5051('0x5e')][_0x5051('0x1e')][_0x5051('0x6f')](_0x5051('0x41'),()=>{const _0x261a4f=_0x4f8d2f[_0x5051('0x48')][_0x5051('0x33')](_0x1af998),_0x490524=_0x513603['_threadToController'][_0x5051('0x33')](_0x1a38d3)[_0x5051('0x1e')];_0x261a4f[_0x5051('0x57')](_0x490524)['refreshVisibility']();},{'priority':'low'}),_0x1a38d3['_hasTargetInContent']=_0x2f1707||!!_0x441bac),_0x441bac||(_0x3a24db[_0x5051('0x25')](_0x1e8808),_0x3e2936[_0x5051('0x17')](_0x1e8808));}if(_0x7e7a1a[_0x5051('0x71')])for(const _0x37b486 of _0x3a24db){const {id:_0x6506e2}=ot(_0x37b486),_0x26be29=_0x513603[_0x5051('0x3e')](_0x6506e2),_0x485596=this[_0x5051('0x62')](_0x6506e2);_0x3e2936[_0x5051('0x17')](_0x37b486),!_0x26be29||_0x485596||_0x26be29['unlinkedAt']||_0x26be29[_0x5051('0x3f')](new Date());}_0x3a24db[_0x5051('0x4d')]();});}[_0x5051('0x29')](_0x4062cb){const _0x578448=this[_0x5051('0x3b')],_0x4a7378=this[_0x5051('0x40')](_0x4062cb);return _0x38bbf0(_0x578448[_0x5051('0x5e')],_0x4a7378);}[_0x5051('0x74')](_0x2df3d4){const _0x454998=this[_0x5051('0x40')](_0x2df3d4);let _0x5f04e5='',_0x103ef3=!0x1;for(const _0x9da1e1 of _0x454998){const _0x2c8e1f=_0x9da1e1[_0x5051('0xa')]();for(const _0x28c3fd of Array[_0x5051('0x38')](_0x2c8e1f[_0x5051('0x69')]()))_0x28c3fd['is'](_0x5051('0x31'))?(_0x5f04e5&&_0x103ef3&&(_0x5f04e5+='\x20',_0x103ef3=!0x1),_0x5f04e5+=_0x28c3fd[_0x5051('0x5')]):_0x103ef3=!0x0;_0x103ef3=!0x0;}return _0x5f04e5[_0x5051('0x6e')](0x0,0x96);}[_0x5051('0x23')](_0x4eaaf5,_0x560efd){const _0x56ed0a=this[_0x5051('0x3b')],_0x1e5111=_0x56ed0a[_0x5051('0x48')][_0x5051('0x33')](_0xe616a6);let _0x27497e=_0x1e5111['getCommentThread'](_0x560efd);const _0x2b642a=_0x56ed0a[_0x5051('0x3c')]['get'](_0x5051('0x3')),_0x5d4f1b=_0x56ed0a[_0x5051('0x48')][_0x5051('0x33')](_0x5e6059);if(_0x27497e&&(_0x27497e[_0x5051('0x16')]&&_0x27497e[_0x5051('0x3f')](null),_0x27497e[_0x5051('0x50')]))return _0x27497e;return!this['getAllMarkersForId'](_0x560efd)[0x0][_0x5051('0x70')]?_0x56ed0a[_0x5051('0x5e')]['view']['once'](_0x5051('0x41'),()=>{if(_0x1e5111[_0x5051('0x3e')](_0x560efd))return;const _0x2bd1cb=_0x56ed0a[_0x5051('0x48')]['get'](_0x1af998);_0x27497e=_0x1e5111[_0x5051('0x2f')]({'channelId':_0x2b642a,'threadId':_0x560efd,'target':()=>this[_0x5051('0x29')](_0x560efd),'context':{'type':_0x5051('0x65'),'value':this[_0x5051('0x74')](_0x560efd)}});const _0x5df5bc=_0x1e5111['_threadToController']['get'](_0x27497e)[_0x5051('0x1e')],_0x5bb1f1=_0x2bd1cb[_0x5051('0x57')](_0x5df5bc);_0x5bb1f1&&_0x5d4f1b[_0x5051('0x55')](_0x5bb1f1);},{'priority':_0x5051('0x14')}):_0x1e5111[_0x5051('0xf')]({'channelId':_0x2b642a,'threadId':_0x560efd})[_0x5051('0x3a')](_0xa0053e=>{if(_0x5051('0x75')!==_0x56ed0a[_0x5051('0x5d')]){if(_0x27497e=_0xa0053e,_0x27497e&&!_0x27497e[_0x5051('0x50')]){const _0x225dd3=_0x27497e['attachTo'](()=>this[_0x5051('0x29')](_0x560efd));_0x5d4f1b[_0x5051('0x55')](_0x225dd3),_0x27497e[_0x5051('0x24')]&&this[_0x5051('0x22')](_0x560efd);}else{if(!_0x27497e){const _0xed3fb4=this['getAllMarkersForId'](_0x560efd);_0x56ed0a[_0x5051('0x1a')][_0x5051('0x5a')](_0x3d0ce6=>{for(const _0x403631 of _0xed3fb4)_0x3d0ce6['removeMarker'](_0x403631);});}}}}),_0x27497e;}['_handleThreadMarker'](_0x2e69a9,_0x1d2331){const _0x45bf85=this[_0x5051('0x23')](_0x2e69a9,_0x1d2331);_0x45bf85&&!_0x45bf85[_0x5051('0x45')]&&_0x45bf85[_0x5051('0x6c')]({'type':_0x5051('0x65'),'value':this[_0x5051('0x74')](_0x1d2331)});}[_0x5051('0x1c')](){const _0x24a154=this[_0x5051('0x3b')];_0x3e2fe5(_0x24a154['model'],({left:_0x1348e3,entered:_0x5c4fd2})=>{const _0x16efdd=[];for(const _0x589431 of _0x1348e3)if(rt(_0x589431)){_0x16efdd[_0x5051('0x5c')](_0x40ec1b(_0x24a154[_0x5051('0x72')],_0x5051('0x27')));break;}for(const _0x40e3d8 of _0x5c4fd2)if(rt(_0x40e3d8)){_0x16efdd[_0x5051('0x5c')](_0x40ec1b(_0x24a154['locale'],_0x5051('0x30')));break;}_0x16efdd['length']&&_0x24a154['ui'][_0x5051('0x64')][_0x5051('0x2b')](_0x5051('0xb'),_0x16efdd[_0x5051('0x59')]('\x20'));});}}function tt(_0x56c4ef,_0x32d056){return _0x32d056?_0x56c4ef+':'+_0x32d056:_0x56c4ef;}function ot(_0x376a96){const _0x3a7d24=_0x376a96[_0x5051('0x10')](':');return{'group':_0x3a7d24[0x0],'id':_0x3a7d24[0x1],'part':_0x3a7d24[0x2]};}function et(_0x12b48d,_0x5c4e7d){const _0x15f071=_0x5c4e7d['schema'],_0x43e5f4=_0x5c4e7d[_0x5051('0x18')](_0x12b48d[_0x5051('0x51')]);for(const _0xf3d977 of _0x12b48d[_0x5051('0x21')]()){const {type:_0x294b4d,item:_0x222eb9,nextPosition:_0x35e603}=_0xf3d977;if('text'===_0x294b4d||_0x15f071['isObject'](_0x222eb9)){const _0x33335d=_0x5c4e7d[_0x5051('0x2a')](_0x222eb9);_0x43e5f4['isCollapsed']&&(_0x43e5f4['start']=_0x33335d),_0x43e5f4['end']=_0x35e603;}}return _0x43e5f4;}function rt(_0x51d131){return _0x5051('0x63')===ot(_0x51d131[_0x5051('0x37')])[_0x5051('0x4b')];}
23
+ const _0x5ac1=['_handleThreadMarker','hasMarkerForId','addCommentThread','collaboration.channelId','change:activeMarker','addMarker:','editing','root','_detachCommentThread','item','updateMarker','getRange','delete','enqueueChange','$textProxy','text','markers','getWalker','model','getAttribute','scrollToThreadMarker','_attachResolvedThread','_getTargetForId','isResolved','setUnlinkedAt','affectsData','render','dataDowncast','_reconvertMarkers','document','isThreadsLoadingPaused','createRange','attachTo','removeMarker','commands','isObject','destroy','_handleMarkerAddAndRemove','start','once','fetchCommentThread','reconvertMarker','isEqual','switchReadOnly','createPositionBefore','group','change:isReadOnly','set','isCollapsed','hasCommentThread','for','openNewCommentThread','_getTextContext','consume','context','comments','registerAnnotation','upcast','config','archivedAt','getAllMarkersForId','then','conversion','unlinkedAt','_threadToController','getByInnerView','get','addComment','length','_hasTargetInContent','getItems','add','view','push','isAttached','isLocal','differ','getCommentThreads','LEAVE_COMMENT_ANNOUNCEMENT','split','startsWith','schema','low','rootName','markerToData','ariaLiveAnnouncer','removeCommentThread','activeMarker','consumable','setContext','removeMarker:','name','_initAriaMarkerChangeAnnouncements','_attachMarkerToThread','editor','dataToMarker','locale','size','change:isThreadsLoadingPaused','_threads','plugins','data','refreshVisibility','substring','join','change','init','listenTo','CommentsEditing','state','requires','newRange','markerName','announce','comment','editingDowncast','registerPostFixer','getChangedMarkers','getCommentThread','ck-comment-marker--active','$marker'];(function(_0x56fbb8,_0x5ac126){const _0x376a95=function(_0x4e25a2){while(--_0x4e25a2){_0x56fbb8['push'](_0x56fbb8['shift']());}};_0x376a95(++_0x5ac126);}(_0x5ac1,0x1d1));const _0x376a=function(_0x56fbb8,_0x5ac126){_0x56fbb8=_0x56fbb8-0x0;let _0x376a95=_0x5ac1[_0x56fbb8];return _0x376a95;};import{Plugin as _0x1e3676}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x11d671}from'ckeditor5/src/utils';import _0x42654b from'./commentsrepository';import _0x571ea8 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x14416c,getAllMarkersDomElementsSorted as _0x80c220}from'ckeditor5-collaboration/src/collaboration-core';import _0x35ced3 from'../annotations/editorannotations';import _0x4d24bd from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x516e72 from'./integrations/importword';import _0x3d77a2 from'../annotations/annotations';import{getTranslation as _0x459d07}from'../utils/common-translations';export default class r extends _0x1e3676{static get[_0x376a('0x8')](){return[_0x42654b,_0x35ced3,_0x4d24bd,_0x516e72];}static get['pluginName'](){return _0x376a('0x6');}constructor(_0x11aa10){super(_0x11aa10),this[_0x376a('0x42')](_0x376a('0x31'),!0x0),_0x11aa10[_0x376a('0x78')]['once']('ready',()=>this[_0x376a('0x31')]=!0x1),this['set']('activeMarker',null),this['on'](_0x376a('0x17'),(_0x48a0a6,_0x3c3329,_0x4a7db3,_0x4e38c0)=>{const _0x3f96f2=_0x4a7db3?ot(_0x4a7db3)['id']:null;if(_0x11aa10[_0x376a('0x25')]['change'](()=>{if(_0x3f96f2){const _0x3c5fef=this['getAllMarkersForId'](_0x3f96f2);for(const _0x32e296 of _0x3c5fef)_0x11aa10['editing'][_0x376a('0x3c')](_0x32e296);}if(_0x4e38c0){const {id:_0x200a90}=ot(_0x4e38c0),_0x2d94c9=this['getAllMarkersForId'](_0x200a90);for(const _0x4f5da2 of _0x2d94c9)_0x11aa10[_0x376a('0x19')]['reconvertMarker'](_0x4f5da2);}}),_0x3f96f2){const _0x470db2=_0x11aa10[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x3f96f2);_0x470db2&&_0x470db2[_0x376a('0x2a')]&&this[_0x376a('0x27')](_0x3f96f2);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x376a('0x4')](){const _0x79280e=this[_0x376a('0x71')],_0x4c1608=_0x79280e[_0x376a('0x77')]['get'](_0x42654b),_0x464e9b=_0x79280e[_0x376a('0x4d')]['get'](_0x376a('0x16'));_0x79280e[_0x376a('0x35')]['add'](_0x376a('0x15'),new _0x571ea8(_0x79280e)),this[_0x376a('0x5')](_0x79280e,_0x376a('0x41'),(_0x268aec,_0x243a96,_0x5b6dcc)=>{_0x4c1608[_0x376a('0x3e')](_0x5b6dcc,_0x79280e[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'));}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x15'),_0x464e9b),(_0x2463d0,{threadId:_0x52c8dd})=>{const _0x184594=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x52c8dd);_0x184594&&_0x184594[_0x376a('0x4e')]&&this[_0x376a('0x28')](_0x52c8dd);}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x69'),_0x464e9b),(_0x23f472,{threadId:_0x1ab6fd})=>{_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x3f75fb=>{const _0x40f761=this[_0x376a('0x4f')](_0x1ab6fd);for(const _0x20d60c of _0x40f761)_0x3f75fb[_0x376a('0x34')](_0x20d60c);});}),this[_0x376a('0x5')](_0x4c1608,tt('resolveCommentThread',_0x464e9b),(_0x1fd5c4,{threadId:_0xdaebaf})=>{(this[_0x376a('0x28')](_0xdaebaf),this['_reconvertMarkers'](_0xdaebaf),this['editor'][_0x376a('0x19')][_0x376a('0x5b')]['hasDomSelection'])&&(this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0xdaebaf)[_0x376a('0x52')]||this[_0x376a('0x71')][_0x376a('0x19')][_0x376a('0x5b')]['focus']());},{'priority':'low'}),this[_0x376a('0x5')](_0x4c1608,tt('reopenCommentThread',_0x464e9b),(_0x38c61f,{threadId:_0x15daa3})=>{this[_0x376a('0x2f')](_0x15daa3);},{'priority':_0x376a('0x65')}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x56'),_0x464e9b),(_0x435ed5,{threadId:_0x227af7,isFromAdapter:_0x320ba8})=>{const _0x5ecebc=this['getAllMarkersForId'](_0x227af7);if(_0x320ba8||0x0==_0x5ecebc[_0x376a('0x57')]||!_0x4c1608[_0x376a('0x44')](_0x227af7))return;0x1===_0x4c1608[_0x376a('0x10')](_0x227af7)['length']&&_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x183a32=>{for(const _0x4a29bc of _0x5ecebc)_0x183a32[_0x376a('0x1d')](_0x4a29bc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x376a('0x38')]();}['destroy'](){const _0x1ead5f=this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b),_0x357a01=this[_0x376a('0x71')][_0x376a('0x4d')][_0x376a('0x55')](_0x376a('0x16'));for(const _0x2cb021 of _0x1ead5f[_0x376a('0x60')]({'channelId':_0x357a01}))_0x1ead5f[_0x376a('0x1b')](_0x2cb021['id']),_0x1ead5f[_0x376a('0x76')][_0x376a('0x1f')](_0x2cb021['id']);super[_0x376a('0x37')]();}[_0x376a('0x14')](_0x35d34f){return this[_0x376a('0x4f')](_0x35d34f)['length']>0x0;}[_0x376a('0x4f')](_0x11af53){const _0x3ba4a3=[];for(const _0x3a8094 of this[_0x376a('0x71')]['model']['markers'])_0x3a8094['name'][_0x376a('0x63')]('comment:'+_0x11af53)&&_0x3ba4a3[_0x376a('0x5c')](_0x3a8094);return _0x3ba4a3;}[_0x376a('0x27')](_0x327b0a){const _0x3d0435=this[_0x376a('0x29')](_0x327b0a);_0x3d0435&&setTimeout(()=>{this[_0x376a('0x6a')]&&ot(this[_0x376a('0x6a')])['id']===_0x327b0a&&_0x11d671({'target':_0x3d0435[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xfe5818){this[_0x376a('0x71')][_0x376a('0x25')][_0x376a('0x3')](()=>{for(const _0x139d03 of this[_0x376a('0x4f')](_0xfe5818))this['editor'][_0x376a('0x19')][_0x376a('0x3c')](_0x139d03);});}['_attachResolvedThread'](_0x15d9f4){const _0x2c8b9a=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x1ea714=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x35ced3),_0x470175=_0x2c8b9a[_0x376a('0x10')](_0x15d9f4);if(!_0x470175[_0x376a('0x5d')]){const _0x22fe1f=_0x470175['attachTo'](()=>this[_0x376a('0x29')](_0x470175['id']));_0x1ea714['registerAnnotation'](_0x22fe1f),_0x470175[_0x376a('0x58')]=!0x1;}}['_initializeMarkerConverters'](){const _0x4f9f63=this[_0x376a('0x71')];_0x4f9f63['conversion'][_0x376a('0x45')](_0x376a('0xd'))['markerToHighlight']({'model':_0x376a('0xc'),'view':(_0x70050c,_0x4e4c94)=>{const {id:_0x2cf339}=ot(_0x70050c[_0x376a('0xa')]),_0x4f2dec=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x2cf339),_0x41c378=this['activeMarker']&&ot(this[_0x376a('0x6a')])['id']===_0x2cf339;if(_0x4f2dec&&_0x4f2dec[_0x376a('0x2a')]&&!_0x41c378&&_0x70050c['item'])return _0x4e4c94['consumable'][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x18')+_0x70050c['markerName']),_0x4e4c94[_0x376a('0x6b')][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x6d')+_0x70050c['markerName']),{'classes':[]};const _0x48d8f8=['ck-comment-marker'];return _0x41c378&&_0x48d8f8[_0x376a('0x5c')](_0x376a('0x11')),{'classes':_0x48d8f8,'attributes':{'data-comment':_0x2cf339}};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x2e'))[_0x376a('0x67')]({'model':_0x376a('0xc'),'view':(_0x2fcd88,{options:_0x1e4489})=>{const _0x336543=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x15fe89=_0x4f9f63[_0x376a('0x25')]['markers']['get'](_0x2fcd88),{id:_0x1023ce,part:_0x24ee4a}=ot(_0x2fcd88);if(_0x15fe89&&!_0x15fe89[_0x376a('0x2c')])return null;if(_0x1e4489['ignoreResolvedComments']){const _0x58e38e=_0x336543[_0x376a('0x10')](_0x1023ce);if(_0x58e38e&&_0x58e38e[_0x376a('0x2a')])return null;}return{'group':_0x376a('0xc'),'name':_0x24ee4a?_0x1023ce+':'+_0x24ee4a:_0x1023ce};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x4c'))['elementToElement']({'view':{'name':_0x376a('0xc'),'attributes':{'id':/^\w/}},'model':(_0xf56158,{writer:_0x204dec})=>_0x204dec['createElement'](_0x376a('0x12'),{'data-name':'comment:'+_0xf56158[_0x376a('0x26')]('id')})}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')]('upcast')[_0x376a('0x72')]({'view':_0x376a('0xc')});}[_0x376a('0x38')](){const _0x40d519=this['editor'],_0x5a722d=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x5dddff=new Set(),_0xec15a=new Set();_0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0xe')](_0x423927=>{let _0x53cb3c=!0x1;for(const {name:_0x4a58e5,data:_0xe925e9}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')]['getChangedMarkers']()){const {group:_0x2befb0,id:_0x53d45a}=ot(_0x4a58e5);let _0x51fb2d=_0xe925e9[_0x376a('0x9')];if(_0x376a('0xc')!==_0x2befb0||!_0x51fb2d)continue;const _0xa1ab6f='$graveyard'===_0x51fb2d[_0x376a('0x1a')][_0x376a('0x66')];_0xa1ab6f||(_0x51fb2d=et(_0x51fb2d,_0x40d519[_0x376a('0x25')]),!_0x51fb2d||_0x51fb2d[_0x376a('0x43')]||!_0xe925e9[_0x376a('0x9')]||_0x51fb2d[_0x376a('0x3d')](_0xe925e9['newRange']))?_0x40d519['model']['hasContent'](_0x51fb2d)&&!_0xa1ab6f?this[_0x376a('0x31')]?_0x5dddff['add'](_0x4a58e5):this['_handleThreadMarker'](_0x4a58e5,_0x53d45a):(_0xec15a['add'](_0x4a58e5),_0x5dddff[_0x376a('0x1f')](_0x4a58e5),_0x423927['removeMarker'](_0x4a58e5),_0x53cb3c=!0x0):(_0x423927[_0x376a('0x1d')](_0x4a58e5,{'range':_0x51fb2d}),_0x53cb3c=!0x0);}return _0x53cb3c;}),this['on'](_0x376a('0x75'),(_0x4c0bd1,_0x5e82f7,_0x198a75)=>{if(!_0x198a75&&_0x5dddff[_0x376a('0x74')])for(const _0x5d09cc of _0x5dddff){const {id:_0x5db44b}=ot(_0x5d09cc);_0x5dddff[_0x376a('0x1f')](_0x5d09cc),_0x40d519[_0x376a('0x25')][_0x376a('0x23')][_0x376a('0x55')](_0x5d09cc)&&this[_0x376a('0x13')](_0x5d09cc,_0x5db44b);}}),this[_0x376a('0x5')](_0x40d519[_0x376a('0x25')][_0x376a('0x30')],_0x376a('0x3'),(_0x17cd81,_0xaea202)=>{for(const {name:_0x3771d3,data:{newRange:_0x1d2f9c}}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')][_0x376a('0xf')]()){const {group:_0x4694dd,id:_0x19acbe}=ot(_0x3771d3);if('comment'!==_0x4694dd)continue;const _0xfacc96=_0x5a722d[_0x376a('0x10')](_0x19acbe),_0x1c0127=this[_0x376a('0x14')](_0x19acbe);_0xfacc96&&(_0xfacc96[_0x376a('0x58')]||_0x40d519['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{const _0x25b859=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x3d77a2),_0xfec2c3=_0x5a722d[_0x376a('0x53')][_0x376a('0x55')](_0xfacc96)[_0x376a('0x5b')];_0x25b859[_0x376a('0x54')](_0xfec2c3)[_0x376a('0x0')]();},{'priority':_0x376a('0x65')}),_0xfacc96[_0x376a('0x58')]=_0x1c0127||!!_0x1d2f9c),_0x1d2f9c||(_0xec15a[_0x376a('0x5a')](_0x3771d3),_0x5dddff[_0x376a('0x1f')](_0x3771d3));}if(_0xaea202[_0x376a('0x5e')])for(const _0x346561 of _0xec15a){const {id:_0x593caf}=ot(_0x346561),_0x3d7a9a=_0x5a722d[_0x376a('0x10')](_0x593caf),_0x285468=this[_0x376a('0x14')](_0x593caf);_0x5dddff[_0x376a('0x1f')](_0x346561),!_0x3d7a9a||_0x285468||_0x3d7a9a[_0x376a('0x52')]||_0x3d7a9a[_0x376a('0x2b')](new Date());}_0xec15a['clear']();});}['_getTargetForId'](_0x1ddf8f){const _0x3b3224=this[_0x376a('0x71')],_0x44f55a=this[_0x376a('0x4f')](_0x1ddf8f);return _0x80c220(_0x3b3224[_0x376a('0x19')],_0x44f55a);}[_0x376a('0x47')](_0x359237){const _0x16a715=this[_0x376a('0x4f')](_0x359237);let _0x332b1a='',_0x423eec=!0x1;for(const _0x30b0ce of _0x16a715){const _0x513f7b=_0x30b0ce[_0x376a('0x1e')]();for(const _0x50676b of Array['from'](_0x513f7b[_0x376a('0x59')]()))_0x50676b['is'](_0x376a('0x21'))?(_0x332b1a&&_0x423eec&&(_0x332b1a+='\x20',_0x423eec=!0x1),_0x332b1a+=_0x50676b[_0x376a('0x78')]):_0x423eec=!0x0;_0x423eec=!0x0;}return _0x332b1a[_0x376a('0x1')](0x0,0x96);}[_0x376a('0x70')](_0xd1e7d4,_0x42afe1){const _0x45c225=this[_0x376a('0x71')],_0xfae551=_0x45c225[_0x376a('0x77')][_0x376a('0x55')](_0x42654b);let _0x1c9555=_0xfae551[_0x376a('0x10')](_0x42afe1);const _0x3c56d1=_0x45c225[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'),_0x55a250=_0x45c225['plugins'][_0x376a('0x55')](_0x35ced3);if(_0x1c9555&&(_0x1c9555['unlinkedAt']&&_0x1c9555['setUnlinkedAt'](null),_0x1c9555['isAttached']))return _0x1c9555;return!this[_0x376a('0x4f')](_0x42afe1)[0x0]['managedUsingOperations']?_0x45c225['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{if(_0xfae551[_0x376a('0x10')](_0x42afe1))return;const _0xbd5b6b=_0x45c225['plugins']['get'](_0x3d77a2);_0x1c9555=_0xfae551[_0x376a('0x46')]({'channelId':_0x3c56d1,'threadId':_0x42afe1,'target':()=>this[_0x376a('0x29')](_0x42afe1),'context':{'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x42afe1)}});const _0x3909e2=_0xfae551[_0x376a('0x53')][_0x376a('0x55')](_0x1c9555)[_0x376a('0x5b')],_0x4c4985=_0xbd5b6b[_0x376a('0x54')](_0x3909e2);_0x4c4985&&_0x55a250[_0x376a('0x4b')](_0x4c4985);},{'priority':_0x376a('0x65')}):_0xfae551[_0x376a('0x3b')]({'channelId':_0x3c56d1,'threadId':_0x42afe1})[_0x376a('0x50')](_0x1b3fd9=>{if('destroyed'!==_0x45c225[_0x376a('0x7')]){if(_0x1c9555=_0x1b3fd9,_0x1c9555&&!_0x1c9555[_0x376a('0x5d')]){const _0x1568c8=_0x1c9555[_0x376a('0x33')](()=>this[_0x376a('0x29')](_0x42afe1));_0x55a250[_0x376a('0x4b')](_0x1568c8),_0x1c9555[_0x376a('0x2a')]&&this[_0x376a('0x2f')](_0x42afe1);}else{if(!_0x1c9555){const _0x5e2d07=this[_0x376a('0x4f')](_0x42afe1);_0x45c225['model'][_0x376a('0x3')](_0x1541ac=>{for(const _0x12edb2 of _0x5e2d07)_0x1541ac[_0x376a('0x34')](_0x12edb2);});}}}}),_0x1c9555;}[_0x376a('0x13')](_0x477a60,_0x15c3b1){const _0x2f9841=this[_0x376a('0x70')](_0x477a60,_0x15c3b1);_0x2f9841&&!_0x2f9841[_0x376a('0x49')]&&_0x2f9841[_0x376a('0x6c')]({'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x15c3b1)});}[_0x376a('0x6f')](){const _0x24a3cf=this[_0x376a('0x71')];_0x14416c(_0x24a3cf['model'],({left:_0x4bccbe,entered:_0x5eb154})=>{const _0x2b2e68=[];for(const _0x2c5294 of _0x4bccbe)if(rt(_0x2c5294)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],_0x376a('0x61')));break;}for(const _0x1d606d of _0x5eb154)if(rt(_0x1d606d)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2b2e68[_0x376a('0x57')]&&_0x24a3cf['ui'][_0x376a('0x68')][_0x376a('0xb')](_0x376a('0x4a'),_0x2b2e68[_0x376a('0x2')]('\x20'));});}}function tt(_0x240cab,_0xebdd60){return _0xebdd60?_0x240cab+':'+_0xebdd60:_0x240cab;}function ot(_0x4fa8f5){const _0x5d8883=_0x4fa8f5[_0x376a('0x62')](':');return{'group':_0x5d8883[0x0],'id':_0x5d8883[0x1],'part':_0x5d8883[0x2]};}function et(_0x55e127,_0x364252){const _0x437ea6=_0x364252[_0x376a('0x64')],_0x23e083=_0x364252[_0x376a('0x32')](_0x55e127[_0x376a('0x39')]);for(const _0x1a701e of _0x55e127[_0x376a('0x24')]()){const {type:_0x21848c,item:_0x1583e4,nextPosition:_0x55c3fc}=_0x1a701e;if(_0x376a('0x22')===_0x21848c||_0x437ea6[_0x376a('0x36')](_0x1583e4)){const _0x520992=_0x364252[_0x376a('0x3f')](_0x1583e4);_0x23e083[_0x376a('0x43')]&&(_0x23e083[_0x376a('0x39')]=_0x520992),_0x23e083['end']=_0x55c3fc;}}return _0x23e083;}function rt(_0x11d3e3){return _0x376a('0xc')===ot(_0x11d3e3[_0x376a('0x6e')])[_0x376a('0x40')];}