@ckeditor/ckeditor5-comments 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.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 _0x20ed=['_mutationObserver','height','updateHeight','top','setTemplate','attach','content','clear','detach','_targetTop','bind','set','isAnimationDisabled','createCollection','bindTemplate','bottom','element','div'];(function(_0xb74d8b,_0x20ed8d){const _0x57ecfb=function(_0x392d51){while(--_0x392d51){_0xb74d8b['push'](_0xb74d8b['shift']());}};_0x57ecfb(++_0x20ed8d);}(_0x20ed,0x94));const _0x57ec=function(_0xb74d8b,_0x20ed8d){_0xb74d8b=_0xb74d8b-0x0;let _0x57ecfb=_0x20ed[_0xb74d8b];return _0x57ecfb;};import{View as _0x5c2a7a}from'ckeditor5/src/ui.js';import{toUnit as _0x3155f7}from'ckeditor5/src/utils.js';import _0x580e3a from'../../utils/createmutationobserver.js';const Ht=_0x3155f7('px');export default class C extends _0x5c2a7a{constructor(_0x37af57){super(_0x37af57),this[_0x57ec('0x7')](_0x57ec('0x11'),0x0),this[_0x57ec('0x7')](_0x57ec('0xf'),0x0),this[_0x57ec('0x6')](_0x57ec('0xb'))['to'](this,'top',this,_0x57ec('0xf'),(_0x2fc785,_0x190997)=>_0x2fc785+_0x190997),this[_0x57ec('0x7')]('isAnimationDisabled',!0x1),this[_0x57ec('0xe')]=_0x580e3a(()=>this[_0x57ec('0x10')]()),this[_0x57ec('0x5')]=null,this['content']=this[_0x57ec('0x9')]();const _0x47c5be=this[_0x57ec('0xa')];this[_0x57ec('0x0')]({'tag':_0x57ec('0xd'),'attributes':{'class':['ck-sidebar-item',_0x47c5be['to'](_0x57ec('0x8'),_0x156e0d=>_0x156e0d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x47c5be['to'](_0x57ec('0x11'),_0x1126c2=>Ht(_0x1126c2))}},'children':this['content']});}['render'](){super['render'](),this[_0x57ec('0xe')][_0x57ec('0x1')](this[_0x57ec('0xc')]);}[_0x57ec('0x10')](){const _0x356c3e=this[_0x57ec('0xc')]['clientHeight'];_0x356c3e&&(this[_0x57ec('0xf')]=_0x356c3e);}['destroy'](){this[_0x57ec('0x2')][_0x57ec('0x3')](),this[_0x57ec('0xe')][_0x57ec('0x4')](),super['destroy']();}}
23
+ const _0x1756=['detach','ck-sidebar-item--no-animation','render','top','div','bottom','bind','height','element','updateHeight','createCollection','isAnimationDisabled','_targetTop','set','setTemplate','content','ck-sidebar-item','_mutationObserver','clientHeight'];(function(_0x434aac,_0x17560f){const _0x2ac8a5=function(_0x1c23c5){while(--_0x1c23c5){_0x434aac['push'](_0x434aac['shift']());}};_0x2ac8a5(++_0x17560f);}(_0x1756,0x17e));const _0x2ac8=function(_0x434aac,_0x17560f){_0x434aac=_0x434aac-0x0;let _0x2ac8a5=_0x1756[_0x434aac];return _0x2ac8a5;};import{View as _0xf4a2e0}from'ckeditor5/src/ui.js';import{toUnit as _0x23cfc7}from'ckeditor5/src/utils.js';import _0x51b623 from'../../utils/createmutationobserver.js';const Ht=_0x23cfc7('px');export default class C extends _0xf4a2e0{constructor(_0x2d1a4a){super(_0x2d1a4a),this[_0x2ac8('0xb')](_0x2ac8('0x1'),0x0),this['set'](_0x2ac8('0x5'),0x0),this[_0x2ac8('0x4')](_0x2ac8('0x3'))['to'](this,_0x2ac8('0x1'),this,_0x2ac8('0x5'),(_0x2f5163,_0x43ec80)=>_0x2f5163+_0x43ec80),this[_0x2ac8('0xb')](_0x2ac8('0x9'),!0x1),this[_0x2ac8('0xf')]=_0x51b623(()=>this[_0x2ac8('0x7')]()),this[_0x2ac8('0xa')]=null,this[_0x2ac8('0xd')]=this[_0x2ac8('0x8')]();const _0x568d45=this['bindTemplate'];this[_0x2ac8('0xc')]({'tag':_0x2ac8('0x2'),'attributes':{'class':[_0x2ac8('0xe'),_0x568d45['to'](_0x2ac8('0x9'),_0x16e339=>_0x16e339?_0x2ac8('0x12'):'')],'style':{'top':_0x568d45['to'](_0x2ac8('0x1'),_0x16fd8c=>Ht(_0x16fd8c))}},'children':this['content']});}[_0x2ac8('0x0')](){super[_0x2ac8('0x0')](),this[_0x2ac8('0xf')]['attach'](this['element']);}[_0x2ac8('0x7')](){const _0x3f66c7=this[_0x2ac8('0x6')][_0x2ac8('0x10')];_0x3f66c7&&(this[_0x2ac8('0x5')]=_0x3f66c7);}['destroy'](){this[_0x2ac8('0xd')]['clear'](),this['_mutationObserver'][_0x2ac8('0x11')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2475=['div','setTemplate','ck-sidebar','ck-reset','list','bindTemplate','minHeight','class','set'];(function(_0xdd0fd6,_0x24750b){const _0x1933ec=function(_0x302d11){while(--_0x302d11){_0xdd0fd6['push'](_0xdd0fd6['shift']());}};_0x1933ec(++_0x24750b);}(_0x2475,0x9e));const _0x1933=function(_0xdd0fd6,_0x24750b){_0xdd0fd6=_0xdd0fd6-0x0;let _0x1933ec=_0x2475[_0xdd0fd6];return _0x1933ec;};import{View as _0x4d3508}from'ckeditor5/src/ui.js';import{toUnit as _0x207bb9}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x207bb9('px');export default class T extends _0x4d3508{constructor(_0x35660f){super(_0x35660f);const _0x30e4b3=this[_0x1933('0x0')];this[_0x1933('0x3')](_0x1933('0x1'),0x0),this[_0x1933('0x3')](_0x1933('0x2'),''),this[_0x1933('0x8')]=this['createCollection'](),this[_0x1933('0x5')]({'tag':_0x1933('0x4'),'attributes':{'class':['ck',_0x1933('0x6'),_0x1933('0x7'),_0x30e4b3['to']('class')],'style':{'minHeight':_0x30e4b3['to'](_0x1933('0x1'),_0x212c4=>'number'==typeof _0x212c4?Ht(_0x212c4+0xa):null)}},'children':this[_0x1933('0x8')]});}}
23
+ const _0x9e76=['setTemplate','bindTemplate','createCollection','ck-sidebar','class','list','minHeight','div'];(function(_0x480a82,_0x9e763f){const _0x32c36d=function(_0x5db146){while(--_0x5db146){_0x480a82['push'](_0x480a82['shift']());}};_0x32c36d(++_0x9e763f);}(_0x9e76,0x192));const _0x32c3=function(_0x480a82,_0x9e763f){_0x480a82=_0x480a82-0x0;let _0x32c36d=_0x9e76[_0x480a82];return _0x32c36d;};import{View as _0x1eeb1d}from'ckeditor5/src/ui.js';import{toUnit as _0x18639d}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x18639d('px');export default class T extends _0x1eeb1d{constructor(_0x1bacfc){super(_0x1bacfc);const _0x11018c=this[_0x32c3('0x7')];this['set'](_0x32c3('0x4'),0x0),this['set'](_0x32c3('0x2'),''),this[_0x32c3('0x3')]=this[_0x32c3('0x0')](),this[_0x32c3('0x6')]({'tag':_0x32c3('0x5'),'attributes':{'class':['ck',_0x32c3('0x1'),'ck-reset',_0x11018c['to']('class')],'style':{'minHeight':_0x11018c['to'](_0x32c3('0x4'),_0x236d79=>'number'==typeof _0x236d79?Ht(_0x236d79+0xa):null)}},'children':this['list']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bfd=['refresh','WideSidebar','_refreshPositioningDebounced','wideSidebar','init','stopListening','annotations','setActiveAnnotation','isAttached','_activeAnnotation','_annotations','_integrateWithEditorAnnotations','requires','high','set','detach','container','attach','refreshPositioning','add','off','remove','resize','activeAnnotation','_detachFromContainer','addEventListener','destroy','_attachToContainer','EditorAnnotations','uiUpdate','blur','get','switchTo','stop','getOrderedSelectedAnnotations','listenTo','removeEventListener','_destroyEditorAnnotationsIntegration','widesidebar-detach-not-attached','_editorAnnotations','editors','context','plugins','focus'];(function(_0x55957b,_0x4bfd86){const _0xe6633a=function(_0xdf334){while(--_0xdf334){_0x55957b['push'](_0x55957b['shift']());}};_0xe6633a(++_0x4bfd86);}(_0x4bfd,0x1cb));const _0xe663=function(_0x55957b,_0x4bfd86){_0x55957b=_0x55957b-0x0;let _0xe6633a=_0x4bfd[_0x55957b];return _0xe6633a;};import{ContextPlugin as _0x3cbfd9,Context as _0x114e1e}from'ckeditor5/src/core.js';import _0x5373c5 from'./annotationsuis.js';import _0x395262 from'./sidebar.js';import{CKEditorError as _0x5f2374,Collection as _0x5ea1b2}from'ckeditor5/src/utils.js';import{debounce as _0x3ac821}from'lodash-es';import _0x20a4bf from'./editorannotations.js';export default class n extends _0x3cbfd9{static get[_0xe663('0x25')](){return[_0x395262,_0x5373c5];}static get['pluginName'](){return _0xe663('0x1a');}constructor(_0x152af0){super(_0x152af0),this[_0xe663('0x21')]=!0x1,this[_0xe663('0x27')](_0xe663('0x4'),null),this['annotations']=null,this[_0xe663('0x14')]=new _0x5ea1b2(),this[_0xe663('0x1b')]=_0x3ac821(()=>{this[_0xe663('0x1f')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0xe663('0x1d')](){const _0x34d95a=this['context'][_0xe663('0x17')][_0xe663('0xc')](_0x5373c5),_0x4e606d=this[_0xe663('0x16')][_0xe663('0x17')][_0xe663('0xc')](_0x395262);_0x34d95a['register']('wideSidebar',this),_0x4e606d[_0xe663('0x29')]&&_0x34d95a[_0xe663('0xd')](_0xe663('0x1c'));}[_0xe663('0x20')](_0x4bc8aa){if(_0x4bc8aa===this[_0xe663('0x4')])return;const _0x26da4d=this[_0xe663('0x16')][_0xe663('0x17')][_0xe663('0xc')](_0x395262);_0x26da4d[_0xe663('0x22')]=_0x4bc8aa;const _0x274215=this[_0xe663('0x4')];this[_0xe663('0x4')]=_0x4bc8aa,_0x26da4d[_0xe663('0x19')]({'blurredAnnotation':_0x274215,'activatedAnnotation':this[_0xe663('0x4')]});}[_0xe663('0x2a')](_0x532a76){this[_0xe663('0x1f')]=_0x532a76;const _0x2b60e0=this[_0xe663('0x16')]['plugins'][_0xe663('0xc')](_0x395262);if(_0x2b60e0[_0xe663('0x23')]=_0x532a76,this[_0xe663('0x21')])throw new _0x5f2374('widesidebar-attach-already-attached',this);this[_0xe663('0x21')]=!0x0,this[_0xe663('0x10')](_0x2b60e0,'set:container',()=>{this[_0xe663('0x28')](),this[_0xe663('0x10')](_0x2b60e0,'change:container',_0x3ea88d=>{_0x3ea88d[_0xe663('0x1')](),this[_0xe663('0x2a')](_0x532a76);});}),_0x2b60e0[_0xe663('0x8')]({'viewClass':'ck-sidebar--wide'});const _0x5304d5=_0x49cb23=>{_0x49cb23['updateTargetRect'](),_0x2b60e0['addAnnotation'](_0x49cb23);};for(const _0xc0c114 of _0x532a76)_0x5304d5(_0xc0c114);this[_0xe663('0x10')](_0x532a76,_0xe663('0x0'),(_0x41a164,_0x1bcfc1)=>{_0x5304d5(_0x1bcfc1);}),this[_0xe663('0x10')](_0x532a76,_0xe663('0x2'),(_0x3c1e36,_0x35d428,_0x332094)=>{_0x2b60e0['rearrange']({'removedAnnotation':_0x35d428,'previousAnnotation':_0x532a76[_0xe663('0xc')](_0x332094-0x1),'nextAnnotation':_0x532a76[_0xe663('0xc')](_0x332094+0x1)}),_0x35d428===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0xe663('0x26')}),this['listenTo'](_0x532a76,_0xe663('0x18'),(_0xc6cc37,_0x12e1a1)=>{this[_0xe663('0x20')](_0x12e1a1);}),this[_0xe663('0x10')](_0x532a76,_0xe663('0xb'),()=>{this[_0xe663('0x20')](null);});const _0xc8b47f=this[_0xe663('0x16')]instanceof _0x114e1e?this[_0xe663('0x16')][_0xe663('0x15')]:new _0x5ea1b2([this[_0xe663('0x16')]]);for(const _0x1e05d4 of _0xc8b47f)this[_0xe663('0x24')](_0x1e05d4);this[_0xe663('0x10')](_0xc8b47f,'add',(_0x415e78,_0x33d38f)=>{this[_0xe663('0x10')](_0x33d38f,'ready',()=>{this[_0xe663('0x24')](_0x33d38f);});}),this[_0xe663('0x10')](_0xc8b47f,_0xe663('0x2'),(_0xa589c6,_0x57e3dc)=>{_0x57e3dc[_0xe663('0x17')]['has'](_0xe663('0x9'))&&this[_0xe663('0x12')](_0x57e3dc[_0xe663('0x17')][_0xe663('0xc')](_0xe663('0x9')));}),window[_0xe663('0x6')]('resize',this['_refreshPositioningDebounced']),this[_0xe663('0x1f')][_0xe663('0x2b')]();}['detach'](){if(!this['isAttached'])throw new _0x5f2374(_0xe663('0x13'),this);this[_0xe663('0x20')](null);const _0x14c87f=this[_0xe663('0x16')][_0xe663('0x17')]['get'](_0x395262);_0x14c87f[_0xe663('0x5')](this[_0xe663('0x1f')]),this['stopListening'](_0x14c87f),this['stopListening'](this[_0xe663('0x1f')]),this[_0xe663('0x16')]instanceof _0x114e1e&&this['stopListening'](this['context'][_0xe663('0x15')]);for(const _0x534293 of Array['from'](this[_0xe663('0x14')]))this[_0xe663('0x12')](_0x534293);window[_0xe663('0x11')](_0xe663('0x3'),this[_0xe663('0x1b')]),this[_0xe663('0x1b')]['cancel'](),this[_0xe663('0x4')]=null,this[_0xe663('0x21')]=!0x1,this[_0xe663('0x1f')]=null;}[_0xe663('0x7')](){this['isAttached']&&this['detach']();}[_0xe663('0x24')](_0x441910){const _0x37a3e4=_0x441910[_0xe663('0x17')][_0xe663('0xc')](_0x20a4bf);if(!_0x37a3e4)return;const _0x24d073=()=>{const _0x552d54=_0x37a3e4[_0xe663('0xf')]({'annotations':this[_0xe663('0x1f')],'activeAnnotation':this[_0xe663('0x4')]});this['setActiveAnnotation'](_0x552d54[0x0]||null);};this[_0xe663('0x10')](_0x37a3e4,_0xe663('0x19'),_0x24d073),this['listenTo'](_0x37a3e4,'blur',(_0x5cda8f,{isAnnotationTracked:_0x269ef0})=>{this['activeAnnotation']&&_0x269ef0(this[_0xe663('0x4')])&&this[_0xe663('0x20')](null);}),this[_0xe663('0x10')](_0x37a3e4,_0xe663('0xa'),()=>{this[_0xe663('0x1b')]();}),this['listenTo'](this[_0xe663('0x1f')],_0xe663('0xb'),_0x418154=>{_0x37a3e4['hasDomSelection']()&&(_0x24d073(),_0x418154[_0xe663('0xe')]());},{'priority':_0xe663('0x26')}),this[_0xe663('0x14')]['add'](_0x37a3e4);}[_0xe663('0x12')](_0x52a6f6){this[_0xe663('0x1e')](_0x52a6f6),this[_0xe663('0x14')][_0xe663('0x2')](_0x52a6f6);}}
23
+ const _0x372e=['uiUpdate','listenTo','EditorAnnotations','ck-sidebar--wide','setActiveAnnotation','register','_detachFromContainer','widesidebar-detach-not-attached','refresh','isAttached','pluginName','rearrange','annotations','_activeAnnotation','set','detach','stopListening','removeEventListener','requires','_integrateWithEditorAnnotations','high','_editorAnnotations','_refreshPositioningDebounced','context','_annotations','focus','blur','addAnnotation','container','addEventListener','from','resize','hasDomSelection','get','_attachToContainer','refreshPositioning','widesidebar-attach-already-attached','getOrderedSelectedAnnotations','add','has','activeAnnotation','set:container','ready','attach','init','updateTargetRect','switchTo','_destroyEditorAnnotationsIntegration','remove','wideSidebar','change:container','plugins'];(function(_0x2b4a46,_0x372e5c){const _0xa52eb2=function(_0x276573){while(--_0x276573){_0x2b4a46['push'](_0x2b4a46['shift']());}};_0xa52eb2(++_0x372e5c);}(_0x372e,0x11a));const _0xa52e=function(_0x2b4a46,_0x372e5c){_0x2b4a46=_0x2b4a46-0x0;let _0xa52eb2=_0x372e[_0x2b4a46];return _0xa52eb2;};import{ContextPlugin as _0x41b0ae,Context as _0x279cc1}from'ckeditor5/src/core.js';import _0x852cf9 from'./annotationsuis.js';import _0x2ae1cf from'./sidebar.js';import{CKEditorError as _0xf32b15,Collection as _0x3c92f6}from'ckeditor5/src/utils.js';import{debounce as _0x323418}from'lodash-es';import _0x27d084 from'./editorannotations.js';export default class n extends _0x41b0ae{static get[_0xa52e('0x30')](){return[_0x2ae1cf,_0x852cf9];}static get[_0xa52e('0x28')](){return'WideSidebar';}constructor(_0x6b0572){super(_0x6b0572),this[_0xa52e('0x27')]=!0x1,this[_0xa52e('0x2c')](_0xa52e('0x12'),null),this['annotations']=null,this[_0xa52e('0x33')]=new _0x3c92f6(),this[_0xa52e('0x0')]=_0x323418(()=>{this[_0xa52e('0x2a')][_0xa52e('0xd')]();},0xfa,{'leading':!0x1});}[_0xa52e('0x16')](){const _0x547c9d=this[_0xa52e('0x1')][_0xa52e('0x1d')][_0xa52e('0xb')](_0x852cf9),_0xdfacf4=this[_0xa52e('0x1')]['plugins'][_0xa52e('0xb')](_0x2ae1cf);_0x547c9d[_0xa52e('0x23')](_0xa52e('0x1b'),this),_0xdfacf4[_0xa52e('0x6')]&&_0x547c9d[_0xa52e('0x18')](_0xa52e('0x1b'));}['setActiveAnnotation'](_0x1c1912){if(_0x1c1912===this[_0xa52e('0x12')])return;const _0x2b9ea1=this[_0xa52e('0x1')][_0xa52e('0x1d')][_0xa52e('0xb')](_0x2ae1cf);_0x2b9ea1[_0xa52e('0x2b')]=_0x1c1912;const _0x58dec8=this['activeAnnotation'];this[_0xa52e('0x12')]=_0x1c1912,_0x2b9ea1[_0xa52e('0x26')]({'blurredAnnotation':_0x58dec8,'activatedAnnotation':this['activeAnnotation']});}[_0xa52e('0x15')](_0x7948bd){this[_0xa52e('0x2a')]=_0x7948bd;const _0x478c61=this[_0xa52e('0x1')][_0xa52e('0x1d')]['get'](_0x2ae1cf);if(_0x478c61[_0xa52e('0x2')]=_0x7948bd,this[_0xa52e('0x27')])throw new _0xf32b15(_0xa52e('0xe'),this);this['isAttached']=!0x0,this[_0xa52e('0x1f')](_0x478c61,_0xa52e('0x13'),()=>{this[_0xa52e('0x2d')](),this[_0xa52e('0x1f')](_0x478c61,_0xa52e('0x1c'),_0xb525fa=>{_0xb525fa['off'](),this[_0xa52e('0x15')](_0x7948bd);});}),_0x478c61[_0xa52e('0xc')]({'viewClass':_0xa52e('0x21')});const _0xe8d0ac=_0x5eb62e=>{_0x5eb62e[_0xa52e('0x17')](),_0x478c61[_0xa52e('0x5')](_0x5eb62e);};for(const _0x383045 of _0x7948bd)_0xe8d0ac(_0x383045);this[_0xa52e('0x1f')](_0x7948bd,_0xa52e('0x10'),(_0x281ec9,_0x3d120f)=>{_0xe8d0ac(_0x3d120f);}),this[_0xa52e('0x1f')](_0x7948bd,_0xa52e('0x1a'),(_0x1a59a9,_0x2e4035,_0x5c3541)=>{_0x478c61[_0xa52e('0x29')]({'removedAnnotation':_0x2e4035,'previousAnnotation':_0x7948bd[_0xa52e('0xb')](_0x5c3541-0x1),'nextAnnotation':_0x7948bd[_0xa52e('0xb')](_0x5c3541+0x1)}),_0x2e4035===this[_0xa52e('0x12')]&&this[_0xa52e('0x22')](null);},{'priority':_0xa52e('0x32')}),this['listenTo'](_0x7948bd,_0xa52e('0x3'),(_0x40357f,_0xfdf340)=>{this['setActiveAnnotation'](_0xfdf340);}),this[_0xa52e('0x1f')](_0x7948bd,_0xa52e('0x4'),()=>{this[_0xa52e('0x22')](null);});const _0x33bab4=this['context']instanceof _0x279cc1?this[_0xa52e('0x1')]['editors']:new _0x3c92f6([this[_0xa52e('0x1')]]);for(const _0x4ed463 of _0x33bab4)this['_integrateWithEditorAnnotations'](_0x4ed463);this[_0xa52e('0x1f')](_0x33bab4,_0xa52e('0x10'),(_0xc441e8,_0x669a49)=>{this['listenTo'](_0x669a49,_0xa52e('0x14'),()=>{this[_0xa52e('0x31')](_0x669a49);});}),this[_0xa52e('0x1f')](_0x33bab4,_0xa52e('0x1a'),(_0x9d25ec,_0x36a43e)=>{_0x36a43e[_0xa52e('0x1d')][_0xa52e('0x11')](_0xa52e('0x20'))&&this[_0xa52e('0x19')](_0x36a43e[_0xa52e('0x1d')]['get'](_0xa52e('0x20')));}),window[_0xa52e('0x7')]('resize',this[_0xa52e('0x0')]),this[_0xa52e('0x2a')][_0xa52e('0xd')]();}[_0xa52e('0x2d')](){if(!this['isAttached'])throw new _0xf32b15(_0xa52e('0x25'),this);this['setActiveAnnotation'](null);const _0x48e1b3=this['context'][_0xa52e('0x1d')][_0xa52e('0xb')](_0x2ae1cf);_0x48e1b3[_0xa52e('0x24')](this[_0xa52e('0x2a')]),this[_0xa52e('0x2e')](_0x48e1b3),this['stopListening'](this[_0xa52e('0x2a')]),this[_0xa52e('0x1')]instanceof _0x279cc1&&this[_0xa52e('0x2e')](this[_0xa52e('0x1')]['editors']);for(const _0x501a4e of Array[_0xa52e('0x8')](this[_0xa52e('0x33')]))this['_destroyEditorAnnotationsIntegration'](_0x501a4e);window[_0xa52e('0x2f')](_0xa52e('0x9'),this[_0xa52e('0x0')]),this[_0xa52e('0x0')]['cancel'](),this[_0xa52e('0x12')]=null,this['isAttached']=!0x1,this[_0xa52e('0x2a')]=null;}['destroy'](){this[_0xa52e('0x27')]&&this[_0xa52e('0x2d')]();}[_0xa52e('0x31')](_0x5cf745){const _0x124c2d=_0x5cf745[_0xa52e('0x1d')]['get'](_0x27d084);if(!_0x124c2d)return;const _0x2b5971=()=>{const _0x3e993d=_0x124c2d[_0xa52e('0xf')]({'annotations':this[_0xa52e('0x2a')],'activeAnnotation':this[_0xa52e('0x12')]});this[_0xa52e('0x22')](_0x3e993d[0x0]||null);};this[_0xa52e('0x1f')](_0x124c2d,_0xa52e('0x26'),_0x2b5971),this['listenTo'](_0x124c2d,'blur',(_0x16f28c,{isAnnotationTracked:_0x5b9a31})=>{this[_0xa52e('0x12')]&&_0x5b9a31(this['activeAnnotation'])&&this[_0xa52e('0x22')](null);}),this[_0xa52e('0x1f')](_0x124c2d,_0xa52e('0x1e'),()=>{this[_0xa52e('0x0')]();}),this['listenTo'](this['annotations'],'blur',_0x11da3b=>{_0x124c2d[_0xa52e('0xa')]()&&(_0x2b5971(),_0x11da3b['stop']());},{'priority':_0xa52e('0x32')}),this[_0xa52e('0x33')][_0xa52e('0x10')](_0x124c2d);}[_0xa52e('0x19')](_0x30ff54){this[_0xa52e('0x2e')](_0x30ff54),this[_0xa52e('0x33')][_0xa52e('0x1a')](_0x30ff54);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20aa=['substr','editor','selection','getRanges','comment:','getLastMatchingPosition','document','backward','refresh','element','start','_trimToContent','schema','_itemIsContent','change','item','_hasContent','model'];(function(_0x4342ce,_0x20aa9c){const _0x4f4f9c=function(_0x499be3){while(--_0x499be3){_0x4342ce['push'](_0x4342ce['shift']());}};_0x4f4f9c(++_0x20aa9c);}(_0x20aa,0x75));const _0x4f4f=function(_0x4342ce,_0x20aa9c){_0x4342ce=_0x4342ce-0x0;let _0x4f4f9c=_0x20aa[_0x4342ce];return _0x4f4f9c;};import{Command as _0x2059b9}from'ckeditor5/src/core.js';import{uid as _0x532eba}from'ckeditor5/src/utils.js';export default class G extends _0x2059b9{[_0x4f4f('0x11')](){const _0x17305e=this[_0x4f4f('0xa')][_0x4f4f('0x8')][_0x4f4f('0xf')][_0x4f4f('0xb')];for(const _0x45acde of _0x17305e[_0x4f4f('0xc')]())if(this[_0x4f4f('0x7')](_0x45acde))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x192098=_0x532eba()}={}){const _0x798373=this[_0x4f4f('0xa')]['model'],_0xe6b399=[];for(const _0x2adbbe of _0x798373['document'][_0x4f4f('0xb')][_0x4f4f('0xc')]())this['_hasContent'](_0x2adbbe)&&_0xe6b399['push'](this[_0x4f4f('0x2')](_0x2adbbe));_0x798373[_0x4f4f('0x5')](_0x3632a8=>{for(const _0x10dcbf of _0xe6b399){const _0xd6581e=_0x532eba()[_0x4f4f('0x9')](0x1,0x5),_0x48b68f=_0x4f4f('0xd')+_0x192098+':'+_0xd6581e;_0x3632a8['addMarker'](_0x48b68f,{'range':_0x10dcbf,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4f4f('0x7')](_0x41ea8d){for(const _0x4792fd of _0x41ea8d['getItems']())if(this[_0x4f4f('0x4')](_0x4792fd))return!0x0;return!0x1;}['_itemIsContent'](_0x5dfbb3){return _0x5dfbb3['is']('$textProxy')||this[_0x4f4f('0xa')][_0x4f4f('0x8')][_0x4f4f('0x3')]['isObject'](_0x5dfbb3)&&!_0x5dfbb3['is'](_0x4f4f('0x0'),'tableCell');}[_0x4f4f('0x2')](_0x3fb796){const _0x4ca34a=_0x14c976=>!this[_0x4f4f('0x4')](_0x14c976[_0x4f4f('0x6')]),_0x504452=_0x3fb796[_0x4f4f('0x1')][_0x4f4f('0xe')](_0x4ca34a),_0x2c3dc0=_0x3fb796['end'][_0x4f4f('0xe')](_0x4ca34a,{'direction':_0x4f4f('0x10')});return this[_0x4f4f('0xa')][_0x4f4f('0x8')]['createRange'](_0x504452,_0x2c3dc0);}}
23
+ const _0x4678=['createRange','element','refresh','isEnabled','getRanges','comment:','selection','getLastMatchingPosition','_trimToContent','schema','push','backward','_itemIsContent','getItems','_hasContent','tableCell','document','substr','end','item','model','change','addMarker','editor'];(function(_0x1b1948,_0x4678ff){const _0x2f7844=function(_0x8d6ed7){while(--_0x8d6ed7){_0x1b1948['push'](_0x1b1948['shift']());}};_0x2f7844(++_0x4678ff);}(_0x4678,0xd5));const _0x2f78=function(_0x1b1948,_0x4678ff){_0x1b1948=_0x1b1948-0x0;let _0x2f7844=_0x4678[_0x1b1948];return _0x2f7844;};import{Command as _0x476457}from'ckeditor5/src/core.js';import{uid as _0x142c08}from'ckeditor5/src/utils.js';export default class G extends _0x476457{[_0x2f78('0x5')](){const _0x50ddd8=this['editor'][_0x2f78('0x17')]['document'][_0x2f78('0x9')];for(const _0xf63f83 of _0x50ddd8[_0x2f78('0x7')]())if(this[_0x2f78('0x11')](_0xf63f83))return void(this[_0x2f78('0x6')]=!0x0);this[_0x2f78('0x6')]=!0x1;}['execute']({threadId:_0x7e7312=_0x142c08()}={}){const _0x1ea1fb=this[_0x2f78('0x2')][_0x2f78('0x17')],_0xc1a780=[];for(const _0xad5e42 of _0x1ea1fb[_0x2f78('0x13')]['selection'][_0x2f78('0x7')]())this[_0x2f78('0x11')](_0xad5e42)&&_0xc1a780[_0x2f78('0xd')](this[_0x2f78('0xb')](_0xad5e42));_0x1ea1fb[_0x2f78('0x0')](_0x113efe=>{for(const _0x410e65 of _0xc1a780){const _0x3bdde7=_0x142c08()[_0x2f78('0x14')](0x1,0x5),_0x1c56e6=_0x2f78('0x8')+_0x7e7312+':'+_0x3bdde7;_0x113efe[_0x2f78('0x1')](_0x1c56e6,{'range':_0x410e65,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x20b944){for(const _0x127636 of _0x20b944[_0x2f78('0x10')]())if(this[_0x2f78('0xf')](_0x127636))return!0x0;return!0x1;}['_itemIsContent'](_0x17555a){return _0x17555a['is']('$textProxy')||this[_0x2f78('0x2')][_0x2f78('0x17')][_0x2f78('0xc')]['isObject'](_0x17555a)&&!_0x17555a['is'](_0x2f78('0x4'),_0x2f78('0x12'));}[_0x2f78('0xb')](_0x1c2225){const _0x2879a7=_0x1eccaa=>!this[_0x2f78('0xf')](_0x1eccaa[_0x2f78('0x16')]),_0x5b29ae=_0x1c2225['start'][_0x2f78('0xa')](_0x2879a7),_0x20ae7a=_0x1c2225[_0x2f78('0x15')][_0x2f78('0xa')](_0x2879a7,{'direction':_0x2f78('0xe')});return this['editor'][_0x2f78('0x17')][_0x2f78('0x3')](_0x5b29ae,_0x20ae7a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5abb=['_calculatePosition','archivedThreads','getCommentThread','highest','listenTo','isActive','get','CommentsArchive','remove','change:archivedAt','has','removeCommentThread','focus','pluginName','length','addCommentThread','add','archivedAt','requires','init'];(function(_0x3f8a60,_0x5abbed){const _0x4e5b65=function(_0xc2beb){while(--_0xc2beb){_0x3f8a60['push'](_0x3f8a60['shift']());}};_0x4e5b65(++_0x5abbed);}(_0x5abb,0x16f));const _0x4e5b=function(_0x3f8a60,_0x5abbed){_0x3f8a60=_0x3f8a60-0x0;let _0x4e5b65=_0x5abb[_0x3f8a60];return _0x4e5b65;};import{ContextPlugin as _0x2560a1}from'ckeditor5/src/core.js';import{Collection as _0x288593}from'ckeditor5/src/utils.js';import _0x123dbe from'./commentsrepository.js';import _0x265998 from'../annotations/annotations.js';export default class p extends _0x2560a1{static get[_0x4e5b('0x6')](){return _0x4e5b('0x0');}static get[_0x4e5b('0xb')](){return[_0x123dbe,_0x265998];}constructor(_0x27ca03){super(_0x27ca03),this[_0x4e5b('0xe')]=new _0x288593();}[_0x4e5b('0xc')](){const _0x7adab3=this['context'],_0x2d1349=_0x7adab3['plugins'][_0x4e5b('0x13')](_0x123dbe),_0x22d52b=_0x7adab3['plugins'][_0x4e5b('0x13')](_0x265998);this['listenTo'](_0x2d1349,_0x4e5b('0x8'),(_0x7e80ba,{threadId:_0x154c72})=>{const _0x417a24=_0x2d1349[_0x4e5b('0xf')](_0x154c72);_0x417a24[_0x4e5b('0xa')]&&this[_0x4e5b('0xe')][_0x4e5b('0x9')](_0x417a24,this[_0x4e5b('0xd')](_0x417a24[_0x4e5b('0xa')])),this[_0x4e5b('0x11')](_0x417a24,_0x4e5b('0x2'),(_0x167b8b,_0x358f30,_0x5ca012)=>{_0x5ca012?this[_0x4e5b('0xe')][_0x4e5b('0x3')](_0x417a24)||this[_0x4e5b('0xe')][_0x4e5b('0x9')](_0x417a24,this[_0x4e5b('0xd')](_0x417a24[_0x4e5b('0xa')])):this[_0x4e5b('0xe')][_0x4e5b('0x3')](_0x417a24)&&this[_0x4e5b('0xe')]['remove'](_0x417a24);});}),this[_0x4e5b('0x11')](_0x2d1349,_0x4e5b('0x4'),(_0x1d9055,{threadId:_0x5cc557})=>{const _0xdac079=_0x2d1349[_0x4e5b('0xf')](_0x5cc557);this['stopListening'](_0xdac079),this[_0x4e5b('0xe')][_0x4e5b('0x3')](_0xdac079)&&this[_0x4e5b('0xe')][_0x4e5b('0x1')](_0xdac079);},{'priority':_0x4e5b('0x10')}),this['listenTo'](_0x22d52b['collection'],_0x4e5b('0x5'),(_0x4ca8cf,_0x2ce0b7)=>{_0x2ce0b7[_0x4e5b('0x12')]=!0x0,_0x22d52b['activate'](_0x2ce0b7);});}[_0x4e5b('0xd')](_0x321a5b){const _0x45afd7=[...this[_0x4e5b('0xe')]]['findIndex'](_0x1a9c4d=>_0x1a9c4d['archivedAt']<_0x321a5b);return _0x45afd7>-0x1?_0x45afd7:this['archivedThreads'][_0x4e5b('0x7')];}}
23
+ const _0x553e=['plugins','addCommentThread','init','has','pluginName','context','highest','collection','archivedThreads','activate','findIndex','change:archivedAt','remove','stopListening','removeCommentThread','getCommentThread','requires','archivedAt','add','listenTo','_calculatePosition'];(function(_0x256bee,_0x553eb2){const _0x27a55e=function(_0x535123){while(--_0x535123){_0x256bee['push'](_0x256bee['shift']());}};_0x27a55e(++_0x553eb2);}(_0x553e,0x101));const _0x27a5=function(_0x256bee,_0x553eb2){_0x256bee=_0x256bee-0x0;let _0x27a55e=_0x553e[_0x256bee];return _0x27a55e;};import{ContextPlugin as _0x357bee}from'ckeditor5/src/core.js';import{Collection as _0x2236a5}from'ckeditor5/src/utils.js';import _0x25bbbf from'./commentsrepository.js';import _0x295697 from'../annotations/annotations.js';export default class p extends _0x357bee{static get[_0x27a5('0x14')](){return'CommentsArchive';}static get[_0x27a5('0xb')](){return[_0x25bbbf,_0x295697];}constructor(_0x271443){super(_0x271443),this[_0x27a5('0x3')]=new _0x2236a5();}[_0x27a5('0x12')](){const _0x49f4f5=this[_0x27a5('0x0')],_0x4ee406=_0x49f4f5[_0x27a5('0x10')]['get'](_0x25bbbf),_0x21abc4=_0x49f4f5[_0x27a5('0x10')]['get'](_0x295697);this[_0x27a5('0xe')](_0x4ee406,_0x27a5('0x11'),(_0x4606df,{threadId:_0x5eec86})=>{const _0x16c24e=_0x4ee406[_0x27a5('0xa')](_0x5eec86);_0x16c24e[_0x27a5('0xc')]&&this[_0x27a5('0x3')][_0x27a5('0xd')](_0x16c24e,this[_0x27a5('0xf')](_0x16c24e['archivedAt'])),this[_0x27a5('0xe')](_0x16c24e,_0x27a5('0x6'),(_0x2d585f,_0x8ff6a7,_0x3ac130)=>{_0x3ac130?this[_0x27a5('0x3')][_0x27a5('0x13')](_0x16c24e)||this[_0x27a5('0x3')]['add'](_0x16c24e,this[_0x27a5('0xf')](_0x16c24e[_0x27a5('0xc')])):this['archivedThreads'][_0x27a5('0x13')](_0x16c24e)&&this[_0x27a5('0x3')][_0x27a5('0x7')](_0x16c24e);});}),this['listenTo'](_0x4ee406,_0x27a5('0x9'),(_0x1de643,{threadId:_0xf7546f})=>{const _0x2c43ad=_0x4ee406[_0x27a5('0xa')](_0xf7546f);this[_0x27a5('0x8')](_0x2c43ad),this[_0x27a5('0x3')][_0x27a5('0x13')](_0x2c43ad)&&this[_0x27a5('0x3')][_0x27a5('0x7')](_0x2c43ad);},{'priority':_0x27a5('0x1')}),this[_0x27a5('0xe')](_0x21abc4[_0x27a5('0x2')],'focus',(_0x3f4118,_0x20cc41)=>{_0x20cc41['isActive']=!0x0,_0x21abc4[_0x27a5('0x4')](_0x20cc41);});}['_calculatePosition'](_0x14224e){const _0x217d72=[...this[_0x27a5('0x3')]][_0x27a5('0x5')](_0x9266a2=>_0x9266a2[_0x27a5('0xc')]<_0x14224e);return _0x217d72>-0x1?_0x217d72:this['archivedThreads']['length'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x453b=['_visibleAnnotations','innerView','ck-body','_pendingThreads','children','contains','Annotations','mainView','_calculatePosition','COMMENTS_ARCHIVE','get','collaboration.channelId','focusTracker','position','config','CommentsArchiveUI','commentsArchive','_createArchiveUIDropdown','classList','buttonView','collection','componentFactory','ck-comments-archive-dropdown','archivedAt','indexOf','commentsArchiveView','remove','view','annotationViews','filter','splice','plugins','focusableElements','_handleAnnotationFocusableElements','pluginName','isVisible','_threadToController','panelView','change:isOpen','getByInnerView','extendTemplate','listenTo','editor','archivedThreads','length','locale','add','set','channelId','requires'];(function(_0x33cf83,_0x453bdf){const _0xdc531a=function(_0x174878){while(--_0x174878){_0x33cf83['push'](_0x33cf83['shift']());}};_0xdc531a(++_0x453bdf);}(_0x453b,0x13d));const _0xdc53=function(_0x33cf83,_0x453bdf){_0x33cf83=_0x33cf83-0x0;let _0xdc531a=_0x453b[_0x33cf83];return _0xdc531a;};import'../../theme/commentsarchive.css';import{Plugin as _0x6ebcb6}from'ckeditor5/src/core.js';import{createDropdown as _0x5ae393,ViewCollection as _0x5afebe}from'ckeditor5/src/ui.js';import _0x1e5773 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0xe78fdb}from'../utils/common-translations.js';import _0x1dafc5 from'./ui/view/commentsarchiveview.js';import _0x55b9e7 from'./commentsarchive.js';export default class a extends _0x6ebcb6{static get[_0xdc53('0x11')](){return _0xdc53('0x30');}static get[_0xdc53('0x20')](){return[_0x55b9e7];}constructor(_0x5add83){super(_0x5add83),this['annotationViews']=new _0x5afebe(),this[_0xdc53('0x24')]=[];}['init'](){this['editor']['ui'][_0xdc53('0x4')][_0xdc53('0x1d')](_0xdc53('0x31'),()=>this[_0xdc53('0x0')]());const _0x43677f=this[_0xdc53('0x19')][_0xdc53('0xe')]['get'](_0x55b9e7),_0x55ce7f=this['editor'][_0xdc53('0xe')]['get']('Annotations'),_0x4f04b9=this[_0xdc53('0x19')][_0xdc53('0xe')][_0xdc53('0x2b')]('CommentsRepository');this['listenTo'](_0x43677f[_0xdc53('0x1a')],_0xdc53('0x1d'),(_0x3c63fe,_0x18a427)=>{const _0x15dfac=this['editor'][_0xdc53('0x2f')][_0xdc53('0x2b')](_0xdc53('0x2c'));if(!_0x15dfac||_0x18a427[_0xdc53('0x1f')]===_0x15dfac){const _0x5931d6=this[_0xdc53('0x29')](_0x18a427[_0xdc53('0x6')]),_0x51d602=_0x4f04b9[_0xdc53('0x13')][_0xdc53('0x2b')](_0x18a427);if(!_0x51d602)return void this[_0xdc53('0x24')]['push']({'thread':_0x18a427,'position':_0x5931d6});const _0x37d69a=_0x55ce7f[_0xdc53('0x16')](_0x51d602['view']);_0x37d69a[_0xdc53('0x12')]&&_0x55ce7f[_0xdc53('0x21')][_0xdc53('0x9')](_0x37d69a),this[_0xdc53('0xb')][_0xdc53('0x1d')](_0x37d69a[_0xdc53('0xa')],_0x5931d6);}}),this['listenTo'](_0x55ce7f[_0xdc53('0x3')],_0xdc53('0x1d'),(_0x56cce8,_0x35aa8b)=>{const _0x9c60b2=this['_pendingThreads']['find'](({thread:_0x2c1a8a})=>{const _0x5c8247=_0x4f04b9[_0xdc53('0x13')][_0xdc53('0x2b')](_0x2c1a8a);return _0x5c8247&&_0x35aa8b[_0xdc53('0x22')]===_0x5c8247[_0xdc53('0xa')];});_0x9c60b2&&(this[_0xdc53('0xb')][_0xdc53('0x1d')](_0x35aa8b[_0xdc53('0xa')],_0x9c60b2[_0xdc53('0x2e')]),this[_0xdc53('0x24')][_0xdc53('0xd')](this['_pendingThreads'][_0xdc53('0x7')](_0x9c60b2),0x1));}),this[_0xdc53('0x18')](_0x43677f[_0xdc53('0x1a')],_0xdc53('0x9'),(_0x282320,_0x48b5ed)=>{const _0xb08f2=this['editor'][_0xdc53('0x2f')][_0xdc53('0x2b')](_0xdc53('0x2c'));if(!_0xb08f2||_0x48b5ed[_0xdc53('0x1f')]===_0xb08f2){const _0x17938a=_0x4f04b9[_0xdc53('0x13')]['get'](_0x48b5ed),_0x36b901=_0x55ce7f['getByInnerView'](_0x17938a[_0xdc53('0xa')]);this[_0xdc53('0xb')]['remove'](_0x36b901[_0xdc53('0xa')]),this['stopListening'](_0x36b901[_0xdc53('0xf')]);}});}[_0xdc53('0x10')](_0x1300ef,_0x43dc4e){for(const _0xf99ac1 of _0x43dc4e[_0xdc53('0xf')])_0xf99ac1[_0xdc53('0x1')][_0xdc53('0x26')](_0xdc53('0x23'))&&_0x1300ef[_0xdc53('0x2d')]['add'](_0xf99ac1);this['listenTo'](_0x43dc4e['focusableElements'],_0xdc53('0x1d'),(_0x2b23b6,_0x28a9b2)=>{_0x28a9b2['classList'][_0xdc53('0x26')]('ck-body')&&_0x1300ef[_0xdc53('0x2d')]['add'](_0x28a9b2);}),this[_0xdc53('0x18')](_0x43dc4e[_0xdc53('0xf')],'remove',(_0x296cd5,_0x5052bc)=>{_0x5052bc[_0xdc53('0x1')][_0xdc53('0x26')]('ck-body')&&_0x1300ef[_0xdc53('0x2d')][_0xdc53('0x9')](_0x5052bc);});}[_0xdc53('0x29')](_0x5d890){const _0x352c70=this['editor'][_0xdc53('0x2f')][_0xdc53('0x2b')]('collaboration.channelId'),_0x14676a=[...this[_0xdc53('0x19')][_0xdc53('0xe')][_0xdc53('0x2b')](_0x55b9e7)[_0xdc53('0x1a')]][_0xdc53('0xc')](_0x314953=>_0x314953['channelId']===_0x352c70)['findIndex'](_0x4af9db=>_0x4af9db['archivedAt']<_0x5d890);return _0x14676a>-0x1?_0x14676a-0x1:this[_0xdc53('0xb')][_0xdc53('0x1b')];}[_0xdc53('0x0')](){const _0x5e7805=this[_0xdc53('0x19')],_0x191538=this[_0xdc53('0x19')][_0xdc53('0xe')]['get'](_0xdc53('0x27')),_0x3e86dc=_0x5ae393(_0x5e7805[_0xdc53('0x1c')]);_0x3e86dc[_0xdc53('0x2')][_0xdc53('0x1e')]({'icon':_0x1e5773,'label':_0xe78fdb(_0x5e7805[_0xdc53('0x1c')],_0xdc53('0x2a')),'tooltip':!0x0}),_0x3e86dc['panelView'][_0xdc53('0x17')]({'attributes':{'class':_0xdc53('0x5')}}),_0x3e86dc['on'](_0xdc53('0x15'),(_0x424f04,_0x11c6fa,_0xf3421)=>{this[_0xdc53('0x8')]||(this[_0xdc53('0x8')]=new _0x1dafc5(_0x5e7805[_0xdc53('0x1c')],this[_0xdc53('0xb')])),_0xf3421?_0x3e86dc[_0xdc53('0x14')][_0xdc53('0x25')][_0xdc53('0x1d')](this[_0xdc53('0x8')]):_0x3e86dc[_0xdc53('0x14')][_0xdc53('0x25')][_0xdc53('0x9')](this[_0xdc53('0x8')]);});for(const _0x252b2d of this['annotationViews']){const _0x442f15=_0x191538[_0xdc53('0x16')](_0x252b2d[_0xdc53('0x28')]);this['_handleAnnotationFocusableElements'](_0x3e86dc,_0x442f15);}return _0x3e86dc[_0xdc53('0x18')](this[_0xdc53('0xb')],_0xdc53('0x1d'),(_0x463cc8,_0x40f499)=>{const _0x3b71b5=_0x191538[_0xdc53('0x16')](_0x40f499[_0xdc53('0x28')]);this[_0xdc53('0x10')](_0x3e86dc,_0x3b71b5);}),_0x3e86dc[_0xdc53('0x18')](this[_0xdc53('0xb')],_0xdc53('0x9'),(_0x152f27,_0x49a924)=>{const _0x106420=_0x191538[_0xdc53('0x16')](_0x49a924[_0xdc53('0x28')]);for(const _0xeac7b2 of _0x106420[_0xdc53('0xf')])_0xeac7b2[_0xdc53('0x1')][_0xdc53('0x26')]('ck-body')&&_0x3e86dc[_0xdc53('0x2d')][_0xdc53('0x9')](_0xeac7b2);}),_0x3e86dc;}}
23
+ const _0xd6cf=['filter','_threadToController','push','panelView','commentsArchiveView','COMMENTS_ARCHIVE','focusableElements','Annotations','add','collection','requires','length','remove','ck-comments-archive-dropdown','splice','componentFactory','findIndex','CommentsRepository','contains','get','locale','set','archivedAt','_pendingThreads','focusTracker','_calculatePosition','channelId','listenTo','editor','pluginName','view','find','innerView','_handleAnnotationFocusableElements','archivedThreads','collaboration.channelId','config','annotationViews','init','ck-body','mainView','commentsArchive','plugins','buttonView','position','classList','children','getByInnerView'];(function(_0x247ae0,_0xd6cfb4){const _0x3734e4=function(_0x282831){while(--_0x282831){_0x247ae0['push'](_0x247ae0['shift']());}};_0x3734e4(++_0xd6cfb4);}(_0xd6cf,0xfd));const _0x3734=function(_0x247ae0,_0xd6cfb4){_0x247ae0=_0x247ae0-0x0;let _0x3734e4=_0xd6cf[_0x247ae0];return _0x3734e4;};import'../../theme/commentsarchive.css';import{Plugin as _0x31e601}from'ckeditor5/src/core.js';import{createDropdown as _0x17fc87,ViewCollection as _0x4dd4cf}from'ckeditor5/src/ui.js';import _0x32180c from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2203c6}from'../utils/common-translations.js';import _0x43b0e3 from'./ui/view/commentsarchiveview.js';import _0x99c315 from'./commentsarchive.js';export default class a extends _0x31e601{static get[_0x3734('0x10')](){return'CommentsArchiveUI';}static get[_0x3734('0x2d')](){return[_0x99c315];}constructor(_0x5a5f16){super(_0x5a5f16),this['annotationViews']=new _0x4dd4cf(),this[_0x3734('0xa')]=[];}[_0x3734('0x19')](){this[_0x3734('0xf')]['ui'][_0x3734('0x2')][_0x3734('0x2b')](_0x3734('0x1c'),()=>this['_createArchiveUIDropdown']());const _0x5217eb=this['editor']['plugins'][_0x3734('0x6')](_0x99c315),_0x17a0a0=this[_0x3734('0xf')][_0x3734('0x1d')][_0x3734('0x6')](_0x3734('0x2a')),_0x30163d=this[_0x3734('0xf')]['plugins'][_0x3734('0x6')](_0x3734('0x4'));this[_0x3734('0xe')](_0x5217eb[_0x3734('0x15')],'add',(_0x49e5c0,_0x50ede3)=>{const _0x4aa11d=this[_0x3734('0xf')][_0x3734('0x17')][_0x3734('0x6')]('collaboration.channelId');if(!_0x4aa11d||_0x50ede3[_0x3734('0xd')]===_0x4aa11d){const _0x466a7e=this[_0x3734('0xc')](_0x50ede3[_0x3734('0x9')]),_0x3a2d73=_0x30163d[_0x3734('0x24')]['get'](_0x50ede3);if(!_0x3a2d73)return void this[_0x3734('0xa')][_0x3734('0x25')]({'thread':_0x50ede3,'position':_0x466a7e});const _0x3f944d=_0x17a0a0['getByInnerView'](_0x3a2d73[_0x3734('0x11')]);_0x3f944d['isVisible']&&_0x17a0a0['_visibleAnnotations'][_0x3734('0x2f')](_0x3f944d),this[_0x3734('0x18')][_0x3734('0x2b')](_0x3f944d[_0x3734('0x11')],_0x466a7e);}}),this[_0x3734('0xe')](_0x17a0a0[_0x3734('0x2c')],_0x3734('0x2b'),(_0x2b6d8d,_0x523bdb)=>{const _0x387408=this[_0x3734('0xa')][_0x3734('0x12')](({thread:_0x3430d4})=>{const _0x3f4479=_0x30163d[_0x3734('0x24')][_0x3734('0x6')](_0x3430d4);return _0x3f4479&&_0x523bdb[_0x3734('0x13')]===_0x3f4479[_0x3734('0x11')];});_0x387408&&(this[_0x3734('0x18')]['add'](_0x523bdb[_0x3734('0x11')],_0x387408[_0x3734('0x1f')]),this['_pendingThreads'][_0x3734('0x1')](this[_0x3734('0xa')]['indexOf'](_0x387408),0x1));}),this[_0x3734('0xe')](_0x5217eb[_0x3734('0x15')],_0x3734('0x2f'),(_0x56b9d4,_0x39ec40)=>{const _0x2cb764=this[_0x3734('0xf')][_0x3734('0x17')]['get'](_0x3734('0x16'));if(!_0x2cb764||_0x39ec40[_0x3734('0xd')]===_0x2cb764){const _0x590e9f=_0x30163d[_0x3734('0x24')][_0x3734('0x6')](_0x39ec40),_0x252862=_0x17a0a0[_0x3734('0x22')](_0x590e9f[_0x3734('0x11')]);this['annotationViews'][_0x3734('0x2f')](_0x252862['view']),this['stopListening'](_0x252862[_0x3734('0x29')]);}});}[_0x3734('0x14')](_0x60875d,_0x513f40){for(const _0x24c8bd of _0x513f40[_0x3734('0x29')])_0x24c8bd['classList'][_0x3734('0x5')](_0x3734('0x1a'))&&_0x60875d[_0x3734('0xb')][_0x3734('0x2b')](_0x24c8bd);this[_0x3734('0xe')](_0x513f40['focusableElements'],_0x3734('0x2b'),(_0xf90ed0,_0x53e4ec)=>{_0x53e4ec[_0x3734('0x20')][_0x3734('0x5')](_0x3734('0x1a'))&&_0x60875d['focusTracker'][_0x3734('0x2b')](_0x53e4ec);}),this[_0x3734('0xe')](_0x513f40[_0x3734('0x29')],_0x3734('0x2f'),(_0x1684d4,_0x4b7ac9)=>{_0x4b7ac9[_0x3734('0x20')][_0x3734('0x5')](_0x3734('0x1a'))&&_0x60875d[_0x3734('0xb')][_0x3734('0x2f')](_0x4b7ac9);});}['_calculatePosition'](_0x1d206f){const _0x3bbfaf=this['editor'][_0x3734('0x17')][_0x3734('0x6')]('collaboration.channelId'),_0x3621e4=[...this['editor'][_0x3734('0x1d')][_0x3734('0x6')](_0x99c315)['archivedThreads']][_0x3734('0x23')](_0x5ccf6e=>_0x5ccf6e[_0x3734('0xd')]===_0x3bbfaf)[_0x3734('0x3')](_0x189393=>_0x189393[_0x3734('0x9')]<_0x1d206f);return _0x3621e4>-0x1?_0x3621e4-0x1:this[_0x3734('0x18')][_0x3734('0x2e')];}['_createArchiveUIDropdown'](){const _0x1be317=this[_0x3734('0xf')],_0x2939e9=this[_0x3734('0xf')][_0x3734('0x1d')][_0x3734('0x6')](_0x3734('0x2a')),_0x226ca6=_0x17fc87(_0x1be317[_0x3734('0x7')]);_0x226ca6[_0x3734('0x1e')][_0x3734('0x8')]({'icon':_0x32180c,'label':_0x2203c6(_0x1be317[_0x3734('0x7')],_0x3734('0x28')),'tooltip':!0x0}),_0x226ca6['panelView']['extendTemplate']({'attributes':{'class':_0x3734('0x0')}}),_0x226ca6['on']('change:isOpen',(_0x41f812,_0x2c58c0,_0x1e9168)=>{this[_0x3734('0x27')]||(this[_0x3734('0x27')]=new _0x43b0e3(_0x1be317[_0x3734('0x7')],this['annotationViews'])),_0x1e9168?_0x226ca6[_0x3734('0x26')][_0x3734('0x21')][_0x3734('0x2b')](this[_0x3734('0x27')]):_0x226ca6[_0x3734('0x26')]['children'][_0x3734('0x2f')](this[_0x3734('0x27')]);});for(const _0x887497 of this[_0x3734('0x18')]){const _0x1d38b5=_0x2939e9[_0x3734('0x22')](_0x887497[_0x3734('0x1b')]);this['_handleAnnotationFocusableElements'](_0x226ca6,_0x1d38b5);}return _0x226ca6[_0x3734('0xe')](this['annotationViews'],_0x3734('0x2b'),(_0x367d38,_0x1372f9)=>{const _0x36923b=_0x2939e9[_0x3734('0x22')](_0x1372f9[_0x3734('0x1b')]);this[_0x3734('0x14')](_0x226ca6,_0x36923b);}),_0x226ca6[_0x3734('0xe')](this[_0x3734('0x18')],'remove',(_0x107fe3,_0x28313d)=>{const _0x490308=_0x2939e9[_0x3734('0x22')](_0x28313d[_0x3734('0x1b')]);for(const _0x5d2d0a of _0x490308[_0x3734('0x29')])_0x5d2d0a[_0x3734('0x20')][_0x3734('0x5')](_0x3734('0x1a'))&&_0x226ca6[_0x3734('0xb')][_0x3734('0x2f')](_0x5d2d0a);}),_0x226ca6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fb8=['isObject','$graveyard','change:activeMarker','config','unlinkedAt','isLocal','newRange','rootName','group','push','ready','for','comment:','root','markers','text','state','openNewCommentThread','document','clear','delete','_attachMarkerToThread','ck-comment-marker','destroy','isCollapsed','editor','_detachCommentThread','upcast','from','_initAriaMarkerChangeAnnouncements','addCommentThread','consumable','setUnlinkedAt','hasContent','isResolved','pluginName','once','_attachArchivedThread','hasDomSelection','_hasTargetInContent','listenTo','createPositionBefore','getRange','differ','change','refreshVisibility','getItems','isEqual','addComment','destroyed','ignoreResolvedComments','createElement','_threads','commands','context','_handleMarkerAddAndRemove','render','init','hasMarkerForId','change:isReadOnly','hasCommentThread','comments','_handleThreadMarker','substring','requires','createRange','_threadToController','set','join','addMarker:','LEAVE_COMMENT_ANNOUNCEMENT','collaboration.channelId','then','split','_getTextContext','dataDowncast','_initializeMarkerConverters','reconvertMarker','start','comment','markerName','isThreadsLoadingPaused','end','activeMarker','length','managedUsingOperations','editing','fetchCommentThread','announce','attachTo','dataToMarker','isAttached','schema','startsWith','conversion','removeMarker:','_reconvertMarkers','getCommentThreads','data','removeMarker','model','getChangedMarkers','registerAnnotation','elementToElement','plugins','item','view','_getTargetForId','getAllMarkersForId','ariaLiveAnnouncer','scrollToThreadMarker','affectsData','getByInnerView','updateMarker','low','getCommentThread','get','getAttribute','resolveCommentThread','size','add'];(function(_0x487b78,_0x3fb813){const _0x559210=function(_0x10fb40){while(--_0x10fb40){_0x487b78['push'](_0x487b78['shift']());}};_0x559210(++_0x3fb813);}(_0x3fb8,0x194));const _0x5592=function(_0x487b78,_0x3fb813){_0x487b78=_0x487b78-0x0;let _0x559210=_0x3fb8[_0x487b78];return _0x559210;};import{Plugin as _0x2853f4}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x49483b}from'ckeditor5/src/utils.js';import _0x4b39e9 from'./commentsrepository.js';import _0x4bf708 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x4fed77,getAllMarkersDomElementsSorted as _0x4a3d74}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x12ed9f from'../annotations/editorannotations.js';import _0x2829bf from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x11d093 from'./integrations/importword.js';import _0x148b4c from'../annotations/annotations.js';import{getTranslation as _0x263b22}from'../utils/common-translations.js';export default class r extends _0x2853f4{static get[_0x5592('0x17')](){return[_0x4b39e9,_0x12ed9f,_0x2829bf,_0x11d093];}static get[_0x5592('0x73')](){return'CommentsEditing';}constructor(_0x12f391){super(_0x12f391),this[_0x5592('0x1a')](_0x5592('0x28'),!0x0),_0x12f391[_0x5592('0x39')][_0x5592('0x74')](_0x5592('0x5a'),()=>this[_0x5592('0x28')]=!0x1),this['set'](_0x5592('0x2a'),null),this['on'](_0x5592('0x52'),(_0x4446a1,_0x38cd23,_0x25dc47,_0x58d44e)=>{const _0x3fb8ec=_0x25dc47?ot(_0x25dc47)['id']:null;if(_0x12f391[_0x5592('0x3b')][_0x5592('0x3')](()=>{if(_0x3fb8ec){const _0x31d97f=this[_0x5592('0x43')](_0x3fb8ec);for(const _0x37b611 of _0x31d97f)_0x12f391[_0x5592('0x2d')][_0x5592('0x24')](_0x37b611);}if(_0x58d44e){const {id:_0x46420a}=ot(_0x58d44e),_0x2fca0c=this['getAllMarkersForId'](_0x46420a);for(const _0xf4eae2 of _0x2fca0c)_0x12f391[_0x5592('0x2d')][_0x5592('0x24')](_0xf4eae2);}}),_0x3fb8ec){const _0x1083c9=_0x12f391[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9)[_0x5592('0x4a')](_0x3fb8ec);_0x1083c9&&_0x1083c9[_0x5592('0x72')]&&this[_0x5592('0x45')](_0x3fb8ec);}}),this[_0x5592('0x6d')]();}[_0x5592('0x10')](){const _0x37d973=this[_0x5592('0x69')],_0x4fdb3b=_0x37d973[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9),_0x8d3028=_0x37d973['config']['get'](_0x5592('0x1e'));_0x37d973[_0x5592('0xc')][_0x5592('0x4f')](_0x5592('0x6e'),new _0x4bf708(_0x37d973)),this[_0x5592('0x78')](_0x37d973,_0x5592('0x12'),(_0x3f0248,_0x5d772d,_0x78696)=>{_0x4fdb3b['switchReadOnly'](_0x78696,_0x37d973['config'][_0x5592('0x4b')](_0x5592('0x1e')));}),this[_0x5592('0x78')](_0x4fdb3b,tt(_0x5592('0x6e'),_0x8d3028),(_0x2903ce,{threadId:_0x2603a9})=>{const _0x2d51b3=this[_0x5592('0x69')][_0x5592('0x3f')]['get'](_0x4b39e9)['getCommentThread'](_0x2603a9);_0x2d51b3&&_0x2d51b3[_0x5592('0x54')]&&this[_0x5592('0x75')](_0x2603a9);}),this['listenTo'](_0x4fdb3b,tt('removeCommentThread',_0x8d3028),(_0x43a9a9,{threadId:_0x5d33dd})=>{_0x37d973[_0x5592('0x3b')]['enqueueChange']({'isUndoable':!0x1},_0x2cb74a=>{const _0x5eef4f=this['getAllMarkersForId'](_0x5d33dd);for(const _0x153178 of _0x5eef4f)_0x2cb74a[_0x5592('0x3a')](_0x153178);});}),this[_0x5592('0x78')](_0x4fdb3b,tt(_0x5592('0x4d'),_0x8d3028),(_0x43b5ae,{threadId:_0x2023dc})=>{(this['_reconvertMarkers'](_0x2023dc),this[_0x5592('0x69')][_0x5592('0x2d')][_0x5592('0x41')][_0x5592('0x76')])&&(this[_0x5592('0x69')][_0x5592('0x3f')]['get'](_0x4b39e9)[_0x5592('0x4a')](_0x2023dc)[_0x5592('0x54')]||this[_0x5592('0x69')][_0x5592('0x2d')][_0x5592('0x41')]['focus']());},{'priority':_0x5592('0x49')}),this[_0x5592('0x78')](_0x4fdb3b,tt('reopenCommentThread',_0x8d3028),(_0x3b1e7f,{threadId:_0x9276f})=>{this[_0x5592('0x37')](_0x9276f);},{'priority':'low'}),this[_0x5592('0x78')](_0x4fdb3b,tt(_0x5592('0x7'),_0x8d3028),(_0x394dcd,{threadId:_0x32a162,isFromAdapter:_0x119949})=>{const _0x719249=this[_0x5592('0x43')](_0x32a162);if(_0x119949||0x0==_0x719249['length']||!_0x4fdb3b[_0x5592('0x13')](_0x32a162))return;0x1===_0x4fdb3b['getCommentThread'](_0x32a162)[_0x5592('0x2b')]&&_0x37d973[_0x5592('0x3b')]['enqueueChange']({'isUndoable':!0x1},_0x3969c7=>{for(const _0x27751e of _0x719249)_0x3969c7[_0x5592('0x48')](_0x27751e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x5592('0x23')](),this[_0x5592('0xe')]();}[_0x5592('0x67')](){const _0x8e44f1=this['editor'][_0x5592('0x3f')]['get'](_0x4b39e9),_0x539642=this[_0x5592('0x69')]['config'][_0x5592('0x4b')]('collaboration.channelId');for(const _0x454a34 of _0x8e44f1[_0x5592('0x38')]({'channelId':_0x539642}))_0x8e44f1[_0x5592('0x6a')](_0x454a34['id']),_0x8e44f1[_0x5592('0xb')][_0x5592('0x64')](_0x454a34['id']);super[_0x5592('0x67')]();}['hasMarkerForId'](_0x1ee547){return this[_0x5592('0x43')](_0x1ee547)[_0x5592('0x2b')]>0x0;}[_0x5592('0x43')](_0x57957c){const _0x27ec94=[];for(const _0x38c229 of this[_0x5592('0x69')][_0x5592('0x3b')][_0x5592('0x5e')])_0x38c229['name'][_0x5592('0x34')]('comment:'+_0x57957c)&&_0x27ec94[_0x5592('0x59')](_0x38c229);return _0x27ec94;}[_0x5592('0x45')](_0x3f1637){const _0x47e625=this['_getTargetForId'](_0x3f1637);_0x47e625&&setTimeout(()=>{this[_0x5592('0x2a')]&&ot(this[_0x5592('0x2a')])['id']===_0x3f1637&&_0x49483b({'target':_0x47e625[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5592('0x37')](_0x269a40){this[_0x5592('0x69')]['model'][_0x5592('0x3')](()=>{for(const _0x373c9f of this[_0x5592('0x43')](_0x269a40))this['editor'][_0x5592('0x2d')]['reconvertMarker'](_0x373c9f);});}[_0x5592('0x75')](_0x479321){const _0x3374f7=this['editor'][_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9),_0x5547a8=this[_0x5592('0x69')][_0x5592('0x3f')][_0x5592('0x4b')](_0x12ed9f),_0x329de0=_0x3374f7['getCommentThread'](_0x479321);if(!_0x329de0[_0x5592('0x32')]){const _0x484fe9=_0x329de0[_0x5592('0x30')](()=>this[_0x5592('0x42')](_0x329de0['id']));_0x5547a8[_0x5592('0x3d')](_0x484fe9),_0x329de0[_0x5592('0x77')]=!0x1;}}[_0x5592('0x23')](){const _0x589760=this['editor'];_0x589760[_0x5592('0x35')][_0x5592('0x5b')]('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x38286e,_0x25beb3)=>{const {id:_0x304b8c}=ot(_0x38286e[_0x5592('0x27')]),_0x1fcf26=_0x589760['plugins'][_0x5592('0x4b')](_0x4b39e9)[_0x5592('0x4a')](_0x304b8c),_0x1205f0=this[_0x5592('0x2a')]&&ot(this['activeMarker'])['id']===_0x304b8c;if(_0x1fcf26&&_0x1fcf26[_0x5592('0x72')]&&!_0x1205f0&&_0x38286e[_0x5592('0x40')])return _0x25beb3[_0x5592('0x6f')]['consume'](_0x38286e[_0x5592('0x40')],_0x5592('0x1c')+_0x38286e[_0x5592('0x27')]),_0x25beb3[_0x5592('0x6f')]['consume'](_0x38286e[_0x5592('0x40')],_0x5592('0x36')+_0x38286e['markerName']),null;const _0x1d3414=[_0x5592('0x66')];return _0x1205f0&&_0x1d3414[_0x5592('0x59')]('ck-comment-marker--active'),{'classes':_0x1d3414,'attributes':{'data-comment':_0x304b8c}};}}),_0x589760[_0x5592('0x35')][_0x5592('0x5b')](_0x5592('0x22'))['markerToData']({'model':_0x5592('0x26'),'view':(_0x3aa39e,{options:_0x717bbb})=>{const _0x194d1e=_0x589760[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9),_0x3d0865=_0x589760['model']['markers']['get'](_0x3aa39e),{id:_0xc8df4,part:_0x2cb497}=ot(_0x3aa39e);if(_0x3d0865&&!_0x3d0865[_0x5592('0x46')])return null;if(_0x717bbb[_0x5592('0x9')]){const _0x1515d0=_0x194d1e[_0x5592('0x4a')](_0xc8df4);if(_0x1515d0&&_0x1515d0[_0x5592('0x72')])return null;}return{'group':_0x5592('0x26'),'name':_0x2cb497?_0xc8df4+':'+_0x2cb497:_0xc8df4};}}),_0x589760[_0x5592('0x35')][_0x5592('0x5b')]('upcast')[_0x5592('0x3e')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x7a748,{writer:_0x50ec32})=>_0x50ec32[_0x5592('0xa')]('$marker',{'data-name':_0x5592('0x5c')+_0x7a748[_0x5592('0x4c')]('id')})}),_0x589760[_0x5592('0x35')][_0x5592('0x5b')](_0x5592('0x6b'))[_0x5592('0x31')]({'view':_0x5592('0x26')});}[_0x5592('0xe')](){const _0x489291=this[_0x5592('0x69')],_0x36785d=_0x489291['plugins'][_0x5592('0x4b')](_0x4b39e9),_0x249f1f=new Set(),_0x41be9a=new Set();_0x489291[_0x5592('0x3b')][_0x5592('0x62')]['registerPostFixer'](_0x3fd565=>{let _0xfcde6=!0x1;for(const {name:_0x2ea5de,data:_0x1878c1}of _0x489291[_0x5592('0x3b')]['document'][_0x5592('0x2')][_0x5592('0x3c')]()){const {group:_0x22f72f,id:_0x35a7ed}=ot(_0x2ea5de);let _0x4d2ce1=_0x1878c1['newRange'];if(_0x5592('0x26')!==_0x22f72f||!_0x4d2ce1)continue;const _0x293fed=_0x5592('0x51')===_0x4d2ce1[_0x5592('0x5d')][_0x5592('0x57')];_0x293fed||(_0x4d2ce1=et(_0x4d2ce1,_0x489291[_0x5592('0x3b')]),!_0x4d2ce1||_0x4d2ce1[_0x5592('0x68')]||!_0x1878c1[_0x5592('0x56')]||_0x4d2ce1[_0x5592('0x6')](_0x1878c1[_0x5592('0x56')]))?_0x489291[_0x5592('0x3b')][_0x5592('0x71')](_0x4d2ce1)&&!_0x293fed?this[_0x5592('0x28')]?_0x249f1f['add'](_0x2ea5de):this[_0x5592('0x15')](_0x2ea5de,_0x35a7ed):(_0x41be9a[_0x5592('0x4f')](_0x2ea5de),_0x249f1f[_0x5592('0x64')](_0x2ea5de),_0x3fd565[_0x5592('0x3a')](_0x2ea5de),_0xfcde6=!0x0):(_0x3fd565[_0x5592('0x48')](_0x2ea5de,{'range':_0x4d2ce1}),_0xfcde6=!0x0);}return _0xfcde6;}),this['on']('change:isThreadsLoadingPaused',(_0xdbcc40,_0x305fcb,_0x23f082)=>{if(!_0x23f082&&_0x249f1f[_0x5592('0x4e')])for(const _0xd9e83a of _0x249f1f){const {id:_0x3316b2}=ot(_0xd9e83a);_0x249f1f[_0x5592('0x64')](_0xd9e83a),_0x489291[_0x5592('0x3b')][_0x5592('0x5e')][_0x5592('0x4b')](_0xd9e83a)&&this[_0x5592('0x15')](_0xd9e83a,_0x3316b2);}}),this[_0x5592('0x78')](_0x489291['model']['document'],_0x5592('0x3'),(_0x556157,_0x90d84c)=>{for(const {name:_0x21613a,data:{newRange:_0x5574f3}}of _0x489291[_0x5592('0x3b')]['document'][_0x5592('0x2')][_0x5592('0x3c')]()){const {group:_0x563e14,id:_0x3b5efa}=ot(_0x21613a);if(_0x5592('0x26')!==_0x563e14)continue;const _0x14ed10=_0x36785d[_0x5592('0x4a')](_0x3b5efa),_0x4132e9=this[_0x5592('0x11')](_0x3b5efa);_0x14ed10&&(_0x14ed10[_0x5592('0x77')]||_0x489291[_0x5592('0x2d')]['view']['once']('render',()=>{const _0x346f51=_0x489291[_0x5592('0x3f')][_0x5592('0x4b')](_0x148b4c),_0x4885f1=_0x36785d[_0x5592('0x19')]['get'](_0x14ed10)[_0x5592('0x41')];_0x346f51[_0x5592('0x47')](_0x4885f1)[_0x5592('0x4')]();},{'priority':_0x5592('0x49')}),_0x14ed10[_0x5592('0x77')]=_0x4132e9||!!_0x5574f3),_0x5574f3||(_0x41be9a['add'](_0x21613a),_0x249f1f[_0x5592('0x64')](_0x21613a));}if(_0x90d84c[_0x5592('0x55')])for(const _0x1b5b22 of _0x41be9a){const {id:_0x2c76b6}=ot(_0x1b5b22),_0x11e276=_0x36785d[_0x5592('0x4a')](_0x2c76b6),_0x1c3761=this[_0x5592('0x11')](_0x2c76b6);_0x249f1f['delete'](_0x1b5b22),!_0x11e276||_0x1c3761||_0x11e276[_0x5592('0x54')]||_0x11e276[_0x5592('0x70')](new Date());}_0x41be9a[_0x5592('0x63')]();});}['_getTargetForId'](_0x2226c4){const _0x3320bc=this[_0x5592('0x69')],_0x2f8445=this[_0x5592('0x43')](_0x2226c4);return _0x4a3d74(_0x3320bc[_0x5592('0x2d')],_0x2f8445);}[_0x5592('0x21')](_0x535a7a){const _0x1868f3=this['getAllMarkersForId'](_0x535a7a);let _0x23dfd0='',_0x65bc=!0x1;for(const _0x24512a of _0x1868f3){const _0x11ed55=_0x24512a[_0x5592('0x1')]();for(const _0x530ec5 of Array[_0x5592('0x6c')](_0x11ed55[_0x5592('0x5')]()))_0x530ec5['is']('$textProxy')?(_0x23dfd0&&_0x65bc&&(_0x23dfd0+='\x20',_0x65bc=!0x1),_0x23dfd0+=_0x530ec5[_0x5592('0x39')]):_0x65bc=!0x0;_0x65bc=!0x0;}return _0x23dfd0[_0x5592('0x16')](0x0,0x96);}[_0x5592('0x65')](_0xc7f035,_0x2a299c){const _0xdd483e=this[_0x5592('0x69')],_0x407727=_0xdd483e[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9);let _0x261c9d=_0x407727[_0x5592('0x4a')](_0x2a299c);const _0x14b42a=_0xdd483e[_0x5592('0x53')][_0x5592('0x4b')]('collaboration.channelId'),_0x32d10e=_0xdd483e[_0x5592('0x3f')][_0x5592('0x4b')](_0x12ed9f);if(_0x261c9d&&(_0x261c9d[_0x5592('0x54')]&&_0x261c9d[_0x5592('0x70')](null),_0x261c9d[_0x5592('0x32')]))return _0x261c9d;return!this[_0x5592('0x43')](_0x2a299c)[0x0][_0x5592('0x2c')]?_0xdd483e['editing'][_0x5592('0x41')][_0x5592('0x74')](_0x5592('0xf'),()=>{if(_0x407727[_0x5592('0x4a')](_0x2a299c))return;const _0xf8b8e1=_0xdd483e[_0x5592('0x3f')][_0x5592('0x4b')](_0x148b4c);_0x261c9d=_0x407727[_0x5592('0x61')]({'channelId':_0x14b42a,'threadId':_0x2a299c,'target':()=>this[_0x5592('0x42')](_0x2a299c),'context':{'type':_0x5592('0x5f'),'value':this['_getTextContext'](_0x2a299c)}});const _0x55f2e1=_0x407727['_threadToController'][_0x5592('0x4b')](_0x261c9d)[_0x5592('0x41')],_0x541a60=_0xf8b8e1['getByInnerView'](_0x55f2e1);_0x541a60&&_0x32d10e['registerAnnotation'](_0x541a60);},{'priority':_0x5592('0x49')}):_0x407727[_0x5592('0x2e')]({'channelId':_0x14b42a,'threadId':_0x2a299c})[_0x5592('0x1f')](_0x621b6b=>{if(_0x5592('0x8')!==_0xdd483e[_0x5592('0x60')]){if(_0x261c9d=_0x621b6b,_0x261c9d&&!_0x261c9d[_0x5592('0x32')]){const _0x3e816b=_0x261c9d[_0x5592('0x30')](()=>this['_getTargetForId'](_0x2a299c));_0x32d10e[_0x5592('0x3d')](_0x3e816b),_0x261c9d[_0x5592('0x72')]&&this['_reconvertMarkers'](_0x2a299c);}else{if(!_0x261c9d){const _0x1926c5=this[_0x5592('0x43')](_0x2a299c);_0xdd483e['model'][_0x5592('0x3')](_0x38cbec=>{for(const _0x5761ab of _0x1926c5)_0x38cbec[_0x5592('0x3a')](_0x5761ab);});}}}}),_0x261c9d;}[_0x5592('0x15')](_0x3d4e0c,_0x245ee1){const _0x12792f=this[_0x5592('0x65')](_0x3d4e0c,_0x245ee1);_0x12792f&&!_0x12792f[_0x5592('0xd')]&&_0x12792f['setContext']({'type':_0x5592('0x5f'),'value':this[_0x5592('0x21')](_0x245ee1)});}['_initAriaMarkerChangeAnnouncements'](){const _0x232ffa=this[_0x5592('0x69')];_0x4fed77(_0x232ffa['model'],({left:_0x329856,entered:_0x250515})=>{const _0x24e4b7=[];for(const _0x5d67d6 of _0x329856)if(rt(_0x5d67d6)){_0x24e4b7[_0x5592('0x59')](_0x263b22(_0x232ffa['locale'],_0x5592('0x1d')));break;}for(const _0x26b42e of _0x250515)if(rt(_0x26b42e)){_0x24e4b7['push'](_0x263b22(_0x232ffa['locale'],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x24e4b7['length']&&_0x232ffa['ui'][_0x5592('0x44')][_0x5592('0x2f')](_0x5592('0x14'),_0x24e4b7[_0x5592('0x1b')]('\x20'));});}}function tt(_0x2aba8f,_0x31e584){return _0x31e584?_0x2aba8f+':'+_0x31e584:_0x2aba8f;}function ot(_0x68795a){const _0x143cfc=_0x68795a[_0x5592('0x20')](':');return{'group':_0x143cfc[0x0],'id':_0x143cfc[0x1],'part':_0x143cfc[0x2]};}function et(_0xcef0f9,_0xd04f2){const _0x26924e=_0xd04f2[_0x5592('0x33')],_0x2b99a3=_0xd04f2[_0x5592('0x18')](_0xcef0f9[_0x5592('0x25')]);for(const _0x259e42 of _0xcef0f9['getWalker']()){const {type:_0x1fd2bf,item:_0x2e85f2,nextPosition:_0x1f7617}=_0x259e42;if(_0x5592('0x5f')===_0x1fd2bf||_0x26924e[_0x5592('0x50')](_0x2e85f2)){const _0x2d43f3=_0xd04f2[_0x5592('0x0')](_0x2e85f2);_0x2b99a3[_0x5592('0x68')]&&(_0x2b99a3[_0x5592('0x25')]=_0x2d43f3),_0x2b99a3[_0x5592('0x29')]=_0x1f7617;}}return _0x2b99a3;}function rt(_0x3e957f){return _0x5592('0x26')===ot(_0x3e957f['name'])[_0x5592('0x58')];}
23
+ const _0xb057=['openNewCommentThread','LEAVE_COMMENT_ANNOUNCEMENT','getAllMarkersForId','model','getRange','context','affectsData','upcast','split','_handleMarkerAddAndRemove','addMarker:','change:isThreadsLoadingPaused','createPositionBefore','enqueueChange','removeCommentThread','ready','isCollapsed','low','getCommentThread','set','getCommentThreads','_initializeMarkerConverters','_detachCommentThread','data','getByInnerView','_getTextContext','_hasTargetInContent','markers','reconvertMarker','scrollToThreadMarker','schema','requires','unlinkedAt','editor','hasMarkerForId','_threadToController','getItems','dataToMarker','startsWith','once','registerPostFixer','setContext','attachTo','differ','_handleThreadMarker','getChangedMarkers','announce','CommentsEditing','comment','addComment','ignoreResolvedComments','markerName','state','text','_getTargetForId','editingDowncast','item','getAttribute','consumable','ck-comment-marker','createRange','isAttached','createElement','getWalker','for','isEqual','switchReadOnly','_attachArchivedThread','consume','comments','plugins','length','end','ENTER_COMMENT_ANNOUNCEMENT','change','start','then','view','locale','_threads','fetchCommentThread','render','get','$graveyard','change:activeMarker','size','$textProxy','removeMarker','isObject','activeMarker','hasContent','registerAnnotation','init','from','_reconvertMarkers','delete','conversion','isLocal','editing','hasDomSelection','addCommentThread','isThreadsLoadingPaused','document','commands','destroy','listenTo','config','destroyed','updateMarker','comment:','isResolved','refreshVisibility','substring','newRange','setUnlinkedAt','rootName','push','add','hasCommentThread','ariaLiveAnnouncer','collaboration.channelId','_initAriaMarkerChangeAnnouncements','removeMarker:','name'];(function(_0x38ddc9,_0xb05793){const _0xa579df=function(_0x1a9e88){while(--_0x1a9e88){_0x38ddc9['push'](_0x38ddc9['shift']());}};_0xa579df(++_0xb05793);}(_0xb057,0x153));const _0xa579=function(_0x38ddc9,_0xb05793){_0x38ddc9=_0x38ddc9-0x0;let _0xa579df=_0xb057[_0x38ddc9];return _0xa579df;};import{Plugin as _0xf52104}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0xfb04eb}from'ckeditor5/src/utils.js';import _0x1fe0bc from'./commentsrepository.js';import _0x52e848 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x9a62cc,getAllMarkersDomElementsSorted as _0x541f71}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2e32af from'../annotations/editorannotations.js';import _0x1b6872 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x221c07 from'./integrations/importword.js';import _0x269489 from'../annotations/annotations.js';import{getTranslation as _0xb8320e}from'../utils/common-translations.js';export default class r extends _0xf52104{static get[_0xa579('0x40')](){return[_0x1fe0bc,_0x2e32af,_0x1b6872,_0x221c07];}static get['pluginName'](){return _0xa579('0x50');}constructor(_0x23c69d){super(_0x23c69d),this[_0xa579('0x34')]('isThreadsLoadingPaused',!0x0),_0x23c69d[_0xa579('0x38')][_0xa579('0x48')](_0xa579('0x30'),()=>this[_0xa579('0xa')]=!0x1),this[_0xa579('0x34')](_0xa579('0x7a'),null),this['on'](_0xa579('0x75'),(_0x2f1cfe,_0x369f73,_0x29317c,_0x4255e1)=>{const _0x5ac406=_0x29317c?ot(_0x29317c)['id']:null;if(_0x23c69d[_0xa579('0x24')]['change'](()=>{if(_0x5ac406){const _0x4272bd=this[_0xa579('0x23')](_0x5ac406);for(const _0x3e8ce0 of _0x4272bd)_0x23c69d['editing'][_0xa579('0x3d')](_0x3e8ce0);}if(_0x4255e1){const {id:_0x1ac970}=ot(_0x4255e1),_0x23aaf1=this[_0xa579('0x23')](_0x1ac970);for(const _0x4883d9 of _0x23aaf1)_0x23c69d[_0xa579('0x7')][_0xa579('0x3d')](_0x4883d9);}}),_0x5ac406){const _0x51d231=_0x23c69d[_0xa579('0x67')]['get'](_0x1fe0bc)[_0xa579('0x33')](_0x5ac406);_0x51d231&&_0x51d231['isResolved']&&this[_0xa579('0x3e')](_0x5ac406);}}),this[_0xa579('0x1e')]();}[_0xa579('0x1')](){const _0x370709=this[_0xa579('0x42')],_0x21ed21=_0x370709[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x653955=_0x370709[_0xa579('0xf')][_0xa579('0x73')](_0xa579('0x1d'));_0x370709[_0xa579('0xc')]['add'](_0xa579('0x9'),new _0x52e848(_0x370709)),this[_0xa579('0xe')](_0x370709,'change:isReadOnly',(_0x55406a,_0x453aef,_0x502b07)=>{_0x21ed21[_0xa579('0x63')](_0x502b07,_0x370709[_0xa579('0xf')]['get'](_0xa579('0x1d')));}),this[_0xa579('0xe')](_0x21ed21,tt(_0xa579('0x9'),_0x653955),(_0x37b9ad,{threadId:_0x116db7})=>{const _0x2d49c6=this['editor'][_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc)[_0xa579('0x33')](_0x116db7);_0x2d49c6&&_0x2d49c6['unlinkedAt']&&this['_attachArchivedThread'](_0x116db7);}),this[_0xa579('0xe')](_0x21ed21,tt(_0xa579('0x2f'),_0x653955),(_0x5d914d,{threadId:_0x2cff7b})=>{_0x370709[_0xa579('0x24')][_0xa579('0x2e')]({'isUndoable':!0x1},_0x3ae885=>{const _0xcb1e96=this[_0xa579('0x23')](_0x2cff7b);for(const _0xeaaa92 of _0xcb1e96)_0x3ae885[_0xa579('0x78')](_0xeaaa92);});}),this[_0xa579('0xe')](_0x21ed21,tt('resolveCommentThread',_0x653955),(_0xde538a,{threadId:_0x415a89})=>{(this['_reconvertMarkers'](_0x415a89),this['editor'][_0xa579('0x7')][_0xa579('0x6e')][_0xa579('0x8')])&&(this[_0xa579('0x42')]['plugins'][_0xa579('0x73')](_0x1fe0bc)[_0xa579('0x33')](_0x415a89)['unlinkedAt']||this['editor'][_0xa579('0x7')][_0xa579('0x6e')]['focus']());},{'priority':_0xa579('0x32')}),this[_0xa579('0xe')](_0x21ed21,tt('reopenCommentThread',_0x653955),(_0x533531,{threadId:_0x3af7c1})=>{this[_0xa579('0x3')](_0x3af7c1);},{'priority':'low'}),this[_0xa579('0xe')](_0x21ed21,tt(_0xa579('0x52'),_0x653955),(_0x277af5,{threadId:_0x24ebbf,isFromAdapter:_0x5e06db})=>{const _0x2a25b2=this[_0xa579('0x23')](_0x24ebbf);if(_0x5e06db||0x0==_0x2a25b2['length']||!_0x21ed21[_0xa579('0x1b')](_0x24ebbf))return;0x1===_0x21ed21[_0xa579('0x33')](_0x24ebbf)[_0xa579('0x68')]&&_0x370709[_0xa579('0x24')]['enqueueChange']({'isUndoable':!0x1},_0x31dd60=>{for(const _0x244e9f of _0x2a25b2)_0x31dd60[_0xa579('0x11')](_0x244e9f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xa579('0x32')}),this['_initializeMarkerConverters'](),this[_0xa579('0x2a')]();}[_0xa579('0xd')](){const _0x9c1067=this[_0xa579('0x42')][_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x24d234=this['editor'][_0xa579('0xf')][_0xa579('0x73')](_0xa579('0x1d'));for(const _0x56b6c5 of _0x9c1067[_0xa579('0x35')]({'channelId':_0x24d234}))_0x9c1067[_0xa579('0x37')](_0x56b6c5['id']),_0x9c1067[_0xa579('0x70')][_0xa579('0x4')](_0x56b6c5['id']);super[_0xa579('0xd')]();}[_0xa579('0x43')](_0xa37a59){return this[_0xa579('0x23')](_0xa37a59)['length']>0x0;}[_0xa579('0x23')](_0x4d2ebb){const _0xe54a8=[];for(const _0x347f17 of this[_0xa579('0x42')][_0xa579('0x24')][_0xa579('0x3c')])_0x347f17[_0xa579('0x20')][_0xa579('0x47')](_0xa579('0x12')+_0x4d2ebb)&&_0xe54a8['push'](_0x347f17);return _0xe54a8;}[_0xa579('0x3e')](_0x405e72){const _0x3e7e39=this[_0xa579('0x57')](_0x405e72);_0x3e7e39&&setTimeout(()=>{this[_0xa579('0x7a')]&&ot(this['activeMarker'])['id']===_0x405e72&&_0xfb04eb({'target':_0x3e7e39[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0xa579('0x3')](_0x48ea3d){this[_0xa579('0x42')][_0xa579('0x24')][_0xa579('0x6b')](()=>{for(const _0x4f7d93 of this[_0xa579('0x23')](_0x48ea3d))this[_0xa579('0x42')]['editing']['reconvertMarker'](_0x4f7d93);});}[_0xa579('0x64')](_0x545ae7){const _0x30f95c=this[_0xa579('0x42')][_0xa579('0x67')]['get'](_0x1fe0bc),_0x3e041f=this[_0xa579('0x42')]['plugins']['get'](_0x2e32af),_0x16a2fa=_0x30f95c['getCommentThread'](_0x545ae7);if(!_0x16a2fa[_0xa579('0x5e')]){const _0x2877ce=_0x16a2fa[_0xa579('0x4b')](()=>this[_0xa579('0x57')](_0x16a2fa['id']));_0x3e041f[_0xa579('0x0')](_0x2877ce),_0x16a2fa[_0xa579('0x3b')]=!0x1;}}[_0xa579('0x36')](){const _0x39c42e=this['editor'];_0x39c42e[_0xa579('0x5')][_0xa579('0x61')](_0xa579('0x58'))['markerToHighlight']({'model':_0xa579('0x51'),'view':(_0x4f0e37,_0x40c0b2)=>{const {id:_0x1bcbe3}=ot(_0x4f0e37[_0xa579('0x54')]),_0x1c7840=_0x39c42e[_0xa579('0x67')]['get'](_0x1fe0bc)['getCommentThread'](_0x1bcbe3),_0x33c2d2=this[_0xa579('0x7a')]&&ot(this[_0xa579('0x7a')])['id']===_0x1bcbe3;if(_0x1c7840&&_0x1c7840[_0xa579('0x13')]&&!_0x33c2d2&&_0x4f0e37[_0xa579('0x59')])return _0x40c0b2[_0xa579('0x5b')][_0xa579('0x65')](_0x4f0e37[_0xa579('0x59')],_0xa579('0x2b')+_0x4f0e37[_0xa579('0x54')]),_0x40c0b2['consumable']['consume'](_0x4f0e37['item'],_0xa579('0x1f')+_0x4f0e37[_0xa579('0x54')]),null;const _0x2d65dd=[_0xa579('0x5c')];return _0x33c2d2&&_0x2d65dd[_0xa579('0x19')]('ck-comment-marker--active'),{'classes':_0x2d65dd,'attributes':{'data-comment':_0x1bcbe3}};}}),_0x39c42e['conversion'][_0xa579('0x61')]('dataDowncast')['markerToData']({'model':_0xa579('0x51'),'view':(_0x381389,{options:_0x285b3b})=>{const _0x5eae3f=_0x39c42e[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x3d420d=_0x39c42e[_0xa579('0x24')]['markers'][_0xa579('0x73')](_0x381389),{id:_0x493a71,part:_0x1349d1}=ot(_0x381389);if(_0x3d420d&&!_0x3d420d[_0xa579('0x27')])return null;if(_0x285b3b[_0xa579('0x53')]){const _0x1283fa=_0x5eae3f['getCommentThread'](_0x493a71);if(_0x1283fa&&_0x1283fa[_0xa579('0x13')])return null;}return{'group':_0xa579('0x51'),'name':_0x1349d1?_0x493a71+':'+_0x1349d1:_0x493a71};}}),_0x39c42e['conversion']['for'](_0xa579('0x28'))['elementToElement']({'view':{'name':_0xa579('0x51'),'attributes':{'id':/^\w/}},'model':(_0x15233c,{writer:_0x44a7da})=>_0x44a7da[_0xa579('0x5f')]('$marker',{'data-name':_0xa579('0x12')+_0x15233c[_0xa579('0x5a')]('id')})}),_0x39c42e[_0xa579('0x5')]['for'](_0xa579('0x28'))[_0xa579('0x46')]({'view':'comment'});}[_0xa579('0x2a')](){const _0x13b183=this[_0xa579('0x42')],_0x451ebd=_0x13b183[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x36e593=new Set(),_0x572954=new Set();_0x13b183[_0xa579('0x24')]['document'][_0xa579('0x49')](_0x72216a=>{let _0x290669=!0x1;for(const {name:_0x2f3956,data:_0x272358}of _0x13b183[_0xa579('0x24')][_0xa579('0xb')][_0xa579('0x4c')][_0xa579('0x4e')]()){const {group:_0x18cc49,id:_0x951f40}=ot(_0x2f3956);let _0x494a0d=_0x272358[_0xa579('0x16')];if(_0xa579('0x51')!==_0x18cc49||!_0x494a0d)continue;const _0x5882f6=_0xa579('0x74')===_0x494a0d['root'][_0xa579('0x18')];_0x5882f6||(_0x494a0d=et(_0x494a0d,_0x13b183['model']),!_0x494a0d||_0x494a0d['isCollapsed']||!_0x272358[_0xa579('0x16')]||_0x494a0d[_0xa579('0x62')](_0x272358[_0xa579('0x16')]))?_0x13b183[_0xa579('0x24')][_0xa579('0x7b')](_0x494a0d)&&!_0x5882f6?this[_0xa579('0xa')]?_0x36e593[_0xa579('0x1a')](_0x2f3956):this[_0xa579('0x4d')](_0x2f3956,_0x951f40):(_0x572954['add'](_0x2f3956),_0x36e593[_0xa579('0x4')](_0x2f3956),_0x72216a[_0xa579('0x78')](_0x2f3956),_0x290669=!0x0):(_0x72216a[_0xa579('0x11')](_0x2f3956,{'range':_0x494a0d}),_0x290669=!0x0);}return _0x290669;}),this['on'](_0xa579('0x2c'),(_0x330c91,_0x50a2ff,_0x28fa41)=>{if(!_0x28fa41&&_0x36e593[_0xa579('0x76')])for(const _0x343d2b of _0x36e593){const {id:_0x25586c}=ot(_0x343d2b);_0x36e593[_0xa579('0x4')](_0x343d2b),_0x13b183[_0xa579('0x24')][_0xa579('0x3c')][_0xa579('0x73')](_0x343d2b)&&this[_0xa579('0x4d')](_0x343d2b,_0x25586c);}}),this[_0xa579('0xe')](_0x13b183[_0xa579('0x24')][_0xa579('0xb')],'change',(_0x140fc8,_0x11d8ea)=>{for(const {name:_0x20fa86,data:{newRange:_0x12daab}}of _0x13b183[_0xa579('0x24')]['document'][_0xa579('0x4c')]['getChangedMarkers']()){const {group:_0x186316,id:_0xac456a}=ot(_0x20fa86);if(_0xa579('0x51')!==_0x186316)continue;const _0x3e439a=_0x451ebd['getCommentThread'](_0xac456a),_0x5be2f8=this[_0xa579('0x43')](_0xac456a);_0x3e439a&&(_0x3e439a['_hasTargetInContent']||_0x13b183[_0xa579('0x7')][_0xa579('0x6e')]['once']('render',()=>{const _0x5970be=_0x13b183[_0xa579('0x67')][_0xa579('0x73')](_0x269489),_0x492364=_0x451ebd[_0xa579('0x44')]['get'](_0x3e439a)[_0xa579('0x6e')];_0x5970be[_0xa579('0x39')](_0x492364)[_0xa579('0x14')]();},{'priority':'low'}),_0x3e439a[_0xa579('0x3b')]=_0x5be2f8||!!_0x12daab),_0x12daab||(_0x572954[_0xa579('0x1a')](_0x20fa86),_0x36e593[_0xa579('0x4')](_0x20fa86));}if(_0x11d8ea[_0xa579('0x6')])for(const _0x1a558f of _0x572954){const {id:_0x1fadcb}=ot(_0x1a558f),_0x5b2f32=_0x451ebd[_0xa579('0x33')](_0x1fadcb),_0x2f70e7=this[_0xa579('0x43')](_0x1fadcb);_0x36e593[_0xa579('0x4')](_0x1a558f),!_0x5b2f32||_0x2f70e7||_0x5b2f32[_0xa579('0x41')]||_0x5b2f32[_0xa579('0x17')](new Date());}_0x572954['clear']();});}[_0xa579('0x57')](_0x1016af){const _0x4fd736=this[_0xa579('0x42')],_0x2f854a=this['getAllMarkersForId'](_0x1016af);return _0x541f71(_0x4fd736[_0xa579('0x7')],_0x2f854a);}[_0xa579('0x3a')](_0x5baead){const _0x7e28c=this[_0xa579('0x23')](_0x5baead);let _0x3a3e8d='',_0xc3875=!0x1;for(const _0x338032 of _0x7e28c){const _0x46651e=_0x338032[_0xa579('0x25')]();for(const _0x48f2a7 of Array[_0xa579('0x2')](_0x46651e[_0xa579('0x45')]()))_0x48f2a7['is'](_0xa579('0x77'))?(_0x3a3e8d&&_0xc3875&&(_0x3a3e8d+='\x20',_0xc3875=!0x1),_0x3a3e8d+=_0x48f2a7[_0xa579('0x38')]):_0xc3875=!0x0;_0xc3875=!0x0;}return _0x3a3e8d[_0xa579('0x15')](0x0,0x96);}['_attachMarkerToThread'](_0x4fd48f,_0x23c447){const _0x5c3b1f=this[_0xa579('0x42')],_0x13ac8f=_0x5c3b1f[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc);let _0x1734f9=_0x13ac8f[_0xa579('0x33')](_0x23c447);const _0xf20a84=_0x5c3b1f['config'][_0xa579('0x73')](_0xa579('0x1d')),_0x135466=_0x5c3b1f[_0xa579('0x67')]['get'](_0x2e32af);if(_0x1734f9&&(_0x1734f9[_0xa579('0x41')]&&_0x1734f9[_0xa579('0x17')](null),_0x1734f9[_0xa579('0x5e')]))return _0x1734f9;return!this[_0xa579('0x23')](_0x23c447)[0x0]['managedUsingOperations']?_0x5c3b1f['editing'][_0xa579('0x6e')][_0xa579('0x48')](_0xa579('0x72'),()=>{if(_0x13ac8f[_0xa579('0x33')](_0x23c447))return;const _0x316066=_0x5c3b1f['plugins']['get'](_0x269489);_0x1734f9=_0x13ac8f[_0xa579('0x21')]({'channelId':_0xf20a84,'threadId':_0x23c447,'target':()=>this[_0xa579('0x57')](_0x23c447),'context':{'type':_0xa579('0x56'),'value':this[_0xa579('0x3a')](_0x23c447)}});const _0x3cb995=_0x13ac8f[_0xa579('0x44')][_0xa579('0x73')](_0x1734f9)['view'],_0x448da6=_0x316066[_0xa579('0x39')](_0x3cb995);_0x448da6&&_0x135466[_0xa579('0x0')](_0x448da6);},{'priority':'low'}):_0x13ac8f[_0xa579('0x71')]({'channelId':_0xf20a84,'threadId':_0x23c447})[_0xa579('0x6d')](_0x1b5818=>{if(_0xa579('0x10')!==_0x5c3b1f[_0xa579('0x55')]){if(_0x1734f9=_0x1b5818,_0x1734f9&&!_0x1734f9['isAttached']){const _0x11c080=_0x1734f9['attachTo'](()=>this['_getTargetForId'](_0x23c447));_0x135466['registerAnnotation'](_0x11c080),_0x1734f9[_0xa579('0x13')]&&this['_reconvertMarkers'](_0x23c447);}else{if(!_0x1734f9){const _0x29ae70=this[_0xa579('0x23')](_0x23c447);_0x5c3b1f[_0xa579('0x24')][_0xa579('0x6b')](_0x493c5c=>{for(const _0x30ad76 of _0x29ae70)_0x493c5c['removeMarker'](_0x30ad76);});}}}}),_0x1734f9;}[_0xa579('0x4d')](_0x1ba9c7,_0x4e188){const _0x7371ac=this['_attachMarkerToThread'](_0x1ba9c7,_0x4e188);_0x7371ac&&!_0x7371ac[_0xa579('0x26')]&&_0x7371ac[_0xa579('0x4a')]({'type':_0xa579('0x56'),'value':this[_0xa579('0x3a')](_0x4e188)});}[_0xa579('0x1e')](){const _0x1935fd=this['editor'];_0x9a62cc(_0x1935fd[_0xa579('0x24')],({left:_0x30cec6,entered:_0x1c494b})=>{const _0x2a90d3=[];for(const _0x32608a of _0x30cec6)if(rt(_0x32608a)){_0x2a90d3[_0xa579('0x19')](_0xb8320e(_0x1935fd[_0xa579('0x6f')],_0xa579('0x22')));break;}for(const _0x4d5f34 of _0x1c494b)if(rt(_0x4d5f34)){_0x2a90d3[_0xa579('0x19')](_0xb8320e(_0x1935fd[_0xa579('0x6f')],_0xa579('0x6a')));break;}_0x2a90d3[_0xa579('0x68')]&&_0x1935fd['ui'][_0xa579('0x1c')][_0xa579('0x4f')](_0xa579('0x66'),_0x2a90d3['join']('\x20'));});}}function tt(_0x3466ed,_0x172f07){return _0x172f07?_0x3466ed+':'+_0x172f07:_0x3466ed;}function ot(_0x25a876){const _0x840b0c=_0x25a876[_0xa579('0x29')](':');return{'group':_0x840b0c[0x0],'id':_0x840b0c[0x1],'part':_0x840b0c[0x2]};}function et(_0x3a1315,_0x5147ba){const _0x403274=_0x5147ba[_0xa579('0x3f')],_0x21e0bc=_0x5147ba[_0xa579('0x5d')](_0x3a1315['start']);for(const _0xb4c5fa of _0x3a1315[_0xa579('0x60')]()){const {type:_0x4edc7,item:_0x8cd171,nextPosition:_0x3d3ee6}=_0xb4c5fa;if('text'===_0x4edc7||_0x403274[_0xa579('0x79')](_0x8cd171)){const _0x46e179=_0x5147ba[_0xa579('0x2d')](_0x8cd171);_0x21e0bc[_0xa579('0x31')]&&(_0x21e0bc[_0xa579('0x6c')]=_0x46e179),_0x21e0bc[_0xa579('0x69')]=_0x3d3ee6;}}return _0x21e0bc;}function rt(_0xd6f297){return'comment'===ot(_0xd6f297[_0xa579('0x20')])['group'];}