@ckeditor/ckeditor5-comments 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 _0x2909=['clientHeight','set','targetRect','element','ck-rounded-corners','render','_mutationObserver','keystrokes','fire','createCollection','attach','isActive','setTemplate','content','focusTracker','add','listenTo','_updateHeight','height','div','isDirty','length','destroy','ck-annotation-wrapper--active'];(function(_0x4425e2,_0x29092a){const _0x18bbfe=function(_0x344cc4){while(--_0x344cc4){_0x4425e2['push'](_0x4425e2['shift']());}};_0x18bbfe(++_0x29092a);}(_0x2909,0x182));const _0x18bb=function(_0x4425e2,_0x29092a){_0x4425e2=_0x4425e2-0x0;let _0x18bbfe=_0x2909[_0x4425e2];return _0x18bbfe;};import{View as _0x3104ce}from'ckeditor5/src/ui';import{FocusTracker as _0x52f270,KeystrokeHandler as _0x23801f,uid as _0x1c2aa8}from'ckeditor5/src/utils';import _0x4b4c20 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3104ce{constructor(_0x576b95,_0x190b35){super(_0x576b95),this['id']=_0x1c2aa8(),this['focusTracker']=new _0x52f270(),this['keystrokes']=new _0x23801f(),this[_0x18bb('0x5')][_0x18bb('0x17')]('Esc',(_0xf44a10,_0x179898)=>this[_0x18bb('0x6')]('Esc',_0x179898)),this[_0x18bb('0x17')](_0x18bb('0x0'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x18bb('0x17')](_0x18bb('0x10'),0x0),this[_0x18bb('0x17')](_0x18bb('0x9'),!0x1),this[_0x18bb('0x17')](_0x18bb('0x12'),!0x1),this[_0x18bb('0x17')](_0x18bb('0x13'),0x0),this[_0x18bb('0x17')]('type',''),this[_0x18bb('0x4')]=_0x4b4c20(()=>this['_updateHeight']()),this[_0x18bb('0xb')]=this[_0x18bb('0x7')](),this[_0x18bb('0xb')]['add'](_0x190b35),this['mainView']=_0x190b35;const _0x413e3d=this['bindTemplate'];this[_0x18bb('0xa')]({'tag':_0x18bb('0x11'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x18bb('0x2'),_0x413e3d['if'](_0x18bb('0x9'),_0x18bb('0x15'))],'tabindex':-0x1},'children':this[_0x18bb('0xb')]});}[_0x18bb('0x3')](){super[_0x18bb('0x3')](),this['focusTracker'][_0x18bb('0xd')](this[_0x18bb('0x1')]),this[_0x18bb('0x5')][_0x18bb('0xe')](this[_0x18bb('0x1')]),this[_0x18bb('0x4')][_0x18bb('0x8')](this[_0x18bb('0x1')]);}['destroy'](){this[_0x18bb('0xb')]['clear'](),this['keystrokes'][_0x18bb('0x14')](),this[_0x18bb('0xc')][_0x18bb('0x14')](),this[_0x18bb('0x4')]['detach'](),super[_0x18bb('0x14')]();}['focus'](){this['element']['focus']();}[_0x18bb('0xf')](){const _0x4ef07d=this[_0x18bb('0x1')][_0x18bb('0x16')];_0x4ef07d&&(this[_0x18bb('0x10')]=_0x4ef07d);}}
23
+ const _0x15b6=['bindTemplate','targetRect','clear','render','type','element','destroy','mainView','keystrokes','isActive','_updateHeight','_mutationObserver','content','ck-rounded-corners','setTemplate','focusTracker','set','ck-annotation-wrapper--active','add','length','listenTo','isDirty','height','createCollection','attach','Esc','fire'];(function(_0x51ceba,_0x15b62c){const _0x305d18=function(_0x11ee99){while(--_0x11ee99){_0x51ceba['push'](_0x51ceba['shift']());}};_0x305d18(++_0x15b62c);}(_0x15b6,0x1bb));const _0x305d=function(_0x51ceba,_0x15b62c){_0x51ceba=_0x51ceba-0x0;let _0x305d18=_0x15b6[_0x51ceba];return _0x305d18;};import{View as _0x4981fc}from'ckeditor5/src/ui';import{FocusTracker as _0x5b3a2c,KeystrokeHandler as _0x28deff,uid as _0x1f2b30}from'ckeditor5/src/utils';import _0x245369 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4981fc{constructor(_0x9faa2,_0xd077bb){super(_0x9faa2),this['id']=_0x1f2b30(),this[_0x305d('0x4')]=new _0x5b3a2c(),this[_0x305d('0x18')]=new _0x28deff(),this[_0x305d('0x18')][_0x305d('0x5')](_0x305d('0xe'),(_0x1bd6b2,_0x2dc7c9)=>this[_0x305d('0xf')]('Esc',_0x2dc7c9)),this[_0x305d('0x5')](_0x305d('0x11'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x305d('0x5')](_0x305d('0xb'),0x0),this['set'](_0x305d('0x19'),!0x1),this['set'](_0x305d('0xa'),!0x1),this[_0x305d('0x5')](_0x305d('0x8'),0x0),this[_0x305d('0x5')](_0x305d('0x14'),''),this['_mutationObserver']=_0x245369(()=>this[_0x305d('0x1a')]()),this[_0x305d('0x1')]=this[_0x305d('0xc')](),this[_0x305d('0x1')][_0x305d('0x7')](_0xd077bb),this[_0x305d('0x17')]=_0xd077bb;const _0xbdbd54=this[_0x305d('0x10')];this[_0x305d('0x3')]({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x305d('0x2'),_0xbdbd54['if']('isActive',_0x305d('0x6'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x305d('0x13')](),this[_0x305d('0x4')][_0x305d('0x7')](this[_0x305d('0x15')]),this['keystrokes'][_0x305d('0x9')](this[_0x305d('0x15')]),this[_0x305d('0x0')][_0x305d('0xd')](this['element']);}[_0x305d('0x16')](){this['content'][_0x305d('0x12')](),this[_0x305d('0x18')][_0x305d('0x16')](),this[_0x305d('0x4')][_0x305d('0x16')](),this[_0x305d('0x0')]['detach'](),super[_0x305d('0x16')]();}['focus'](){this[_0x305d('0x15')]['focus']();}['_updateHeight'](){const _0x5dfd23=this[_0x305d('0x15')]['clientHeight'];_0x5dfd23&&(this[_0x305d('0xb')]=_0x5dfd23);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ace=['setTemplate','height','clientHeight','element','attach','bottom','bind','set','updateHeight','clear','destroy','ck-sidebar-item--no-animation','_mutationObserver','_targetTop','ck-sidebar-item','content','top','isAnimationDisabled','render','detach'];(function(_0x336641,_0x2ace92){const _0x3a2c11=function(_0x443432){while(--_0x443432){_0x336641['push'](_0x336641['shift']());}};_0x3a2c11(++_0x2ace92);}(_0x2ace,0x13c));const _0x3a2c=function(_0x336641,_0x2ace92){_0x336641=_0x336641-0x0;let _0x3a2c11=_0x2ace[_0x336641];return _0x3a2c11;};import{View as _0x1bf4a9}from'ckeditor5/src/ui';import{toUnit as _0x514b52}from'ckeditor5/src/utils';import _0x991262 from'../../utils/createmutationobserver';const At=_0x514b52('px');export default class C extends _0x1bf4a9{constructor(_0x337440){super(_0x337440),this[_0x3a2c('0xb')]('top',0x0),this['set'](_0x3a2c('0x5'),0x0),this[_0x3a2c('0xa')](_0x3a2c('0x9'))['to'](this,'top',this,_0x3a2c('0x5'),(_0x2c913e,_0x45b2a3)=>_0x2c913e+_0x45b2a3),this[_0x3a2c('0xb')]('isAnimationDisabled',!0x1),this[_0x3a2c('0x10')]=_0x991262(()=>this['updateHeight']()),this[_0x3a2c('0x11')]=null,this[_0x3a2c('0x13')]=this['createCollection']();const _0x5b7eb5=this['bindTemplate'];this[_0x3a2c('0x4')]({'tag':'div','attributes':{'class':[_0x3a2c('0x12'),_0x5b7eb5['to'](_0x3a2c('0x1'),_0x1fbebc=>_0x1fbebc?_0x3a2c('0xf'):'')],'style':{'top':_0x5b7eb5['to'](_0x3a2c('0x0'),_0x44a2a1=>At(_0x44a2a1))}},'children':this[_0x3a2c('0x13')]});}[_0x3a2c('0x2')](){super[_0x3a2c('0x2')](),this['_mutationObserver'][_0x3a2c('0x8')](this[_0x3a2c('0x7')]);}[_0x3a2c('0xc')](){const _0x297343=this['element'][_0x3a2c('0x6')];_0x297343&&(this[_0x3a2c('0x5')]=_0x297343);}[_0x3a2c('0xe')](){this['content'][_0x3a2c('0xd')](),this['_mutationObserver'][_0x3a2c('0x3')](),super[_0x3a2c('0xe')]();}}
23
+ const _0x28b4=['ck-sidebar-item','attach','bindTemplate','content','setTemplate','height','detach','bottom','render','bind','updateHeight','top','element','isAnimationDisabled','_targetTop','_mutationObserver','set','destroy','clientHeight'];(function(_0x322f56,_0x28b4b2){const _0x333259=function(_0x21a27f){while(--_0x21a27f){_0x322f56['push'](_0x322f56['shift']());}};_0x333259(++_0x28b4b2);}(_0x28b4,0x136));const _0x3332=function(_0x322f56,_0x28b4b2){_0x322f56=_0x322f56-0x0;let _0x333259=_0x28b4[_0x322f56];return _0x333259;};import{View as _0x54d0e1}from'ckeditor5/src/ui';import{toUnit as _0x3ece76}from'ckeditor5/src/utils';import _0xf38030 from'../../utils/createmutationobserver';const At=_0x3ece76('px');export default class C extends _0x54d0e1{constructor(_0x4f1ac4){super(_0x4f1ac4),this[_0x3332('0xa')](_0x3332('0x5'),0x0),this[_0x3332('0xa')](_0x3332('0x12'),0x0),this[_0x3332('0x3')](_0x3332('0x1'))['to'](this,_0x3332('0x5'),this,'height',(_0x21de08,_0x5d2801)=>_0x21de08+_0x5d2801),this[_0x3332('0xa')](_0x3332('0x7'),!0x1),this[_0x3332('0x9')]=_0xf38030(()=>this[_0x3332('0x4')]()),this[_0x3332('0x8')]=null,this[_0x3332('0x10')]=this['createCollection']();const _0x5b786c=this[_0x3332('0xf')];this[_0x3332('0x11')]({'tag':'div','attributes':{'class':[_0x3332('0xd'),_0x5b786c['to'](_0x3332('0x7'),_0x3985dc=>_0x3985dc?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5b786c['to'](_0x3332('0x5'),_0x210c40=>At(_0x210c40))}},'children':this[_0x3332('0x10')]});}[_0x3332('0x2')](){super[_0x3332('0x2')](),this[_0x3332('0x9')][_0x3332('0xe')](this[_0x3332('0x6')]);}[_0x3332('0x4')](){const _0x3af6e4=this[_0x3332('0x6')][_0x3332('0xc')];_0x3af6e4&&(this[_0x3332('0x12')]=_0x3af6e4);}['destroy'](){this[_0x3332('0x10')]['clear'](),this[_0x3332('0x9')][_0x3332('0x0')](),super[_0x3332('0xb')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6658=['minHeight','number','class','list','div','ck-sidebar','createCollection','bindTemplate','set'];(function(_0x513267,_0x6658d1){const _0x3014b2=function(_0xb1105c){while(--_0xb1105c){_0x513267['push'](_0x513267['shift']());}};_0x3014b2(++_0x6658d1);}(_0x6658,0x1b9));const _0x3014=function(_0x513267,_0x6658d1){_0x513267=_0x513267-0x0;let _0x3014b2=_0x6658[_0x513267];return _0x3014b2;};import{View as _0x5f52d4}from'ckeditor5/src/ui';import{toUnit as _0x541ec3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x541ec3('px');export default class T extends _0x5f52d4{constructor(_0x23aa28){super(_0x23aa28);const _0x2dd060=this[_0x3014('0x7')];this[_0x3014('0x8')]('minHeight',0x0),this['set'](_0x3014('0x2'),''),this['list']=this[_0x3014('0x6')](),this['setTemplate']({'tag':_0x3014('0x4'),'attributes':{'class':['ck',_0x3014('0x5'),'ck-reset',_0x2dd060['to']('class')],'style':{'minHeight':_0x2dd060['to'](_0x3014('0x0'),_0x5e3daa=>_0x3014('0x1')==typeof _0x5e3daa?At(_0x5e3daa+0xa):null)}},'children':this[_0x3014('0x3')]});}}
23
+ const _0x4cf3=['bindTemplate','list','setTemplate','number','set','ck-reset','ck-sidebar','div','class','createCollection'];(function(_0x533628,_0x4cf3a4){const _0x5e355e=function(_0x2c5bf7){while(--_0x2c5bf7){_0x533628['push'](_0x533628['shift']());}};_0x5e355e(++_0x4cf3a4);}(_0x4cf3,0x1c1));const _0x5e35=function(_0x533628,_0x4cf3a4){_0x533628=_0x533628-0x0;let _0x5e355e=_0x4cf3[_0x533628];return _0x5e355e;};import{View as _0x2f15ca}from'ckeditor5/src/ui';import{toUnit as _0x2733b7}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x2733b7('px');export default class T extends _0x2f15ca{constructor(_0x1052d4){super(_0x1052d4);const _0x1d6ad4=this[_0x5e35('0x1')];this['set']('minHeight',0x0),this[_0x5e35('0x5')](_0x5e35('0x9'),''),this[_0x5e35('0x2')]=this[_0x5e35('0x0')](),this[_0x5e35('0x3')]({'tag':_0x5e35('0x8'),'attributes':{'class':['ck',_0x5e35('0x7'),_0x5e35('0x6'),_0x1d6ad4['to'](_0x5e35('0x9'))],'style':{'minHeight':_0x1d6ad4['to']('minHeight',_0x32026c=>_0x5e35('0x4')==typeof _0x32026c?At(_0x32026c+0xa):null)}},'children':this[_0x5e35('0x2')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d7d=['_destroyEditorAnnotationsIntegration','widesidebar-detach-not-attached','stopListening','listenTo','init','blur','widesidebar-attach-already-attached','_activeAnnotation','attach','_attachToContainer','refresh','_refreshPositioningDebounced','has','remove','editors','setActiveAnnotation','ck-sidebar--wide','ready','_editorAnnotations','requires','detach','get','pluginName','refreshPositioning','hasDomSelection','isAttached','getOrderedSelectedAnnotations','resize','rearrange','destroy','focus','high','annotations','add','_annotations','_integrateWithEditorAnnotations','WideSidebar','removeEventListener','addAnnotation','EditorAnnotations','wideSidebar','plugins','activeAnnotation','context','uiUpdate','from','container','updateTargetRect','addEventListener'];(function(_0x165b70,_0x1d7dd6){const _0x204705=function(_0x1214b6){while(--_0x1214b6){_0x165b70['push'](_0x165b70['shift']());}};_0x204705(++_0x1d7dd6);}(_0x1d7d,0xc1));const _0x2047=function(_0x165b70,_0x1d7dd6){_0x165b70=_0x165b70-0x0;let _0x204705=_0x1d7d[_0x165b70];return _0x204705;};import{ContextPlugin as _0x2c0873,Context as _0x5115c4}from'ckeditor5/src/core';import _0x27788c from'./annotationsuis';import _0x200923 from'./sidebar';import{CKEditorError as _0x5ed8be,Collection as _0x1ee86e}from'ckeditor5/src/utils';import{debounce as _0x191de5}from'lodash-es';import _0xf284df from'./editorannotations';export default class i extends _0x2c0873{static get[_0x2047('0x16')](){return[_0x200923,_0x27788c];}static get[_0x2047('0x19')](){return _0x2047('0x27');}constructor(_0x4c3342){super(_0x4c3342),this[_0x2047('0x1c')]=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1ee86e(),this[_0x2047('0xe')]=_0x191de5(()=>{this['annotations'][_0x2047('0x1a')]();},0xfa,{'leading':!0x1});}[_0x2047('0x7')](){const _0x4e42a1=this[_0x2047('0x2e')][_0x2047('0x2c')][_0x2047('0x18')](_0x27788c),_0x346a47=this['context']['plugins']['get'](_0x200923);_0x4e42a1['register']('wideSidebar',this),_0x346a47[_0x2047('0x0')]&&_0x4e42a1['switchTo'](_0x2047('0x2b'));}['setActiveAnnotation'](_0x4fc598){if(_0x4fc598===this[_0x2047('0x2d')])return;const _0x19a4bc=this['context'][_0x2047('0x2c')][_0x2047('0x18')](_0x200923);_0x19a4bc[_0x2047('0xa')]=_0x4fc598;const _0x50da5a=this['activeAnnotation'];this[_0x2047('0x2d')]=_0x4fc598,_0x19a4bc[_0x2047('0xd')]({'blurredAnnotation':_0x50da5a,'activatedAnnotation':this[_0x2047('0x2d')]});}['attach'](_0x135763){this[_0x2047('0x23')]=_0x135763;const _0x478716=this[_0x2047('0x2e')]['plugins'][_0x2047('0x18')](_0x200923);if(_0x478716[_0x2047('0x25')]=_0x135763,this[_0x2047('0x1c')])throw new _0x5ed8be(_0x2047('0x9'),this);this[_0x2047('0x1c')]=!0x0,this[_0x2047('0x6')](_0x478716,'set:container',()=>{this['detach'](),this[_0x2047('0x6')](_0x478716,'change:container',_0x121a0b=>{_0x121a0b['off'](),this[_0x2047('0xb')](_0x135763);});}),_0x478716[_0x2047('0xc')]({'viewClass':_0x2047('0x13')});const _0x3b30d0=_0x310ee1=>{_0x310ee1[_0x2047('0x1')](),_0x478716[_0x2047('0x29')](_0x310ee1);};for(const _0x6c2cbb of _0x135763)_0x3b30d0(_0x6c2cbb);this[_0x2047('0x6')](_0x135763,_0x2047('0x24'),(_0x37d506,_0x3e6abe)=>{_0x3b30d0(_0x3e6abe);}),this['listenTo'](_0x135763,'remove',(_0x12a6c0,_0x15dbbb,_0x399abf)=>{_0x478716[_0x2047('0x1f')]({'removedAnnotation':_0x15dbbb,'previousAnnotation':_0x135763['get'](_0x399abf-0x1),'nextAnnotation':_0x135763['get'](_0x399abf+0x1)}),_0x15dbbb===this['activeAnnotation']&&this[_0x2047('0x12')](null);},{'priority':_0x2047('0x22')}),this[_0x2047('0x6')](_0x135763,_0x2047('0x21'),(_0x9708fc,_0x34e5a8)=>{this[_0x2047('0x12')](_0x34e5a8);}),this[_0x2047('0x6')](_0x135763,_0x2047('0x8'),()=>{this['setActiveAnnotation'](null);});const _0x16761d=this['context']instanceof _0x5115c4?this[_0x2047('0x2e')][_0x2047('0x11')]:new _0x1ee86e([this['context']]);for(const _0x367ce2 of _0x16761d)this[_0x2047('0x26')](_0x367ce2);this[_0x2047('0x6')](_0x16761d,_0x2047('0x24'),(_0x32c41c,_0x3deef6)=>{this[_0x2047('0x6')](_0x3deef6,_0x2047('0x14'),()=>{this[_0x2047('0x26')](_0x3deef6);});}),this[_0x2047('0x6')](_0x16761d,_0x2047('0x10'),(_0x872148,_0xbdf23c)=>{_0xbdf23c[_0x2047('0x2c')][_0x2047('0xf')](_0x2047('0x2a'))&&this['_destroyEditorAnnotationsIntegration'](_0xbdf23c[_0x2047('0x2c')]['get']('EditorAnnotations'));}),window[_0x2047('0x2')](_0x2047('0x1e'),this['_refreshPositioningDebounced']),this['annotations'][_0x2047('0x1a')]();}[_0x2047('0x17')](){if(!this['isAttached'])throw new _0x5ed8be(_0x2047('0x4'),this);this[_0x2047('0x12')](null);const _0x386dcc=this[_0x2047('0x2e')][_0x2047('0x2c')][_0x2047('0x18')](_0x200923);_0x386dcc['_detachFromContainer'](this['annotations']),this[_0x2047('0x5')](_0x386dcc),this['stopListening'](this[_0x2047('0x23')]),this[_0x2047('0x2e')]instanceof _0x5115c4&&this[_0x2047('0x5')](this['context'][_0x2047('0x11')]);for(const _0x550014 of Array[_0x2047('0x30')](this[_0x2047('0x15')]))this[_0x2047('0x3')](_0x550014);window[_0x2047('0x28')](_0x2047('0x1e'),this[_0x2047('0xe')]),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this[_0x2047('0x23')]=null;}[_0x2047('0x20')](){this[_0x2047('0x1c')]&&this[_0x2047('0x17')]();}[_0x2047('0x26')](_0x4c369c){const _0x32cf71=_0x4c369c[_0x2047('0x2c')]['get'](_0xf284df);if(!_0x32cf71)return;const _0x48f513=()=>{const _0x1cc694=_0x32cf71[_0x2047('0x1d')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2047('0x2d')]});this[_0x2047('0x12')](_0x1cc694[0x0]||null);};this[_0x2047('0x6')](_0x32cf71,_0x2047('0xd'),_0x48f513),this[_0x2047('0x6')](_0x32cf71,_0x2047('0x8'),(_0x169bae,{isAnnotationTracked:_0x39a6c6})=>{this[_0x2047('0x2d')]&&_0x39a6c6(this['activeAnnotation'])&&this[_0x2047('0x12')](null);}),this[_0x2047('0x6')](_0x32cf71,_0x2047('0x2f'),()=>{this[_0x2047('0xe')]();}),this['listenTo'](this['annotations'],_0x2047('0x8'),_0x2abbe3=>{_0x32cf71[_0x2047('0x1b')]()&&(_0x48f513(),_0x2abbe3['stop']());},{'priority':_0x2047('0x22')}),this['_editorAnnotations']['add'](_0x32cf71);}[_0x2047('0x3')](_0x2b6534){this[_0x2047('0x5')](_0x2b6534),this[_0x2047('0x15')]['remove'](_0x2b6534);}}
23
+ const _0x59a5=['widesidebar-attach-already-attached','_editorAnnotations','listenTo','removeEventListener','_integrateWithEditorAnnotations','getOrderedSelectedAnnotations','detach','stopListening','activeAnnotation','pluginName','addAnnotation','ready','destroy','set:container','setActiveAnnotation','focus','from','addEventListener','high','blur','wideSidebar','resize','updateTargetRect','add','editors','plugins','_refreshPositioningDebounced','refresh','_destroyEditorAnnotationsIntegration','_activeAnnotation','get','remove','uiUpdate','_annotations','ck-sidebar--wide','hasDomSelection','attach','stop','WideSidebar','isAttached','requires','set','cancel','register','rearrange','container','has','annotations','_detachFromContainer','change:container','EditorAnnotations','context'];(function(_0x52ed74,_0x59a525){const _0x4b870e=function(_0x21650b){while(--_0x21650b){_0x52ed74['push'](_0x52ed74['shift']());}};_0x4b870e(++_0x59a525);}(_0x59a5,0x1c0));const _0x4b87=function(_0x52ed74,_0x59a525){_0x52ed74=_0x52ed74-0x0;let _0x4b870e=_0x59a5[_0x52ed74];return _0x4b870e;};import{ContextPlugin as _0x4c2bb3,Context as _0x411acb}from'ckeditor5/src/core';import _0x584dd8 from'./annotationsuis';import _0x8ffee2 from'./sidebar';import{CKEditorError as _0x204f56,Collection as _0x2a067f}from'ckeditor5/src/utils';import{debounce as _0x5ce952}from'lodash-es';import _0x4f6a88 from'./editorannotations';export default class i extends _0x4c2bb3{static get[_0x4b87('0x8')](){return[_0x8ffee2,_0x584dd8];}static get[_0x4b87('0x1d')](){return _0x4b87('0x6');}constructor(_0x3d7d35){super(_0x3d7d35),this['isAttached']=!0x1,this[_0x4b87('0x9')](_0x4b87('0x1c'),null),this[_0x4b87('0xf')]=null,this[_0x4b87('0x15')]=new _0x2a067f(),this[_0x4b87('0x2e')]=_0x5ce952(()=>{this[_0x4b87('0xf')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x20cde9=this[_0x4b87('0x13')][_0x4b87('0x2d')][_0x4b87('0x32')](_0x584dd8),_0x31e1bb=this['context'][_0x4b87('0x2d')]['get'](_0x8ffee2);_0x20cde9[_0x4b87('0xb')](_0x4b87('0x28'),this),_0x31e1bb[_0x4b87('0xd')]&&_0x20cde9['switchTo'](_0x4b87('0x28'));}['setActiveAnnotation'](_0x5cbaa4){if(_0x5cbaa4===this[_0x4b87('0x1c')])return;const _0x22a7be=this[_0x4b87('0x13')]['plugins'][_0x4b87('0x32')](_0x8ffee2);_0x22a7be[_0x4b87('0x31')]=_0x5cbaa4;const _0x255f83=this[_0x4b87('0x1c')];this[_0x4b87('0x1c')]=_0x5cbaa4,_0x22a7be[_0x4b87('0x2f')]({'blurredAnnotation':_0x255f83,'activatedAnnotation':this[_0x4b87('0x1c')]});}['attach'](_0x26d06a){this[_0x4b87('0xf')]=_0x26d06a;const _0x5c5702=this[_0x4b87('0x13')][_0x4b87('0x2d')][_0x4b87('0x32')](_0x8ffee2);if(_0x5c5702[_0x4b87('0x1')]=_0x26d06a,this[_0x4b87('0x7')])throw new _0x204f56(_0x4b87('0x14'),this);this[_0x4b87('0x7')]=!0x0,this[_0x4b87('0x16')](_0x5c5702,_0x4b87('0x21'),()=>{this[_0x4b87('0x1a')](),this[_0x4b87('0x16')](_0x5c5702,_0x4b87('0x11'),_0x4c2467=>{_0x4c2467['off'](),this[_0x4b87('0x4')](_0x26d06a);});}),_0x5c5702['_attachToContainer']({'viewClass':_0x4b87('0x2')});const _0xb20d15=_0x56edd3=>{_0x56edd3[_0x4b87('0x2a')](),_0x5c5702[_0x4b87('0x1e')](_0x56edd3);};for(const _0x4566cf of _0x26d06a)_0xb20d15(_0x4566cf);this[_0x4b87('0x16')](_0x26d06a,_0x4b87('0x2b'),(_0x337f78,_0x341059)=>{_0xb20d15(_0x341059);}),this['listenTo'](_0x26d06a,'remove',(_0x56358e,_0x5ac075,_0x52efea)=>{_0x5c5702[_0x4b87('0xc')]({'removedAnnotation':_0x5ac075,'previousAnnotation':_0x26d06a[_0x4b87('0x32')](_0x52efea-0x1),'nextAnnotation':_0x26d06a[_0x4b87('0x32')](_0x52efea+0x1)}),_0x5ac075===this[_0x4b87('0x1c')]&&this[_0x4b87('0x22')](null);},{'priority':'high'}),this[_0x4b87('0x16')](_0x26d06a,_0x4b87('0x23'),(_0x419df3,_0x12e1dd)=>{this[_0x4b87('0x22')](_0x12e1dd);}),this[_0x4b87('0x16')](_0x26d06a,_0x4b87('0x27'),()=>{this[_0x4b87('0x22')](null);});const _0x211896=this[_0x4b87('0x13')]instanceof _0x411acb?this['context']['editors']:new _0x2a067f([this[_0x4b87('0x13')]]);for(const _0x502f23 of _0x211896)this[_0x4b87('0x18')](_0x502f23);this[_0x4b87('0x16')](_0x211896,_0x4b87('0x2b'),(_0x3094fc,_0x414302)=>{this[_0x4b87('0x16')](_0x414302,_0x4b87('0x1f'),()=>{this['_integrateWithEditorAnnotations'](_0x414302);});}),this[_0x4b87('0x16')](_0x211896,_0x4b87('0x33'),(_0x2aecfc,_0x454943)=>{_0x454943['plugins'][_0x4b87('0xe')]('EditorAnnotations')&&this[_0x4b87('0x30')](_0x454943[_0x4b87('0x2d')][_0x4b87('0x32')](_0x4b87('0x12')));}),window[_0x4b87('0x25')]('resize',this[_0x4b87('0x2e')]),this[_0x4b87('0xf')]['refreshPositioning']();}[_0x4b87('0x1a')](){if(!this[_0x4b87('0x7')])throw new _0x204f56('widesidebar-detach-not-attached',this);this[_0x4b87('0x22')](null);const _0x2ef7f7=this['context']['plugins']['get'](_0x8ffee2);_0x2ef7f7[_0x4b87('0x10')](this[_0x4b87('0xf')]),this[_0x4b87('0x1b')](_0x2ef7f7),this[_0x4b87('0x1b')](this[_0x4b87('0xf')]),this[_0x4b87('0x13')]instanceof _0x411acb&&this[_0x4b87('0x1b')](this[_0x4b87('0x13')][_0x4b87('0x2c')]);for(const _0x433d37 of Array[_0x4b87('0x24')](this[_0x4b87('0x15')]))this[_0x4b87('0x30')](_0x433d37);window[_0x4b87('0x17')](_0x4b87('0x29'),this[_0x4b87('0x2e')]),this[_0x4b87('0x2e')][_0x4b87('0xa')](),this['activeAnnotation']=null,this['isAttached']=!0x1,this[_0x4b87('0xf')]=null;}[_0x4b87('0x20')](){this['isAttached']&&this[_0x4b87('0x1a')]();}[_0x4b87('0x18')](_0x1a624d){const _0x26a541=_0x1a624d[_0x4b87('0x2d')][_0x4b87('0x32')](_0x4f6a88);if(!_0x26a541)return;const _0x47ceda=()=>{const _0x785d1=_0x26a541[_0x4b87('0x19')]({'annotations':this[_0x4b87('0xf')],'activeAnnotation':this[_0x4b87('0x1c')]});this[_0x4b87('0x22')](_0x785d1[0x0]||null);};this[_0x4b87('0x16')](_0x26a541,_0x4b87('0x2f'),_0x47ceda),this[_0x4b87('0x16')](_0x26a541,'blur',(_0x1068c0,{isAnnotationTracked:_0x5dc52b})=>{this[_0x4b87('0x1c')]&&_0x5dc52b(this[_0x4b87('0x1c')])&&this[_0x4b87('0x22')](null);}),this[_0x4b87('0x16')](_0x26a541,_0x4b87('0x0'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],_0x4b87('0x27'),_0x18a0c3=>{_0x26a541[_0x4b87('0x3')]()&&(_0x47ceda(),_0x18a0c3[_0x4b87('0x5')]());},{'priority':_0x4b87('0x26')}),this[_0x4b87('0x15')][_0x4b87('0x2b')](_0x26a541);}[_0x4b87('0x30')](_0x319f9a){this[_0x4b87('0x1b')](_0x319f9a),this[_0x4b87('0x15')]['remove'](_0x319f9a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca1=['start','isObject','change','refresh','_itemIsContent','element','_hasContent','$textProxy','isEnabled','createRange','substr','backward','item','addMarker','editor','_trimToContent','model','push','end','getLastMatchingPosition'];(function(_0x441369,_0x5ca1b5){const _0x3bf2dd=function(_0x591861){while(--_0x591861){_0x441369['push'](_0x441369['shift']());}};_0x3bf2dd(++_0x5ca1b5);}(_0x5ca1,0x182));const _0x3bf2=function(_0x441369,_0x5ca1b5){_0x441369=_0x441369-0x0;let _0x3bf2dd=_0x5ca1[_0x441369];return _0x3bf2dd;};import{Command as _0x4da355}from'ckeditor5/src/core';import{uid as _0x577de9}from'ckeditor5/src/utils';export default class q extends _0x4da355{[_0x3bf2('0x11')](){const _0x58e31e=this[_0x3bf2('0x8')]['model']['document']['selection'];for(const _0x424993 of _0x58e31e['getRanges']())if(this[_0x3bf2('0x0')](_0x424993))return void(this[_0x3bf2('0x2')]=!0x0);this[_0x3bf2('0x2')]=!0x1;}['execute']({threadId:_0x455004=_0x577de9()}={}){const _0x25b079=this['editor'][_0x3bf2('0xa')],_0x1c804a=[];for(const _0x2598c4 of _0x25b079['document']['selection']['getRanges']())this['_hasContent'](_0x2598c4)&&_0x1c804a[_0x3bf2('0xb')](this[_0x3bf2('0x9')](_0x2598c4));_0x25b079[_0x3bf2('0x10')](_0xc32211=>{for(const _0x1138ab of _0x1c804a){const _0xa0cd2a=_0x577de9()[_0x3bf2('0x4')](0x1,0x5),_0x5a64be='comment:'+_0x455004+':'+_0xa0cd2a;_0xc32211[_0x3bf2('0x7')](_0x5a64be,{'range':_0x1138ab,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3bf2('0x0')](_0x4b633b){for(const _0x343bbe of _0x4b633b['getItems']())if(this[_0x3bf2('0x12')](_0x343bbe))return!0x0;return!0x1;}['_itemIsContent'](_0x24de2a){return _0x24de2a['is'](_0x3bf2('0x1'))||this[_0x3bf2('0x8')]['model']['schema'][_0x3bf2('0xf')](_0x24de2a)&&!_0x24de2a['is'](_0x3bf2('0x13'),'tableCell');}[_0x3bf2('0x9')](_0x27dfc6){const _0xd59412=_0x38d66e=>!this['_itemIsContent'](_0x38d66e[_0x3bf2('0x6')]),_0x5d3832=_0x27dfc6[_0x3bf2('0xe')][_0x3bf2('0xd')](_0xd59412),_0x4abe85=_0x27dfc6[_0x3bf2('0xc')][_0x3bf2('0xd')](_0xd59412,{'direction':_0x3bf2('0x5')});return this[_0x3bf2('0x8')][_0x3bf2('0xa')][_0x3bf2('0x3')](_0x5d3832,_0x4abe85);}}
23
+ const _0x368e=['tableCell','substr','start','model','change','$textProxy','comment:','createRange','isObject','document','execute','addMarker','end','_trimToContent','_hasContent','getLastMatchingPosition','item','editor','_itemIsContent','selection','push','getRanges','refresh','backward','getItems','schema','isEnabled'];(function(_0x52cfa7,_0x368ec1){const _0x4f2ebd=function(_0x1e6128){while(--_0x1e6128){_0x52cfa7['push'](_0x52cfa7['shift']());}};_0x4f2ebd(++_0x368ec1);}(_0x368e,0x1c0));const _0x4f2e=function(_0x52cfa7,_0x368ec1){_0x52cfa7=_0x52cfa7-0x0;let _0x4f2ebd=_0x368e[_0x52cfa7];return _0x4f2ebd;};import{Command as _0x5884c8}from'ckeditor5/src/core';import{uid as _0x12ba1c}from'ckeditor5/src/utils';export default class q extends _0x5884c8{[_0x4f2e('0x6')](){const _0x2dfb58=this['editor']['model'][_0x4f2e('0x14')][_0x4f2e('0x3')];for(const _0x3cef24 of _0x2dfb58['getRanges']())if(this[_0x4f2e('0x19')](_0x3cef24))return void(this[_0x4f2e('0xa')]=!0x0);this['isEnabled']=!0x1;}[_0x4f2e('0x15')]({threadId:_0x1a6ba3=_0x12ba1c()}={}){const _0x472946=this[_0x4f2e('0x1')][_0x4f2e('0xe')],_0x34e89b=[];for(const _0x229a1e of _0x472946[_0x4f2e('0x14')]['selection'][_0x4f2e('0x5')]())this[_0x4f2e('0x19')](_0x229a1e)&&_0x34e89b[_0x4f2e('0x4')](this['_trimToContent'](_0x229a1e));_0x472946[_0x4f2e('0xf')](_0x3abd58=>{for(const _0x155ceb of _0x34e89b){const _0x4d9470=_0x12ba1c()[_0x4f2e('0xc')](0x1,0x5),_0x2bfb8a=_0x4f2e('0x11')+_0x1a6ba3+':'+_0x4d9470;_0x3abd58[_0x4f2e('0x16')](_0x2bfb8a,{'range':_0x155ceb,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4f2e('0x19')](_0xd57ecc){for(const _0x2b2c3f of _0xd57ecc[_0x4f2e('0x8')]())if(this['_itemIsContent'](_0x2b2c3f))return!0x0;return!0x1;}['_itemIsContent'](_0xc57100){return _0xc57100['is'](_0x4f2e('0x10'))||this[_0x4f2e('0x1')][_0x4f2e('0xe')][_0x4f2e('0x9')][_0x4f2e('0x13')](_0xc57100)&&!_0xc57100['is']('element',_0x4f2e('0xb'));}[_0x4f2e('0x18')](_0x563c32){const _0x3caa54=_0xd42b4a=>!this[_0x4f2e('0x2')](_0xd42b4a[_0x4f2e('0x0')]),_0x5a7b60=_0x563c32[_0x4f2e('0xd')][_0x4f2e('0x1a')](_0x3caa54),_0x379fdb=_0x563c32[_0x4f2e('0x17')]['getLastMatchingPosition'](_0x3caa54,{'direction':_0x4f2e('0x7')});return this[_0x4f2e('0x1')]['model'][_0x4f2e('0x12')](_0x5a7b60,_0x379fdb);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5060=['focus','remove','collection','plugins','getCommentThread','_calculatePosition','resolveCommentThread','resolvedAt','init','isActive','context','highest','resolvedThreads','add','has','get','listenTo','pluginName'];(function(_0x15dc03,_0x5060c3){const _0x5b3e11=function(_0x21bcd5){while(--_0x21bcd5){_0x15dc03['push'](_0x15dc03['shift']());}};_0x5b3e11(++_0x5060c3);}(_0x5060,0xbf));const _0x5b3e=function(_0x15dc03,_0x5060c3){_0x15dc03=_0x15dc03-0x0;let _0x5b3e11=_0x5060[_0x15dc03];return _0x5b3e11;};import{ContextPlugin as _0x38501e}from'ckeditor5/src/core';import{Collection as _0x3cca04}from'ckeditor5/src/utils';import _0x20155e from'./commentsrepository';import _0x12fd48 from'../annotations/annotations';export default class p extends _0x38501e{static get[_0x5b3e('0x6')](){return'CommentsArchive';}static get['requires'](){return[_0x20155e,_0x12fd48];}constructor(_0x417089){super(_0x417089),this['resolvedThreads']=new _0x3cca04();}[_0x5b3e('0xf')](){const _0xf4b8db=this[_0x5b3e('0x11')],_0x2923c8=_0xf4b8db[_0x5b3e('0xa')][_0x5b3e('0x4')](_0x20155e),_0x105b8=_0xf4b8db['plugins'][_0x5b3e('0x4')](_0x12fd48);this[_0x5b3e('0x5')](_0x2923c8,'addCommentThread',(_0x26416a,{threadId:_0x236e84,resolvedAt:_0x40e75e,deletedAt:_0x463acb})=>{if(_0x40e75e&&!_0x463acb){const _0x5f1f4f=_0x2923c8[_0x5b3e('0xb')](_0x236e84);this['resolvedThreads'][_0x5b3e('0x2')](_0x5f1f4f,this['_calculatePosition'](_0x40e75e));}}),this[_0x5b3e('0x5')](_0x2923c8,_0x5b3e('0xd'),(_0x597f04,{threadId:_0x3ef732,resolvedAt:_0x1ec38b})=>{const _0x4824a8=_0x2923c8['getCommentThread'](_0x3ef732);this[_0x5b3e('0x1')][_0x5b3e('0x2')](_0x4824a8,this[_0x5b3e('0xc')](_0x1ec38b));},{'priority':_0x5b3e('0x0')}),this[_0x5b3e('0x5')](_0x2923c8,'reopenCommentThread',(_0x3b749c,{threadId:_0x3b675b})=>{const _0x6a7832=_0x2923c8[_0x5b3e('0xb')](_0x3b675b);this['resolvedThreads'][_0x5b3e('0x3')](_0x6a7832)&&this['resolvedThreads'][_0x5b3e('0x8')](_0x6a7832);},{'priority':_0x5b3e('0x0')}),this[_0x5b3e('0x5')](_0x2923c8,'removeCommentThread',(_0x1d435b,{threadId:_0x48fa29})=>{const _0x2b36e6=_0x2923c8['getCommentThread'](_0x48fa29);this[_0x5b3e('0x1')]['has'](_0x2b36e6)&&this[_0x5b3e('0x1')][_0x5b3e('0x8')](_0x2b36e6);},{'priority':_0x5b3e('0x0')}),this['listenTo'](_0x105b8[_0x5b3e('0x9')],_0x5b3e('0x7'),(_0x3206bb,_0x215448)=>{_0x215448[_0x5b3e('0x10')]=!0x0,_0x105b8['activate'](_0x215448);});}[_0x5b3e('0xc')](_0x492705){const _0x29e873=[...this[_0x5b3e('0x1')]]['findIndex'](_0x334acd=>_0x334acd[_0x5b3e('0xe')]<_0x492705);return _0x29e873>-0x1?_0x29e873:this[_0x5b3e('0x1')]['length'];}}
23
+ const _0x14b0=['reopenCommentThread','resolveCommentThread','get','requires','collection','isActive','init','removeCommentThread','activate','pluginName','findIndex','highest','getCommentThread','resolvedThreads','addCommentThread','plugins','listenTo','focus','resolvedAt','length','CommentsArchive','remove','add','_calculatePosition'];(function(_0x237a54,_0x14b0d0){const _0x3e1df6=function(_0x184df2){while(--_0x184df2){_0x237a54['push'](_0x237a54['shift']());}};_0x3e1df6(++_0x14b0d0);}(_0x14b0,0xf9));const _0x3e1d=function(_0x237a54,_0x14b0d0){_0x237a54=_0x237a54-0x0;let _0x3e1df6=_0x14b0[_0x237a54];return _0x3e1df6;};import{ContextPlugin as _0x3f6533}from'ckeditor5/src/core';import{Collection as _0x186b56}from'ckeditor5/src/utils';import _0x4a00b0 from'./commentsrepository';import _0xa010c8 from'../annotations/annotations';export default class p extends _0x3f6533{static get[_0x3e1d('0x0')](){return _0x3e1d('0xb');}static get[_0x3e1d('0x12')](){return[_0x4a00b0,_0xa010c8];}constructor(_0x2cdb48){super(_0x2cdb48),this[_0x3e1d('0x4')]=new _0x186b56();}[_0x3e1d('0x15')](){const _0x294c6c=this['context'],_0x471dab=_0x294c6c[_0x3e1d('0x6')][_0x3e1d('0x11')](_0x4a00b0),_0x51e3b5=_0x294c6c['plugins'][_0x3e1d('0x11')](_0xa010c8);this[_0x3e1d('0x7')](_0x471dab,_0x3e1d('0x5'),(_0x4fdfb4,{threadId:_0x188cf9,resolvedAt:_0x25a15c,deletedAt:_0x567e76})=>{if(_0x25a15c&&!_0x567e76){const _0x3dd13c=_0x471dab[_0x3e1d('0x3')](_0x188cf9);this[_0x3e1d('0x4')][_0x3e1d('0xd')](_0x3dd13c,this[_0x3e1d('0xe')](_0x25a15c));}}),this['listenTo'](_0x471dab,_0x3e1d('0x10'),(_0x1d7361,{threadId:_0x4b1328,resolvedAt:_0x4596ef})=>{const _0x122720=_0x471dab[_0x3e1d('0x3')](_0x4b1328);this[_0x3e1d('0x4')][_0x3e1d('0xd')](_0x122720,this[_0x3e1d('0xe')](_0x4596ef));},{'priority':_0x3e1d('0x2')}),this[_0x3e1d('0x7')](_0x471dab,_0x3e1d('0xf'),(_0x52498f,{threadId:_0x316fba})=>{const _0x566cc8=_0x471dab['getCommentThread'](_0x316fba);this[_0x3e1d('0x4')]['has'](_0x566cc8)&&this[_0x3e1d('0x4')][_0x3e1d('0xc')](_0x566cc8);},{'priority':_0x3e1d('0x2')}),this[_0x3e1d('0x7')](_0x471dab,_0x3e1d('0x16'),(_0x2f9ca6,{threadId:_0x4d1647})=>{const _0x53a764=_0x471dab[_0x3e1d('0x3')](_0x4d1647);this['resolvedThreads']['has'](_0x53a764)&&this['resolvedThreads'][_0x3e1d('0xc')](_0x53a764);},{'priority':_0x3e1d('0x2')}),this[_0x3e1d('0x7')](_0x51e3b5[_0x3e1d('0x13')],_0x3e1d('0x8'),(_0x489a26,_0x1c2068)=>{_0x1c2068[_0x3e1d('0x14')]=!0x0,_0x51e3b5[_0x3e1d('0x17')](_0x1c2068);});}[_0x3e1d('0xe')](_0x122963){const _0x411345=[...this[_0x3e1d('0x4')]][_0x3e1d('0x1')](_0x3093bc=>_0x3093bc[_0x3e1d('0x9')]<_0x122963);return _0x411345>-0x1?_0x411345:this[_0x3e1d('0x4')][_0x3e1d('0xa')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x482a=['_createArchiveUIDropdown','extendTemplate','indexOf','stopListening','CommentsArchiveUI','pluginName','isVisible','length','resolvedThreads','collaboration.channelId','children','_pendingThreads','annotationViews','contains','remove','set','listenTo','componentFactory','collection','getByInnerView','view','editor','add','innerView','filter','channelId','ck-comments-archive-dropdown','_visibleAnnotations','plugins','focusableElements','_handleAnnotationFocusableElements','requires','Annotations','COMMENTS_ARCHIVE','commentsArchive','commentsArchiveView','_threadToController','ck-body','config','focusTracker','splice','panelView','_calculatePosition','buttonView','get','classList','resolvedAt','push','mainView','init','locale'];(function(_0x51cb1d,_0x482a11){const _0x21d906=function(_0x2a230f){while(--_0x2a230f){_0x51cb1d['push'](_0x51cb1d['shift']());}};_0x21d906(++_0x482a11);}(_0x482a,0x1bb));const _0x21d9=function(_0x51cb1d,_0x482a11){_0x51cb1d=_0x51cb1d-0x0;let _0x21d906=_0x482a[_0x51cb1d];return _0x21d906;};import'../../theme/commentsarchive.css';import{Plugin as _0x1a56cd}from'ckeditor5/src/core';import{createDropdown as _0x218b64,ViewCollection as _0x4be0c9}from'ckeditor5/src/ui';import _0x55b5a6 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4267e7}from'../utils/common-translations';import _0x3cc2cd from'./ui/view/commentsarchiveview';import _0x4f49d0 from'./commentsarchive';export default class a extends _0x1a56cd{static get[_0x21d9('0x15')](){return _0x21d9('0x14');}static get[_0x21d9('0x2f')](){return[_0x4f49d0];}constructor(_0x343fa0){super(_0x343fa0),this[_0x21d9('0x1c')]=new _0x4be0c9(),this[_0x21d9('0x1b')]=[];}[_0x21d9('0xe')](){this[_0x21d9('0x25')]['ui'][_0x21d9('0x21')]['add'](_0x21d9('0x32'),()=>this['_createArchiveUIDropdown']());const _0x1f1874=this[_0x21d9('0x25')][_0x21d9('0x2c')][_0x21d9('0x9')](_0x4f49d0),_0x4a097d=this[_0x21d9('0x25')][_0x21d9('0x2c')][_0x21d9('0x9')](_0x21d9('0x30')),_0x4c940c=this[_0x21d9('0x25')][_0x21d9('0x2c')][_0x21d9('0x9')]('CommentsRepository');this['listenTo'](_0x1f1874[_0x21d9('0x18')],_0x21d9('0x26'),(_0x45f069,_0x241023)=>{const _0x4e2a66=this[_0x21d9('0x25')][_0x21d9('0x3')][_0x21d9('0x9')](_0x21d9('0x19'));if(!_0x4e2a66||_0x241023['channelId']===_0x4e2a66){const _0x5b186d=this['_calculatePosition'](_0x241023[_0x21d9('0xb')]),_0x2abb36=_0x4c940c['_threadToController']['get'](_0x241023);if(!_0x2abb36)return void this[_0x21d9('0x1b')][_0x21d9('0xc')]({'thread':_0x241023,'position':_0x5b186d});const _0xd70019=_0x4a097d[_0x21d9('0x23')](_0x2abb36['view']);_0xd70019[_0x21d9('0x16')]&&_0x4a097d[_0x21d9('0x2b')][_0x21d9('0x1e')](_0xd70019),this[_0x21d9('0x1c')]['add'](_0xd70019[_0x21d9('0x24')],_0x5b186d);}}),this[_0x21d9('0x20')](_0x4a097d[_0x21d9('0x22')],_0x21d9('0x26'),(_0x59163a,_0x31dfc7)=>{const _0x52a0e3=this[_0x21d9('0x1b')]['find'](({thread:_0x6c8b11})=>{const _0x28860e=_0x4c940c[_0x21d9('0x1')][_0x21d9('0x9')](_0x6c8b11);return _0x28860e&&_0x31dfc7[_0x21d9('0x27')]===_0x28860e[_0x21d9('0x24')];});_0x52a0e3&&(this[_0x21d9('0x1c')]['add'](_0x31dfc7[_0x21d9('0x24')],_0x52a0e3['position']),this[_0x21d9('0x1b')][_0x21d9('0x5')](this['_pendingThreads'][_0x21d9('0x12')](_0x52a0e3),0x1));}),this[_0x21d9('0x20')](_0x1f1874[_0x21d9('0x18')],_0x21d9('0x1e'),(_0x1e0dc4,_0x48e9c2)=>{const _0x1fcd87=this[_0x21d9('0x25')][_0x21d9('0x3')]['get'](_0x21d9('0x19'));if(!_0x1fcd87||_0x48e9c2[_0x21d9('0x29')]===_0x1fcd87){const _0x403f6d=_0x4c940c[_0x21d9('0x1')][_0x21d9('0x9')](_0x48e9c2),_0x1e9dce=_0x4a097d[_0x21d9('0x23')](_0x403f6d[_0x21d9('0x24')]);this['annotationViews'][_0x21d9('0x1e')](_0x1e9dce[_0x21d9('0x24')]),this[_0x21d9('0x13')](_0x1e9dce[_0x21d9('0x2d')]);}});}[_0x21d9('0x2e')](_0x3771d0,_0x563672){for(const _0x43b531 of _0x563672[_0x21d9('0x2d')])_0x43b531['classList'][_0x21d9('0x1d')](_0x21d9('0x2'))&&_0x3771d0[_0x21d9('0x4')][_0x21d9('0x26')](_0x43b531);this['listenTo'](_0x563672['focusableElements'],'add',(_0x31af62,_0x5b79a9)=>{_0x5b79a9[_0x21d9('0xa')][_0x21d9('0x1d')](_0x21d9('0x2'))&&_0x3771d0[_0x21d9('0x4')][_0x21d9('0x26')](_0x5b79a9);}),this[_0x21d9('0x20')](_0x563672[_0x21d9('0x2d')],_0x21d9('0x1e'),(_0x20753b,_0x29e333)=>{_0x29e333[_0x21d9('0xa')]['contains'](_0x21d9('0x2'))&&_0x3771d0[_0x21d9('0x4')][_0x21d9('0x1e')](_0x29e333);});}[_0x21d9('0x7')](_0x518851){const _0x1fd86d=this[_0x21d9('0x25')][_0x21d9('0x3')][_0x21d9('0x9')](_0x21d9('0x19')),_0x246bc4=[...this['editor'][_0x21d9('0x2c')][_0x21d9('0x9')](_0x4f49d0)[_0x21d9('0x18')]][_0x21d9('0x28')](_0x1a5797=>_0x1a5797[_0x21d9('0x29')]!==_0x1fd86d)['findIndex'](_0x5e3038=>_0x5e3038[_0x21d9('0xb')]<_0x518851);return _0x246bc4>-0x1?_0x246bc4:this['annotationViews'][_0x21d9('0x17')];}[_0x21d9('0x10')](){const _0x3f8589=this['editor'],_0x42db54=this[_0x21d9('0x25')][_0x21d9('0x2c')][_0x21d9('0x9')]('Annotations'),_0x1466e9=_0x218b64(_0x3f8589[_0x21d9('0xf')]);_0x1466e9[_0x21d9('0x8')][_0x21d9('0x1f')]({'icon':_0x55b5a6,'label':_0x4267e7(_0x3f8589[_0x21d9('0xf')],_0x21d9('0x31')),'tooltip':!0x0}),_0x1466e9[_0x21d9('0x6')][_0x21d9('0x11')]({'attributes':{'class':_0x21d9('0x2a')}}),_0x1466e9['on']('change:isOpen',(_0x2d58a9,_0x596f18,_0x4cd7ad)=>{this['commentsArchiveView']||(this[_0x21d9('0x0')]=new _0x3cc2cd(_0x3f8589['locale'],this[_0x21d9('0x1c')])),_0x4cd7ad?_0x1466e9['panelView']['children']['add'](this['commentsArchiveView']):_0x1466e9[_0x21d9('0x6')][_0x21d9('0x1a')]['remove'](this['commentsArchiveView']);});for(const _0x260842 of this[_0x21d9('0x1c')]){const _0x262b61=_0x42db54[_0x21d9('0x23')](_0x260842[_0x21d9('0xd')]);this['_handleAnnotationFocusableElements'](_0x1466e9,_0x262b61);}return _0x1466e9[_0x21d9('0x20')](this[_0x21d9('0x1c')],'add',(_0x2284ab,_0x1689e9)=>{const _0x47e8f9=_0x42db54[_0x21d9('0x23')](_0x1689e9[_0x21d9('0xd')]);this['_handleAnnotationFocusableElements'](_0x1466e9,_0x47e8f9);}),_0x1466e9[_0x21d9('0x20')](this[_0x21d9('0x1c')],_0x21d9('0x1e'),(_0x175361,_0x39393b)=>{const _0x576287=_0x42db54[_0x21d9('0x23')](_0x39393b['mainView']);for(const _0x5862c9 of _0x576287['focusableElements'])_0x5862c9[_0x21d9('0xa')]['contains'](_0x21d9('0x2'))&&_0x1466e9['focusTracker'][_0x21d9('0x1e')](_0x5862c9);}),_0x1466e9;}}
23
+ const _0x28ba=['collection','get','extendTemplate','_threadToController','listenTo','indexOf','focusableElements','view','_createArchiveUIDropdown','contains','ck-body','ck-comments-archive-dropdown','filter','position','panelView','_calculatePosition','push','length','classList','commentsArchive','annotationViews','collaboration.channelId','config','editor','focusTracker','findIndex','pluginName','locale','getByInnerView','_handleAnnotationFocusableElements','_visibleAnnotations','COMMENTS_ARCHIVE','channelId','CommentsArchiveUI','buttonView','commentsArchiveView','children','Annotations','init','plugins','mainView','_pendingThreads','stopListening','add','remove','resolvedThreads','find','requires'];(function(_0x20bd57,_0x28ba06){const _0x8e84b9=function(_0x2cae9b){while(--_0x2cae9b){_0x20bd57['push'](_0x20bd57['shift']());}};_0x8e84b9(++_0x28ba06);}(_0x28ba,0xed));const _0x8e84=function(_0x20bd57,_0x28ba06){_0x20bd57=_0x20bd57-0x0;let _0x8e84b9=_0x28ba[_0x20bd57];return _0x8e84b9;};import'../../theme/commentsarchive.css';import{Plugin as _0x499310}from'ckeditor5/src/core';import{createDropdown as _0x2663bd,ViewCollection as _0xf62b89}from'ckeditor5/src/ui';import _0x3c5e34 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2f1aa8}from'../utils/common-translations';import _0x1682e8 from'./ui/view/commentsarchiveview';import _0x66f851 from'./commentsarchive';export default class a extends _0x499310{static get[_0x8e84('0x1d')](){return _0x8e84('0x24');}static get[_0x8e84('0x2')](){return[_0x66f851];}constructor(_0x547c6d){super(_0x547c6d),this[_0x8e84('0x17')]=new _0xf62b89(),this[_0x8e84('0x2c')]=[];}[_0x8e84('0x29')](){this[_0x8e84('0x1a')]['ui']['componentFactory']['add'](_0x8e84('0x16'),()=>this[_0x8e84('0xb')]());const _0x4981c3=this[_0x8e84('0x1a')]['plugins'][_0x8e84('0x4')](_0x66f851),_0x48a1cb=this[_0x8e84('0x1a')][_0x8e84('0x2a')]['get'](_0x8e84('0x28')),_0x4bbabf=this[_0x8e84('0x1a')][_0x8e84('0x2a')][_0x8e84('0x4')]('CommentsRepository');this['listenTo'](_0x4981c3[_0x8e84('0x0')],_0x8e84('0x2e'),(_0x2add7d,_0x4cc88d)=>{const _0x22438e=this['editor'][_0x8e84('0x19')]['get'](_0x8e84('0x18'));if(!_0x22438e||_0x4cc88d['channelId']===_0x22438e){const _0xae5f9d=this[_0x8e84('0x12')](_0x4cc88d['resolvedAt']),_0x53fe68=_0x4bbabf['_threadToController']['get'](_0x4cc88d);if(!_0x53fe68)return void this[_0x8e84('0x2c')][_0x8e84('0x13')]({'thread':_0x4cc88d,'position':_0xae5f9d});const _0x472b8b=_0x48a1cb['getByInnerView'](_0x53fe68[_0x8e84('0xa')]);_0x472b8b['isVisible']&&_0x48a1cb[_0x8e84('0x21')][_0x8e84('0x2f')](_0x472b8b),this[_0x8e84('0x17')][_0x8e84('0x2e')](_0x472b8b[_0x8e84('0xa')],_0xae5f9d);}}),this[_0x8e84('0x7')](_0x48a1cb[_0x8e84('0x3')],'add',(_0x2008b4,_0x2342b9)=>{const _0x2beb86=this['_pendingThreads'][_0x8e84('0x1')](({thread:_0x64d0fd})=>{const _0x53fef2=_0x4bbabf[_0x8e84('0x6')][_0x8e84('0x4')](_0x64d0fd);return _0x53fef2&&_0x2342b9['innerView']===_0x53fef2[_0x8e84('0xa')];});_0x2beb86&&(this[_0x8e84('0x17')][_0x8e84('0x2e')](_0x2342b9[_0x8e84('0xa')],_0x2beb86[_0x8e84('0x10')]),this[_0x8e84('0x2c')]['splice'](this['_pendingThreads'][_0x8e84('0x8')](_0x2beb86),0x1));}),this['listenTo'](_0x4981c3[_0x8e84('0x0')],_0x8e84('0x2f'),(_0x59627a,_0x4db679)=>{const _0x45a77b=this[_0x8e84('0x1a')][_0x8e84('0x19')]['get'](_0x8e84('0x18'));if(!_0x45a77b||_0x4db679[_0x8e84('0x23')]===_0x45a77b){const _0x10f404=_0x4bbabf['_threadToController'][_0x8e84('0x4')](_0x4db679),_0x4fad1d=_0x48a1cb['getByInnerView'](_0x10f404[_0x8e84('0xa')]);this[_0x8e84('0x17')][_0x8e84('0x2f')](_0x4fad1d['view']),this[_0x8e84('0x2d')](_0x4fad1d[_0x8e84('0x9')]);}});}[_0x8e84('0x20')](_0x1861ab,_0x569045){for(const _0x552e68 of _0x569045[_0x8e84('0x9')])_0x552e68['classList'][_0x8e84('0xc')]('ck-body')&&_0x1861ab[_0x8e84('0x1b')][_0x8e84('0x2e')](_0x552e68);this['listenTo'](_0x569045[_0x8e84('0x9')],_0x8e84('0x2e'),(_0x12e97e,_0x545ebb)=>{_0x545ebb[_0x8e84('0x15')][_0x8e84('0xc')](_0x8e84('0xd'))&&_0x1861ab[_0x8e84('0x1b')][_0x8e84('0x2e')](_0x545ebb);}),this[_0x8e84('0x7')](_0x569045[_0x8e84('0x9')],_0x8e84('0x2f'),(_0x2e2f9b,_0x2089e2)=>{_0x2089e2[_0x8e84('0x15')][_0x8e84('0xc')]('ck-body')&&_0x1861ab[_0x8e84('0x1b')][_0x8e84('0x2f')](_0x2089e2);});}[_0x8e84('0x12')](_0x413d25){const _0x34e9f6=this['editor'][_0x8e84('0x19')][_0x8e84('0x4')](_0x8e84('0x18')),_0x352873=[...this['editor'][_0x8e84('0x2a')][_0x8e84('0x4')](_0x66f851)[_0x8e84('0x0')]][_0x8e84('0xf')](_0x277c26=>_0x277c26[_0x8e84('0x23')]!==_0x34e9f6)[_0x8e84('0x1c')](_0x4962a7=>_0x4962a7['resolvedAt']<_0x413d25);return _0x352873>-0x1?_0x352873:this[_0x8e84('0x17')][_0x8e84('0x14')];}[_0x8e84('0xb')](){const _0x361e36=this[_0x8e84('0x1a')],_0x34d43d=this['editor'][_0x8e84('0x2a')][_0x8e84('0x4')](_0x8e84('0x28')),_0x1c510e=_0x2663bd(_0x361e36['locale']);_0x1c510e[_0x8e84('0x25')]['set']({'icon':_0x3c5e34,'label':_0x2f1aa8(_0x361e36[_0x8e84('0x1e')],_0x8e84('0x22')),'tooltip':!0x0}),_0x1c510e[_0x8e84('0x11')][_0x8e84('0x5')]({'attributes':{'class':_0x8e84('0xe')}}),_0x1c510e['on']('change:isOpen',(_0x289078,_0x2224f4,_0x16ed4d)=>{this['commentsArchiveView']||(this[_0x8e84('0x26')]=new _0x1682e8(_0x361e36[_0x8e84('0x1e')],this[_0x8e84('0x17')])),_0x16ed4d?_0x1c510e[_0x8e84('0x11')][_0x8e84('0x27')][_0x8e84('0x2e')](this[_0x8e84('0x26')]):_0x1c510e[_0x8e84('0x11')][_0x8e84('0x27')]['remove'](this['commentsArchiveView']);});for(const _0x5a5c15 of this[_0x8e84('0x17')]){const _0x155f60=_0x34d43d[_0x8e84('0x1f')](_0x5a5c15[_0x8e84('0x2b')]);this[_0x8e84('0x20')](_0x1c510e,_0x155f60);}return _0x1c510e[_0x8e84('0x7')](this['annotationViews'],_0x8e84('0x2e'),(_0x418d48,_0x1cd2e)=>{const _0x4e4aa1=_0x34d43d[_0x8e84('0x1f')](_0x1cd2e[_0x8e84('0x2b')]);this['_handleAnnotationFocusableElements'](_0x1c510e,_0x4e4aa1);}),_0x1c510e['listenTo'](this[_0x8e84('0x17')],'remove',(_0x2a0db1,_0x434478)=>{const _0x51e581=_0x34d43d[_0x8e84('0x1f')](_0x434478[_0x8e84('0x2b')]);for(const _0x4a6776 of _0x51e581[_0x8e84('0x9')])_0x4a6776[_0x8e84('0x15')][_0x8e84('0xc')]('ck-body')&&_0x1c510e[_0x8e84('0x1b')][_0x8e84('0x2f')](_0x4a6776);}),_0x1c510e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bb1=['setContext','listenTo','reconvertMarker','map','change:isThreadsLoadingPaused','from','item','conversion','high','data','view','reopenCommentThread','delete','_attachedThreads','plugins','rootName','removeMarker','attachTo','isThreadsLoadingPaused','hasContent','change','switchReadOnly','get','destroy','start','refreshVisibility','dataToMarker','clear','low','_handleThreadMarker','size','registerPostFixer','activeMarker','editor','substring','_removedThread','add','push','split','resolve','scrollToThreadMarker','getCommentThreads','for','once','getRange','comment','addCommentThread','destroyed','change:isReadOnly','upcast','isObject','removeCommentThread','_handleMarkerAddAndRemove','markers','openNewCommentThread','_hasTargetInContent','end','_attachResolvedThread','has','editingDowncast','config','elementToElement','_getTargetForId','dataDowncast','markerToData','isResolved','managedUsingOperations','registerAnnotation','model','reopen','differ','getChangedMarkers','getByInnerView','collaboration.channelId','state','change:activeMarker','addMarker:','isEqual','length','createElement','addComment','_autoResolvedThreads','hasCommentThread','ck-comment-marker--active','_attachMarkerToThread','document','_threadToController','$textProxy','editing','requires','newRange','render','createPositionBefore','hasMarkerForId','markerName','consumable','text','getAllMarkersForId','isCollapsed','getCommentThread','consume','context','schema','affectsData','filter','_getTextContext','$graveyard','ck-comment-marker','enqueueChange','resolveCommentThread','getAttribute','pluginName','_reconvertMarkers','set'];(function(_0x45d460,_0x3bb10f){const _0xc3f31b=function(_0x27f73e){while(--_0x27f73e){_0x45d460['push'](_0x45d460['shift']());}};_0xc3f31b(++_0x3bb10f);}(_0x3bb1,0x189));const _0xc3f3=function(_0x45d460,_0x3bb10f){_0x45d460=_0x45d460-0x0;let _0xc3f31b=_0x3bb1[_0x45d460];return _0xc3f31b;};import{Plugin as _0x3f8e93}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3e827a}from'ckeditor5/src/utils';import _0xc526f8 from'./commentsrepository';import _0x4d785e from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x1ee435}from'ckeditor5-collaboration/src/collaboration-core';import _0x35a4af from'../annotations/editorannotations';import _0x560cf5 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x476fb7 from'./integrations/importword';import _0x267421 from'../annotations/annotations';export default class r extends _0x3f8e93{static get[_0xc3f3('0x26')](){return[_0xc526f8,_0x35a4af,_0x560cf5,_0x476fb7];}static get[_0xc3f3('0x3c')](){return'CommentsEditing';}constructor(_0x3d1661){super(_0x3d1661),this[_0xc3f3('0x62')]=null,this['_autoResolvedThreads']=new Set(),this[_0xc3f3('0x3e')](_0xc3f3('0x51'),!0x0),_0x3d1661[_0xc3f3('0x48')]['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this[_0xc3f3('0x3e')](_0xc3f3('0x5f'),null),this['on'](_0xc3f3('0x18'),(_0x4a0103,_0x3c603d,_0x4e0992,_0x3fd2d2)=>{const _0x141705=_0x4e0992?tt(_0x4e0992)['id']:null;if(_0x3d1661[_0xc3f3('0x11')][_0xc3f3('0x53')](()=>{if(_0x141705){const _0x480b05=this[_0xc3f3('0x2e')](_0x141705);for(const _0x1a8ccc of _0x480b05)_0x3d1661['editing']['reconvertMarker'](_0x1a8ccc);}if(_0x3fd2d2){const {id:_0x2852c7}=tt(_0x3fd2d2),_0x18d5a2=this['getAllMarkersForId'](_0x2852c7);for(const _0x428fba of _0x18d5a2)_0x3d1661[_0xc3f3('0x25')][_0xc3f3('0x41')](_0x428fba);}}),_0x141705){const _0x5caf23=_0x3d1661[_0xc3f3('0x4d')][_0xc3f3('0x55')](_0xc526f8)[_0xc3f3('0x30')](_0x141705);_0x5caf23&&_0x5caf23[_0xc3f3('0xe')]&&this['scrollToThreadMarker'](_0x141705);}}),this[_0xc3f3('0x4c')]=new Map();}['init'](){const _0x4e81b1=this[_0xc3f3('0x60')],_0xeb0979=_0x4e81b1[_0xc3f3('0x4d')]['get'](_0xc526f8),_0x39556b=_0x4e81b1[_0xc3f3('0x9')]['get'](_0xc3f3('0x16'));_0x4e81b1['commands'][_0xc3f3('0x63')]('addCommentThread',new _0x4d785e(_0x4e81b1)),this['listenTo'](_0x4e81b1,_0xc3f3('0x6f'),(_0x5c0d8d,_0x338387,_0x30b796)=>{_0xeb0979[_0xc3f3('0x54')](_0x30b796,_0x4e81b1['config'][_0xc3f3('0x55')]('collaboration.channelId'));}),this[_0xc3f3('0x40')](_0xeb0979,Z(_0xc3f3('0x6d'),_0x39556b),(_0x32a36b,{threadId:_0x2810d8})=>{const _0x2290ab=this['editor'][_0xc3f3('0x4d')][_0xc3f3('0x55')](_0xc526f8)['getCommentThread'](_0x2810d8);_0x2290ab&&_0x2290ab[_0xc3f3('0xe')]&&this[_0xc3f3('0x6')](_0x2810d8);}),this[_0xc3f3('0x40')](_0xeb0979,Z(_0xc3f3('0x0'),_0x39556b),(_0x1b30e6,{threadId:_0x19d9e1})=>{_0x4e81b1[_0xc3f3('0x11')][_0xc3f3('0x39')]({'isUndoable':!0x1},_0x587ff0=>{const _0x13af5d=this['getAllMarkersForId'](_0x19d9e1);this[_0xc3f3('0x4c')][_0xc3f3('0x4b')](_0x19d9e1),this['_removedThread']=_0x19d9e1;for(const _0x26ae85 of _0x13af5d)_0x587ff0['removeMarker'](_0x26ae85);}),this['_removedThread']=null;},{'priority':_0xc3f3('0x47')}),this['listenTo'](_0xeb0979,Z(_0xc3f3('0x3a'),_0x39556b),(_0x2d6773,{threadId:_0x2724be})=>{this[_0xc3f3('0x6')](_0x2724be),this[_0xc3f3('0x3d')](_0x2724be),this['editor'][_0xc3f3('0x25')]['view']['hasDomSelection']&&this[_0xc3f3('0x60')][_0xc3f3('0x25')][_0xc3f3('0x49')]['focus']();},{'priority':_0xc3f3('0x5b')}),this[_0xc3f3('0x40')](_0xeb0979,Z(_0xc3f3('0x4a'),_0x39556b),(_0x20043d,{threadId:_0x654cbb})=>{this[_0xc3f3('0x3d')](_0x654cbb);},{'priority':_0xc3f3('0x5b')}),this[_0xc3f3('0x40')](_0xeb0979,Z(_0xc3f3('0x1d'),_0x39556b),(_0xb57602,{threadId:_0x3fccee,isFromAdapter:_0x4373d0})=>{const _0x90c9dd=this[_0xc3f3('0x2e')](_0x3fccee);if(_0x4373d0||0x0==_0x90c9dd[_0xc3f3('0x1b')]||!_0xeb0979[_0xc3f3('0x1f')](_0x3fccee))return;0x1===_0xeb0979[_0xc3f3('0x30')](_0x3fccee)[_0xc3f3('0x1b')]&&_0x4e81b1['model'][_0xc3f3('0x39')]({'isUndoable':!0x1},_0x3ecce6=>{for(const _0x4c483e of _0x90c9dd)_0x3ecce6['updateMarker'](_0x4c483e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xc3f3('0x5b')}),this['_initializeMarkerConverters'](),this[_0xc3f3('0x1')]();}[_0xc3f3('0x56')](){const _0x3a1092=this[_0xc3f3('0x60')][_0xc3f3('0x4d')][_0xc3f3('0x55')](_0xc526f8),_0x20c707=this[_0xc3f3('0x60')][_0xc3f3('0x9')][_0xc3f3('0x55')](_0xc3f3('0x16'));for(const _0x465627 of _0x3a1092[_0xc3f3('0x68')]({'channelId':_0x20c707}))_0x3a1092['_detachCommentThread'](_0x465627['id']),_0x3a1092['_threads'][_0xc3f3('0x4b')](_0x465627['id']);super['destroy']();}[_0xc3f3('0x2a')](_0xddb767){return this['getAllMarkersForId'](_0xddb767)[_0xc3f3('0x1b')]>0x0;}['getAllMarkersForId'](_0x33941c){return Array['from'](this[_0xc3f3('0x4c')][_0xc3f3('0x55')](_0x33941c)||[])[_0xc3f3('0x42')](_0x555673=>this[_0xc3f3('0x60')][_0xc3f3('0x11')]['markers'][_0xc3f3('0x55')](_0x555673))[_0xc3f3('0x35')](_0x80d5cb=>_0x80d5cb);}[_0xc3f3('0x67')](_0x1640a7){const _0x537dd3=this[_0xc3f3('0xb')](_0x1640a7);_0x537dd3&&setTimeout(()=>{this['activeMarker']&&tt(this[_0xc3f3('0x5f')])['id']===_0x1640a7&&_0x3e827a({'target':_0x537dd3[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0xc3f3('0x3d')](_0x46cf65){this[_0xc3f3('0x60')][_0xc3f3('0x11')][_0xc3f3('0x53')](()=>{for(const _0x4ac9db of this[_0xc3f3('0x2e')](_0x46cf65))this[_0xc3f3('0x60')][_0xc3f3('0x25')]['reconvertMarker'](_0x4ac9db);});}[_0xc3f3('0x6')](_0x5f508c){const _0x5eaecb=this[_0xc3f3('0x60')]['plugins']['get'](_0xc526f8),_0x18aec5=this[_0xc3f3('0x60')]['plugins'][_0xc3f3('0x55')](_0x35a4af),_0x477686=_0x5eaecb['getCommentThread'](_0x5f508c);if(!this['_attachedThreads'][_0xc3f3('0x7')](_0x5f508c)){const _0x1ecc2b=_0x477686[_0xc3f3('0x50')](()=>this[_0xc3f3('0xb')](_0x477686['id']));_0x18aec5[_0xc3f3('0x10')](_0x1ecc2b),this[_0xc3f3('0x4c')][_0xc3f3('0x3e')](_0x5f508c,new Set()),_0x477686['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x268b96=this['editor'];_0x268b96[_0xc3f3('0x46')]['for'](_0xc3f3('0x8'))['markerToHighlight']({'model':_0xc3f3('0x6c'),'view':(_0x6a6341,_0x7614af)=>{const {id:_0x56bbb4}=tt(_0x6a6341['markerName']),_0x984cb5=_0x268b96[_0xc3f3('0x4d')][_0xc3f3('0x55')](_0xc526f8)[_0xc3f3('0x30')](_0x56bbb4),_0x1a01b6=this[_0xc3f3('0x5f')]&&tt(this['activeMarker'])['id']===_0x56bbb4;if(_0x984cb5&&_0x984cb5['isResolved']&&!_0x1a01b6&&_0x6a6341[_0xc3f3('0x45')])return _0x7614af[_0xc3f3('0x2c')][_0xc3f3('0x31')](_0x6a6341[_0xc3f3('0x45')],_0xc3f3('0x19')+_0x6a6341[_0xc3f3('0x2b')]),_0x7614af['consumable'][_0xc3f3('0x31')](_0x6a6341[_0xc3f3('0x45')],'removeMarker:'+_0x6a6341['markerName']),{'classes':[]};const _0x1ee08c=[_0xc3f3('0x38')];return _0x1a01b6&&_0x1ee08c[_0xc3f3('0x64')](_0xc3f3('0x20')),{'classes':_0x1ee08c,'attributes':{'data-comment':_0x56bbb4}};}}),_0x268b96[_0xc3f3('0x46')]['for'](_0xc3f3('0xc'))[_0xc3f3('0xd')]({'model':'comment','view':(_0x593e84,{options:_0x5a590c})=>{const _0x25e436=_0x268b96[_0xc3f3('0x4d')][_0xc3f3('0x55')](_0xc526f8),_0x523fcb=_0x268b96[_0xc3f3('0x11')][_0xc3f3('0x2')][_0xc3f3('0x55')](_0x593e84),{id:_0x3b2435,part:_0x33dc6a}=tt(_0x593e84);if(_0x523fcb&&!_0x523fcb[_0xc3f3('0x34')])return null;if(_0x5a590c['ignoreResolvedComments']){const _0x198364=_0x25e436['getCommentThread'](_0x3b2435);if(_0x198364&&_0x198364[_0xc3f3('0xe')])return null;}return{'group':_0xc3f3('0x6c'),'name':_0x33dc6a?_0x3b2435+':'+_0x33dc6a:_0x3b2435};}}),_0x268b96[_0xc3f3('0x46')][_0xc3f3('0x69')](_0xc3f3('0x70'))[_0xc3f3('0xa')]({'view':{'name':_0xc3f3('0x6c'),'attributes':{'id':/^\w/}},'model':(_0x28fd53,{writer:_0xf10d0b})=>_0xf10d0b[_0xc3f3('0x1c')]('$marker',{'data-name':'comment:'+_0x28fd53[_0xc3f3('0x3b')]('id')})}),_0x268b96[_0xc3f3('0x46')]['for'](_0xc3f3('0x70'))[_0xc3f3('0x59')]({'view':_0xc3f3('0x6c')});}[_0xc3f3('0x1')](){const _0x340476=this[_0xc3f3('0x60')],_0x480329=_0x340476[_0xc3f3('0x4d')]['get'](_0xc526f8),_0x56b6ae=new Set(),_0xec2e14=new Set();_0x340476[_0xc3f3('0x11')][_0xc3f3('0x22')][_0xc3f3('0x5e')](_0xf4c85=>{let _0x391522=!0x1;for(const {name:_0x4c4f89,data:_0x849179}of _0x340476['model'][_0xc3f3('0x22')][_0xc3f3('0x13')][_0xc3f3('0x14')]()){const {group:_0x10a196,id:_0x240b2d}=tt(_0x4c4f89);let _0x25076b=_0x849179[_0xc3f3('0x27')];if(_0xc3f3('0x6c')!==_0x10a196||!_0x25076b)continue;const _0x5f177c=_0xc3f3('0x37')===_0x25076b['root'][_0xc3f3('0x4e')];_0x5f177c||(_0x25076b=ot(_0x25076b,_0x340476[_0xc3f3('0x11')]),!_0x25076b||_0x25076b[_0xc3f3('0x2f')]||!_0x849179['newRange']||_0x25076b[_0xc3f3('0x1a')](_0x849179['newRange']))?_0x340476[_0xc3f3('0x11')][_0xc3f3('0x52')](_0x25076b)&&!_0x5f177c?this[_0xc3f3('0x51')]?_0x56b6ae[_0xc3f3('0x63')](_0x4c4f89):this['_handleThreadMarker'](_0x4c4f89,_0x240b2d):(_0xec2e14[_0xc3f3('0x63')](_0x4c4f89),_0x56b6ae[_0xc3f3('0x4b')](_0x4c4f89),_0xf4c85[_0xc3f3('0x4f')](_0x4c4f89),_0x391522=!0x0):(_0xf4c85['updateMarker'](_0x4c4f89,{'range':_0x25076b}),_0x391522=!0x0);}return _0x391522;}),this['on'](_0xc3f3('0x43'),(_0x48ee60,_0x3e671,_0x21ae79)=>{if(!_0x21ae79&&_0x56b6ae[_0xc3f3('0x5d')])for(const _0x3dee79 of _0x56b6ae){const {id:_0x27fbb7}=tt(_0x3dee79);_0x56b6ae[_0xc3f3('0x4b')](_0x3dee79),_0x340476[_0xc3f3('0x11')]['markers'][_0xc3f3('0x55')](_0x3dee79)&&this[_0xc3f3('0x5c')](_0x3dee79,_0x27fbb7);}}),this[_0xc3f3('0x40')](_0x340476[_0xc3f3('0x11')][_0xc3f3('0x22')],_0xc3f3('0x53'),(_0x53384c,_0x238f73)=>{for(const {name:_0x2137dd,data:{newRange:_0x1bac4f}}of _0x340476[_0xc3f3('0x11')][_0xc3f3('0x22')][_0xc3f3('0x13')]['getChangedMarkers']()){const {group:_0x1b06eb,id:_0x2475e1}=tt(_0x2137dd);if('comment'!==_0x1b06eb)continue;const _0x157a25=_0x480329['getCommentThread'](_0x2475e1),_0x476d7b=this['hasMarkerForId'](_0x2475e1);_0x157a25&&(_0x157a25[_0xc3f3('0x4')]||_0x340476[_0xc3f3('0x25')][_0xc3f3('0x49')]['once'](_0xc3f3('0x28'),()=>{const _0x2aac61=_0x340476[_0xc3f3('0x4d')][_0xc3f3('0x55')](_0x267421),_0x2f784d=_0x480329[_0xc3f3('0x23')][_0xc3f3('0x55')](_0x157a25)[_0xc3f3('0x49')];_0x2aac61[_0xc3f3('0x15')](_0x2f784d)[_0xc3f3('0x58')]();},{'priority':'low'}),_0x157a25[_0xc3f3('0x4')]=_0x476d7b||!!_0x1bac4f),_0x1bac4f||(_0xec2e14[_0xc3f3('0x63')](_0x2137dd),_0x56b6ae[_0xc3f3('0x4b')](_0x2137dd),this[_0xc3f3('0x4c')]['has'](_0x2475e1)&&this[_0xc3f3('0x4c')][_0xc3f3('0x55')](_0x2475e1)[_0xc3f3('0x4b')](_0x2137dd));}if(_0x238f73['isLocal'])for(const _0x182a23 of _0xec2e14){const {id:_0x34b02f}=tt(_0x182a23),_0x45615f=_0x480329['getCommentThread'](_0x34b02f),_0x318481=this[_0xc3f3('0x2a')](_0x34b02f);_0x56b6ae['delete'](_0x182a23),!_0x45615f||_0x318481||_0x45615f[_0xc3f3('0xe')]||this[_0xc3f3('0x62')]===_0x34b02f||(this[_0xc3f3('0x1e')][_0xc3f3('0x63')](_0x45615f),_0x45615f[_0xc3f3('0x66')]());}_0xec2e14[_0xc3f3('0x5a')]();});}['_getTargetForId'](_0x1b3ed1){const _0x805aaa=this[_0xc3f3('0x60')],_0x13e4bd=this[_0xc3f3('0x2e')](_0x1b3ed1);return _0x1ee435(_0x805aaa[_0xc3f3('0x25')],_0x13e4bd);}['_getTextContext'](_0x118e88){const _0x4c9deb=this[_0xc3f3('0x2e')](_0x118e88);let _0x55317a='',_0x53154d=!0x1;for(const _0x3808bc of _0x4c9deb){const _0x24def1=_0x3808bc[_0xc3f3('0x6b')]();for(const _0xa4e59a of Array[_0xc3f3('0x44')](_0x24def1['getItems']()))_0xa4e59a['is'](_0xc3f3('0x24'))?(_0x55317a&&_0x53154d&&(_0x55317a+='\x20',_0x53154d=!0x1),_0x55317a+=_0xa4e59a['data']):_0x53154d=!0x0;_0x53154d=!0x0;}return _0x55317a[_0xc3f3('0x61')](0x0,0x96);}[_0xc3f3('0x21')](_0x4b1dac,_0x2a07cd){const _0x5cb72a=this[_0xc3f3('0x60')],_0x2dc194=_0x5cb72a[_0xc3f3('0x4d')]['get'](_0xc526f8);let _0x510f8c=_0x2dc194['getCommentThread'](_0x2a07cd);if(this[_0xc3f3('0x4c')]['has'](_0x2a07cd)){const _0x459041=this[_0xc3f3('0x4c')][_0xc3f3('0x55')](_0x2a07cd);_0x459041[_0xc3f3('0x7')](_0x4b1dac)||_0x459041[_0xc3f3('0x63')](_0x4b1dac);}const _0x2a7d5=_0x5cb72a[_0xc3f3('0x9')][_0xc3f3('0x55')]('collaboration.channelId'),_0x3bb75f=_0x5cb72a['plugins'][_0xc3f3('0x55')](_0x35a4af);if(_0x510f8c&&_0x510f8c['isResolved']&&this[_0xc3f3('0x1e')][_0xc3f3('0x7')](_0x510f8c)&&(this['_autoResolvedThreads'][_0xc3f3('0x4b')](_0x510f8c),_0x510f8c[_0xc3f3('0x12')]()),this[_0xc3f3('0x4c')][_0xc3f3('0x7')](_0x2a07cd))return _0x510f8c;return this['_attachedThreads'][_0xc3f3('0x3e')](_0x2a07cd,new Set([_0x4b1dac])),(!this[_0xc3f3('0x2e')](_0x2a07cd)[0x0][_0xc3f3('0xf')]?_0x5cb72a[_0xc3f3('0x25')]['view'][_0xc3f3('0x6a')](_0xc3f3('0x28'),()=>{const _0x4e4142=_0x5cb72a[_0xc3f3('0x4d')]['get'](_0x267421);_0x510f8c=_0x2dc194[_0xc3f3('0x3')]({'channelId':_0x2a7d5,'threadId':_0x2a07cd,'target':()=>this[_0xc3f3('0xb')](_0x2a07cd),'context':{'type':'text','value':this[_0xc3f3('0x36')](_0x2a07cd)}});const _0x2ee887=_0x2dc194[_0xc3f3('0x23')][_0xc3f3('0x55')](_0x510f8c)['view'],_0x106a4d=_0x4e4142[_0xc3f3('0x15')](_0x2ee887);_0x106a4d&&_0x3bb75f[_0xc3f3('0x10')](_0x106a4d);},{'priority':_0xc3f3('0x5b')}):_0x2dc194['fetchCommentThread']({'channelId':_0x2a7d5,'threadId':_0x2a07cd})['then'](_0x4c7e5f=>{if(_0xc3f3('0x6e')!==_0x5cb72a[_0xc3f3('0x17')]){if(_0x510f8c=_0x4c7e5f,_0x510f8c){const _0x4b020a=_0x510f8c[_0xc3f3('0x50')](()=>this[_0xc3f3('0xb')](_0x2a07cd));_0x3bb75f[_0xc3f3('0x10')](_0x4b020a),_0x510f8c[_0xc3f3('0xe')]&&this[_0xc3f3('0x3d')](_0x2a07cd);}else{const _0x24b315=this[_0xc3f3('0x2e')](_0x2a07cd);_0x5cb72a[_0xc3f3('0x11')][_0xc3f3('0x53')](_0x5d3559=>{for(const _0x52700e of _0x24b315)_0x5d3559[_0xc3f3('0x4f')](_0x52700e);});}}}),_0x510f8c);}['_handleThreadMarker'](_0x1e3c95,_0x1df5c5){const _0x529791=this[_0xc3f3('0x21')](_0x1e3c95,_0x1df5c5);_0x529791&&!_0x529791[_0xc3f3('0x32')]&&_0x529791[_0xc3f3('0x3f')]({'type':_0xc3f3('0x2d'),'value':this[_0xc3f3('0x36')](_0x1df5c5)});}}function Z(_0x30e0f6,_0xa9d69c){return _0xa9d69c?_0x30e0f6+':'+_0xa9d69c:_0x30e0f6;}function tt(_0x318c78){const _0x287686=_0x318c78[_0xc3f3('0x65')](':');return{'group':_0x287686[0x0],'id':_0x287686[0x1],'part':_0x287686[0x2]};}function ot(_0x66aa7d,_0x2bbcc6){const _0x181076=_0x2bbcc6[_0xc3f3('0x33')],_0x5bedc7=_0x2bbcc6['createRange'](_0x66aa7d['start']);for(const _0x1b839c of _0x66aa7d['getWalker']()){const {type:_0x2c2cc8,item:_0x526d4c,nextPosition:_0x1564b0}=_0x1b839c;if(_0xc3f3('0x2d')===_0x2c2cc8||_0x181076[_0xc3f3('0x71')](_0x526d4c)){const _0x165d95=_0x2bbcc6[_0xc3f3('0x29')](_0x526d4c);_0x5bedc7['isCollapsed']&&(_0x5bedc7[_0xc3f3('0x57')]=_0x165d95),_0x5bedc7[_0xc3f3('0x5')]=_0x1564b0;}}return _0x5bedc7;}
23
+ const _0x12fe=['$marker','_handleThreadMarker','change:isThreadsLoadingPaused','from','destroy','_detachCommentThread','hasMarkerForId','reopen','has','render','openNewCommentThread','plugins','resolve','listenTo','split','switchReadOnly','_threadToController','then','start','getCommentThread','context','createPositionBefore','resolveCommentThread','init','getByInnerView','_reconvertMarkers','_removedThread','get','_attachedThreads','getAllMarkersForId','scrollToThreadMarker','push','managedUsingOperations','differ','size','config','isThreadsLoadingPaused','enqueueChange','editingDowncast','$textProxy','registerPostFixer','markerToHighlight','editor','ck-comment-marker--active','activeMarker','elementToElement','hasContent','isObject','text','addCommentThread','set','focus','_getTargetForId','getWalker','getChangedMarkers','low','document','_autoResolvedThreads','_getTextContext','rootName','model','isResolved','_hasTargetInContent','getAttribute','dataToMarker','once','registerAnnotation','addMarker:','createRange','schema','state','comment:','for','conversion','change','refreshVisibility','high','view','fetchCommentThread','isCollapsed','_initializeMarkerConverters','isEqual','ignoreResolvedComments','root','filter','requires','markerToData','delete','updateMarker','item','_attachResolvedThread','reconvertMarker','substring','consume','removeMarker','getItems','reopenCommentThread','upcast','markerName','createElement','dataDowncast','destroyed','attachTo','_attachMarkerToThread','change:isReadOnly','editing','markers','affectsData','hasDomSelection','_handleMarkerAddAndRemove','clear','getCommentThreads','ready','pluginName','_threads','add','collaboration.channelId','data','comment','length'];(function(_0x2ca776,_0x12fea8){const _0x468b4f=function(_0x127b4f){while(--_0x127b4f){_0x2ca776['push'](_0x2ca776['shift']());}};_0x468b4f(++_0x12fea8);}(_0x12fe,0x11f));const _0x468b=function(_0x2ca776,_0x12fea8){_0x2ca776=_0x2ca776-0x0;let _0x468b4f=_0x12fe[_0x2ca776];return _0x468b4f;};import{Plugin as _0x763e37}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x254917}from'ckeditor5/src/utils';import _0x44196f from'./commentsrepository';import _0x38a294 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0xf2565e}from'ckeditor5-collaboration/src/collaboration-core';import _0x58a48b from'../annotations/editorannotations';import _0x56247e from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4e67d0 from'./integrations/importword';import _0x5c16e3 from'../annotations/annotations';export default class r extends _0x763e37{static get[_0x468b('0x26')](){return[_0x44196f,_0x58a48b,_0x56247e,_0x4e67d0];}static get[_0x468b('0x42')](){return'CommentsEditing';}constructor(_0x1386a5){super(_0x1386a5),this['_removedThread']=null,this[_0x468b('0xa')]=new Set(),this['set'](_0x468b('0x6d'),!0x0),_0x1386a5[_0x468b('0x46')][_0x468b('0x12')](_0x468b('0x41'),()=>this[_0x468b('0x6d')]=!0x1),this[_0x468b('0x3')](_0x468b('0x75'),null),this['on']('change:activeMarker',(_0x22130e,_0x3c9bcf,_0x4c7c04,_0xe5a608)=>{const _0x493a7c=_0x4c7c04?tt(_0x4c7c04)['id']:null;if(_0x1386a5[_0x468b('0xd')][_0x468b('0x1b')](()=>{if(_0x493a7c){const _0x34800f=this[_0x468b('0x66')](_0x493a7c);for(const _0x5d4fc3 of _0x34800f)_0x1386a5[_0x468b('0x3a')][_0x468b('0x2c')](_0x5d4fc3);}if(_0xe5a608){const {id:_0x16f082}=tt(_0xe5a608),_0x3e6031=this['getAllMarkersForId'](_0x16f082);for(const _0x5b8efe of _0x3e6031)_0x1386a5['editing'][_0x468b('0x2c')](_0x5b8efe);}}),_0x493a7c){const _0x1eb3de=_0x1386a5['plugins']['get'](_0x44196f)['getCommentThread'](_0x493a7c);_0x1eb3de&&_0x1eb3de[_0x468b('0xe')]&&this[_0x468b('0x67')](_0x493a7c);}}),this['_attachedThreads']=new Map();}[_0x468b('0x60')](){const _0x121122=this[_0x468b('0x73')],_0x37d7a6=_0x121122['plugins'][_0x468b('0x64')](_0x44196f),_0x9a0d64=_0x121122[_0x468b('0x6c')]['get'](_0x468b('0x45'));_0x121122['commands'][_0x468b('0x44')](_0x468b('0x2'),new _0x38a294(_0x121122)),this[_0x468b('0x56')](_0x121122,_0x468b('0x39'),(_0x44b390,_0x21fb22,_0x24c6c1)=>{_0x37d7a6[_0x468b('0x58')](_0x24c6c1,_0x121122[_0x468b('0x6c')][_0x468b('0x64')]('collaboration.channelId'));}),this[_0x468b('0x56')](_0x37d7a6,Z(_0x468b('0x2'),_0x9a0d64),(_0x42927b,{threadId:_0x291f9d})=>{const _0x3d11ee=this['editor'][_0x468b('0x54')][_0x468b('0x64')](_0x44196f)[_0x468b('0x5c')](_0x291f9d);_0x3d11ee&&_0x3d11ee[_0x468b('0xe')]&&this[_0x468b('0x2b')](_0x291f9d);}),this[_0x468b('0x56')](_0x37d7a6,Z('removeCommentThread',_0x9a0d64),(_0x5bf6e8,{threadId:_0x13e068})=>{_0x121122[_0x468b('0xd')][_0x468b('0x6e')]({'isUndoable':!0x1},_0x564958=>{const _0x26ee5c=this[_0x468b('0x66')](_0x13e068);this[_0x468b('0x65')][_0x468b('0x28')](_0x13e068),this[_0x468b('0x63')]=_0x13e068;for(const _0x3387ef of _0x26ee5c)_0x564958[_0x468b('0x2f')](_0x3387ef);}),this['_removedThread']=null;},{'priority':_0x468b('0x1d')}),this[_0x468b('0x56')](_0x37d7a6,Z(_0x468b('0x5f'),_0x9a0d64),(_0x34f475,{threadId:_0x101792})=>{this[_0x468b('0x2b')](_0x101792),this[_0x468b('0x62')](_0x101792),this[_0x468b('0x73')][_0x468b('0x3a')]['view'][_0x468b('0x3d')]&&this['editor'][_0x468b('0x3a')]['view'][_0x468b('0x4')]();},{'priority':_0x468b('0x8')}),this[_0x468b('0x56')](_0x37d7a6,Z(_0x468b('0x31'),_0x9a0d64),(_0x596f51,{threadId:_0x45d9ad})=>{this['_reconvertMarkers'](_0x45d9ad);},{'priority':_0x468b('0x8')}),this['listenTo'](_0x37d7a6,Z('addComment',_0x9a0d64),(_0x19e6c6,{threadId:_0x4fb071,isFromAdapter:_0x464ce4})=>{const _0x5e1114=this[_0x468b('0x66')](_0x4fb071);if(_0x464ce4||0x0==_0x5e1114['length']||!_0x37d7a6['hasCommentThread'](_0x4fb071))return;0x1===_0x37d7a6['getCommentThread'](_0x4fb071)[_0x468b('0x48')]&&_0x121122[_0x468b('0xd')]['enqueueChange']({'isUndoable':!0x1},_0x570a67=>{for(const _0x3ebb41 of _0x5e1114)_0x570a67[_0x468b('0x29')](_0x3ebb41,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x468b('0x8')}),this[_0x468b('0x21')](),this[_0x468b('0x3e')]();}[_0x468b('0x4d')](){const _0x14c4e1=this['editor'][_0x468b('0x54')]['get'](_0x44196f),_0xd5eb41=this[_0x468b('0x73')]['config']['get'](_0x468b('0x45'));for(const _0x36338a of _0x14c4e1[_0x468b('0x40')]({'channelId':_0xd5eb41}))_0x14c4e1[_0x468b('0x4e')](_0x36338a['id']),_0x14c4e1[_0x468b('0x43')]['delete'](_0x36338a['id']);super['destroy']();}[_0x468b('0x4f')](_0x1b90b6){return this['getAllMarkersForId'](_0x1b90b6)[_0x468b('0x48')]>0x0;}[_0x468b('0x66')](_0x1035a8){return Array[_0x468b('0x4c')](this[_0x468b('0x65')][_0x468b('0x64')](_0x1035a8)||[])['map'](_0x247391=>this[_0x468b('0x73')][_0x468b('0xd')][_0x468b('0x3b')][_0x468b('0x64')](_0x247391))[_0x468b('0x25')](_0x49138f=>_0x49138f);}[_0x468b('0x67')](_0x50681e){const _0x394629=this[_0x468b('0x5')](_0x50681e);_0x394629&&setTimeout(()=>{this[_0x468b('0x75')]&&tt(this[_0x468b('0x75')])['id']===_0x50681e&&_0x254917({'target':_0x394629[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xf8c0f4){this[_0x468b('0x73')][_0x468b('0xd')][_0x468b('0x1b')](()=>{for(const _0x399dd6 of this['getAllMarkersForId'](_0xf8c0f4))this[_0x468b('0x73')]['editing'][_0x468b('0x2c')](_0x399dd6);});}['_attachResolvedThread'](_0x5adcd2){const _0x2d2a7d=this[_0x468b('0x73')][_0x468b('0x54')]['get'](_0x44196f),_0x3120b0=this[_0x468b('0x73')][_0x468b('0x54')][_0x468b('0x64')](_0x58a48b),_0x2bae27=_0x2d2a7d[_0x468b('0x5c')](_0x5adcd2);if(!this[_0x468b('0x65')][_0x468b('0x51')](_0x5adcd2)){const _0x4c1dd4=_0x2bae27[_0x468b('0x37')](()=>this[_0x468b('0x5')](_0x2bae27['id']));_0x3120b0[_0x468b('0x13')](_0x4c1dd4),this[_0x468b('0x65')][_0x468b('0x3')](_0x5adcd2,new Set()),_0x2bae27[_0x468b('0xf')]=!0x1;}}[_0x468b('0x21')](){const _0x552c1d=this['editor'];_0x552c1d['conversion'][_0x468b('0x19')](_0x468b('0x6f'))[_0x468b('0x72')]({'model':_0x468b('0x47'),'view':(_0x8abe92,_0x3731ee)=>{const {id:_0x410d98}=tt(_0x8abe92[_0x468b('0x33')]),_0x3139e5=_0x552c1d[_0x468b('0x54')]['get'](_0x44196f)['getCommentThread'](_0x410d98),_0xabaa4f=this[_0x468b('0x75')]&&tt(this[_0x468b('0x75')])['id']===_0x410d98;if(_0x3139e5&&_0x3139e5[_0x468b('0xe')]&&!_0xabaa4f&&_0x8abe92['item'])return _0x3731ee['consumable']['consume'](_0x8abe92['item'],_0x468b('0x14')+_0x8abe92[_0x468b('0x33')]),_0x3731ee['consumable'][_0x468b('0x2e')](_0x8abe92[_0x468b('0x2a')],'removeMarker:'+_0x8abe92[_0x468b('0x33')]),{'classes':[]};const _0x428683=['ck-comment-marker'];return _0xabaa4f&&_0x428683[_0x468b('0x68')](_0x468b('0x74')),{'classes':_0x428683,'attributes':{'data-comment':_0x410d98}};}}),_0x552c1d[_0x468b('0x1a')]['for'](_0x468b('0x35'))[_0x468b('0x27')]({'model':_0x468b('0x47'),'view':(_0x35d572,{options:_0x2223a3})=>{const _0x5b0241=_0x552c1d['plugins']['get'](_0x44196f),_0x39e8f1=_0x552c1d['model'][_0x468b('0x3b')]['get'](_0x35d572),{id:_0x46aaa9,part:_0x178927}=tt(_0x35d572);if(_0x39e8f1&&!_0x39e8f1[_0x468b('0x3c')])return null;if(_0x2223a3[_0x468b('0x23')]){const _0x15ae26=_0x5b0241[_0x468b('0x5c')](_0x46aaa9);if(_0x15ae26&&_0x15ae26[_0x468b('0xe')])return null;}return{'group':'comment','name':_0x178927?_0x46aaa9+':'+_0x178927:_0x46aaa9};}}),_0x552c1d[_0x468b('0x1a')][_0x468b('0x19')](_0x468b('0x32'))[_0x468b('0x76')]({'view':{'name':_0x468b('0x47'),'attributes':{'id':/^\w/}},'model':(_0x12b99e,{writer:_0x54dc83})=>_0x54dc83[_0x468b('0x34')](_0x468b('0x49'),{'data-name':_0x468b('0x18')+_0x12b99e[_0x468b('0x10')]('id')})}),_0x552c1d[_0x468b('0x1a')][_0x468b('0x19')](_0x468b('0x32'))[_0x468b('0x11')]({'view':_0x468b('0x47')});}[_0x468b('0x3e')](){const _0x585ecf=this[_0x468b('0x73')],_0xec498a=_0x585ecf['plugins'][_0x468b('0x64')](_0x44196f),_0x597bab=new Set(),_0xb55803=new Set();_0x585ecf['model']['document'][_0x468b('0x71')](_0x2c7da3=>{let _0x15181c=!0x1;for(const {name:_0x36d08f,data:_0x5a6f59}of _0x585ecf[_0x468b('0xd')][_0x468b('0x9')][_0x468b('0x6a')]['getChangedMarkers']()){const {group:_0x5c0f8a,id:_0x101b83}=tt(_0x36d08f);let _0x7fdc1f=_0x5a6f59['newRange'];if('comment'!==_0x5c0f8a||!_0x7fdc1f)continue;const _0x59c89b='$graveyard'===_0x7fdc1f[_0x468b('0x24')][_0x468b('0xc')];_0x59c89b||(_0x7fdc1f=ot(_0x7fdc1f,_0x585ecf['model']),!_0x7fdc1f||_0x7fdc1f[_0x468b('0x20')]||!_0x5a6f59['newRange']||_0x7fdc1f[_0x468b('0x22')](_0x5a6f59['newRange']))?_0x585ecf['model'][_0x468b('0x77')](_0x7fdc1f)&&!_0x59c89b?this[_0x468b('0x6d')]?_0x597bab[_0x468b('0x44')](_0x36d08f):this[_0x468b('0x4a')](_0x36d08f,_0x101b83):(_0xb55803[_0x468b('0x44')](_0x36d08f),_0x597bab[_0x468b('0x28')](_0x36d08f),_0x2c7da3[_0x468b('0x2f')](_0x36d08f),_0x15181c=!0x0):(_0x2c7da3[_0x468b('0x29')](_0x36d08f,{'range':_0x7fdc1f}),_0x15181c=!0x0);}return _0x15181c;}),this['on'](_0x468b('0x4b'),(_0x434e25,_0x3ee66a,_0xbc9b1a)=>{if(!_0xbc9b1a&&_0x597bab[_0x468b('0x6b')])for(const _0xe2db82 of _0x597bab){const {id:_0x3420ef}=tt(_0xe2db82);_0x597bab[_0x468b('0x28')](_0xe2db82),_0x585ecf[_0x468b('0xd')]['markers']['get'](_0xe2db82)&&this['_handleThreadMarker'](_0xe2db82,_0x3420ef);}}),this[_0x468b('0x56')](_0x585ecf[_0x468b('0xd')][_0x468b('0x9')],_0x468b('0x1b'),(_0x29fb94,_0x5730e4)=>{for(const {name:_0xba16a6,data:{newRange:_0x47f88f}}of _0x585ecf[_0x468b('0xd')][_0x468b('0x9')][_0x468b('0x6a')][_0x468b('0x7')]()){const {group:_0x591de2,id:_0x5f5648}=tt(_0xba16a6);if(_0x468b('0x47')!==_0x591de2)continue;const _0x448930=_0xec498a[_0x468b('0x5c')](_0x5f5648),_0x294b6b=this['hasMarkerForId'](_0x5f5648);_0x448930&&(_0x448930[_0x468b('0xf')]||_0x585ecf[_0x468b('0x3a')][_0x468b('0x1e')][_0x468b('0x12')](_0x468b('0x52'),()=>{const _0x4aeb2d=_0x585ecf[_0x468b('0x54')][_0x468b('0x64')](_0x5c16e3),_0x27ead9=_0xec498a[_0x468b('0x59')][_0x468b('0x64')](_0x448930)['view'];_0x4aeb2d[_0x468b('0x61')](_0x27ead9)[_0x468b('0x1c')]();},{'priority':_0x468b('0x8')}),_0x448930[_0x468b('0xf')]=_0x294b6b||!!_0x47f88f),_0x47f88f||(_0xb55803[_0x468b('0x44')](_0xba16a6),_0x597bab['delete'](_0xba16a6),this[_0x468b('0x65')][_0x468b('0x51')](_0x5f5648)&&this['_attachedThreads']['get'](_0x5f5648)['delete'](_0xba16a6));}if(_0x5730e4['isLocal'])for(const _0xf24062 of _0xb55803){const {id:_0x22d07c}=tt(_0xf24062),_0x538dc4=_0xec498a[_0x468b('0x5c')](_0x22d07c),_0x72861f=this['hasMarkerForId'](_0x22d07c);_0x597bab[_0x468b('0x28')](_0xf24062),!_0x538dc4||_0x72861f||_0x538dc4['isResolved']||this[_0x468b('0x63')]===_0x22d07c||(this[_0x468b('0xa')][_0x468b('0x44')](_0x538dc4),_0x538dc4[_0x468b('0x55')]());}_0xb55803[_0x468b('0x3f')]();});}['_getTargetForId'](_0xe09dca){const _0x54ee9e=this[_0x468b('0x73')],_0x166f53=this['getAllMarkersForId'](_0xe09dca);return _0xf2565e(_0x54ee9e[_0x468b('0x3a')],_0x166f53);}[_0x468b('0xb')](_0x4f90b7){const _0xd5325b=this['getAllMarkersForId'](_0x4f90b7);let _0x4bb83c='',_0x638c54=!0x1;for(const _0x1eb053 of _0xd5325b){const _0x1e977f=_0x1eb053['getRange']();for(const _0x3d1a27 of Array[_0x468b('0x4c')](_0x1e977f[_0x468b('0x30')]()))_0x3d1a27['is'](_0x468b('0x70'))?(_0x4bb83c&&_0x638c54&&(_0x4bb83c+='\x20',_0x638c54=!0x1),_0x4bb83c+=_0x3d1a27[_0x468b('0x46')]):_0x638c54=!0x0;_0x638c54=!0x0;}return _0x4bb83c[_0x468b('0x2d')](0x0,0x96);}[_0x468b('0x38')](_0x213d09,_0x45b16a){const _0x4194f3=this[_0x468b('0x73')],_0x1756e2=_0x4194f3['plugins']['get'](_0x44196f);let _0x486dc0=_0x1756e2[_0x468b('0x5c')](_0x45b16a);if(this[_0x468b('0x65')]['has'](_0x45b16a)){const _0x12b571=this[_0x468b('0x65')]['get'](_0x45b16a);_0x12b571['has'](_0x213d09)||_0x12b571[_0x468b('0x44')](_0x213d09);}const _0x4eadd5=_0x4194f3[_0x468b('0x6c')][_0x468b('0x64')](_0x468b('0x45')),_0x1aa4a3=_0x4194f3['plugins']['get'](_0x58a48b);if(_0x486dc0&&_0x486dc0['isResolved']&&this['_autoResolvedThreads'][_0x468b('0x51')](_0x486dc0)&&(this[_0x468b('0xa')][_0x468b('0x28')](_0x486dc0),_0x486dc0[_0x468b('0x50')]()),this[_0x468b('0x65')][_0x468b('0x51')](_0x45b16a))return _0x486dc0;return this[_0x468b('0x65')][_0x468b('0x3')](_0x45b16a,new Set([_0x213d09])),(!this[_0x468b('0x66')](_0x45b16a)[0x0][_0x468b('0x69')]?_0x4194f3[_0x468b('0x3a')][_0x468b('0x1e')]['once']('render',()=>{const _0x238a58=_0x4194f3[_0x468b('0x54')][_0x468b('0x64')](_0x5c16e3);_0x486dc0=_0x1756e2[_0x468b('0x53')]({'channelId':_0x4eadd5,'threadId':_0x45b16a,'target':()=>this[_0x468b('0x5')](_0x45b16a),'context':{'type':_0x468b('0x1'),'value':this[_0x468b('0xb')](_0x45b16a)}});const _0x1dab04=_0x1756e2[_0x468b('0x59')][_0x468b('0x64')](_0x486dc0)[_0x468b('0x1e')],_0x4a8af7=_0x238a58[_0x468b('0x61')](_0x1dab04);_0x4a8af7&&_0x1aa4a3[_0x468b('0x13')](_0x4a8af7);},{'priority':_0x468b('0x8')}):_0x1756e2[_0x468b('0x1f')]({'channelId':_0x4eadd5,'threadId':_0x45b16a})[_0x468b('0x5a')](_0x1eaac8=>{if(_0x468b('0x36')!==_0x4194f3[_0x468b('0x17')]){if(_0x486dc0=_0x1eaac8,_0x486dc0){const _0x2b2e5a=_0x486dc0[_0x468b('0x37')](()=>this[_0x468b('0x5')](_0x45b16a));_0x1aa4a3[_0x468b('0x13')](_0x2b2e5a),_0x486dc0[_0x468b('0xe')]&&this[_0x468b('0x62')](_0x45b16a);}else{const _0x246d3e=this[_0x468b('0x66')](_0x45b16a);_0x4194f3['model']['change'](_0x36096f=>{for(const _0x48b8d4 of _0x246d3e)_0x36096f[_0x468b('0x2f')](_0x48b8d4);});}}}),_0x486dc0);}['_handleThreadMarker'](_0x4acfa6,_0x4f5d4e){const _0x463fba=this[_0x468b('0x38')](_0x4acfa6,_0x4f5d4e);_0x463fba&&!_0x463fba[_0x468b('0x5d')]&&_0x463fba['setContext']({'type':'text','value':this[_0x468b('0xb')](_0x4f5d4e)});}}function Z(_0x1a1575,_0x3af498){return _0x3af498?_0x1a1575+':'+_0x3af498:_0x1a1575;}function tt(_0x355574){const _0x17e37=_0x355574[_0x468b('0x57')](':');return{'group':_0x17e37[0x0],'id':_0x17e37[0x1],'part':_0x17e37[0x2]};}function ot(_0x587b51,_0x14a44c){const _0x4cd845=_0x14a44c[_0x468b('0x16')],_0x57a55c=_0x14a44c[_0x468b('0x15')](_0x587b51[_0x468b('0x5b')]);for(const _0x55d178 of _0x587b51[_0x468b('0x6')]()){const {type:_0x14cc6c,item:_0x363232,nextPosition:_0x1586cd}=_0x55d178;if(_0x468b('0x1')===_0x14cc6c||_0x4cd845[_0x468b('0x0')](_0x363232)){const _0x1ea2d2=_0x14a44c[_0x468b('0x5e')](_0x363232);_0x57a55c[_0x468b('0x20')]&&(_0x57a55c[_0x468b('0x5b')]=_0x1ea2d2),_0x57a55c['end']=_0x1586cd;}}return _0x57a55c;}