@ckeditor/ckeditor5-comments 0.0.0-nightly-20231211.0 → 0.0.0-nightly-20231213.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.d.ts +1 -0
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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);}}
23
+ const _0x5b12=['content','length','_updateHeight','clientHeight','Esc','render','add','_mutationObserver','focusTracker','div','mainView','bindTemplate','attach','destroy','element','type','set','createCollection','keystrokes','listenTo','setTemplate','height','isActive','clear','ck-annotation-wrapper--active','isDirty','fire'];(function(_0x2ca5db,_0x5b125f){const _0x383e4f=function(_0x35128f){while(--_0x35128f){_0x2ca5db['push'](_0x2ca5db['shift']());}};_0x383e4f(++_0x5b125f);}(_0x5b12,0x11f));const _0x383e=function(_0x2ca5db,_0x5b125f){_0x2ca5db=_0x2ca5db-0x0;let _0x383e4f=_0x5b12[_0x2ca5db];return _0x383e4f;};import{View as _0x3cb4f8}from'ckeditor5/src/ui';import{FocusTracker as _0x5cf7bd,KeystrokeHandler as _0x2059be,uid as _0x425382}from'ckeditor5/src/utils';import _0x4b2676 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3cb4f8{constructor(_0x428cee,_0x312a15){super(_0x428cee),this['id']=_0x425382(),this[_0x383e('0x12')]=new _0x5cf7bd(),this['keystrokes']=new _0x2059be(),this[_0x383e('0x1')]['set'](_0x383e('0xe'),(_0x3699c8,_0x33b380)=>this[_0x383e('0x9')](_0x383e('0xe'),_0x33b380)),this[_0x383e('0x1a')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x383e('0x1a')](_0x383e('0x4'),0x0),this[_0x383e('0x1a')](_0x383e('0x5'),!0x1),this['set'](_0x383e('0x8'),!0x1),this['set'](_0x383e('0xb'),0x0),this[_0x383e('0x1a')](_0x383e('0x19'),''),this['_mutationObserver']=_0x4b2676(()=>this['_updateHeight']()),this['content']=this[_0x383e('0x0')](),this[_0x383e('0xa')][_0x383e('0x10')](_0x312a15),this[_0x383e('0x14')]=_0x312a15;const _0x49bf4f=this[_0x383e('0x15')];this[_0x383e('0x3')]({'tag':_0x383e('0x13'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x49bf4f['if'](_0x383e('0x5'),_0x383e('0x7'))],'tabindex':-0x1},'children':this['content']});}[_0x383e('0xf')](){super[_0x383e('0xf')](),this[_0x383e('0x12')][_0x383e('0x10')](this[_0x383e('0x18')]),this[_0x383e('0x1')][_0x383e('0x2')](this['element']),this['_mutationObserver'][_0x383e('0x16')](this['element']);}[_0x383e('0x17')](){this[_0x383e('0xa')][_0x383e('0x6')](),this[_0x383e('0x1')][_0x383e('0x17')](),this[_0x383e('0x12')][_0x383e('0x17')](),this[_0x383e('0x11')]['detach'](),super[_0x383e('0x17')]();}['focus'](){this[_0x383e('0x18')]['focus']();}[_0x383e('0xc')](){const _0xd2c53e=this[_0x383e('0x18')][_0x383e('0xd')];_0xd2c53e&&(this[_0x383e('0x4')]=_0xd2c53e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();}}
23
+ const _0x545f=['height','top','div','content','element','updateHeight','ck-sidebar-item','detach','set','bindTemplate','destroy','isAnimationDisabled','_mutationObserver','render','setTemplate','createCollection','attach','bottom','_targetTop','clientHeight'];(function(_0x1dd0d3,_0x545ffb){const _0x30423c=function(_0x3638f1){while(--_0x3638f1){_0x1dd0d3['push'](_0x1dd0d3['shift']());}};_0x30423c(++_0x545ffb);}(_0x545f,0xe1));const _0x3042=function(_0x1dd0d3,_0x545ffb){_0x1dd0d3=_0x1dd0d3-0x0;let _0x30423c=_0x545f[_0x1dd0d3];return _0x30423c;};import{View as _0x5adeb2}from'ckeditor5/src/ui';import{toUnit as _0x4bce9a}from'ckeditor5/src/utils';import _0x41c348 from'../../utils/createmutationobserver';const jt=_0x4bce9a('px');export default class C extends _0x5adeb2{constructor(_0x462622){super(_0x462622),this[_0x3042('0x3')](_0x3042('0x10'),0x0),this[_0x3042('0x3')](_0x3042('0xf'),0x0),this['bind'](_0x3042('0xc'))['to'](this,_0x3042('0x10'),this,_0x3042('0xf'),(_0x2053f0,_0x465d32)=>_0x2053f0+_0x465d32),this['set'](_0x3042('0x6'),!0x1),this[_0x3042('0x7')]=_0x41c348(()=>this[_0x3042('0x0')]()),this[_0x3042('0xd')]=null,this[_0x3042('0x12')]=this[_0x3042('0xa')]();const _0xa3dbeb=this[_0x3042('0x4')];this[_0x3042('0x9')]({'tag':_0x3042('0x11'),'attributes':{'class':[_0x3042('0x1'),_0xa3dbeb['to'](_0x3042('0x6'),_0x54f0bc=>_0x54f0bc?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xa3dbeb['to'](_0x3042('0x10'),_0x4c7820=>jt(_0x4c7820))}},'children':this[_0x3042('0x12')]});}['render'](){super[_0x3042('0x8')](),this[_0x3042('0x7')][_0x3042('0xb')](this[_0x3042('0x13')]);}[_0x3042('0x0')](){const _0x1ad661=this[_0x3042('0x13')][_0x3042('0xe')];_0x1ad661&&(this[_0x3042('0xf')]=_0x1ad661);}[_0x3042('0x5')](){this[_0x3042('0x12')]['clear'](),this[_0x3042('0x7')][_0x3042('0x2')](),super[_0x3042('0x5')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]});}}
23
+ const _0x3349=['list','minHeight','div','set','ck-reset','number','class','setTemplate'];(function(_0x1ea4da,_0x3349c4){const _0x27462b=function(_0xd168b5){while(--_0xd168b5){_0x1ea4da['push'](_0x1ea4da['shift']());}};_0x27462b(++_0x3349c4);}(_0x3349,0xe4));const _0x2746=function(_0x1ea4da,_0x3349c4){_0x1ea4da=_0x1ea4da-0x0;let _0x27462b=_0x3349[_0x1ea4da];return _0x27462b;};import{View as _0x582762}from'ckeditor5/src/ui';import{toUnit as _0x30a132}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x30a132('px');export default class T extends _0x582762{constructor(_0x1ff128){super(_0x1ff128);const _0x34d936=this['bindTemplate'];this[_0x2746('0x7')]('minHeight',0x0),this[_0x2746('0x7')](_0x2746('0x2'),''),this[_0x2746('0x4')]=this['createCollection'](),this[_0x2746('0x3')]({'tag':_0x2746('0x6'),'attributes':{'class':['ck','ck-sidebar',_0x2746('0x0'),_0x34d936['to'](_0x2746('0x2'))],'style':{'minHeight':_0x34d936['to'](_0x2746('0x5'),_0xd2ee9f=>_0x2746('0x1')==typeof _0xd2ee9f?jt(_0xd2ee9f+0xa):null)}},'children':this[_0x2746('0x4')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x3768=['_activeAnnotation','ready','uiUpdate','WideSidebar','refresh','activeAnnotation','_editorAnnotations','pluginName','register','get','_refreshPositioningDebounced','getOrderedSelectedAnnotations','remove','addEventListener','_destroyEditorAnnotationsIntegration','destroy','annotations','_annotations','refreshPositioning','_detachFromContainer','init','hasDomSelection','addAnnotation','rearrange','change:container','container','stopListening','widesidebar-attach-already-attached','add','cancel','from','resize','high','stop','editors','switchTo','blur','plugins','ck-sidebar--wide','listenTo','off','isAttached','detach','attach','context','setActiveAnnotation','_attachToContainer'];(function(_0x1c5a77,_0x376825){const _0x54df98=function(_0x74dffb){while(--_0x74dffb){_0x1c5a77['push'](_0x1c5a77['shift']());}};_0x54df98(++_0x376825);}(_0x3768,0x6b));const _0x54df=function(_0x1c5a77,_0x376825){_0x1c5a77=_0x1c5a77-0x0;let _0x54df98=_0x3768[_0x1c5a77];return _0x54df98;};import{ContextPlugin as _0x320597,Context as _0x2f406e}from'ckeditor5/src/core';import _0x125500 from'./annotationsuis';import _0x51b2d7 from'./sidebar';import{CKEditorError as _0x35a5e1,Collection as _0x568c18}from'ckeditor5/src/utils';import{debounce as _0x3d0297}from'lodash-es';import _0x1b79f3 from'./editorannotations';export default class i extends _0x320597{static get['requires'](){return[_0x51b2d7,_0x125500];}static get[_0x54df('0x29')](){return _0x54df('0x25');}constructor(_0x110178){super(_0x110178),this[_0x54df('0x1c')]=!0x1,this['set'](_0x54df('0x27'),null),this[_0x54df('0x3')]=null,this[_0x54df('0x28')]=new _0x568c18(),this[_0x54df('0x2c')]=_0x3d0297(()=>{this[_0x54df('0x3')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x54df('0x7')](){const _0x5c3d8c=this[_0x54df('0x1f')][_0x54df('0x18')]['get'](_0x125500),_0x4ab47f=this[_0x54df('0x1f')][_0x54df('0x18')][_0x54df('0x2b')](_0x51b2d7);_0x5c3d8c[_0x54df('0x2a')]('wideSidebar',this),_0x4ab47f[_0x54df('0xc')]&&_0x5c3d8c[_0x54df('0x16')]('wideSidebar');}[_0x54df('0x20')](_0x4fd740){if(_0x4fd740===this[_0x54df('0x27')])return;const _0x1c4714=this[_0x54df('0x1f')]['plugins']['get'](_0x51b2d7);_0x1c4714[_0x54df('0x22')]=_0x4fd740;const _0xfe4d74=this['activeAnnotation'];this[_0x54df('0x27')]=_0x4fd740,_0x1c4714['refresh']({'blurredAnnotation':_0xfe4d74,'activatedAnnotation':this[_0x54df('0x27')]});}[_0x54df('0x1e')](_0x4c68e3){this['annotations']=_0x4c68e3;const _0x1ab7ce=this['context']['plugins']['get'](_0x51b2d7);if(_0x1ab7ce[_0x54df('0x4')]=_0x4c68e3,this[_0x54df('0x1c')])throw new _0x35a5e1(_0x54df('0xe'),this);this[_0x54df('0x1c')]=!0x0,this[_0x54df('0x1a')](_0x1ab7ce,'set:container',()=>{this[_0x54df('0x1d')](),this['listenTo'](_0x1ab7ce,_0x54df('0xb'),_0x55f893=>{_0x55f893[_0x54df('0x1b')](),this[_0x54df('0x1e')](_0x4c68e3);});}),_0x1ab7ce[_0x54df('0x21')]({'viewClass':_0x54df('0x19')});const _0x40b24f=_0x52f880=>{_0x52f880['updateTargetRect'](),_0x1ab7ce[_0x54df('0x9')](_0x52f880);};for(const _0x1af99a of _0x4c68e3)_0x40b24f(_0x1af99a);this['listenTo'](_0x4c68e3,'add',(_0x144cba,_0x48a187)=>{_0x40b24f(_0x48a187);}),this[_0x54df('0x1a')](_0x4c68e3,'remove',(_0x3efd45,_0x47dcf2,_0x3d4565)=>{_0x1ab7ce[_0x54df('0xa')]({'removedAnnotation':_0x47dcf2,'previousAnnotation':_0x4c68e3['get'](_0x3d4565-0x1),'nextAnnotation':_0x4c68e3[_0x54df('0x2b')](_0x3d4565+0x1)}),_0x47dcf2===this[_0x54df('0x27')]&&this[_0x54df('0x20')](null);},{'priority':_0x54df('0x13')}),this[_0x54df('0x1a')](_0x4c68e3,'focus',(_0x4cd814,_0x191931)=>{this[_0x54df('0x20')](_0x191931);}),this[_0x54df('0x1a')](_0x4c68e3,_0x54df('0x17'),()=>{this['setActiveAnnotation'](null);});const _0x203610=this[_0x54df('0x1f')]instanceof _0x2f406e?this[_0x54df('0x1f')][_0x54df('0x15')]:new _0x568c18([this[_0x54df('0x1f')]]);for(const _0x1cb5d1 of _0x203610)this['_integrateWithEditorAnnotations'](_0x1cb5d1);this[_0x54df('0x1a')](_0x203610,_0x54df('0xf'),(_0x373811,_0x4936d4)=>{this[_0x54df('0x1a')](_0x4936d4,_0x54df('0x23'),()=>{this['_integrateWithEditorAnnotations'](_0x4936d4);});}),this['listenTo'](_0x203610,'remove',(_0x5e90d1,_0x165e59)=>{_0x165e59['plugins']['has']('EditorAnnotations')&&this[_0x54df('0x1')](_0x165e59[_0x54df('0x18')][_0x54df('0x2b')]('EditorAnnotations'));}),window[_0x54df('0x0')](_0x54df('0x12'),this[_0x54df('0x2c')]),this['annotations'][_0x54df('0x5')]();}['detach'](){if(!this[_0x54df('0x1c')])throw new _0x35a5e1('widesidebar-detach-not-attached',this);this[_0x54df('0x20')](null);const _0x12b42a=this['context'][_0x54df('0x18')][_0x54df('0x2b')](_0x51b2d7);_0x12b42a[_0x54df('0x6')](this[_0x54df('0x3')]),this[_0x54df('0xd')](_0x12b42a),this[_0x54df('0xd')](this[_0x54df('0x3')]),this[_0x54df('0x1f')]instanceof _0x2f406e&&this[_0x54df('0xd')](this['context'][_0x54df('0x15')]);for(const _0x22d7c0 of Array[_0x54df('0x11')](this[_0x54df('0x28')]))this[_0x54df('0x1')](_0x22d7c0);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x54df('0x10')](),this[_0x54df('0x27')]=null,this[_0x54df('0x1c')]=!0x1,this['annotations']=null;}[_0x54df('0x2')](){this[_0x54df('0x1c')]&&this[_0x54df('0x1d')]();}['_integrateWithEditorAnnotations'](_0x4d5ed4){const _0x3a8d27=_0x4d5ed4['plugins'][_0x54df('0x2b')](_0x1b79f3);if(!_0x3a8d27)return;const _0x247f06=()=>{const _0xbd788e=_0x3a8d27[_0x54df('0x2d')]({'annotations':this[_0x54df('0x3')],'activeAnnotation':this[_0x54df('0x27')]});this[_0x54df('0x20')](_0xbd788e[0x0]||null);};this['listenTo'](_0x3a8d27,_0x54df('0x26'),_0x247f06),this[_0x54df('0x1a')](_0x3a8d27,_0x54df('0x17'),(_0x158a8b,{isAnnotationTracked:_0x2605a3})=>{this[_0x54df('0x27')]&&_0x2605a3(this['activeAnnotation'])&&this[_0x54df('0x20')](null);}),this[_0x54df('0x1a')](_0x3a8d27,_0x54df('0x24'),()=>{this[_0x54df('0x2c')]();}),this['listenTo'](this['annotations'],_0x54df('0x17'),_0x29bc63=>{_0x3a8d27[_0x54df('0x8')]()&&(_0x247f06(),_0x29bc63[_0x54df('0x14')]());},{'priority':_0x54df('0x13')}),this[_0x54df('0x28')][_0x54df('0xf')](_0x3a8d27);}[_0x54df('0x1')](_0x5bb0cd){this['stopListening'](_0x5bb0cd),this['_editorAnnotations'][_0x54df('0x2e')](_0x5bb0cd);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x8cee=['element','schema','_itemIsContent','start','editor','_hasContent','isObject','getItems','model','comment:','tableCell','isEnabled','$textProxy','addMarker','getLastMatchingPosition','_trimToContent','document','end','refresh','push','createRange'];(function(_0x5a2a9b,_0x8cee5){const _0x1ecb28=function(_0x4a833a){while(--_0x4a833a){_0x5a2a9b['push'](_0x5a2a9b['shift']());}};_0x1ecb28(++_0x8cee5);}(_0x8cee,0x1df));const _0x1ecb=function(_0x5a2a9b,_0x8cee5){_0x5a2a9b=_0x5a2a9b-0x0;let _0x1ecb28=_0x8cee[_0x5a2a9b];return _0x1ecb28;};import{Command as _0x140b7e}from'ckeditor5/src/core';import{uid as _0x22310f}from'ckeditor5/src/utils';export default class q extends _0x140b7e{[_0x1ecb('0x1')](){const _0x234e32=this['editor'][_0x1ecb('0xc')][_0x1ecb('0x14')]['selection'];for(const _0x200fb5 of _0x234e32['getRanges']())if(this[_0x1ecb('0x9')](_0x200fb5))return void(this[_0x1ecb('0xf')]=!0x0);this[_0x1ecb('0xf')]=!0x1;}['execute']({threadId:_0x4d1f84=_0x22310f()}={}){const _0x22db42=this[_0x1ecb('0x8')][_0x1ecb('0xc')],_0x566b0e=[];for(const _0x573b99 of _0x22db42['document']['selection']['getRanges']())this['_hasContent'](_0x573b99)&&_0x566b0e[_0x1ecb('0x2')](this[_0x1ecb('0x13')](_0x573b99));_0x22db42['change'](_0x1bde7f=>{for(const _0xf13385 of _0x566b0e){const _0x118db2=_0x22310f()['substr'](0x1,0x5),_0x58b513=_0x1ecb('0xd')+_0x4d1f84+':'+_0x118db2;_0x1bde7f[_0x1ecb('0x11')](_0x58b513,{'range':_0xf13385,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1ecb('0x9')](_0x42bab5){for(const _0x5df3f5 of _0x42bab5[_0x1ecb('0xb')]())if(this[_0x1ecb('0x6')](_0x5df3f5))return!0x0;return!0x1;}[_0x1ecb('0x6')](_0x43a173){return _0x43a173['is'](_0x1ecb('0x10'))||this[_0x1ecb('0x8')][_0x1ecb('0xc')][_0x1ecb('0x5')][_0x1ecb('0xa')](_0x43a173)&&!_0x43a173['is'](_0x1ecb('0x4'),_0x1ecb('0xe'));}[_0x1ecb('0x13')](_0x27c650){const _0x2d1db8=_0x37cf83=>!this[_0x1ecb('0x6')](_0x37cf83['item']),_0x2694ea=_0x27c650[_0x1ecb('0x7')][_0x1ecb('0x12')](_0x2d1db8),_0x42a714=_0x27c650[_0x1ecb('0x0')][_0x1ecb('0x12')](_0x2d1db8,{'direction':'backward'});return this[_0x1ecb('0x8')][_0x1ecb('0xc')][_0x1ecb('0x3')](_0x2694ea,_0x42a714);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}}
23
+ const _0x762a=['change:archivedAt','archivedAt','length','focus','addCommentThread','CommentsArchive','getCommentThread','_calculatePosition','findIndex','isActive','archivedThreads','pluginName','plugins','activate','has','requires','collection','listenTo','remove','add','stopListening','removeCommentThread'];(function(_0x3353ea,_0x762aef){const _0x17eca4=function(_0x69d344){while(--_0x69d344){_0x3353ea['push'](_0x3353ea['shift']());}};_0x17eca4(++_0x762aef);}(_0x762a,0x13b));const _0x17ec=function(_0x3353ea,_0x762aef){_0x3353ea=_0x3353ea-0x0;let _0x17eca4=_0x762a[_0x3353ea];return _0x17eca4;};import{ContextPlugin as _0x1984a3}from'ckeditor5/src/core';import{Collection as _0x75cd4c}from'ckeditor5/src/utils';import _0x45c3ea from'./commentsrepository';import _0x1e431c from'../annotations/annotations';export default class p extends _0x1984a3{static get[_0x17ec('0x4')](){return _0x17ec('0x14');}static get[_0x17ec('0x8')](){return[_0x45c3ea,_0x1e431c];}constructor(_0x73f375){super(_0x73f375),this[_0x17ec('0x3')]=new _0x75cd4c();}['init'](){const _0x561d0c=this['context'],_0x741198=_0x561d0c['plugins']['get'](_0x45c3ea),_0x547658=_0x561d0c[_0x17ec('0x5')]['get'](_0x1e431c);this[_0x17ec('0xa')](_0x741198,_0x17ec('0x13'),(_0x118d14,{threadId:_0x2e0a1b})=>{const _0x326ccb=_0x741198[_0x17ec('0x15')](_0x2e0a1b);_0x326ccb['archivedAt']&&this['archivedThreads']['add'](_0x326ccb,this[_0x17ec('0x0')](_0x326ccb[_0x17ec('0x10')])),this['listenTo'](_0x326ccb,_0x17ec('0xf'),(_0x35b196,_0x527003,_0xfd223c)=>{_0xfd223c?this[_0x17ec('0x3')][_0x17ec('0x7')](_0x326ccb)||this['archivedThreads'][_0x17ec('0xc')](_0x326ccb,this[_0x17ec('0x0')](_0x326ccb[_0x17ec('0x10')])):this[_0x17ec('0x3')][_0x17ec('0x7')](_0x326ccb)&&this[_0x17ec('0x3')][_0x17ec('0xb')](_0x326ccb);});}),this[_0x17ec('0xa')](_0x741198,_0x17ec('0xe'),(_0x2a6e62,{threadId:_0x1fc8ec})=>{const _0x34d486=_0x741198[_0x17ec('0x15')](_0x1fc8ec);this[_0x17ec('0xd')](_0x34d486),this['archivedThreads']['has'](_0x34d486)&&this[_0x17ec('0x3')]['remove'](_0x34d486);},{'priority':'highest'}),this[_0x17ec('0xa')](_0x547658[_0x17ec('0x9')],_0x17ec('0x12'),(_0x377fd4,_0x5d0e63)=>{_0x5d0e63[_0x17ec('0x2')]=!0x0,_0x547658[_0x17ec('0x6')](_0x5d0e63);});}[_0x17ec('0x0')](_0x4e27b1){const _0x769b7e=[...this[_0x17ec('0x3')]][_0x17ec('0x1')](_0x3ec046=>_0x3ec046[_0x17ec('0x10')]<_0x4e27b1);return _0x769b7e>-0x1?_0x769b7e:this[_0x17ec('0x3')][_0x17ec('0x11')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x46bf=['archivedAt','pluginName','view','editor','collection','ck-comments-archive-dropdown','_calculatePosition','children','plugins','requires','find','contains','set','length','ck-body','panelView','extendTemplate','classList','collaboration.channelId','listenTo','locale','archivedThreads','innerView','splice','_threadToController','channelId','focusableElements','get','filter','_pendingThreads','CommentsArchiveUI','focusTracker','getByInnerView','annotationViews','init','add','_visibleAnnotations','mainView','indexOf','remove','Annotations','findIndex','position','buttonView','config','_createArchiveUIDropdown','commentsArchiveView','_handleAnnotationFocusableElements'];(function(_0x9eb829,_0x46bfaf){const _0x30f132=function(_0x371501){while(--_0x371501){_0x9eb829['push'](_0x9eb829['shift']());}};_0x30f132(++_0x46bfaf);}(_0x46bf,0x8d));const _0x30f1=function(_0x9eb829,_0x46bfaf){_0x9eb829=_0x9eb829-0x0;let _0x30f132=_0x46bf[_0x9eb829];return _0x30f132;};import'../../theme/commentsarchive.css';import{Plugin as _0x737729}from'ckeditor5/src/core';import{createDropdown as _0x11ca31,ViewCollection as _0x563916}from'ckeditor5/src/ui';import _0x33c521 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x3e982b}from'../utils/common-translations';import _0x35fe97 from'./ui/view/commentsarchiveview';import _0x4b6125 from'./commentsarchive';export default class a extends _0x737729{static get[_0x30f1('0x4')](){return _0x30f1('0x21');}static get[_0x30f1('0xc')](){return[_0x4b6125];}constructor(_0x16b9c6){super(_0x16b9c6),this['annotationViews']=new _0x563916(),this[_0x30f1('0x20')]=[];}[_0x30f1('0x25')](){this[_0x30f1('0x6')]['ui']['componentFactory'][_0x30f1('0x26')]('commentsArchive',()=>this[_0x30f1('0x0')]());const _0x2617e3=this['editor'][_0x30f1('0xb')][_0x30f1('0x1e')](_0x4b6125),_0x4eb499=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x30f1('0x2b')),_0x473c1f=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')]('CommentsRepository');this[_0x30f1('0x16')](_0x2617e3[_0x30f1('0x18')],_0x30f1('0x26'),(_0x4142f8,_0x45c116)=>{const _0x585bce=this[_0x30f1('0x6')][_0x30f1('0x2f')][_0x30f1('0x1e')]('collaboration.channelId');if(!_0x585bce||_0x45c116['channelId']===_0x585bce){const _0x1b1d02=this['_calculatePosition'](_0x45c116[_0x30f1('0x3')]),_0x4b4847=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x45c116);if(!_0x4b4847)return void this['_pendingThreads']['push']({'thread':_0x45c116,'position':_0x1b1d02});const _0x1461fe=_0x4eb499['getByInnerView'](_0x4b4847[_0x30f1('0x5')]);_0x1461fe['isVisible']&&_0x4eb499[_0x30f1('0x27')][_0x30f1('0x2a')](_0x1461fe),this[_0x30f1('0x24')][_0x30f1('0x26')](_0x1461fe[_0x30f1('0x5')],_0x1b1d02);}}),this[_0x30f1('0x16')](_0x4eb499[_0x30f1('0x7')],'add',(_0x30514a,_0xa0a78c)=>{const _0x3fb9b6=this[_0x30f1('0x20')][_0x30f1('0xd')](({thread:_0x121d41})=>{const _0x9bd484=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x121d41);return _0x9bd484&&_0xa0a78c[_0x30f1('0x19')]===_0x9bd484[_0x30f1('0x5')];});_0x3fb9b6&&(this[_0x30f1('0x24')][_0x30f1('0x26')](_0xa0a78c['view'],_0x3fb9b6[_0x30f1('0x2d')]),this[_0x30f1('0x20')][_0x30f1('0x1a')](this[_0x30f1('0x20')][_0x30f1('0x29')](_0x3fb9b6),0x1));}),this['listenTo'](_0x2617e3['archivedThreads'],'remove',(_0x32f336,_0x390932)=>{const _0x2c8ffb=this[_0x30f1('0x6')][_0x30f1('0x2f')][_0x30f1('0x1e')](_0x30f1('0x15'));if(!_0x2c8ffb||_0x390932[_0x30f1('0x1c')]===_0x2c8ffb){const _0x3bdf3c=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x390932),_0x5f05f8=_0x4eb499[_0x30f1('0x23')](_0x3bdf3c[_0x30f1('0x5')]);this['annotationViews'][_0x30f1('0x2a')](_0x5f05f8[_0x30f1('0x5')]),this['stopListening'](_0x5f05f8[_0x30f1('0x1d')]);}});}[_0x30f1('0x2')](_0xcc6188,_0x3bdf69){for(const _0x397ada of _0x3bdf69[_0x30f1('0x1d')])_0x397ada[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x26')](_0x397ada);this['listenTo'](_0x3bdf69[_0x30f1('0x1d')],_0x30f1('0x26'),(_0x514969,_0x11f609)=>{_0x11f609[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x26')](_0x11f609);}),this[_0x30f1('0x16')](_0x3bdf69[_0x30f1('0x1d')],_0x30f1('0x2a'),(_0x571650,_0x51073c)=>{_0x51073c[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x2a')](_0x51073c);});}[_0x30f1('0x9')](_0x238417){const _0x1f26f0=this['editor'][_0x30f1('0x2f')]['get']('collaboration.channelId'),_0x274e35=[...this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x4b6125)['archivedThreads']][_0x30f1('0x1f')](_0x33530a=>_0x33530a[_0x30f1('0x1c')]===_0x1f26f0)[_0x30f1('0x2c')](_0x1473f3=>_0x1473f3[_0x30f1('0x3')]<_0x238417);return _0x274e35>-0x1?_0x274e35-0x1:this[_0x30f1('0x24')][_0x30f1('0x10')];}[_0x30f1('0x0')](){const _0x4f4cd6=this[_0x30f1('0x6')],_0x4db663=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x30f1('0x2b')),_0x3eb0de=_0x11ca31(_0x4f4cd6['locale']);_0x3eb0de[_0x30f1('0x2e')][_0x30f1('0xf')]({'icon':_0x33c521,'label':_0x3e982b(_0x4f4cd6['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x3eb0de[_0x30f1('0x12')][_0x30f1('0x13')]({'attributes':{'class':_0x30f1('0x8')}}),_0x3eb0de['on']('change:isOpen',(_0x3c06ed,_0xc84473,_0x217315)=>{this[_0x30f1('0x1')]||(this[_0x30f1('0x1')]=new _0x35fe97(_0x4f4cd6[_0x30f1('0x17')],this[_0x30f1('0x24')])),_0x217315?_0x3eb0de[_0x30f1('0x12')][_0x30f1('0xa')][_0x30f1('0x26')](this[_0x30f1('0x1')]):_0x3eb0de[_0x30f1('0x12')][_0x30f1('0xa')][_0x30f1('0x2a')](this[_0x30f1('0x1')]);});for(const _0x44d541 of this[_0x30f1('0x24')]){const _0x2d703e=_0x4db663[_0x30f1('0x23')](_0x44d541['mainView']);this[_0x30f1('0x2')](_0x3eb0de,_0x2d703e);}return _0x3eb0de[_0x30f1('0x16')](this[_0x30f1('0x24')],'add',(_0x1fba65,_0x290fbc)=>{const _0x287211=_0x4db663['getByInnerView'](_0x290fbc['mainView']);this[_0x30f1('0x2')](_0x3eb0de,_0x287211);}),_0x3eb0de[_0x30f1('0x16')](this[_0x30f1('0x24')],_0x30f1('0x2a'),(_0x510658,_0x2a13f2)=>{const _0x3ca8fc=_0x4db663[_0x30f1('0x23')](_0x2a13f2[_0x30f1('0x28')]);for(const _0x3a3b27 of _0x3ca8fc['focusableElements'])_0x3a3b27[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0x3eb0de[_0x30f1('0x22')][_0x30f1('0x2a')](_0x3a3b27);}),_0x3eb0de;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}
23
+ const _0x1bb3=['ignoreResolvedComments','markers','removeMarker','from','_handleMarkerAddAndRemove','reconvertMarker','pluginName','delete','getAllMarkersForId','isObject','length','refreshVisibility','_handleThreadMarker','low','listenTo','push','_initAriaMarkerChangeAnnouncements','config','setUnlinkedAt','LEAVE_COMMENT_ANNOUNCEMENT','managedUsingOperations','model','name','differ','openNewCommentThread','comment','$textProxy','end','getWalker','getItems','comment:','addMarker:','fetchCommentThread','context','ck-comment-marker--active','newRange','change:isReadOnly','item','commands','render','comments','_getTextContext','dataToMarker','editing','getAttribute','ck-comment-marker','_threadToController','schema','consume','unlinkedAt','substring','scrollToThreadMarker','hasDomSelection','destroy','document','registerPostFixer','hasCommentThread','_reconvertMarkers','switchReadOnly','plugins','getCommentThreads','destroyed','registerAnnotation','_attachResolvedThread','start','_initializeMarkerConverters','addCommentThread','conversion','startsWith','state','get','addComment','updateMarker','isLocal','createRange','join','archivedAt','for','markerToHighlight','upcast','attachTo','split','init','add','isEqual','data','_detachCommentThread','createPositionBefore','isCollapsed','hasMarkerForId','removeMarker:','change','enqueueChange','CommentsEditing','change:activeMarker','_hasTargetInContent','set','getRange','markerName','locale','once','activeMarker','reopenCommentThread','ready','requires','isThreadsLoadingPaused','clear','affectsData','text','isResolved','collaboration.channelId','setContext','editor','_getTargetForId','isAttached','getCommentThread','$marker','getChangedMarkers','view','rootName','removeCommentThread','focus'];(function(_0x5c4a70,_0x1bb37d){const _0x455351=function(_0x1390a7){while(--_0x1390a7){_0x5c4a70['push'](_0x5c4a70['shift']());}};_0x455351(++_0x1bb37d);}(_0x1bb3,0x1e8));const _0x4553=function(_0x5c4a70,_0x1bb37d){_0x5c4a70=_0x5c4a70-0x0;let _0x455351=_0x1bb3[_0x5c4a70];return _0x455351;};import{Plugin as _0x3a8dfd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x476550}from'ckeditor5/src/utils';import _0x2f3864 from'./commentsrepository';import _0x20a6c4 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x207c92,getAllMarkersDomElementsSorted as _0x2658f7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4396e1 from'../annotations/editorannotations';import _0x5b83ad from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x126733 from'./integrations/importword';import _0x3a3722 from'../annotations/annotations';import{getTranslation as _0x495d88}from'../utils/common-translations';export default class r extends _0x3a8dfd{static get[_0x4553('0x68')](){return[_0x2f3864,_0x4396e1,_0x5b83ad,_0x126733];}static get[_0x4553('0x6')](){return _0x4553('0x5d');}constructor(_0x56d1cc){super(_0x56d1cc),this[_0x4553('0x60')](_0x4553('0x69'),!0x0),_0x56d1cc[_0x4553('0x55')]['once'](_0x4553('0x67'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x4553('0x60')](_0x4553('0x65'),null),this['on'](_0x4553('0x5e'),(_0x5f387e,_0x5812cf,_0xbda505,_0x53b5ee)=>{const _0x22c20c=_0xbda505?ot(_0xbda505)['id']:null;if(_0x56d1cc[_0x4553('0x15')][_0x4553('0x5b')](()=>{if(_0x22c20c){const _0x1bb4f4=this[_0x4553('0x8')](_0x22c20c);for(const _0x5a9ab3 of _0x1bb4f4)_0x56d1cc[_0x4553('0x2b')]['reconvertMarker'](_0x5a9ab3);}if(_0x53b5ee){const {id:_0x2f84fd}=ot(_0x53b5ee),_0x1a9c37=this[_0x4553('0x8')](_0x2f84fd);for(const _0x50998f of _0x1a9c37)_0x56d1cc[_0x4553('0x2b')][_0x4553('0x5')](_0x50998f);}}),_0x22c20c){const _0x35f677=_0x56d1cc[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x22c20c);_0x35f677&&_0x35f677[_0x4553('0x6d')]&&this[_0x4553('0x33')](_0x22c20c);}}),this[_0x4553('0x10')]();}[_0x4553('0x52')](){const _0x1093d1=this[_0x4553('0x70')],_0x89321f=_0x1093d1['plugins'][_0x4553('0x46')](_0x2f3864),_0x253fad=_0x1093d1[_0x4553('0x11')]['get'](_0x4553('0x6e'));_0x1093d1[_0x4553('0x26')]['add'](_0x4553('0x42'),new _0x20a6c4(_0x1093d1)),this['listenTo'](_0x1093d1,_0x4553('0x24'),(_0x22ca36,_0x1120b8,_0x1640c5)=>{_0x89321f[_0x4553('0x3a')](_0x1640c5,_0x1093d1['config'][_0x4553('0x46')]('collaboration.channelId'));}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x42'),_0x253fad),(_0xdec21c,{threadId:_0x5d882b})=>{const _0x5a46f1=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)['getCommentThread'](_0x5d882b);_0x5a46f1&&_0x5a46f1[_0x4553('0x4c')]&&this[_0x4553('0x3f')](_0x5d882b);}),this['listenTo'](_0x89321f,tt(_0x4553('0x78'),_0x253fad),(_0x396032,{threadId:_0x39926d})=>{_0x1093d1[_0x4553('0x15')]['enqueueChange']({'isUndoable':!0x1},_0x220263=>{const _0x145610=this[_0x4553('0x8')](_0x39926d);for(const _0x4f26a4 of _0x145610)_0x220263[_0x4553('0x2')](_0x4f26a4);});}),this[_0x4553('0xe')](_0x89321f,tt('resolveCommentThread',_0x253fad),(_0x553763,{threadId:_0x57d049})=>{(this[_0x4553('0x3f')](_0x57d049),this[_0x4553('0x39')](_0x57d049),this[_0x4553('0x70')][_0x4553('0x2b')]['view'][_0x4553('0x34')])&&(this[_0x4553('0x70')][_0x4553('0x3b')]['get'](_0x2f3864)[_0x4553('0x73')](_0x57d049)[_0x4553('0x31')]||this['editor'][_0x4553('0x2b')]['view'][_0x4553('0x79')]());},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x66'),_0x253fad),(_0x14b48c,{threadId:_0x5e7256})=>{this[_0x4553('0x39')](_0x5e7256);},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x47'),_0x253fad),(_0x1fa474,{threadId:_0x11cfb4,isFromAdapter:_0x3d76bb})=>{const _0x1f1c52=this[_0x4553('0x8')](_0x11cfb4);if(_0x3d76bb||0x0==_0x1f1c52['length']||!_0x89321f[_0x4553('0x38')](_0x11cfb4))return;0x1===_0x89321f[_0x4553('0x73')](_0x11cfb4)[_0x4553('0xa')]&&_0x1093d1[_0x4553('0x15')][_0x4553('0x5c')]({'isUndoable':!0x1},_0x154853=>{for(const _0x45e1f4 of _0x1f1c52)_0x154853[_0x4553('0x48')](_0x45e1f4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4553('0xd')}),this['_initializeMarkerConverters'](),this[_0x4553('0x4')]();}[_0x4553('0x35')](){const _0x5c38c3=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864),_0x4d8675=this[_0x4553('0x70')][_0x4553('0x11')]['get'](_0x4553('0x6e'));for(const _0xdc0f8 of _0x5c38c3[_0x4553('0x3c')]({'channelId':_0x4d8675}))_0x5c38c3[_0x4553('0x56')](_0xdc0f8['id']),_0x5c38c3['_threads']['delete'](_0xdc0f8['id']);super['destroy']();}[_0x4553('0x59')](_0x484983){return this[_0x4553('0x8')](_0x484983)[_0x4553('0xa')]>0x0;}[_0x4553('0x8')](_0x517afa){const _0x49b2a5=[];for(const _0x3d2e60 of this['editor'][_0x4553('0x15')][_0x4553('0x1')])_0x3d2e60[_0x4553('0x16')][_0x4553('0x44')](_0x4553('0x1e')+_0x517afa)&&_0x49b2a5[_0x4553('0xf')](_0x3d2e60);return _0x49b2a5;}[_0x4553('0x33')](_0x56185e){const _0x51cc56=this[_0x4553('0x71')](_0x56185e);_0x51cc56&&setTimeout(()=>{this[_0x4553('0x65')]&&ot(this[_0x4553('0x65')])['id']===_0x56185e&&_0x476550({'target':_0x51cc56[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x396f71){this['editor']['model'][_0x4553('0x5b')](()=>{for(const _0x15cd49 of this[_0x4553('0x8')](_0x396f71))this[_0x4553('0x70')][_0x4553('0x2b')]['reconvertMarker'](_0x15cd49);});}[_0x4553('0x3f')](_0x46c63d){const _0x44282e=this['editor']['plugins']['get'](_0x2f3864),_0x3db748=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1),_0x579209=_0x44282e['getCommentThread'](_0x46c63d);if(!_0x579209[_0x4553('0x72')]){const _0x3c3e7d=_0x579209[_0x4553('0x50')](()=>this[_0x4553('0x71')](_0x579209['id']));_0x3db748[_0x4553('0x3e')](_0x3c3e7d),_0x579209['_hasTargetInContent']=!0x1;}}[_0x4553('0x41')](){const _0xa95b2e=this[_0x4553('0x70')];_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('editingDowncast')[_0x4553('0x4e')]({'model':_0x4553('0x19'),'view':(_0x2a9fa7,_0x27463f)=>{const {id:_0x1ed944}=ot(_0x2a9fa7[_0x4553('0x62')]),_0x3e75ce=_0xa95b2e[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x1ed944),_0x44d43e=this[_0x4553('0x65')]&&ot(this['activeMarker'])['id']===_0x1ed944;if(_0x3e75ce&&_0x3e75ce[_0x4553('0x6d')]&&!_0x44d43e&&_0x2a9fa7[_0x4553('0x25')])return _0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x1f')+_0x2a9fa7[_0x4553('0x62')]),_0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x5a')+_0x2a9fa7[_0x4553('0x62')]),{'classes':[]};const _0x1403bd=[_0x4553('0x2d')];return _0x44d43e&&_0x1403bd['push'](_0x4553('0x22')),{'classes':_0x1403bd,'attributes':{'data-comment':_0x1ed944}};}}),_0xa95b2e['conversion'][_0x4553('0x4d')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x464d96,{options:_0x561add})=>{const _0x297062=_0xa95b2e['plugins'][_0x4553('0x46')](_0x2f3864),_0x140e67=_0xa95b2e[_0x4553('0x15')][_0x4553('0x1')][_0x4553('0x46')](_0x464d96),{id:_0x32b5bc,part:_0x4fdfd3}=ot(_0x464d96);if(_0x140e67&&!_0x140e67[_0x4553('0x6b')])return null;if(_0x561add[_0x4553('0x0')]){const _0x58d66a=_0x297062[_0x4553('0x73')](_0x32b5bc);if(_0x58d66a&&_0x58d66a['isResolved'])return null;}return{'group':_0x4553('0x19'),'name':_0x4fdfd3?_0x32b5bc+':'+_0x4fdfd3:_0x32b5bc};}}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')](_0x4553('0x4f'))['elementToElement']({'view':{'name':_0x4553('0x19'),'attributes':{'id':/^\w/}},'model':(_0x265ca9,{writer:_0x3c8fb6})=>_0x3c8fb6['createElement'](_0x4553('0x74'),{'data-name':_0x4553('0x1e')+_0x265ca9[_0x4553('0x2c')]('id')})}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('upcast')[_0x4553('0x2a')]({'view':_0x4553('0x19')});}['_handleMarkerAddAndRemove'](){const _0x129be2=this[_0x4553('0x70')],_0x2f10ab=_0x129be2['plugins'][_0x4553('0x46')](_0x2f3864),_0x567d40=new Set(),_0x3f9d24=new Set();_0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x37')](_0xcfc1df=>{let _0x113314=!0x1;for(const {name:_0x2a23e5,data:_0x4a1950}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x17')][_0x4553('0x75')]()){const {group:_0x51d314,id:_0x98b494}=ot(_0x2a23e5);let _0x44db6d=_0x4a1950[_0x4553('0x23')];if('comment'!==_0x51d314||!_0x44db6d)continue;const _0x587fe3='$graveyard'===_0x44db6d['root'][_0x4553('0x77')];_0x587fe3||(_0x44db6d=et(_0x44db6d,_0x129be2[_0x4553('0x15')]),!_0x44db6d||_0x44db6d[_0x4553('0x58')]||!_0x4a1950[_0x4553('0x23')]||_0x44db6d[_0x4553('0x54')](_0x4a1950[_0x4553('0x23')]))?_0x129be2[_0x4553('0x15')]['hasContent'](_0x44db6d)&&!_0x587fe3?this[_0x4553('0x69')]?_0x567d40[_0x4553('0x53')](_0x2a23e5):this[_0x4553('0xc')](_0x2a23e5,_0x98b494):(_0x3f9d24['add'](_0x2a23e5),_0x567d40['delete'](_0x2a23e5),_0xcfc1df['removeMarker'](_0x2a23e5),_0x113314=!0x0):(_0xcfc1df[_0x4553('0x48')](_0x2a23e5,{'range':_0x44db6d}),_0x113314=!0x0);}return _0x113314;}),this['on']('change:isThreadsLoadingPaused',(_0x5c4f99,_0xc20035,_0x43d048)=>{if(!_0x43d048&&_0x567d40['size'])for(const _0x28fe7d of _0x567d40){const {id:_0x3318f3}=ot(_0x28fe7d);_0x567d40[_0x4553('0x7')](_0x28fe7d),_0x129be2[_0x4553('0x15')]['markers'][_0x4553('0x46')](_0x28fe7d)&&this[_0x4553('0xc')](_0x28fe7d,_0x3318f3);}}),this[_0x4553('0xe')](_0x129be2[_0x4553('0x15')][_0x4553('0x36')],_0x4553('0x5b'),(_0x1c3dd8,_0x1dd490)=>{for(const {name:_0x15a1d2,data:{newRange:_0x4b1546}}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')]['differ'][_0x4553('0x75')]()){const {group:_0x5db00a,id:_0x343273}=ot(_0x15a1d2);if(_0x4553('0x19')!==_0x5db00a)continue;const _0x5c6214=_0x2f10ab[_0x4553('0x73')](_0x343273),_0x17572f=this[_0x4553('0x59')](_0x343273);_0x5c6214&&(_0x5c6214[_0x4553('0x5f')]||_0x129be2[_0x4553('0x2b')][_0x4553('0x76')][_0x4553('0x64')](_0x4553('0x27'),()=>{const _0x1a363e=_0x129be2[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722),_0xb14ba5=_0x2f10ab[_0x4553('0x2e')]['get'](_0x5c6214)[_0x4553('0x76')];_0x1a363e['getByInnerView'](_0xb14ba5)[_0x4553('0xb')]();},{'priority':_0x4553('0xd')}),_0x5c6214[_0x4553('0x5f')]=_0x17572f||!!_0x4b1546),_0x4b1546||(_0x3f9d24[_0x4553('0x53')](_0x15a1d2),_0x567d40[_0x4553('0x7')](_0x15a1d2));}if(_0x1dd490[_0x4553('0x49')])for(const _0x32691e of _0x3f9d24){const {id:_0x522b57}=ot(_0x32691e),_0x16b17c=_0x2f10ab['getCommentThread'](_0x522b57),_0x5538d4=this['hasMarkerForId'](_0x522b57);_0x567d40[_0x4553('0x7')](_0x32691e),!_0x16b17c||_0x5538d4||_0x16b17c['unlinkedAt']||_0x16b17c[_0x4553('0x12')](new Date());}_0x3f9d24[_0x4553('0x6a')]();});}['_getTargetForId'](_0x51a88d){const _0x1d79d0=this[_0x4553('0x70')],_0x2215e2=this['getAllMarkersForId'](_0x51a88d);return _0x2658f7(_0x1d79d0[_0x4553('0x2b')],_0x2215e2);}[_0x4553('0x29')](_0x2b030d){const _0x1766d7=this[_0x4553('0x8')](_0x2b030d);let _0x2a3641='',_0x8466c2=!0x1;for(const _0x326eb5 of _0x1766d7){const _0x46872c=_0x326eb5[_0x4553('0x61')]();for(const _0x149ae9 of Array[_0x4553('0x3')](_0x46872c[_0x4553('0x1d')]()))_0x149ae9['is'](_0x4553('0x1a'))?(_0x2a3641&&_0x8466c2&&(_0x2a3641+='\x20',_0x8466c2=!0x1),_0x2a3641+=_0x149ae9['data']):_0x8466c2=!0x0;_0x8466c2=!0x0;}return _0x2a3641[_0x4553('0x32')](0x0,0x96);}['_attachMarkerToThread'](_0x508cc6,_0x14a789){const _0x4a1da0=this[_0x4553('0x70')],_0x5cbd17=_0x4a1da0['plugins']['get'](_0x2f3864);let _0x429b9f=_0x5cbd17['getCommentThread'](_0x14a789);const _0x5b8736=_0x4a1da0[_0x4553('0x11')]['get'](_0x4553('0x6e')),_0x26e9db=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1);if(_0x429b9f&&(_0x429b9f[_0x4553('0x31')]&&_0x429b9f[_0x4553('0x12')](null),_0x429b9f[_0x4553('0x72')]))return _0x429b9f;return!this[_0x4553('0x8')](_0x14a789)[0x0][_0x4553('0x14')]?_0x4a1da0[_0x4553('0x2b')][_0x4553('0x76')]['once'](_0x4553('0x27'),()=>{if(_0x5cbd17[_0x4553('0x73')](_0x14a789))return;const _0x5988c3=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722);_0x429b9f=_0x5cbd17[_0x4553('0x18')]({'channelId':_0x5b8736,'threadId':_0x14a789,'target':()=>this[_0x4553('0x71')](_0x14a789),'context':{'type':'text','value':this[_0x4553('0x29')](_0x14a789)}});const _0x336d92=_0x5cbd17[_0x4553('0x2e')][_0x4553('0x46')](_0x429b9f)['view'],_0x1a6806=_0x5988c3['getByInnerView'](_0x336d92);_0x1a6806&&_0x26e9db[_0x4553('0x3e')](_0x1a6806);},{'priority':_0x4553('0xd')}):_0x5cbd17[_0x4553('0x20')]({'channelId':_0x5b8736,'threadId':_0x14a789})['then'](_0x27a949=>{if(_0x4553('0x3d')!==_0x4a1da0[_0x4553('0x45')]){if(_0x429b9f=_0x27a949,_0x429b9f&&!_0x429b9f[_0x4553('0x72')]){const _0xcaa09e=_0x429b9f[_0x4553('0x50')](()=>this['_getTargetForId'](_0x14a789));_0x26e9db[_0x4553('0x3e')](_0xcaa09e),_0x429b9f[_0x4553('0x6d')]&&this[_0x4553('0x39')](_0x14a789);}else{if(!_0x429b9f){const _0x3fe852=this[_0x4553('0x8')](_0x14a789);_0x4a1da0[_0x4553('0x15')]['change'](_0x32a8c1=>{for(const _0x55f5fb of _0x3fe852)_0x32a8c1[_0x4553('0x2')](_0x55f5fb);});}}}}),_0x429b9f;}['_handleThreadMarker'](_0x3f0bcc,_0x3aba1a){const _0x369752=this['_attachMarkerToThread'](_0x3f0bcc,_0x3aba1a);_0x369752&&!_0x369752[_0x4553('0x21')]&&_0x369752[_0x4553('0x6f')]({'type':_0x4553('0x6c'),'value':this['_getTextContext'](_0x3aba1a)});}[_0x4553('0x10')](){const _0x10ca16=this['editor'];_0x207c92(_0x10ca16['model'],({left:_0x453d89,entered:_0x47de43})=>{const _0x2328e1=[];for(const _0x5e89be of _0x453d89)if(rt(_0x5e89be)){_0x2328e1[_0x4553('0xf')](_0x495d88(_0x10ca16[_0x4553('0x63')],_0x4553('0x13')));break;}for(const _0x176acf of _0x47de43)if(rt(_0x176acf)){_0x2328e1['push'](_0x495d88(_0x10ca16[_0x4553('0x63')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2328e1[_0x4553('0xa')]&&_0x10ca16['ui']['ariaLiveAnnouncer']['announce'](_0x4553('0x28'),_0x2328e1[_0x4553('0x4b')]('\x20'));});}}function tt(_0x18eb64,_0x5d34f4){return _0x5d34f4?_0x18eb64+':'+_0x5d34f4:_0x18eb64;}function ot(_0x4208a6){const _0xdaaf87=_0x4208a6[_0x4553('0x51')](':');return{'group':_0xdaaf87[0x0],'id':_0xdaaf87[0x1],'part':_0xdaaf87[0x2]};}function et(_0x44195a,_0x4553b3){const _0x4e5d35=_0x4553b3[_0x4553('0x2f')],_0x7cd3da=_0x4553b3[_0x4553('0x4a')](_0x44195a['start']);for(const _0x4d7537 of _0x44195a[_0x4553('0x1c')]()){const {type:_0x2612b4,item:_0x237a29,nextPosition:_0x4e25b4}=_0x4d7537;if('text'===_0x2612b4||_0x4e5d35[_0x4553('0x9')](_0x237a29)){const _0xe67486=_0x4553b3[_0x4553('0x57')](_0x237a29);_0x7cd3da['isCollapsed']&&(_0x7cd3da[_0x4553('0x40')]=_0xe67486),_0x7cd3da[_0x4553('0x1b')]=_0x4e25b4;}}return _0x7cd3da;}function rt(_0x597417){return _0x4553('0x19')===ot(_0x597417[_0x4553('0x16')])['group'];}
@@ -934,6 +934,7 @@ export type CommentThreadDataJSON = {
934
934
  unlinkedAt: Date | null;
935
935
  resolvedAt: Date | null;
936
936
  resolvedBy: string | null;
937
+ archivedAt: Date | null;
937
938
  comments: Array<CommentDataJSON>;
938
939
  attributes: Record<string, unknown>;
939
940
  };